

This server script would be the only script that interacts with the Aquos via serial port. Instead, I decided the best way to handle it would be to write a simple server script.

However, the problem was that I intended to be interfacing with the TV from multiple different scripts and programs, and was concerned about cases where 2 scripts might try writing to the serial port at the same time, which would probably either fail or do something like intermix the 2 commands being written resulting in the TV getting corrupt data. It would open a connection, send the command, and give back the response. From there, it was just a simple matter of turning it into a script.Īt first, I just wrote a simple standalone program to handle what I wanted. In no time at all, I quickly issued my first command to the TV and had my response back. I installed a Perl module called Device::SerialPort which made it a piece of cake to setup a serial port connection. This was seemed like it wouldn't be too much trouble to get it all working. A quick look through the user manual turned up something I found even more shocking than the existance of the serial port.the communication protocol for the TV's serial port was completely documented in the user manual, including things like port settings, command format, a list of commands, and their accepted parameters. I was wondering if I could setup my mythtv frontend to communicate with TV. When I got the TV, I was curious to find that it had a RS-232 compliant serial port onboard. Last year, I replaced my ancient CRT television with an HDTV LCD.a Sharp Aquos.
