|
µracoli Manual
Version foo
|
The wireless UART can be used to communicate between two PCs via a RF link, or to communicate between a PC and an autnomous sensor/actor node. The WUART application starts on a fixed channel and is automatically in the transparent data mode.
+------------------+ +------------------+
| Terminal PC#1 | | Terminal PC#2 |
|------------------| |------------------|
| Wuart 0.2 ... | | Wuart 0.2 ... |
|#2: howdy #1 | |#1: hiho #2 |
|#3: t=24 | |#3: t=24 |
|#2: yyyyy | |#1: xxxxx |
|#3: t=25 | |#3: t=25 |
| | | |
+-------*----------+ +--------*---------+
| |
|serial IF |serial IF
| |
| ^ ^ |
+---*----+ | | +---*----+
| WUART | | | | WUART |
| Node#1 +--+ +--+ Node#2 |
| | | |
+--------+ ^ +--------+
| +--------+
+-+ Sensor |
| Node#3 |
+--------+
The wireless UART for the radiofaro board is build with the following commands:
cd uracoli-src-<version> make -C wuart radiofaro
The firmware file bin/wuart_radiofaro.hex is now available. It can be flashed into the microcontroller e.g. with an AVR-Dragon-programmer using the command:
avrdude -Pusb -cdragon_jtag -pm128rfa1 -U bin/wuart_radiofaro.hex
Now open a serial terminal programm (e.g. sterm), adjust the baudrate, set the hardware handshake to none and after a reset of WUART node you will see a boot message, similiar to this:
Wuart 0.2 chan=17 radio 02.01
Do the same steps for a second board and try to chat between the terminal windows.
A list of all supported boards is displayed with the command:
make -C wuart list make: Entering directory `/home/axel/Work/uracoli-src-<version>/wuart' any2400 : A.N. Solutions ANY Brick any2400st : A.N. Solutions ANY Stick ... zgbt1281a2uart1 : Meshnetics Zigbit A2, using UART1 zigduino : Zigduino made by Logos Electromechanical LLC
Alternatively you can compile the example programm xmpl_linbuf_tx.hex and watch the text that appears in the terminal window of the PC.
make -C xmpl -f xmpl_linbuf_tx.mk <sensorboard>
This example can be used as starting point for an own application.