Sensor Network and rPi's onboard WiFi?
-
Thanks for that! Inevitable follow-up questions: if I have a network of sensors, each connected to it's own esp8266, can one of these act as the gateway as well as collecting its sensor data, or do I need a separate dedicated gateway? Also, this network may not always have internet access: can this configuration work in the absence of an external router etc - ie is it self-contained? Thanks.
-
Ah OK: so based on your diagram each sensor node (yellow circle with an S in it) would be an ESP8266 plus a sensor (temp, humidity etc), the controller would be the rPi using onboard wifi. I'm wondering if one of the sensor nodes (yellow circle) could also act as a gateway (blue circle) to enable all the sensor nodes to talk to the rPi, or if this needs to be a separate distinct module.
-
Ah OK: so based on your diagram each sensor node (yellow circle with an S in it) would be an ESP8266 plus a sensor (temp, humidity etc), the controller would be the rPi using onboard wifi. I'm wondering if one of the sensor nodes (yellow circle) could also act as a gateway (blue circle) to enable all the sensor nodes to talk to the rPi, or if this needs to be a separate distinct module.
-
@mfalkvidd now I'm confused! I thought that a sensor + MCU + wireless module = a sensor node, and that each sensor node talks via wireless to a gateway which handles network traffic and also communicates wirelessly with a controller, sending it sensor data and routing commands around the network. But you're suggesting that sensor + MCU + wireless module = a gateway, so there would be multiple gateways on the network, each of which would talk directly to the controller? And every gateway would have a sensorID of 0?
-
@mfalkvidd now I'm confused! I thought that a sensor + MCU + wireless module = a sensor node, and that each sensor node talks via wireless to a gateway which handles network traffic and also communicates wirelessly with a controller, sending it sensor data and routing commands around the network. But you're suggesting that sensor + MCU + wireless module = a gateway, so there would be multiple gateways on the network, each of which would talk directly to the controller? And every gateway would have a sensorID of 0?
@Charlie said in Sensor Network and rPi's onboard WiFi?:
But you're suggesting that sensor + MCU + wireless module = a gateway, so there would be multiple gateways on the network, each of which would talk directly to the controller? And every gateway would have a sensorID of 0?
@Charlie yes that is correct, if you want to use wifi for the wireless communication.
-
Got it, thanks. So I'd need to set up each ESP with gateway software (looks like the best bet would be https://www.mysensors.org/build/esp8266_gateway ?) plus the code to read/write its attached sensor? And each gateway would talk to the controller, all in the absence of an external wifi network, ie it's self-contained? I'll go away soon, promise.
-
Got it, thanks. So I'd need to set up each ESP with gateway software (looks like the best bet would be https://www.mysensors.org/build/esp8266_gateway ?) plus the code to read/write its attached sensor? And each gateway would talk to the controller, all in the absence of an external wifi network, ie it's self-contained? I'll go away soon, promise.
@Charlie said in Sensor Network and rPi's onboard WiFi?:
Got it, thanks. So I'd need to set up each ESP with gateway software (looks like the best bet would be https://www.mysensors.org/build/esp8266_gateway ?) plus the code to read/write its attached sensor?
Yes this is correct
And each gateway would talk to the controller, all in the absence of an external wifi network, ie it's self-contained?
All solutions I've seen have used an external wifi access point. But I think it is possible to let the rPi act as a wifi access point if you do not have / want to use an external wifi access point. But that sounds like an unnecessary complicated thing to build. I might be wrong though, since I so far have been unable to understand what your use case is.
-
OK, thanks. I'm looking to build a self-contained wireless network of sensors and actuators which can be deployed in a range of environments. Some of these will have external wifi access so that simplifies things, but in some cases there won't be any external wifi in which case the network must be able to operate independently and the controller can store data / logs for periodic download probably by a physical connection to eg a laptop as part of a routine maintenance schedule. Hope this helps clarify my requirement.
-
OK, thanks. I'm looking to build a self-contained wireless network of sensors and actuators which can be deployed in a range of environments. Some of these will have external wifi access so that simplifies things, but in some cases there won't be any external wifi in which case the network must be able to operate independently and the controller can store data / logs for periodic download probably by a physical connection to eg a laptop as part of a routine maintenance schedule. Hope this helps clarify my requirement.