Send a command into hexadecimal on TCP

Moderator: Moderator Group

Send a command into hexadecimal on TCP

Postby gestin » Thu Oct 03, 2013 8:02 pm

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
gestin
 
Posts: 11
Joined: Thu Dec 24, 2009 12:51 am

Re: Send a command into hexadecimal on TCP

Postby Dennis Kuypers » Fri Oct 04, 2013 1:40 pm

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
Dennis Kuypers
Product Developer, Software

Online Manual
User avatar
Dennis Kuypers
coolux Germany
 
Posts: 771
Joined: Thu Jul 05, 2012 12:18 pm

Re: Send a command into hexadecimal on TCP

Postby gestin » Fri Oct 04, 2013 2:37 pm

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
gestin
 
Posts: 11
Joined: Thu Dec 24, 2009 12:51 am


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 1 guest