After receiving the items from the JeeLabs shop I connected them up to test on the bench. I soldered the aerial wires to each item, cutting them to 82mm for the 868MHz radios.
The JNUSB comes ready flashed with the RFM12Demo sketch from the JeeLib examples directory so simply requires plugging in to a USB port and then opening a terminal to the appropriate COM port created by the USB drivers. As I’m testing on a Windows system, I looked in Device Manager | Ports to see what pseudo com port number was, and then opened PuTTY for that com port. Set the baud rate to 57600 and hit enter to see the standard RF12demo response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Note that I’ve issued the group command (5g) to set the group to the group used by the JNu in the next section.
For the JNu, things are a little more complicated as it doesn’t appear to come flashed with a sketch, nor does it have a bootloader. JeeLabs has a guide to compiling and flashing the micro (Pt1, Pt2, Pt3 and Pt4) but I had some issues completing the flash as I’m using a Bus Pirate(BP) as my ISP programmer and I couldn’t persuade the IDE to upload the hex file. To workaround this I followed the instructions from Pt2 and manually fired up avrdude to upload the sketch using the BP. After uploading the sketch, the terminal connected to the JNUSB started showing the “blip” messages from the JNu, with a new message every 60 seconds:
1 2 3
The values in the string are the reception OK flag, the node ID (22), the 32 bit message count which increments every message, and the power supply voltage before and after the transmission. Note the first message doesn’t have an after voltage as 0 as this lags by 1 transmission. The voltage value is scaled to 1.0V = 0, 6.0V = 250, so 117 is (117 / 50 + 1.0) 3.34V, which is the power supply from the BP. I also set the JNUSB to quiet mode (1q) so random noise isn’t reported to the terminal.