colinsmurph
New Member
Hi I haven't used serin much and it could all be very obvious? but I've been beeping this reader for over 8hrs now : )
The plan is to have 4 jigsaw pieces with RFID cards inside, when the correct part approaches its place (different RFID reader behind each space) it will trigger a sound.
I'm using a GP25 125kh RFID reader (never used RFID before) ...
These are supposed too be good for 25cm range....
outputs ASCII (RS232) 9600, No parity, 8bits, 1 stop bit.
format is -
STX(02 Hex)................I think this is the start quantifier? (not used)
Data (10 Hex chars) .....I think this is my data string?
(CR) (LF).....................Carriage and Line return? (not used)
ETX(03 Hex)................I think this is End of data? (not used)
The reader simply TX the serial string as and when a card is presented onto pin C.1
My scope says C.1 is at 0v and goes high on TX
Question/1
If set too M8 default frequency its a bit garbled and misses the serial string completely 80% of the time at baud N9600_8
If set too M16 frequency its garbled at N9600_16 but ...........
works fine at baud N9600_8 ?? is this because of an apparent speed double?
Question/2
I bought cards with no numbers written on... Each way produces one of 2 unique 10 digit number for the card.
Should use N or T parity ?
from what i have read....RS232 implies Idle high? it idles at 0v? does this matter?
Question/3
I need to check if one of 4 cards is present and (ignore) the 3 false cards, Is there anyway of taking the data from my code for later comparison? or do I need too use Hserin?
CODE
#picaxe 28x2
#terminal 9600
' Converted by X2 Conversion Wizard Version 2.0.5 (2010r4.1)
let dirsB = %00000000
let dirsc = %00000000
let dirsa = %00000000
let adcsetup = 0
setfreq m16
symbol RFID=c.1
symbol RFIDbaud=N9600_8
main:
bptr=28
serin [10000,main],RFID,RFIDbaud,@bptr,@bptr,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptr,@bptr,@bptr,@bptr,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptr
bptr=28
for b0=1 to 10
b1=@bptrinc
b1=b1-29//10
sertxd(#b1)
next b0
sertxd(cr,lf)
goto main
The plan is to have 4 jigsaw pieces with RFID cards inside, when the correct part approaches its place (different RFID reader behind each space) it will trigger a sound.
I'm using a GP25 125kh RFID reader (never used RFID before) ...
These are supposed too be good for 25cm range....
outputs ASCII (RS232) 9600, No parity, 8bits, 1 stop bit.
format is -
STX(02 Hex)................I think this is the start quantifier? (not used)
Data (10 Hex chars) .....I think this is my data string?
(CR) (LF).....................Carriage and Line return? (not used)
ETX(03 Hex)................I think this is End of data? (not used)
The reader simply TX the serial string as and when a card is presented onto pin C.1
My scope says C.1 is at 0v and goes high on TX
Question/1
If set too M8 default frequency its a bit garbled and misses the serial string completely 80% of the time at baud N9600_8
If set too M16 frequency its garbled at N9600_16 but ...........
works fine at baud N9600_8 ?? is this because of an apparent speed double?
Question/2
I bought cards with no numbers written on... Each way produces one of 2 unique 10 digit number for the card.
Should use N or T parity ?
from what i have read....RS232 implies Idle high? it idles at 0v? does this matter?
Question/3
I need to check if one of 4 cards is present and (ignore) the 3 false cards, Is there anyway of taking the data from my code for later comparison? or do I need too use Hserin?
CODE
#picaxe 28x2
#terminal 9600
' Converted by X2 Conversion Wizard Version 2.0.5 (2010r4.1)
let dirsB = %00000000
let dirsc = %00000000
let dirsa = %00000000
let adcsetup = 0
setfreq m16
symbol RFID=c.1
symbol RFIDbaud=N9600_8
main:
bptr=28
serin [10000,main],RFID,RFIDbaud,@bptr,@bptr,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptr,@bptr,@bptr,@bptr,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptr
bptr=28
for b0=1 to 10
b1=@bptrinc
b1=b1-29//10
sertxd(#b1)
next b0
sertxd(cr,lf)
goto main