Page 1 of 1

Send a command into hexadecimal on TCP

PostPosted: Thu Oct 03, 2013 8:02 pm
by gestin
Hello,

I wish to control a monitor samsung syncmaster 460ux connected to the network

According to samsung it is controllable in TCP by commands hexadecimal type : 0xAA 0x12 0x00 0x01 0x00 0x13 ( header / Command / Moniteur ID / Data Lenght / Data / Check sum )

I create a connection TCP with the monitor in connection manager. The widget seems well to be connected to the monitor

I create a custum script and I open connection TCP ( TCPStart,1)

But after several test I do not understand how to write the command hexadecimal so that it is transmitted into hexadecimal. I tested with the commands TCPSend, TCPSendHex. I even tested convert the Hexadecimal code of it into wide ASCII but for the moment nothing goes

Via wireshark utility I have compare frame TCP transmitted by the widget and the application of samsung and it do not have anything has to see, but that of samsung functions and corresponds to what is described in the protocol

Would have an idea how to be done ?

thank you for your answers

François Gestin

Re: Send a command into hexadecimal on TCP

PostPosted: Fri Oct 04, 2013 1:40 pm
by Dennis Kuypers
Hi,

Please have a look at this: http://manual.coolux.de/#syntax_tcp-__u ... ssages.htm

The message 0xAA 0x12 0x00 0x01 0x00 0x13 can be sent with

Code: Select all
TCPSend,1,[hAA h12 h00 h01 h00 h13]


Best regards
Dennis

Re: Send a command into hexadecimal on TCP

PostPosted: Fri Oct 04, 2013 2:37 pm
by gestin
hi,

thank you for this prompt response.

That functions perfectly now.

I had not understood that functioned like that by reading the handbook.

Still thank you and the subject east solved.

François Gestin