iot-lab / iot-lab

FIT Iot-LAB repository
Other
98 stars 47 forks source link

Zigbee on M3 nodes #215

Closed DyiDriss closed 5 years ago

DyiDriss commented 7 years ago

Hello i'm using M3 node and i'm wondering if any one have a simple code to send data and receive it on a Xbee connected on another laptop. Thanks

aabadie commented 7 years ago

Hi,

Can you elaborate a bit more, please ? It would be great if you could provide more information about your setup. With the actual provided information, I fear that we won't be able to give you the right information to precisely answer what you are looking for.

What kind of M3 do you have ? How is the XBee connected to the Laptop ? Are they in the same room ? What protocol do you want to use to send your data ?

DyiDriss commented 7 years ago

Hello, I just started using M3, so i don't know very much about it, i run a program to mesure the temprature and the pression from LPS331AP implemented on the M3, i also know that there is a radio communication on it ( AT86RF231). a part of my project is to send these mesures to a raspberry connected to Xbee S1. so from what i understood that AT86xxx and the Xbee S1 both communicate on 802.15.4 network

aabadie commented 7 years ago

I understand that you are using one of the M3 from (and inside) IoTLab, sorry if I misunderstood.

If your raspberry pi + XBee is not in the same room or out of the 802.15.4 radio range of the iotlab-M3, then you don't have to care about the XBee on the PI. You just need IPv6 and routing configuration to/from the PI and this depends on your local network (I mean ethernet local network, do you have IPv6 ?).

I suggest that you read and follow the tutorial available for setting-up an IPv6 network with IoT-LAB:

DyiDriss commented 7 years ago

Ok so from what i read there is to way to do experiments on M3. i'm developping directly on my laptop on linux. so i think that these tutos do not work in my case. about the range: the Xbee is just next to my M3 ( same room). PS: I'm not familiar with networks i'm just starting learning it by my own Thank you a lot

aabadie commented 7 years ago

Ok, but how can you have an M3 ? (I guess you work with someone from IoTLAB ?)

What kind of Xbee do you have ? on USB ?

What you need is to configure your XBee as a border router from 802.15.4 wireless network to usual ethernet network. I don't know how to do that with an Xbee. I know it's possible with an M3 using RIOT. See this example. It should be also possible with Contiki but this is out of my knowledge.

There was someone interested in using XBee on USB as a border router in the Linux community. I don't know if we could get it to work. Here is the PR he was working on: https://github.com/RIOT-OS/RIOT/pull/4448

DyiDriss commented 7 years ago

i have a Xbee S1 i did https://michael.bouvy.net/blog/en/2013/04/02/raspberry-pi-xbee-uart-serial-howto/ configuration. i'm going to study the example that you provided me, i'll let you know if i advanced in my work Thanks

aabadie commented 5 years ago

From my understanding, this is not an iot-lab issue. I'm closing this.