0

Duplex communication between Roku and Arduino



Hi to all, It's possible to connect roku to Arduino with the rs232 port and sending messages from roku? I succeffully sent message from Arduino to roku with: NewSoftSerial roku(19,18,true); ...into the loop... roku.print("A"); roku.print('\r'); But i need that roku send a Char when it plays a Video. I tried: while(roku.available()){ Serial.print"Roku sent:"); Serial.print((char)roku.read()); } But it doesn't works never. I also tried to connect the roku rs232 port to my pc and i successfully receive data in my putty terminal. Can you help me? Vanni ps: please is very urgent!

6 comments

  • 0
    Avatar
    RokuLyndon


    Are you writing a script? You can also do this easily with brightauthor. You could send a byte each time a video played using the advanced command, if you setup an interactive playlist.

    If you wrote a script, can you post the script? You can use the serial object to do a sendline, sendblock, or just a sendyte. The sendblock sends without a carriage return.

    But, I need to see your script to see where it would need to be inserted.
  • 0
    Avatar
    vannyn


    Yes, i wrote a script with BrightAuthor and i tried to send byte, line and block. I tried connecting roku with my pc and i receive data correctly, but my arduino doesn't receive nothing.
  • 0
    Avatar
    RokuLyndon


    If your pc receives the data fine, then the problem has to be settins.

    What are the requirements for sending serial to the arduino?

    Which version of brightauthor are you using? If you're using build 23, it has debug mode turned on and sends extra data over serial and that could cause problems. Please upgrade to 2.0.0.42.
  • 0
    Avatar
    vannyn


    I've the last version of bright author.
    I don't know requirements of the arduino serial port, but i use it with a lot of devices (gyros, accels, rfids) adn it works well...
    Have you never tried your serial port with Arduino?

    Thank you for support.

    ps: where can i send you the project?
  • 0
    Avatar
    RokuLyndon


    No, I'm not familiar with it. The brightsign serial port is configurable. So, I would recommend getting the config settings for the port, so we can set the brightsign to match. It's possible the brightsign speed is too high at 115200, or that the device requires that information sent be configured a certain way.

    If you can communicate with it using your pc, what are the settings you using in the terminal program on your pc?
  • 0
    Avatar
    vannyn


    Arduino works well at 115200 bps, i connect it to pc with putty, default configuration. I did the same with roku.
    The problem happens when i connect roku directly to arduino...
    But now is too late, i workarounded the problem because i was late on my deadline...
    If you'll try testing it, please update me.
    Or if i can help you to do some test... i'm available.

    bye and thank you the same.
Please sign in to leave a comment.