I’m trying to create a driver for a RFM12B SPI transceiver in order to receive data from a JeeNode (Atmega328 with RFM12B) with little to no success :-[. This would be especially useful for the Domotica users amongst us.
Check this link out : [url]http://www.ideetron.nl/Hope/RF12B_code.pdf[/url]
It contains the commands descriptions and some C sample code at the bottom of the document.
After you have implemented the basic functionality (read/write command, etc.) you can just copy/paste.
after struggling for 5 days i got to a point that i don’t know what else i could try.
I succeeded in getting the first 2 bytes back, but after that i always receive 0’s.
Does anyone of you have a RFM12B transceiver and is able to help out a bit?
Would you have some protocol analyser available or memory scope to really check that the data is really coming to your input port ? Just see if you can see more than 16 consecutive flapping bits ?
Just to make sure everything is fine at the hardware level because pushing further the software…
Did you try to capture something with the pincapture function ?
I have 2 of these modules and had them connected first to 2 arduino’s. They were happily married, uhm, exchanging data. Now the plan is to move 1 transceiver to the panda and receive the data that the other arduino is sending every 5 secs. I’m absolutely positive that at the hardware level everything is ok. What I suspect is that 1) I miss a command to read the buffer 2) that commands to read the buffer are not in the correct order.
I have analyzed the arduino driver for 5 days, but my c++ knowledge is pretty low.
And no, i don’t have a protocol analyzer or a DSO (would love to have one though), and i don’t think pincapture can help here since the transceiver is an SPI device.