Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.
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''
b'DKY 168\r\n'
b''
b''
select timeout
b''
select timeout
b''
VIDIOC_DQBUF: No such device
b''
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,020 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:

http://jevois.org/doc/UserConnect.html
answered May 24, 2018 by JeVois (46,580 points)
Thanks. I added a battery and it was stable for more than an hour before I unplugged the battery. That was it.
...