Tree: GP
From RFID Wiki
[edit] GP
Guardian Protocol is a message format used for communicating with the Guardian, by humans as well as by Guardian-enabled readers.
The message format is described by its own micro-language, given by the grammar in ~MRG/src/GP/parse/grammar.g. The current set of messages in this micro-language is in ~MRG/include/GP/mrg_GP.x. This description is compiled to stub implementations in C and in Java.
The C stubs are generated as:
- ~MRG/include/GP/mrg_GP_generated.h for the C types and prototypes
- ~MRG/src/GP/common/mrg_GP_generated.c for the C stub implementations.
The Java stubs are generated in:
- ~MRG/java/nl/vu/cs/rfidguardian/GP/
using an ant build file in ~MRG/java.
The application fills in a request message as described in the (proto)types and sends it over a Guardian SSL channel. The Guardian reads it from the channel, parses it, acts, and sends a reply in the same manner. The application receives and parses the reply.
This approach attempts at maximal consistency between the C and Java messages.
Depends on:
- sockets
- (emulator)


