Link to home
Start Free TrialLog in
Avatar of nkewney
nkewneyFlag for United Kingdom of Great Britain and Northern Ireland

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  20seconds viewed 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
Avatar of nkewney
nkewney
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Just to clarify, I'm trying to read a 6 digit tag #
ASKER CERTIFIED SOLUTION
Avatar of vb_jonas
vb_jonas
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial