-137-
v6.3
Interacting with Waspmote
Figure: Cutecom application capturing Waspmote’s output
Linux Sniffer
As well as using the terminal to see the sensor information, an application which allows this captured data to be dumped to a
file or passed to another program to be used or checked has been developed.
File:
“sniffer.c”
Compilation on Meshlium:
gcc sniffer.c -o sniffer
Examples of use:
-
Seeing received data:
./sniffer USB0
-
Dumping of received data to a file:
./sniffer USB0 >> data.txt
-
Passing received values to another program:
./sniffer USB0 | program
Note:
the speed used for the example is 19200 baud. The final speed will depend on the speed the XBee module has been configured
with (default value 115200).
Code:
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
Содержание Waspmote
Страница 1: ...Waspmote Technical Guide ...
Страница 11: ... 11 v6 3 Waspmote Kit Connect the battery in Waspmote Connect the sensor board Switch it on ...
Страница 59: ... 59 v6 3 Sensors Vibration Acceleration Free fall ...
Страница 79: ... 79 v6 3 LoRa Figure Channel frequencies in the 868MHz band Figure Channel frequencies in the 900MHz band ...
Страница 98: ... 98 v6 3 RFID NFC ...