Sub AStreams_NewData (Buffer() As Byte)
Private RawReply As String
Private BtCvt As ByteConverter
RawReply=BtCvt.HexFromBytes(Buffer)
'Log (RawReply)
If RawReply = "06" Then AStreams.Write(Array As Byte(0x05))
If CardOperation = "Status" Then
Log (RawReply) '<- Log output from here, I have a button the ask the reader's status
If RawReply.Length = 16 And SF.Mid(RawReply,1,10) ="0200053130" Then
Select Case SF.Mid(RawReply,11,2)
Case "4A" ' Card in Reader
TimerReader.Enabled = False
Talk2Reader ("Read")
End Select
End If
End If
If CardOperation = "Read" Then
Log (RawReply)
End If
End Sub