A Java Library which will allow two or more Raspberry Pi (revision 2) to communicate between themselves via Infrared. The IR Transceiver will be custom built, making use of a Vishay TSOP IR LED and Vishay IR Receiver (preferably, any better solution is welcome). Raspberry Pi GPIO is to be used.
The Library must be able to listen to incoming IR and give any data received back. Receiving: Apart from returning the actual data, a CRC check must be done to ensure data integrity of whole message. In case of missing data, a proper exception is thrown. Sending: A minimum of 4 Bytes of data is needed to be sent. More bytes can be sent, no upper limit.
Representation of data: Sent and received in binary [header]
The data is passed to the module in binary format and I need to the data received in binary format. If it's simpler in any other format let me know.
Overall all, J just need a library to add communication over Infrared (preferably running at 36 or 38 khz, yet again open to suggestions) of small messages of 4 bytes of data between two Raspberry Pi.
There is no need for detailed work in electronic setup, processing or conversion of data.