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.

How can i export video frames out the serial link?

0 votes
asked Oct 19, 2018 in Hardware Questions by Laputa (160 points)

1 Answer

0 votes

Good question, we don't have a facility to support this directly at the moment, but it could be added.

If you are not in a hurry, you can save your image to microSD and then use jevois command fileget from the host to get that file. If you are in a hurry (need low latency), you should transmit the image over the USB video link, which is the default (UVC protocol).

The file transfer stuff is largely undocumented at this stage, though, as it has been reserved for internal use by the JeVois Inventor only.

The basic protocol is as follows:

host sends: fileget /path/to/file

jevois replies: JEVOIS_FILEGET N\n<raw data>

where N is the file size (written out as an ascii string). The raw data sent has exactly that size, then we switch back to command-line interpreter mode.

See here for the jevois side: http://jevois.org/doc/Serial_8C_source.html function fileGet()

and in the inventor we implement the host side: https://github.com/jevois/jevois-inventor/blob/master/Serial.C look for JobFileGet (line 335 and beyond, at the time of this writing).

note that the \n after the size value could be a \r\n depending on user preferences, so the receiver should be able to tolerate that.

answered Oct 22, 2018 by JeVois (46,580 points)
Curious as to if a camera over serial was ever implimented?