0

LG TVs and Serial Commands



I'm looking for some guidance on serial commands for LG TVs. We have two LG 55LE5500's, connected to 2 HD1010w's. The LGs have an RS232 port, which reads "service only", but based on the owner's manual it seems like it should still be controllable via the BrightSign box. I have tried sending commands to the TVs to no avail; it's probably something that I'm doing wrong, but any help is much appreciated. Here's a link to the TV documentation: http://dl.dropbox.com/u/108137/SAC34134203_8_eng.pdf (page 186 contains external control procedures) Here's the command I'm using for Power On: [k][a][0x20][0][0x20][01][0x0D] Any thoughts? Thanks, Shawn

4 comments

  • 0
    Avatar
    RokuLyndon


    Are you actually including all of those extra characters? All of the lgs I've seen so far take ascii commands.  It looks like your trying to use hex commands. Also, when it comes to hex, 0x0d, for example tells you that it's hex. It doesn't mean you need to use the representation in the manual.

    On the brightsign for example, if you were sending a hex command using a script, you could send &H0D. But, since 0D is simply the carriage return, if you were using a custom script you would just use the sendline command from your serial object and it would automatically add the carriage return.

    If you're trying to send hex from brightauthor, you would send the decimal equivalent. But, again in this case, the carriage return is automatically added if you use serialsend(cr).

    With all of that said, LGs normally take simple ascii commands. So, what you send should look like this:

    ka 0 1

    The 0x20 is a space.

    For example, to change to hdmi input 1 on most LGs, you would send this using serialsend(cr):

    xb 0 90

    Please make sure that the serial port settings under file, presentation properties match what the TV wants. I believe it's normally 9600 bps.
  • 0
    Avatar
    sayeo87


    I wrote a python library and script which makes it super easy to control your LG TV over its serial port, its cross-platform, supports most models and most common commands - all you need to do is provide your model number and serial port!

    If you think that might help, you can check it out at https://github.com/suan/libLGTV_serial
  • 0
    Avatar
    Alfred Halbeisen

    Hello. I need help to control a Panasonic Display TH-47LF5 (see attached file of protocoll) to control Power ON and OFF the Display (BrightAuthor 3.7.0.37 + XD1030).

    I tried it with a presentation and a "BrightControl" + "Power ON" or "BrightCOntrol" and "ASCII" (see attached). But I think I do not know how to configure everthing. Baudrate = 9600 and sould be correct, but it dosn't work properly. Do you have some Details like: Wiring Diagramm of RS-232 cable and an example-Presentation for a Panasonic Display that you could send me? 

    It would help most if you have a setp-by-step description for me. Hlfp on tutoreials and in the Manual did not help me me yet.

    Best Regards

    Alfred H. (mailto:a.halbeisen@punkt3.li)

  • 0
    Avatar
    Lyndon

    The bright control uses cec over hdmi. There's inconsistent support for cec, but the pdf you sent is for serial. You need a straight serial cable to go from the brightsign to the display. Sending the serial commands is a little involved, but panasonics seem to be consistent. The PON or POF needs to be sent as an ascii string. But, you also have to send stx and etx non printable characters before and after the command. 

    You'll use three advanced commands. First, serial sendbyte to send stx (02h), then sendstring with no eol or carriage return to send ADZZ:PON or ADZZ:POF, and finally sendbyte again for etx(03).

    sendbyte: 02 
    sendstring(no el): ADZZ;PON 
    sendbyte:03

     

    You may not need the ADZZ: but I've seen some displays that need it. See the attached image examples. They show what this would look like in the advanced commands tab. There's a serial control tutorial video that talks about monitors in general.

    http://www.brightsign.biz/training/tutorials/#serialcontrols

     

Please sign in to leave a comment.