Advertisement
Guest User

Untitled

a guest
Feb 20th, 2013
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. AB Protocol
  2. Communicate to a RFID Module and a LCD display through Arduino via USB (Serial 9600 bauds)
  3.  
  4. 1.Message format
  5.  
  6. 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
  7. +---------------+---------------+---------------+--------...----------------+
  8. | 0xAB | MESSAGE TYPE | DATA SIZE | DATA IF ANY |
  9. +---------------+---------------+---------------+--------...----------------+
  10.  
  11. 2.Message Type
  12.  
  13. 0x00 : Ping request
  14. 0x01 : Ping response
  15. 0x02 : RFID Request
  16. 0x03 : RFID Response
  17. 0x04 : LCD Request
  18. 0x07 : ACK
  19. 0x08 : ERR (negative ACK)
  20.  
  21. 3. Description
  22. Every message starts with 0xAB
  23. If the message has no data then DATA SIZE must be set
  24. to 0x00 and ends the message else DATA SIZE is the DATA lenght in byte
  25. (Equals to message size - 3)
  26.  
  27. 4. RFID Request
  28. A RFID Request contains the RFID message (using ISO/IEC 14443 protocol) the RFID datas received are in the data of the RFID Response.
  29.  
  30. 5. LCD Request
  31. If LCD Request content is 1 byte set to 0xAB then the screen shut down.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement