Rockchip · AI & Linux Hub

When a USB device appears after the data acquisition service has already started

If the automatic startup fails at boot and the service is successfully restarted manually, it is often worth checking the device enumeration time first.

Leave a startup timeline on each of the Raspberry Pi and Sige5 to see whether the system has created the corresponding device when the collection service opens the serial port or camera.

Use the same clock to sequence events

View journalctl -b -o short-monotonic and arrange driver identification, device appearance, application initialization and failed retries together. If the service ends before the device comes up, adding a permanent fixed delay will hide the failure in the next slow start.

Bind stable device identity

The USB serial port can first check whether there is a stable mark in /dev/serial/by-id. Verify whether the identifier is truly unique when connecting two identical devices. Use device readiness events or reopening logic with backoff based on application needs to avoid treating ttyUSB0 as a fixed business role.

Plug and unplug once and then deliver

After starting, unplug the device and plug it back in to verify whether the collection program can recognize the disconnection, reopen it and continue writing data. The test log should also indicate the interruption duration and the number of lost samples. These two items are closer to the usage requirements of the collection system than “the process is always on”.

View the sequence of kernels and services during this startup

journalctl -b -k -o short-monotonic
journalctl -b -u your-collector.service -o short-monotonic

Replace your-collector.service with the actual service name.

Board documentation and references

ArmSoM Sige5

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

Explore this topic → · Learning paths →