How to controll rs232 device via bluetooth using app inventor

138 views
Skip to first unread message

Krzysztof Dobrzański

unread,
Oct 29, 2019, 8:40:48 AM10/29/19
to MIT App Inventor Forum
Hello,
I am trying to create an app that plays videos using VP250HDi video/audio player, controlled by app inventor aplication via bluetooth. I have managed to establish connection between my android device and bluetooth device, but next step is impossible for me. I know I have to send a command to video player but how to do it? Providing my blocks and manual for the video player. 
rs232 blocks.png
VP250HDi_manual_ENG.pdf

ABG

unread,
Oct 29, 2019, 12:02:56 PM10/29/19
to MIT App Inventor Forum
That's a wonderful device, suitable for a museum or Halloween exhibit!

See attached for how to send your bytes all together.

ABG



SendBytes.png
rs232 blocks.png
sendbytes.aia

ABG

unread,
Oct 29, 2019, 12:05:51 PM10/29/19
to mitappinv...@googlegroups.com
Oops, I made a mistake, used the wrong block.
I should have used the SendUnsignedBytes block.

(Correction - there is no such block, only Received blocks make that distinction.) - Abg

Krzysztof Dobrzański

unread,
Oct 30, 2019, 3:22:42 AM10/30/19
to MIT App Inventor Forum
Thank You for reponse ABG. Unfortunately it still doesn't work. 
Wish You a good day.

ABG

unread,
Oct 30, 2019, 11:28:47 AM10/30/19
to MIT App Inventor Forum
Maybe try a free BlueTooth terminal app that can send hex, like
as proof of concept, then go back and try to do it in AI2?

ABG


Reply all
Reply to author
Forward
0 new messages