I have already read the spec , the device is a High Power Amplificator and i'm sending commands to another equipment that controls the HPA called controller,acording to the spec i have to send CR and LF so the controller can understand what i want ( in this case i want the output power level ) to be honest the specs don't have anything useful about the communication.
The lenght of the pakage that i receive is 131 bytes ( it sends 2 pakages one with 63 bytes and another with 68 bytes i'm using wireshark to trace the pakages)
i used Eliya solution and I still have a big delay
Here is the answer of my program
Changed 1000 to 131 and 2000 but still no fast response♠A?42.3< 30D 0.111.3♥) 210 Seconds Delay
while ( sysread $socket, $_, 131 ) { # 2000 , 1000 print $_; }
In reply to Re^4: IO::Socket Listen
by Secalles
in thread IO::Socket Listen
by Secalles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |