Display incoming RS232 on touch panel
bia@jdm.dk
Posts: 20
Hi
What are the easiest way to display incoming RS232 strings, from a specific port - on a textbox on a touch panel ?
I need to make sure that the correct RS232 codes are transmitted from my external equipment....
What are the easiest way to display incoming RS232 strings, from a specific port - on a textbox on a touch panel ?
I need to make sure that the correct RS232 codes are transmitted from my external equipment....
0
Comments
Parse out the strings coming in (or out) of the device, and send a ^TXT command to the panel.
example:
send_command dvTP,"'^TXT-1,0,',s_data";
Where s_data holds the information you want to see. Just hope there aren't any non-readable characters and it's all ascii. Otherwise, you probably won't get what you want. The best bet though is to turn on notifications and watch incoming and outgoing strings.
No need for programming a touchpanel...just read all messages in a list in netlinx studio.
This is a very powerfull tool to debug serial protocol issues.
You can also use the "control a device" option to send a rs232 message on any port without changing the amx program.
This would be a neat feature for an installer to use, if they weren't familiar enough with NS to use device notifications. Consider this - a surround receiver stops responding to control. If an installer had a super-secret installer page to go to, he could bring it up, see the text window for that serial port, try playing with the receiver, and see if strings start to come back. once strings show up again (likely after a reboot - it's happened alot to me. Yay for Denon.), it's all good! However, it sounds like a lot of work for very little gain, now that I'm typing this out! Man, I wasted a lot of typing just to talk myself out of doing something - great....Back to thinking of other bad ideas!
The command:
SEND_COMMAND dvTP2,"'^BAT-91,0, ',' ',TP_WORD,' ',TWORD,$0D,$0A" // Adds to text on a page
Where 91 is the button address number and the zero is just needed.
These features are also available within the Netlinx master's web interface. If an installer is onsite and doesn't have NetLinx Studio on his laptop he's still able to troubleshoot.