Page 1 of 1
RS232 with Widget Designer [solved]
Posted:
Mon Sep 06, 2010 11:26 am
by edenoyer
Hello,
I trying to command a videoprojector using Widget Designer and RS232 commands. I need to send C00[carriage Return] to switch off the VP.
First of all, I have used HyperTerminal and everything worked fine. So my COM Port and connexions are OK.
My question is : How to send a "carriage return" with PB ?
When I hit the "return" key on my keyboard, PB exits the serial command line.
When I try to send the hexa value for carriage return (using COMSendHex,'ID','0x0D'), Widget Designer shows "Commande received COMSendHex,'ID','0x0D'" but nothing happends on the videoprojector.
Any idea ?
Thanks in advance,
Emmanuel DENOYER
Re: RS232 with Widget Designer
Posted:
Mon Sep 06, 2010 12:48 pm
by Julia Foest
Hi Emmanuel,
to send a Carriage Return via PB you may send [h0D] or [CR].
So you can use this command: "TCPSend,'ID','your command'[CR]" or "TCPSend,'ID','your command'[h0D]".
Or if you want to send a full HEX-command:
"TCPSendHex,'ID','your command' 0D".
Please also have a look to Pandoras Box Help File that you can find when pressing F1 in Widget Designer.
There go to the search option and look for "SYNTAX TCP- / UDP- / SERIAL MESSAGES"
Example:
Use [d13] to enter one or multiple decimal values.
Use [h0D] to enter one or multiple hexadecimal values.
Use [CR] to enter ASCII symbols.
Mixed values are also possible:
[d13 h0D CR]Example String[CR].
Best regards,
Julia
Re: RS232 with Widget Designer
Posted:
Mon Sep 06, 2010 8:32 pm
by edenoyer
Thanks Julia,
I'll try that tomorrow.
Re: RS232 with Widget Designer
Posted:
Tue Sep 07, 2010 9:08 am
by edenoyer
Hello Julia,
I have tryed the command
COMSend,'1','C01'[CR]''
On Widget Designer, I can see
TCP Packet received:
COMSend,'1','C01'[CR]''
But nothing happends on my videoprojector.
My connection manager settings :
Serial Com Connections:
ID: 1, Name: COM, Port: COM3, (Baud: 19200, Parity: None, Data bits:8, Flow: None, as specifyed in the videoprojector handbook), Status: Started
What could be wrong ?
Best regards,
Emmanuel DENOYER
Re: RS232 with Widget Designer
Posted:
Tue Sep 07, 2010 12:13 pm
by Julia Foest
Hi,
please write the command like this (without the little ' and ")
COMSend,1,C01[CR]
or
COMSend,1,C01 [CR]
You send this command from a CustomScript Button?
You set up the connection to the projector in WD Tools, right?
But where did you see the message
TCP Packet received:
COMSend,'1','C01'[CR]''??
Best regards,
Julia
Re: RS232 with Widget Designer
Posted:
Tue Sep 07, 2010 2:35 pm
by edenoyer
The commands COMSend,3,C01[CR] and COMSend,3,C01 [CR] don't work
I send the RS Commands from the timeline in the player.
I see the messages in WD > Tools > Remoting, in the "message log"
Yes, I set up the connection to the projector in WD Tools > Connection manager
What should I do ?
Re: RS232 with Widget Designer [solved]
Posted:
Tue Sep 07, 2010 2:44 pm
by edenoyer
Wow! It works!
The right synthax is
(COMStart,1) to start the connection
(COMSend,1,C01[CR])
(COMStop,1) to stop the connection
The brackets have to be here.
1 is the connection ID (made with Widget Designer > Tools > Connection manager)
C01 is the command to send to the videoprojector (please look at the videoprojector documentation)
[CR] is the requested ASCII code to validate the command.
Thanks for your help.
Re: RS232 with Widget Designer [solved]
Posted:
Tue Sep 07, 2010 4:25 pm
by Julia Foest
Hey Emmanuel,
that's fine!
I´m sorry, didn't know that you are sending this command to WDs Remoting Tool (for this all commands have to be inside brackets).
Best regards,
Julia