Jump to content

Recommended Posts

Posted (edited)

Hello.

I'm trying to send in a scripting language AutoIT using the TCP Send to type Hex Socket data. I do this in the following way:

_AutoItObject_StartUp()
Global $oTCP = _Class_TCPClient($ip,$port) 

Previously, $ip and $port is entered manually. TCPStartup() is included in _Class_TCPClient. Class_TCPClient - constructor.

$oTCP.Connect()

Local $string = _HexToString(0xBB01C8007F010140)
Local $ret = $oTCP.Send($string)

But it does not work.

When you preview frames using Wireshark data field looks quite different.

The target script which is communication protocol for device from company where I'm working.

Edited by tp1
Posted

In this case Wireshark notes data:

02 42 39 43 37 33 36 42 39 45 33 32 44 33 31 32 37 46 34 32 30 30 39 42 03,

not:

BB01C8007F010140

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...