Driver Details

LG Television

By: RTI
Updated: March 30, 2018
Version: 1.1

Description:

This driver is for LG Televisions connected to the XP processor via RS-232.

Version History:

Version 1.01: handles a problem where volume commands would pile up in the command queue.

Version 1.02: fixes a problem where the power on command might not get sent.

Version 1.1: adds commands to access newer 'smart' function and apps and adds tags for APEX auto-programming

LG Television Driver
XP-8 Version

This driver provides serial control of LG televisions and monitors. The television requires a crossover cable if used with the RJS-232 adapter. The protocol covers a wide range of models, it is possible that this driver contains functions that will not operate on your specific model

Release History
1.0: Initial Release
1.01 smooths out how the driver uses the queusu to handle repeating commands and keeps only the most recent of each type of command in the power on cache.
1.02 fixes a problem where the power on command might not get sent
1.03 adds (TV) Guide command

1.1: Adds new commands to operate current model TV's. These are all remote emulation commands so they work exactly like the similarly named button on the remote. In addition, a 'Raw' commands has been added to allow additional remote emulation commands to be used (see below). The driver has also been tagged for APEX functionality.

Status Tracking
The television do not automatically notify the driver when changes are made so changes made outside the driver may not show up. The driver DOES keep track of the power state and the input selected, but even those changes will be delayed if the commands don't come from the driver.

Power On state and command caching
The TV's become completely unresponsive when turned on. Several seconds later the set actually comes 'On'. This is familiar behavior for TV's in general. The driver deals with this issue in two ways: The Power Tally is not turned on and the Power On Driver Event does not get sent until the unit is fully on. When the unit is on, commands can be sent.

Also, during this startup period the driver will cache any input or volume set commands until the unit comes online. This means that (as the sample file shows) a macro can be created that turns the TV on, changes the input and sets a power on volume without using delays and they will all execute.

The 'Raw' Command
LG publishes their serial control protocol in most of their manuals. The remote emulation keys usually have their own chart in the manual, you can enter the Code from this section to emulate any remote button not included in the driver.