tp1 Posted October 9, 2015 Posted October 9, 2015 (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 October 9, 2015 by tp1
Developers Jos Posted October 9, 2015 Developers Posted October 9, 2015 Shouldn't you use this format?:Local $string = _HexToString("BB01C8007F010140")Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
tp1 Posted October 9, 2015 Author Posted October 9, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now