0

HD1010 Serial: Works only the first line!



Hi to all, I connected Arduino with the Brightsign's serial port and then tried to send a text line to activate videos. The logic for receiving serialport event was configured with BrightAuthor. The problem is: When I send the first Line ("1" in my case) all works fine. But when i send from the second line ("2" in my case) onward, brightsign ignores them. Every time I restart the brightsign always happens the same problem. Please is urgent <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Thank you Vanni

4 comments

  • 0
    Avatar
    RokuLyndon


    If you send 2 first, does that work? Is it that it works with the first command you send, no matter what that first command is, or is it only command 1 that works. Can email the brightauthor project file to <!-- e --><a href="mailto:support@brightsign.biz">support@brightsign.biz</a><!-- e -->?

    The strings you are sending are always terminated with a carriage return, correct?
  • 0
    Avatar
    vannyn



    It works with the first command I send, no matter what that first command is.
    I tried printing in the serial port with and without CR

    roku.print("X"); //roku is NewSoftSerial Object (viewtopic.php?p=157005)

    or

    roku.println("X");

    I'm sending you the BrightAuthor file... I've to attach the videos in my mail?

    Thank you for the fast reply!

    Vanni

  • 0
    Avatar
    RokuLyndon


    You didn't send me the actual project file, but the published files. If you go to file, save as, you can save a copy of the project file, the .bpf file, that I can open and edit in BrightAuhtor.
  • 0
    Avatar
    vannyn


    PROBLEM SOLVED!
    Yesterday I was sending from Arduino println("X"); and I expected that it was sending a Carriage Return, but i saw in the Arduino Api documentation that println send \n\r (not only CR).
    So I tried to print("X") and then print("\r"); and it works good!

    Thank you for your support!

    Vanni
Please sign in to leave a comment.