And … it works :-)

It took me a some (little) time to rewrite the code I already wrote for the RFBee (Arduino), but at the moment I actually can receive the messages sent over the air.

What does the application do until now?

  • Sets up the registers of the CC1101 and triggers a reset.
  • Blocking wait for a RX FIFO overflow, meaning that the synch word of the message was received and that the “raw” message now is in the RX FIFO.
  • Reading out the RX FIFO, removed start- and stop-bits of the bitstream and changed the bit order (in fact the received signal is a 38400 baud serial data stream).
  • Manchester-decode the message and print it on the console.

The output currently looks as follows:

Reseting CC1101
Command strobe 30 read returned 6F
Done. Command strobe 3A read returned 00
Command strobe 34 read returned 00
Final message: 18 10 71 E8 FF FF FF 31 50 02 02 00 FD
Command strobe 3A read returned 61
Command strobe 34 read returned 00
Final message: 16 FF FF FF 2A 1F 09 03 00 0B E0 AD
Command strobe 3A read returned 61
Command strobe 34 read returned 00
Final message: 18 10 71 E8 FF FF FF 10 60 03 02 FF 01 0D
Command strobe 3A read returned 61
Command strobe 34 read returned 00
Final message: 18 00 A1 C9 32 B4 4A 23 09 03 02 06 A4 73
Command strobe 3A read returned 61
Command strobe 34 read returned 00
Final message: 18 10 71 E8 FF FF FF 31 50 02 02 00 FD
Command strobe 3A read returned 61
Command strobe 34 read returned 00 Final message: 16 32 B4 4A 57 1F 09 03 00 08 57 D9
Command strobe 3A read returned 61
Command strobe 34 read returned 00
Final message: 18 10 71 E8 FF FF FF 23 09 03 02 06 40 0B
Advertisements