quartiq / stabilizer

Firmware and software for the Sinara Stabilizer module with high speed, low latency ADC/DAC data processing and powerful DSP algorithms in between
http://quartiq.de/stabilizer/
Apache License 2.0
106 stars 25 forks source link

Read MAC address from EEPROM #23

Closed cjbe closed 5 years ago

cjbe commented 5 years ago

The MAC address should be read from the EEPROM, which has built in EUI48.

I need this and am happy to implement it. My initial plan would be to print the MAC address found on startup via semihosting - this requires the user have an STLink. Another option would be to dump the MAC address over the debug UART, which comes out to a header.

@jordens any preferences on how to get the MAC address out?

jordens commented 5 years ago

I'd stick to the procedure in the ARTIQ runtime for Kasli as much as possible. Let's make this as unintrusive as possible with minimal user interaction. Semihosting/UART with the user in the loop would block and/or require firmware juggling.

dnadlinger commented 5 years ago

It's easy enough to figure out the MAC address using Wireshark if the device generates some network traffic (e.g. DHCP). Still not exactly end-user-friendly, but at least doesn't necessitate playing around with debug cables.

For actual units sold, surely board houses selling Stabilizer will have some infrastructure to read the EUI-48 and print a per-unit sticker? This must be a reasonably common requirement in manufacturing digital things.

hartytp commented 5 years ago

For actual units sold, surely board houses selling Stabilizer will have some infrastructure to read the EUI-48 and print a per-unit sticker? This must be a reasonably common requirement in manufacturing digital things.

This is something I wish our suppliers did.

cjbe commented 5 years ago

@dnadlinger agreed re finding MAC address - my worry is more the debugging associated with getting the board up (e.g. is the system trying to get a DHCP lease, was it successful and the problem is now elsewhere...) in a way that it is easy to instruct someone to do.

Connecting a debug cable / a USB-UART cable is on the edge of easy enough to get someone to do...

jordens commented 5 years ago

FYI: QUARTIQ now does MAC stickers and tracks devices sold.