0

RS-232 Serial Problem



Hello: We have a project using a HD410 and a pushbutton interface to send serial strings when a button is pressed. We have done this a number of times in the past, but for some reason can't get it to work now, either using BA or a CSV file that has worked in the past. When a button is pressed, say button 1, the controller sends <VID1>, button 2 sends <VID2> etc. Connecting the HD410 directly to a PC and sending commands directly from Realterm also fails to work. Firmware is 3.5.77 and BA is 2.2.0.39. We can communicate both directions from the PC to the HD410, so hardware is working and cable connection is good. In BA <Serial Input> is set to <VID1> to play <VIDEO1.mpg>. Baud rate is 115.2K over port 0. In the CSV file, <serial:VID1> plays file <video1.mpg> etc. I am stumpted as to why I'm unable to implement serial control, having done so in the past. Any insight would be very much appreciated as our client is, shall we say, most anxious to have a working system. Here's a portion of the CSV file that's worked in the past. SERIALPORTSPEED 115200 SERIALPORTMODE 8N1 EVENTS serial:VID1 serial:VID2 STATE start.bmp video1.mpg video2.mpg STATE video1.mpg video1.mpg video2.mpg STATE video2.mpg video1.mpg video2.mpg STATE video3.mpg video1.mpg video2.mpg STATE video4.mpg video1.mpg video2.mpg STATE video5.mpg video1.mpg video2.mpg Thanks, Michael

3 comments

  • 0
    Avatar
    Michael / ampex351


    Turns out the problem was we were sending <cr><lf> rather than just <cr>.  Earlier firmware versions tolerated this;  current version doesn't.  Would it be possible next version to clear the buffer so that the next serial command wouldn't begin with a left over <lf>?  This would help ensure backward compatibility.

    Michael
  • 0
    Avatar
    RokuLyndon


    Any reason you're not using brightauthor for this?

    With the latest firmware, and starting with brightauthor 2.3, coming out in a few days, you'll be able to specify that you want the end marker to be both CR and LF if you want. I'll log a bug to make sure that LF isn't stuck in the buffer.
  • 0
    Avatar
    Michael / ampex351


    Hello Lyndon:

    Thanks for your reply.  Yes, we are using BrightAuthor.  It was just for testing purposes that I went back to a known working CSV version.  Looking forward to latest BA...it's a marvelous program that has made life much easier.  Many thanks,  Michael
Please sign in to leave a comment.