Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bwhiteford
Level 7

Sending Hex data to RS232 Port

Greetings community!

I am trying to send hex data to a RS232 port, but have not quite figured out how to do it. Sending ASCII works fine, but haven't figured out the trick for hex. The hex string I'm trying to send is 02 50 4F 46 03.

This is my latest attempt, but not working:

serial = CreateObject("roSerialPort", 0, 9600)
sermsg = CreateObject("roByteArray")
sermsg.FromHexString("02504F4603")
serial.SendLine(sermsg)

Thank you so much for your help!

0 Kudos
2 REPLIES 2\
RokuKC
Roku Employee
Roku Employee

Re: Sending Hex data to RS232 Port

It sounds like you are asking a question about the BrightSign platform rather than Roku OS.

Maybe try https://brightsign.zendesk.com/hc/en-us/community/topics/200594547-BrightSign-General-Community ?

0 Kudos
bwhiteford
Level 7

Re: Sending Hex data to RS232 Port

Thanks RokuKC, I just posted in that forum.

0 Kudos