Switch Management
- The switch always needs a host to configure it, it's intended for an embedded application and wasn't designed to just boot and start switching.
- Additionally, the switch is shipped without firmware loaded, this is the first thing that host will need to do during manufacturing.
- The firmware is about 500k, so the host must be able to store this and then load.
- The TSN driver package includes the firmware as a character array, it is signed firmware, the switch supports secure boot/firmware update.
- Once firmware is loaded, that will execute, but switch still needs the host to tell it how user wants the switch configured - e.g. what type of PHY connected, what type of MAC interface etc.
- On power up, the switch will only enable the host port (can be SPI or MAC interface), all other ports will remain disabled until host configures.
- The switch configuration is volatile, and must be reloaded after power cycle or reset.
What firmware is on the device when it is shipped from factory?
- There is no user firmware loaded when the device is shipped from the factory.
- When building own hardware for prototype or production, firmware will need to be first loaded to the device by the host.
- Unprogrammed devices will send image request messages to the host (over SPI or MAC interface), which will prompt the driver to initiate loading firmware.
- Firmware load takes approx. 20-30seconds.
- Firmware is signed and the switch supports secure boot and secure firmware update/load.
- The firmware is part of the TSN driver library package.
How can I do a firmware update for the switch? Do I need any special hardware, tools, interfaces?
- No special hardware, tools or connectors are required for firmware updates.
- Firmware updates are supported from the host over the configured host interface (SPI or Ethernet).
- The TSN driver library supports automatic update when new driver package is run.
- TSN driver library and Firmware are paired.
What software is provided for the switch?
- The same software packages are used for both ADIN3310 and ADIN6310 products
- There are two main software packages provided, the first is for evaluation purposes and is a GUI application which can configure a PC based webserver for a daisy-chain of up to 10 switches.
- The second package is the TSN driver library. This in an OS agnostic library of APIs for the various switch features. User will port this to own host platform and then call the APIs of interest to configure the switch functionality.
Is there an example project available?
- There is an Visual Studio example project available on Github which provides basic examples for all features. This example can be run on Windows and use a standard ethernet adapter to interface to the switch.
- There is also a Zephyr project in the ADI fork, this example is focused on the Field Switch hardware (EVAL-ADIN6310T1LEBZ), but can be easily expanded for other features/use cases.
Switch Initialization
- For a basic switch use case, user would need to call the following 4 APIs as a minimum: SES_init(), SES_AddHardwareInterface(), SES_AddDevice() and SES_InitializePorts().
- After that all ports are enabled and the switch will learn and forward on all ports for untagged and VLAN ID 0.
- To get any other VLAN traffic to cross the switch requires configuration of the VLAN table.
- To use other functions user must call the relevant APIs for the function.
- There are examples in the Driver User Guide and project