September-12th-2019, 08:27 AM
Hi,
I have a docker container with a Python application that connects to a USB (infrared) camera.
The docker container runs fine on the Raspberry Pi 3 B, but not on the netPI.
On the netPI, additionally to running in privileged mode, I have added following devices:
/dev/gpiomem (for digital IO),
/dev/bus (for usb; I also tried with just /dev/bus/usb),
/dev/video0, and
/dev/hidraw0.
The camera library complains about data corruption and "select error". Since, the problem does not appear on the Raspberry Pi and happens inside code I do not own, I see no way how to debug this.
Any idea what other docker container configuration could be missing? Or any ideas on how to investigate this?
Some extra details, just in case:
- The RaspberryPi is connected to the intranet via Wifi, the netPi via Ethernet.
- Infrared Camera: Optris Xi400, https://www.optris.global/optris-xi-400
- Camera SDK for Linux: http://documentation.evocortex.com/libir...index.html, https://evocortex.org/downloads/
- The container is based on the image https://hub.docker.com/r/balenalib/raspberry-pi (balenalib/raspberry-pi-debian-python:3.7.4).
- The Python app also reads and write some GPIOs.
- There's a second container running Redis.
Thanks,
david.
I have a docker container with a Python application that connects to a USB (infrared) camera.
The docker container runs fine on the Raspberry Pi 3 B, but not on the netPI.
On the netPI, additionally to running in privileged mode, I have added following devices:
/dev/gpiomem (for digital IO),
/dev/bus (for usb; I also tried with just /dev/bus/usb),
/dev/video0, and
/dev/hidraw0.
The camera library complains about data corruption and "select error". Since, the problem does not appear on the Raspberry Pi and happens inside code I do not own, I see no way how to debug this.
Any idea what other docker container configuration could be missing? Or any ideas on how to investigate this?
Some extra details, just in case:
- The RaspberryPi is connected to the intranet via Wifi, the netPi via Ethernet.
- Infrared Camera: Optris Xi400, https://www.optris.global/optris-xi-400
- Camera SDK for Linux: http://documentation.evocortex.com/libir...index.html, https://evocortex.org/downloads/
- The container is based on the image https://hub.docker.com/r/balenalib/raspberry-pi (balenalib/raspberry-pi-debian-python:3.7.4).
- The Python app also reads and write some GPIOs.
- There's a second container running Redis.
Thanks,
david.