I have just uploaded the first public version of a new library that supports HopeRF HM-TR 433MHz serial transceivers and other similar 'transparent' transceivers.
The HM-TR is nice, inexpensive transceiver with a serial TTL interface. It is easy to connect electrically to Arduino serial ports, but does not have error detection or correction.
The HopeRF library provides classes for addressed and unaddressed, reliable and unreliable datagrams between nodes. 8 bit addresses, broadcasts, acknowledgement and retransmissions are all supported. Use it to build wirelessly connected networks and meshes of Arduino.
The code compiles on Linux and with only a little work could be made to run on Linux, interfacing to an RS232 capable transceiver via a serial port.
I have just uploaded a new version which adds Linux Makefile which builds a sample server program which runs on Linux and which can talk to an HM-TR over a serial port at /dev/ttyUSB0. There is also a Linux based test suite for the library.
Now i just need to learn how to program the rest of my app
Previous efforts (PICAXE) only provided ho-hum comms - now have these running over a short distance reliably AND with a 5W UHF TX antenna running @ less than 20cm from the HOPE Modules - HUGH improvement!!
After two days i know have a small network of temperature nodes sending data back to the PC - and to think i didn't know anything about Arduino last week!
Had to do some research on how to put my temp "float" into the send routine but it works now and I'm stoked!
Hi
I've downloaded and installed the current version, HopeRF 1.2, into Arduino 022 and when I try to compile any of the examples, I get errors such as those below. I've tried this with the Board set to Diecimilia and Duemilanovae.
Any ideas?
Thanks
---Raymond
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WProgram.h:6,
from HRFReliableDatagramServer.cpp:12:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/math.h:439: error: expected unqualified-id before 'double'
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/math.h:439: error: expected )' before 'double' /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/math.h:439: error: expected )' before 'double'
HRFReliableDatagramServer:11: error: 'Serial1' was not declared in this scope
HRFReliableDatagramServer.cpp: In function 'void setup()':
HRFReliableDatagramServer:16: error: 'Serial1' was not declared in this scope