Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bwhiteford
Reel Rookie

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
Reel Rookie

Re: Sending Hex data to RS232 Port

Thanks RokuKC, I just posted in that forum.

0 Kudos