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.
We have moved to a new forum at http://jevois.usc.edu, please check it out. The forum at jevois.org/qa will not allow new user registrations but is maintained alive for its useful past questions and answers.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Silly question - can't get serout over USB to work

0 votes

I am trying to use a JeVois for a very simple use where I need object tracking x/y sent to a raspberry pi - no video is needed.

I can connect to the camera and run all sample modes, so it works fine.

I can connect to the camera's CLI on the RaspberryPi using the serial over USB.

What I *can't* seem to do is get any rational messages out of it.  I have tried changing modes, setting 'setpar serout USB', various streamon/streamoff combinations.

I have followed the guide for an Arduino here: http://jevois.org/tutorials/UserPanTilt.html as my application is somewhat similar.

It is my understanding that if I issue the following commands:

setmapping2 YUYV 320 240 30.0 JeVois ObjectTracker
setpar serout USB
streamon

I should be able to wave something in front of the camera and get some kind of output - but I'm not getting anything.  Is there something I'm missing here?

Thanks in advance!

asked Oct 31, 2017 in User questions by grajohnt (120 points)

1 Answer

0 votes

what you are doing looks correct! can you try this with some other module, like DemoArUco? Or try the same module, but with video output enabled (for color object tracker, that would be YUYV 320x254 @ 60. Just run your video grabbing software on a host computer and then issue the setpar serout USB and when an object is detected, serial messages should come.

The color tracker is set for use at 60fps in demo mode (with USB output), and maybe you tuned your HSV parameters using that mode? When you switch to 30fps with no USB out, it is possible that you are now getting overexposed, or the white balance is off, etc. You could also edit the videomappings.cfg file on your microSD to change the mapping with USB video and using the module you want, so that it will match what you will later use with no video out.

answered Oct 31, 2017 by JeVois (46,580 points)
I did run the RoadNavigation and got it to send serial messages, so I suspect that overexposure could be the issue - thanks for the tip.

I'll work some more with it...
...