Digital Media Suite API Forums

« Back to Digital Signs API Forum

How to send RS-232 commands programmatically from a DMP-4400?

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Dear Team,
 
We are trying to send simple RS-232 commands to a Cisco LCD connected via serial cable to a DMP-4400. We have written a simple JavaScript class that sets the MIB keys on the DMP using the XMLHttpRequest object. Our approach is to set the values of the following MIB properties on the DMP to send the RS232 commands.
 
rs232.tx_hex T_STRING
rs232.tx_str T_STRING
 
We build a URL string as follows and use the XMLHttpRequest object to send the commands to the DMP. The XMLHttpRequest also includes the Basic Authorization header with the DMP's Web Access credentials encoded in Base-64 (username:password). We have tested that the XMLHttpRequest is successfull to send other DMP commands such as to restart the DMP or browse to a website.
 
http://[DMP IP]:7777/set_param?rs232.tx_hex=aa11fe010010
 
However, we are unsuccessful when trying to send RS-232 commands. There is no response on the screen. We have even tried to hookup the serial cable to a PC and monitor the serial output on HyperTerminal when we send the commands. This also returned no results.
 
Is there any additional settings that we need to do on the DMP to enable RS-232 communication on the DMP?
 
Your team's response is greatly appreciated.

Did you enable the RS-232 port first?  This only needs to be done once.
 
send this command as a set -  init.startService_dmttv=no&init.startService_rs232=yes&rs232.device=/dev/ttyS1&mib.save=1&mng.reboot=1

Did you enable the RS-232 port first?  This only needs to be done once.
 
send this command as a set -  init.startService_dmttv=no&init.startService_rs232=yes&rs232.device=/dev/ttyS1&mib.save=1&mng.reboot=1


 
Hi Gregory,
 
We've enabled the RS-232 port as you've mentioned. The only difference is that on our DMP the RS232 device is on ttyS0 and not ttyS1 as you've mentioned.
 
rs232.device T_STRING /dev/ttyS0
 
We've tried changing it but it doest change. Does this affect it in any way? The RS-232 commands still does not work.
 
I've attached a copy of our DMP MIB settings.
Attachments:

The difference is that when you send the message through the DMP admin interface, you just send the plain hex string.
If you prefix the hex string with "rs232.tx_hex=", it does not work.
If you leave out the "rs232.tx_hex=" part, the command works successfully.
The only time you need the "rs232.tx_hex=" part is when you are creating DMM Advanced Tasks.