Streaming to UART

Discussion related to "under the hood" OpenMV topics.
Greg38
Posts: 2
Joined: Tue Apr 19, 2016 2:50 am

Streaming to UART

Postby Greg38 » Tue Apr 19, 2016 3:20 am

Hello,

This is a nice project. Is it possible to stream to a serial UART? The idea is to transmit a low quality MJPEG flow through a bluetooth module (classic 2.1 with SPP)
the MJPEG quality would be low: 320x240 at 10fps in black and white.

Best regards,

Grégory
User avatar
iabdalkader
Posts: 1214
Joined: Sun May 24, 2015 3:53 pm

Re: Streaming to UART

Postby iabdalkader » Tue Apr 19, 2016 4:51 am

Greg38 wrote:Hello,

This is a nice project. Is it possible to stream to a serial UART? The idea is to transmit a low quality MJPEG flow through a bluetooth module (classic 2.1 with SPP)
the MJPEG quality would be low: 320x240 at 10fps in black and white.

Best regards,

Grégory
Yes that's possible!
Greg38
Posts: 2
Joined: Tue Apr 19, 2016 2:50 am

Re: Streaming to UART

Postby Greg38 » Tue Apr 19, 2016 11:19 am

Perfect. Thank you for your answer.

Did you already do some tests with a Bluetooth Module?
Can you redirect me to the documentation which explains how to do it ?
Do you know the best video quality we can obtain?

Best regards,

Grégory
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: Streaming to UART

Postby kwagyeman » Tue Apr 19, 2016 2:57 pm

Hi, when haven't tested this with the bluetooth module. However, it supports a baud rate of 115200 BPS normally. But, you can command the module to run at different baud rates. We're not sure what the maximum value is. JPG images at 320x240 are going to take up about 15KB a piece... so, expect about 1 FPS with bluetooth speeds at 115200 BPS.

If you want faster streaming us WiFi, lower the resolution, or use a faster baud rate.

As for documentation on how to do this... we don't have that right now. Do you have one of the firesale boards? If so, then basically all you need to do is call the compress() function on an image to get a jpg version of the image. Once you have that you can pass that image to a serial object to be sent.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests