Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Timeout after 5 min on Rasberry pi. Runs for hours with same script on PC. Any ideas?

0 votes
I am using the cam to run Darknet Yolo and recognize objects. I have a python scripts that sends the commands to Jevoi via serial USB to set it up and gets a response that I can use. I found the serstyle in the docs which was the final piece of the puzzle. This is all working fine when I run it from my PC.

I want to run this on a Raspberry Pi. I've moved the script over, made the changes that are needed to the paths and path to the USB serial, etc and it all runs perfect. The problem is that it times out after about five minutes. In my script, I'm polling the USB serial and printing out the output and I get:

b'DKY 167\r\n'
b'DKY 168\r\n'
select timeout
select timeout
VIDIOC_DQBUF: No such device
VIDIOC_DQBUF: No such device
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 490, in read
    'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

What does "select timeout" mean and what can I do to make this reliable?

I'm using the two tailed USB cable that was supplied and plug it in to 2 ports on the raspberry pi. Do you think this is a power problem? Should I try putting the second head into another USB wall wart? I don't want to overvoltage it and kill it. I've done that with arduinos and this is a little more expensive.
asked May 24, 2018 in Hardware Questions by PeterQuinn (1,000 points)

1 Answer

+1 vote
yes, most likely a power problem. The RPI is not designed to provide full current on its USB ports, because it is USB powered itself.

the "select timeout" and later "no such device" means the JeVois camera went down, and the PI cannot grab video from it anymore as JeVois was dropped from the USB bus.

Yes, please try with the second end of the Y cable going to a wall adapter, or battery pack, etc and you should be fine. See here for more info:

answered May 24, 2018 by JeVois (39,960 points)
Thanks. I added a battery and it was stable for more than an hour before I unplugged the battery. That was it.