Hi,
I'm making an RFID reader using RDM6300 UART RFID reader. This module has no real trigger out signal, it has LED output signal following card number stream. I had to use this signal to trigger Arduino to read serial stream. the time between LED signal and next serial stream is 50ms. so I had to ignore first read and wait for the next for 50ms. after all of that I got no data at all, serial buffer is zero length. any ideas? PS. according to datasheet, TTL timing diagram shows CP signal leading serial stream!! this pin is not found!
Thanks
I'm making an RFID reader using RDM6300 UART RFID reader. This module has no real trigger out signal, it has LED output signal following card number stream. I had to use this signal to trigger Arduino to read serial stream. the time between LED signal and next serial stream is 50ms. so I had to ignore first read and wait for the next for 50ms. after all of that I got no data at all, serial buffer is zero length. any ideas? PS. according to datasheet, TTL timing diagram shows CP signal leading serial stream!! this pin is not found!
Thanks
B4X:
Sub Process_Globals
Public Serial1 As Serial
Private RFID As SoftwareSerial
Private RFIDbuffer(14) As Byte
Private RFIDena As Pin
Private Ba As Byte
End Sub
Private Sub AppStart
RFIDena.Initialize(4,RFIDena.MODE_INPUT_PULLUP)
RFIDena.AddListener ("RFIDchanged")
RFID.Initialize(9600,2,3)
Serial1.Initialize(115200)
Log("AppStart")
End Sub
private Sub RFIDchanged(State As Boolean)
If State = False Then
CallSubPlus ("ReadRFID",50,0)
End If
End Sub
private Sub ReadRFID(tag As Byte)
Ba = RFID.Stream.BytesAvailable
Log(Ba)
'If Ba >=1 Then
RFID.Stream.ReadBytes(RFIDbuffer,0,14)
Log(RFIDbuffer)
'End If
End Sub