Forums : Sony VPL-HW40ES Serial Control Example
This page last changed on May 03, 2015 by frand.
I struggled a few days in setting this up, so I thought to spare some of the pain from anyone else looking to do the same.
The new solution is technically simpler.
Please note the caveat that while the solution works, it's the result of a few days of trial and error, so people who actually know what they're doing are welcome to chip in!
Add the following line to your /etc/init.d/rc.local
This configures your USB serial port at boot for the projector's protocol: 38400 bps, even parity, one stop bit etc.
Here is at least one document for the control codes, check with your retailer if they can provide an excel sheet with these in a more legible form. https://docs.sony.com/release/VPLVW60_protocol.pdf
For this example, there'll be just two control codes, Power On and Power Off.
Create a file by the name sony_on.sh and type in the following:
Remember to set the shell script to be executable by: chmod +x ./sony_on.sh
Note, the Power On -command is special in that the projector requires the command to be sent twice.
I've added the OK echo for debugging purposes.
At this point you can test your serial connection by running the scripts from the command line. If your projector turns of when you execute sony_on.sh then everything's good so far.
The only thing to concern about is just the location of your shell scripts. For this example they're located in the pi default user home folder.
Followed by a second command for Sony Power Off.
And that should be it.
|Document generated by Confluence on Jun 05, 2016 09:34|