I used AWS Free Tier.
-
You can check the
conf-aws-img/folder to see the screenshots of config: security group, vpc, route tables, subnet. -
Instructions to create a new EC2 instance and config public IPV6 on AWS can be followed by this link.
After all are set. You can now:
-
Login/SSH to the server and create
read_packet.pyfile, which code/content is inread_packet.pyon my git repo. -
Run and wait for packet
python3 read_packet.py
- Submit experiment
iotlab-experiment submit -n sensesend -d 60 -l 2,archi=m3:at86rf231+site=saclay - After this, it will return the experiment ID, which we will use to get the nodes list
iotlab-experiment get -i <exp-id> -p
- Clone RIOT
git clone https://github.com/RIOT-OS/RIOT - Go to RIOT/ folder
cd RIOT/ - Run this before flashing the board
source /opt/riot.source - Compile the code
make ETHOS_BAUDRATE=500000 DEFAULT_CHANNEL=23 BOARD=iotlab-m3 -C examples/gnrc_border_router clean all - Flash device
iotlab-node --flash examples/gnrc_border_router/bin/iotlab-m3/gnrc_border_router.elf -l saclay,m3,<id> - Run border router
sudo ethos_uhcpd.py m3-<id> tap0 2001:660:3207:04c1::1/64
-
Clone my git repo
git clone https://github.com/tuminguyen/sensing-iot23.git -
Go to the folder
cd sensing-iot23/ -
Change the IPV6 address of your server on
main.cfilenano main.c -
When the main.c is opened, change "2a05:d016:4b4:100:2323:6378:f552:8961" to to your server IPV6 address
#define SERVER_IPV6_ADDR "2a05:d016:4b4:100:2323:6378:f552:8961"Save the file by pressing
[Ctrl + X]thenythenEnter. -
Run this before flashing the board
source /opt/riot.source -
Compile code and run
make DEFAULT_CHANNEL=23 BOARD=iotlab-m3 -C . clean alliotlab-node --flash bin/iotlab-m3/say2v6.elf -l saclay,m3,<id> -
Wait until the previous command done, then we run
nc m3-<id> 20000 -
Press
Enterso you will see> -
Basically, you can control on|off on the sensors. Here I only have lps331ap (temperature/pressure) and lsm303dlhc (accelerometer/magnetometer) sensors. The command is simply just
lps on | offorlsm on | off.
Link on the demo video is uploaded here on Youtube