nkewney
asked on
Reading data from the serial port in VB.net
Dear Experts,
I'm playing around with serial communication and am trying to find the solution to a challenge I'm having...
I found the following specification for reading RFID tags in range from an RFID reader but am unsure how to read this data from the serial port into my test application.
The 7 elements consist of header, Command, bits, length sign second Mili-second, CRC...
header :1B 0x02
command bits: 1B 0x01
length: 1B 0x08
sign: 2B d15-d12 reserved, d11-d0 is usable
when all zeros, do scan
second 1B
milisecond 1B precision 0.1ms
CRC 1B result of exclusive or of previous 7Bytes
*legal scan cycle is 0.1 20secondsviewed as 20 seconds when set above 20s
Example 02 01 08 00 03 00 08
Return data format
header ID1 header ID2 header End bits
header 1B 0x02
ID1 6B e.g. receiving ABC111 6 CHAR
Will be translated into ID 0x ABC111
header 1B 0x02
end bits 6B 0x30 0x30 0x30 0x30 0x30 0x30, meaning finishing ID IS
If anybody cuold point me in the right direction, that would be great.
Thanks
Nick
I'm playing around with serial communication and am trying to find the solution to a challenge I'm having...
I found the following specification for reading RFID tags in range from an RFID reader but am unsure how to read this data from the serial port into my test application.
The 7 elements consist of header, Command, bits, length sign second Mili-second, CRC...
header :1B 0x02
command bits: 1B 0x01
length: 1B 0x08
sign: 2B d15-d12 reserved, d11-d0 is usable
when all zeros, do scan
second 1B
milisecond 1B precision 0.1ms
CRC 1B result of exclusive or of previous 7Bytes
*legal scan cycle is 0.1 20secondsviewed as 20 seconds when set above 20s
Example 02 01 08 00 03 00 08
Return data format
header ID1 header ID2 header End bits
header 1B 0x02
ID1 6B e.g. receiving ABC111 6 CHAR
Will be translated into ID 0x ABC111
header 1B 0x02
end bits 6B 0x30 0x30 0x30 0x30 0x30 0x30, meaning finishing ID IS
If anybody cuold point me in the right direction, that would be great.
Thanks
Nick
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER