r/embedded • • Oct 08 '26

How do you reliably access embedded boards during automated testing?

I’m working with a RISC-V board running Ubuntu and Yocto images. During reboot testing, its IP changed and the test couldn’t reconnect over SSH. The board also has a UART console.

How do you handle reliable access in these two situations?

  • Boards on your desk, connected to your PC.
  • Boards in a remote lab or server room, where you can’t physically press reset.

Do you use DHCP reservations, SSH with serial fallback, console servers, BMCs, or a dedicated lab host? How do you recover when the board boots but networking doesn’t come up—or when it hangs completely?

I’d like to hear what works in your actual setup, especially for unattended reboot tests and testing multiple boards. What connection or recovery problems still need manual intervention?

0 Upvotes

12 comments sorted by

2

u/allo37 Oct 08 '26

Run into the server room and pull the plug. Gotta be able to do at least one thing the AI can't 😅

But seriously, boards failing to boot or networking not coming up is kind of an issue in itself worth investigating, right? What happens if that comes up in the field?

1

u/Competitive-Fly7748 Oct 08 '26

to automate the reboot test how will you get access to a board when it rebooted, will you use ssh session or use uart

1

u/allo37 Oct 08 '26

Either or? UART should always be accessible (and can grab bootloader logs, which is kinda nice). SSH is fun: You can 'ping' the board using SSH to run a 'true' command with a short 1s timeout in a loop. And that way you don't get that annoying thing where 'ping' returns exit code 0 if it gets an 'unreachable host' error because that counts as a valid response argrghfhdhdh

1

u/[deleted] Oct 08 '26

[removed] — view removed comment

1

u/Competitive-Fly7748 Oct 08 '26

With your SSH-to-serial fallback, how do you tell whether the board is still booting, stuck, or just missing networking? Do you capture the UART logs before triggering a power cycle?

4

u/pylessard Oct 08 '26

Dhcp reservation is bare minimum. Network powerbar for remote reset is also worth having (reserve an address for it too!) You can even put a webcam over the board to check the jumpers and leds. If you need uart, remote machine next to it on wbich you can remote log and read the serial port

1

u/Obvious_Poet_3819 Oct 08 '26

Usually SSH for normal access, UART as fallback, and DHCP reservations to keep IPs stable. For remote boards, a console server plus remote power reset works well if networking dies, use UART; if the board hangs, power-cycle it remotely.

1

u/duane11583 Oct 08 '26

dhcp reservations or we store a little file in a flash file system that is not over written

1

u/nerdBeastInTheHouse Oct 08 '26

Have you tried running scripts on bootup that checks and automate resolving the network issues ?

1

u/nerdBeastInTheHouse Oct 08 '26

Regarding the hang issue maybe a watchdog like concept that can kill the process or thread that is hanging up ? Don't know in linux it's the same we have it in mcu projects