ASCII. I dont know if it is possible. If yes how does it work?
Binary communication (more difficult)
the frame looks like this :
STX = 0x02
Station ID = 0x01 (default)
Length = length of data
Data = Command + data
BCC = Block Check Character (BCC = ID XOR Length XOR data(0) XOR data(n))
ETX = 0x03
So my problem is in this binary command. I dont understand the example :
STX 02h
Station ID 64h
Length 01h
Data 78h = ‘x’
BCC 1Dh
ETX 03h
This example should do the following : “This instruction frame will reset the reader module with the station ID 64h.”
Currently i am not sending correct data to the omnikey. but he allways replys me a byte array with a sequence of 2 bytes : [96] [121]
Is this something special?
For example if i send ‘l’ to login i get this as response : [96] [121] [96] [121]
And after this 2 rs232 errors from the event with no data.
Is this something special?
I would be very glad if someone could help me. I am completly stuck…
My first step in this case would be to plug a serial cable into a terminal program and see what you’re sending from the Fez, to see if it seems sensible. Basic tests to make sure you have baud rate etc set as expected.
The way I read this (and having NO experience with it other than opening that PDF) is that the example sends a Start (0x02) to station ID 0x64, one byte of data (0x01), with the command ‘x’ (0x78) with a data checksum of 0x1d, and then the End (0x03).
Output of [96][121] (I’m assuming you’re looking at this in debug mode in a watch?) is:
'y
What that means, great question! According to section 4.4.3.19 of the document, in ASCII mode you should get the MiFare response, or nothing in binary. What do your green and red LEDs tell you when you issue a command?
The other “easy” way to start working with a device like this is just connect it to your PC and use a terminal program to give it instructions and see what happens! Once you can get the V command to work, you know you’ve made some progress!