Hello to All,
I'm confused about ASCII or hex calculations, after trying to get some info's from David Lincoln book "Picaxe" second edition, and from reading post at this forum.
Does anyone had any experiences about Tag number calculation ?
I'm currently using the windows calculator to convert Hex to get the engraved tag number, but looking for help or sample code to add calculation to my program.
From the RFID module, I'm able to send the data to the terminal window as Hex or Dec format
Engraved Tag number = 0002050430
Hex = 0C001F497E$
------ STX ------------ASCII Data----------------Checksum-- ETX -----
Dec --- (2) ------- 48 67 48 48 49 70 52 57 55 69------36---- (3)
Thank's for any help.
RFID 125kHz ID card reader
I'm confused about ASCII or hex calculations, after trying to get some info's from David Lincoln book "Picaxe" second edition, and from reading post at this forum.
Does anyone had any experiences about Tag number calculation ?
I'm currently using the windows calculator to convert Hex to get the engraved tag number, but looking for help or sample code to add calculation to my program.
From the RFID module, I'm able to send the data to the terminal window as Hex or Dec format
Engraved Tag number = 0002050430
Hex = 0C001F497E$
------ STX ------------ASCII Data----------------Checksum-- ETX -----
Dec --- (2) ------- 48 67 48 48 49 70 52 57 55 69------36---- (3)
Code:
#picaxe 08m2
#no_data
setfreq m16
#terminal 19200
LET dirs = %00000111 ;0=input 1=output
;serial in
serin c.3,T9600_16,b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12
;HEX serial out
sertxd(b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12)
;Decimal serial out
sertxd(40,#b0,41,32,#b1,32,#b2,32,#b3,32,#b4,32,#b5,32,#b6,32,#b7,32,#b8,32,#b9,32,#b10,32,#b11,32,40,#b12,41)
Thank's for any help.
RFID 125kHz ID card reader
Last edited: