EVAL-ADIN6310T1LEBZ
10BASE-T1L Field Switch Web Server Firmware
Frequently Asked Questions (FAQ)
This FAQ covers the web server example firmware for the EVAL-ADIN6310T1LEBZ evaluation board (ADIN6310 6-port TSN Ethernet switch, 4 x ADIN1100 10BASE-T1L PHY, 2 x ADIN1300 Gigabit PHY, LTC4296-1 SPoE PSE controller and MAX32690 microcontroller). It is intended for users who program the supplied zephyr.hex file and use the browser interface, and for developers who want to build or modify the firmware.
For step-by-step setup instructions, see the USER_GUIDE.md file in the project folder.
Contents
- General............................................................................................................................................... 1
- Hardware and Power.......................................................................................................................... 1
- Programming the Firmware................................................................................................................. 1
- Network Connection........................................................................................................................... 1
- Web Interface..................................................................................................................................... 1
- Power Sourcing (SPoE / LTC4296-1).................................................................................................. 1
- Cable Diagnostics and Signal Quality................................................................................................. 1
- DIP Switch (S4) and Optional Features............................................................................................... 1
- Building and Customizing the Firmware.............................................................................................. 1
- Troubleshooting................................................................................................................................ 1
1. General
What does this firmware do?
The firmware runs on the MAX32690 microcontroller of the EVAL-ADIN6310T1LEBZ. At power-up it:
- configures the ADIN6310 switch for basic switching, with VLAN IDs 1–10 set to Learn and Forward on all six ports (MSTP is enabled by default in the switch firmware);
- enables the LTC4296-1 PSE controller, so the four 10BASE-T1L ports supply Single-Pair Power over Ethernet (SPoE), Power Class 12 by default;
- reads the S4 DIP switch to enable optional features (PSE off, IEEE 802.1AS Time Sync, LLDP, IGMP snooping);
- starts a web server at http://192.0.2.100:8080 that shows port status, PSE measurements, cable diagnostics and port statistics.
Which ports does the board have?
|
Port |
Type |
Notes |
|
Port0 |
10BASE-T1L (ADIN1100) |
SPoE power from LTC4296-1, cable diagnostics |
|
Port1 |
10BASE-T1L (ADIN1100) |
SPoE power from LTC4296-1, cable diagnostics |
|
Port2 |
10/100/1000BASE-T (ADIN1300) |
RJ45; use this or Port3 to connect the PC |
|
Port3 |
10/100/1000BASE-T (ADIN1300) |
RJ45; use this or Port2 to connect the PC |
|
Port4 |
10BASE-T1L (ADIN1100) |
SPoE power from LTC4296-1, cable diagnostics |
|
Port5 |
10BASE-T1L (ADIN1100) |
SPoE power from LTC4296-1, cable diagnostics |
Do I need to install or build any software to use the board?
No. To use the board you only need the supplied zephyr.hex file, a debug probe to program it (MAX32625PICO or SEGGER J-Link), and a web browser. Building from source is only needed if you want to change the firmware (see section 9).
Which board revision is supported?
The firmware runs on all EVAL-ADIN6310T1LEBZ revisions. The S4 DIP switch was added in REV D. On REV C boards the switch reads as all OFF, which gives the default configuration (basic switch with PSE enabled).
Is this firmware intended for production use?
No. It is an evaluation and reference example that shows how to control the ADIN6310 and its PHYs from a host MCU and how to present status in a browser. The web interface has no login or encryption, so use it only on an isolated test network.
2. Hardware and Power
What power supply do I need?
The board accepts 9 V to 30 V DC on the barrel jack or the main power terminal. A 15 V wall adapter is supplied with the board.
How is the PSE (SPoE) powered?
By default the PSE output is powered from the main board supply (jumper P25 fitted). To supply a different SPoE voltage, for example to match a specific power class, remove jumper P25 and connect a 24 V to 55 V supply to the PSE power terminal P24.
The voltage on the 10BASE-T1L ports follows the PSE supply. Check that the connected powered devices (PDs) support the voltage you apply.
Where do I connect the PC?
Connect the PC with a standard RJ45 Ethernet cable to Port2 or Port3. Both are Gigabit ports. The web server can be reached from either.
How do I wire a 10BASE-T1L device?
Connect the single twisted pair to the T1L screw terminal of Port0, Port1, Port4 or Port5, observing the + and – markings. The shield or earth terminal can be connected to the cable shield. If the device is a powered device (PD), it is powered through the same pair once SCCP classification succeeds.
Which debug probe can I use, and where does it connect?
Use either a MAX32625PICO or a SEGGER J-Link with a 10-pin 0.05" (1.27 mm) SWD cable. Connect it to the MCU SWD header (P20, "uC SWD"). Make sure pin 1 of the cable lines up with pin 1 of the header. The same header also carries the MCU console UART, so the MAX32625PICO also provides a USB virtual COM port for the boot log.
3. Programming the Firmware
How do I program the hex file with a J-Link?
- Install the SEGGER J-Link Software and Documentation Pack (www.segger.com/downloads/jlink).
- Power the board and connect the J-Link to the SWD header P20.
- Start J-Flash Lite, select device MAX32690, interface SWD, speed 4000 kHz.
- Select hex as the data file and click Program Device.
- Press reset or power-cycle the board.
How do I program the hex file with a MAX32625PICO?
Install the ADI MaximSDK, keeping Open On-Chip Debugger selected (it is by default). Then run OpenOCD from the folder that contains zephyr.hex (adjust the MaximSDK path if needed):
C:\MaximSDK\Tools\OpenOCD\openocd.exe -s C:/MaximSDK/Tools/OpenOCD/scripts ^
-f interface/cmsis-dap.cfg -f target/max32690.cfg ^
-c "program zephyr.hex verify reset exit"
Programming is complete when OpenOCD prints ** Verified OK **. The firmware starts on its own.
Programming fails or the probe cannot find the target. What should I check?
- The board must be powered while you program it. The probe does not power it.
- Check the SWD cable orientation (pin 1).
- Lower the SWD speed to 1000 kHz in J-Flash Lite.
- Make sure no other tool (debugger or IDE) is holding the probe.
Does programming erase my settings?
The firmware does not store settings in flash. All configuration (switch, VLANs, PSE, S4 options, calibration) is applied at every power-up, so re-programming or power-cycling returns the board to its default state.
4. Network Connection
What IP address does the board use?
The board uses a fixed address, 192.0.2.100, with subnet mask 255.255.255.0. The web server listens on TCP port 8080. The board does not run a DHCP server and does not request an address by DHCP.
How do I set up my PC network adapter?
Give the PC's wired Ethernet adapter a static address in the same subnet:
|
Setting |
Board |
PC (recommended) |
|
IP address |
192.0.2.100 |
192.0.2.10 |
|
Subnet mask |
255.255.255.0 |
255.255.255.0 |
|
Default gateway |
– |
leave empty |
|
DNS server |
– |
leave empty |
Windows 10/11: press Win+R, type ncpa.cpl. Right-click the Ethernet adapter and choose Properties. Select Internet Protocol Version 4 (TCP/IPv4), then Properties, then Use the following IP address, and enter the values above. Or, from an Administrator command prompt:
netsh interface ipv4 set address name="Ethernet" static 192.0.2.10 255.255.255.0
Linux:
sudo ip addr add 192.0.2.10/24 dev eth0
sudo ip link set eth0 up
macOS: System Settings → Network → Ethernet adapter → Details → TCP/IP → Configure IPv4: Manually.
Which PC IP addresses can I use?
Any address from 192.0.2.1 to 192.0.2.254, except 192.0.2.100 (the board). 192.0.2.0/24 is a documentation range (RFC 5737), so it does not clash with real networks.
How long after power-up can I connect?
Allow about 20 seconds. The firmware waits a few seconds for the switch interface to settle, then up to 15 seconds for an Ethernet link, before it starts the web server. Connect the PC cable before powering the board, or within those 15 seconds.
How do I check that the PC can reach the board?
Open a command prompt or terminal and run ping 192.0.2.100. You should get replies. If you don't, see section 10.
Can I keep Wi-Fi or my company network connected at the same time?
Yes, as long as those networks don't use 192.0.2.x. If you use a web proxy or a VPN that routes all traffic, add 192.0.2.100 to the proxy exceptions, or disconnect the VPN while you use the board.
Can I connect more than one board to the same network?
Not with the same firmware image. Every board uses 192.0.2.100, so two boards on one network cause an IP address conflict. To run several boards side by side, give each one a different address and rebuild (see section 9).
Can I connect the board to my office LAN or a router?
This is not recommended. The board has a fixed IP address and no gateway, and the web interface has no authentication. Use a direct PC-to-board connection or an isolated test switch.
How do I restore my PC network settings afterwards?
Set the adapter back to Obtain an IP address automatically (Windows) or remove the manual IPv4 setting (Linux/macOS). Otherwise the adapter won't get an address on your normal network.
5. Web Interface
How do I open the web interface?
Open Chrome, Edge or Firefox and go to http://192.0.2.100:8080. Type http://, not https://, and include :8080.
What pages are available?
|
Page |
Content |
|
Home |
Port link status (UP/DOWN) for all six ports, board configuration (switch firmware version, PSE, Time Sync, LLDP and IGMP status) and VLAN configuration. |
|
Cable Diagnostics + PSE |
PSE voltage/current/power class per T1L port, Link Calibration, cable diagnostics (TDR) results, ADIN1100 MSE/SNR signal quality and ADIN1300 MSE/cable estimate. |
|
Port Statistics |
RX/TX byte and frame counters and error counters for every port, with a Clear Statistics button. |
Does the page update automatically?
No. The data is read from the hardware when the page loads. Press F5 (refresh) to see the latest values.
Why does the first page load take a few seconds?
The ADI logo image is about 180 KB and is sent over the embedded TCP/IP stack. After the first load the browser caches it for 24 hours, so later pages load faster.
Can several people use the web interface at the same time?
The web server handles one request at a time. Several browsers can be connected, but requests are served one after another. While cable diagnostics are running (a few seconds), other requests wait until it finishes.
Is the web interface secure?
No. It uses plain HTTP with no login, and is meant for evaluation on an isolated network only. Don't expose the board to an untrusted network.
6. Power Sourcing (SPoE / LTC4296-1)
What power class does the PSE use?
Each 10BASE-T1L port is configured for Power Class 12 by default. The Power Class column on the Cable Diagnostics + PSE page shows the configured class for each port.
When does a port supply power?
Power is applied when the PSE detects and classifies a connected powered device (PD) using the SCCP protocol. A port with no device, or with a device that does not complete classification, has no output power.
What do VIN, VOUT and IOUT mean?
- VIN – voltage at the PSE input (from the main supply or P24).
- VOUT – voltage on the port output.
- IOUT – current drawn by the connected device, in mA.
How do I turn the PSE off?
Set S4.1 ON and power-cycle the board. The Home page then shows "PSE disabled (S4.1)" and no power is supplied on the T1L ports.
The Home page shows "PSE init failed". What does that mean?
The MCU could not initialize the LTC4296-1 over SPI. Check the board supply and, if jumper P25 is removed, the separate PSE supply on P24. Then power-cycle the board. If the error stays, note the error code shown and contact ADI support.
Can I change the power class or the sense resistor value?
Yes, by rebuilding the firmware. In the project's app.overlay file, each port node under <c4296 has an adi,power-class property and an adi,hs-resistor property (in milliohms). Supported classes:
LTC4296_PSE_DISABLED, LTC4296_PSE,
LTC4296_PSE_SCCP_CLASS_10 ... LTC4296_PSE_SCCP_CLASS_15
7. Cable Diagnostics and Signal Quality
What does cable diagnostics measure?
Cable diagnostics uses time-domain reflectometry (TDR) in the ADIN1100 PHY to check a 10BASE-T1L cable for an open or a short, and to estimate the distance to the fault.
How do I run cable diagnostics?
On the Cable Diagnostics + PSE page, choose the port under "Select a 10BASE-T1L port and run cable diagnostics" and click Run Cable Diagnostics. The result appears in the table after a few seconds.
What do the fault-type colours mean?
|
Fault Type |
Colour |
Meaning |
|
NO FAULT |
Green |
No open or short detected. |
|
SHORT |
Yellow |
Short circuit, at the shown Fault Distance. |
|
OPEN |
Red |
Open circuit or unterminated cable, at the shown Fault Distance. |
|
UNKNOWN |
None |
Not measured yet, or the results were cleared. |
|
ERROR <n> |
None |
The measurement could not run; n is the library error code. |
Does cable diagnostics interrupt traffic on the port?
Yes. The PHY is temporarily taken out of normal operation while the measurement runs, so the link on that port drops briefly and recovers afterwards. Other ports are not affected.
How accurate is the fault distance, and what is Link Calibration?
Distance accuracy depends on the cable's velocity of propagation (NVP) and on a fixed offset. Link Calibration measures both from a cable of known length:
- Connect a cable of known length (at least 20 m; 100 m or more is best) to a 10BASE-T1L port. Leave the cable connected, with the link down.
- Under Link Calibration, select the port, enter the length in metres, and click Run Cable Calibration.
- The Calibration column shows the result, for example "TDR Cal 100.0 m". The values are applied to all four T1L ports.
Calibration is held in RAM only. It is lost on reset or power-cycle and must be repeated after each power-up if you need it.
What does "Clear Diagnostics Results" do?
It resets the Fault Type of every port to UNKNOWN and the Fault Distance to 0.00 m. Calibration values are kept.
What do MSE Quality, MSE and SNR mean for the T1L ports?
For a port with an active link, the ADIN1100 reports the mean square error (MSE) of the received signal, which is converted to an SNR in dB:
|
Quality |
MSE (hex) |
Meaning |
|
Good (green) |
below 0x05E1 |
Healthy link margin. |
|
Marginal (orange) |
0x05E1 – 0x0766 |
Link works, but with low margin; check cable and connections. |
|
Poor (red) |
above 0x0766 |
Errors likely; check cable length, quality and termination. |
When the port has no link, these fields show "Link Down" / "Not read".
What do the ADIN1300 MSE values and cable length mean?
For the Gigabit ports (Port2, Port3), the ADIN1300 reports MSE for each of the four pairs (A–D). An average MSE of 9 or less is rated Good, up to 14 is Marginal, and above that is Poor. The cable length is the ADIN1300's own estimate, read from the PHY. Treat it as approximate.
8. DIP Switch (S4) and Optional Features
What does each S4 switch do?
|
Switch |
OFF (default) |
ON |
|
S4.1 |
PSE enabled |
PSE disabled – no power on the T1L ports |
|
S4.2 |
Time Sync off |
IEEE 802.1AS (gPTP) Time Synchronization relay on all ports |
|
S4.3 |
LLDP off |
LLDP (Link Layer Discovery Protocol) enabled |
|
S4.4 |
IGMP snooping off |
IGMP snooping enabled |
The switches can be combined. The Home page Board Configuration table shows the result for each feature.
I changed S4 but nothing happened. Why?
S4 is read only at power-up. Power-cycle the board (or press reset) after changing the switches.
How can I check which S4 setting the firmware read?
The boot log (section 10) prints a line like S4 switch = 1001 (S4.1..S4.4, 1 = ON). In this example S4.1 and S4.4 are ON.
A feature shows "init error" on the Home page. What should I do?
The switch firmware rejected the request. Power-cycle the board and try again. If it persists, note the error code and the matching boot-log line (for example S4.4 ON: IGMP snooping failed (-1) and the IGMP status: line), and contact ADI support.
What VLAN configuration is used?
VLAN IDs 1 to 10 are created with all six ports in Learn and Forward mode. The Home page shows the status of each VLAN.
9. Building and Customizing the Firmware
What do I need to build the firmware from source?
- Zephyr RTOS 4.3 workspace with the west tool and the Zephyr SDK (ARM toolchain).
- The ADINx310 SES Zephyr module (modules/hal/ses), which contains the board definition eval_adin6310t1lebz and the ADIN6310 driver library.
- This application folder (zephyr/samples/application_development/adin63101).
What is the build command?
From the workspace root:
west build -p always -d build -b eval_adin6310t1lebz/max32690/m4 \
zephyr/samples/application_development/adin63101 -- \
"-DEXTRA_ZEPHYR_MODULES=<workspace>/modules/hal/ses"
The output is build/zephyr/zephyr.hex. For later rebuilds, west build -d build is enough.
In Windows PowerShell, keep the quotes around the -D argument. Without them PowerShell splits the path at "C:" and CMake reports "C:, given in ZEPHYR_EXTRA_MODULES, is not a valid zephyr module".
How do I change the IP address or the web server port?
Edit these definitions at the top of src/main.c and rebuild:
#define BIND_PORT 8080
#define BOARD_IP_ADDR "192.0.2.100"
#define BOARD_NETMASK "255.255.255.0"
Where are the PSE settings?
In app.overlay in the project folder. This file enables the LTC4296-1 on SPI0 and defines, for each port, the SCCP pins, the power class and the high-side sense resistor value. See section 6.
Can I change the web pages?
Yes. The pages are generated in src/main.c (functions such as send_diag_page() and send_port_stats_page()), and the Home page template comes from src/dashboard_page.h, which is generated from index.html with generate_c_array.py. Rebuild after making changes.
10. Troubleshooting
How do I see the boot log?
Open the console COM port (the MAX32625PICO virtual COM port, or a USB-UART adapter on the console pins of P20) with 115200 baud, 8 data bits, no parity, 1 stop bit, no flow control. A normal start-up ends with:
SES link is up
assign_static_ipv4: adding 192.0.2.100/24
Web Server Online
Connect to http://192.0.2.100:8080/
Waiting in accept()...
The console also provides a Zephyr shell (uart:~$). For example, net iface shows the interface status and net ping 192.0.2.10 pings the PC.
The log shows "net_if_up returned -120". Is that an error?
No. -120 (EALREADY) means the network interface was already up. You can ignore it.
I cannot ping 192.0.2.100.
- Check that the PC cable is in Port2 or Port3, and that the RJ45 link LED is on.
- Check the PC adapter settings (section 4). On Windows, ipconfig should show 192.0.2.10 on the Ethernet adapter.
- Wait about 20 s after power-up, and check that the boot log shows "Web Server Online".
- Check that no other device on the network uses 192.0.2.100.
Ping works, but the browser does not show the page.
- Use http://192.0.2.100:8080: http (not https) and port 8080.
- Bypass the proxy for 192.0.2.100, or disconnect the VPN.
- Try a private/incognito window to avoid cached redirects.
A 10BASE-T1L port stays DOWN.
- Check the pair wiring and +/– polarity at both ends.
- Check that the link partner is a 10BASE-T1L device, and that it is powered (by the PSE or locally).
- Run Cable Diagnostics on the port to check for an open or a short.
The Port Statistics counters stay at zero.
The counters only increase when traffic passes through a port. Ports without a link stay at zero. Clear Statistics sets all counters to zero and then returns to the statistics page, so refreshing afterwards shows the new counts rather than clearing them again.
Nothing appears on the console.
- Check that the correct COM port is open, at 115200 8N1.
- Press reset. The log starts with *** Booting Zephyr OS ***.
- Check that the board is powered and has been programmed.
Who do I contact for support?
For questions about the ADIN6310, ADIN1100, ADIN1300 or LTC4296-1, or about this firmware, contact your Analog Devices sales representative or use the ADI EngineerZone community (ez.analog.com). Include the boot log, the S4 setting and the switch firmware version shown on the Home page.