With OptiSigns, you can schedule TV Power On/Off using the advanced schedule feature. There are 2 ways you can do it with OptiSigns depending on what devices you are using.
- If you are using a consumer grade TV and OptiSigns Pre-Configured Android Stick, the TV Power On/Off is achieved through HDMI-CEC. You can refer to this article for more details.
- If you are using commercial grade display, RS232 will be the option for you.
In this article, we will walk through how to set up the external communication for RS-232 and use it to control your commercial display power on/off. It consists of 3 steps at high level.
- Set up RS-232 connection for serial communication.
- Configure the RS-232 command for your display and set up the template
- Create the Power On/Off Schedule
The same procedures can be used for to send other RS 232 compliant command as well.
Supported devices/platforms: Windows, Linux, Raspberry Pi and OptiSigns Android Stick device.
1. Create RS-232 connection
Go to admin console and expand Advanced, click on the link for external communication. You can also use the link below.
Click "Add New" button, to create a new RS-232 connection.
In the connection creation window, you can give a name to the connection and define the serial port to use, Baud Rate, Data bits, Stop bits and Parity. These info are determined by the commercial display used, you should be able to get it from your TV user manual. Flow control is normally not needed in this case, you can just leave it as blank.
Click "Save", once the configuration is complete.
To know which serial port is used, you will need to check it on your device. Using windows as an example, you can find it in the device manager, it will list out the COM port available. On Linux/Raspberry Pi, the serial port is normally "/dev/ttyS0" or "/dev/ttyUSB0" if a usb serial adapter is used. On OptiSigns pre-configured Android Stick, you can use "USB0" as the serial port.
2. Configure RS-232 command and set up the template
Go to the "Commands" tab, click the "Add New" button.
Set the RS-232 command of your commercial display in the pop-up window. You can choose "asc ii" or "hex" encoding depending on your TV, and end of line value can be set here accordingly as well.
You will need to create a command for Power On, a command for Power Off.
Once commands are created, go to the "Templates" tab, this is where you map the commands to the Power On/Off action. You only need to create a template if the commands are different. For example, if you are only using Samsung commercial TV, which all have the same commands for power on/off, then you only need to create one template for it, it can be used on all the Samsung TVs you had deployed.
Map the command to the actions. The actions will be used in the advanced schedule. Save it after the mapping is complete, then the template is ready for use.
3. Set up Power On/Off schedule
Once complete the RS-232 configuration, you will need to set up the Power On/Off schedule with the advanced schedule feature.
Go to the Edit Screens. Then expand the Advanced section.
Go to the bottom of the page, you will see the advanced schedule section, where you can create schedule to power on/off the screen.
Then you can create a schedule to manage the TV power on/off . The use of the scheduling is the same as the content scheduling. If you have questions on how to use it, you can refer to this article.
When you create schedule event, select a type that meet your requirement. In this case, it is Power Off TV. What it does is to power off the TV at the beginning of the time window, then power it back on at the end of the time window. Then save it.
Now you have set the schedule set up. Once the schedule is created, it will be available to use, you can apply it on other screens.
Once the Power On/Off schedule is applied on the screen. There will be options available on the page. To use the RS-232 for the Power On/Off, select "External COM" checkbox, and then choose the COM connection and Command Template that were created in above steps.
Then click Save. Now your screen will be powered on/off using RS-232.
That's all! Now you have learned how to schedule TV power on/off using RS-232.