Now that the Arduino DHCP library is fairly stable, I’m turning my attention back to my RFID Lock prototype. I’ve integrated the DHCP library and it’s working perfectly for me. The next step is to work out a protocol that the lock will respond to. I’ve decided to use connection-less UDP messages. I’ve already hacked in the ability to lock and unlock the deadbolt by sending a simple UDP packet – this was just to test connectivity. I’m working through the protocol in my head (e.g. the data format, different commands, etc). I think that I want to use the Open Sound Control (OSC) protocol as the format of the messages. The nice thing about OSC is that it doesn’t tie me to lower level protocols (HTTP, SOAP, REST, TCP, UDP, etc). As long as I can send and receive OSC messages, I can abstract away the communication details from the RFID Lock firmware.
Once the first draft of the protocol is finalized, I’ll begin working on a secure ASP.NET MVC application that will let me interact with the RFID Lock. I’ll also be looking for secure ways to have it interact with my cell phone.