I have a ethenet access control device that is said to be able to communicate via TCP.
How can i send a pachet by entering the HEX data, since this is what i have from their manual (a standard format for the communication packets sent and received after each command)
Can you please show some example code or links to get started....
standard return packet from the terminal Size (bytes) BS (0x08) : ASCII Character 1 STX (0x02) : ASCII Character 1 LENGTH : length from BS to ETX 4 TID : system unique I.D. 1 RESULT 1 DATA : returned parameter N CHECKSUM : byte sum from BS to DATA 1 ETX (0x03) : ASCII Character 1
Standard command packet to the terminal Size (bytes) ACK (0x06) : ASCII Character 1 STX (0x02) : ASCII Character 1 LENGTH : length from ACK to ETX 4 TID : system unique I.D. (ex: 1) 1 COMMAND 1 Access Key(Optional) 6 DATA : command parameter N CHECKSUM : byte sum from ACK to DATA 1 ETX (0x03) : ASCII Character 1 This packet starts from ACK. In this packet, multiple byte value must be started from MSB. For example, if length was 10, LENGTH is 0x00 0x00 0x00 0x0a.