Hot answers tagged

14

What you describe is actually a quite common (the most common?) way to solve the problem of integrating WiFi IoT devices into your local LAN. For example, from my experience Amazon Echo Devices are setup this way or a variety of smart switches/smart plugs (e.g. Shelly devices). Depending on your requirements, you could also get away without the LED and the ...


11

Short answer: It's possible. Long answer: It's complicated. That's why so many many very bad implementations are out there. At the very least you have two steps in any remote / over-the-air update process. Transmitting firmware Installing firmware. Of course, this is the absolute bare minimum. If you're working in iterations it's also a very valid first ...


7

Building your own device for this use case really is the wrong approach. The industrial design to build something that will survive day to day use and be comfortable to wear with a useable battery life is likely to take longer than the study you want to run. Just buy an off the shelf fitness tracker. There are plenty that have open BLE interfaces. But if ...


7

Just to clarify from what I undestand when researching these modules: RFM69x - Packet Radio (not LoRa) RFM96x - LoRa Radio (or RFM95 / RFM97 - thanks Chris) If you're trying to use an RF69x for LoRa, that's your issue A quick google search should show you how to get LoRaWan up and running if you have the correct radio module (RFM9xx). Hope this helps. (...


7

To interact with IOTA, you must be running or have access to an IRI node, which usually has its API exposed. IOTA is still in a heavy development phase, and an embedded linux device such as Raspberry Pi doesn't have the resources to run an IRI node. The open source Ruuvi tag is a good example of IoT device pushing data onto the IOTA tangle. The tags are ...


6

I'm not sure why you're checking for z's and so on but your first else if clause ensures that none of the clauses in the rest of the block is ever executed. else if (state != 'z' && state!=0) { digitalWrite(ledG, LOW);} // turn the LED off by making the voltage LOW When state is any value that's neither z nor 0 (x, y, etc) then this block is ...


6

Parameters to an HTTP GET request are key/value pairs, separated by an ampersand & The key and value are separated by an equals sign. Your use of DeviceData=T=<value> breaks this rule. See this page, which explains that you need to use %3D for the = which is part of the value. I.e. DeviceData=T%3D<value> But, ask yourself if you really ...


5

Cloud-based services are unlikely to offer much 'local-lan' functionality without some competitive pressure. Specifically, a lan implementation requires a local hub. That could be the service's native hub, or it could (in your case) be a 3rd party hub. Generally, LAN functionality seems to be supported only where there is a WAN fallback (to hide the local ...


5

I posted this same question to the Microsoft forums and got a reply from IoTGirl saying that WiFi Direct is an option: Windows IoT Core WiFi Mesh I need to confirm whether the RPi3B supports WiFi Direct and then also find out if it supports many-to-many via WiFi Direct. (if anyone has any experience on this, feedback would be much appreciated) Hope ...


5

The Sonoff line is very diy-friendly, breaking out the ESP8266 headers you need to program it. Anything Wi-Fi under $10USD/ea commercially will probably be using an ESP8266. They probably won't get a lot cheaper than that, there's just no margin down there. In the DIY market, there's nothing else Wi-Fi and programmable under $5/ea and commonly available. I'...


5

There are no standards only RFCs for CoAP; all of them are accessible on the web: RFC 7228 - Terminology for Constrained-Node Networks, May 2014 RFC 7252 - The Constrained Application Protocol (CoAP), June 2014


5

What you've written all seems reasonable to me. MQTT traditionally runs over TCP1, but your browser does not allow webpages to open a raw TCP socket. There are proposals to allow that, but I doubt they'll be implemented any time soon. So, your browser can't connect to a MQTT broker only supporting TCP connections. The solution is, as you've identified, to ...


5

Anya - Very broad requirement you have but you can get result with something like this: Your arduino should be equipped with wifi or ethernet connection in order to communicate over internet You can use your wifi/router's port forwarding or virtual port or NAT functionality to access device from internet You can use ArduController library in your arduino ...


5

Application on Android & iOS: IFTTT (IF This Then That) you can use this app from its webpage also. Handy website to manage online data: Adafruit IO Instead of Arduino boards, you can use NodeMCU boards like NodeMCU esp32 or esp8266. Both of these boards support code execution via Arduino IDE and are compatible with 'C' & 'C++' same as Arduino ...


5

I figured it out. Turns out there was a bug in the raspi_lora library I used for my python code. It is so that, if you are not specifically sending to the device address or have receive_all=True , it will do nothing with the messages. If you plan to use the raspi_lora library you should replace line 268 in the lora.py file with if (self._this_address != ...


4

255.255.255.0 is the value that determines the SIZE of the subnet. 192.168.1.xxx with the subnet mask 255.255.255.0 is a subnet spanning from 192.168.1.0 to 192.168.1.255. 192.168.10.xxx with the subnet mask 255.255.255.0 is a subnet spanning from 192.168.10.0 to 192.168.10.255. A router is needed for transporting IP from one subnet to another. Ref. ...


4

You might want to check out Amazon FreeRTOS. Amazon FreeRTOS (a:FreeRTOS) is an operating system for microcontrollers that makes small, low-power edge devices easy to program, deploy, secure, connect, and manage. Amazon FreeRTOS is based on the FreeRTOS kernel, a popular open source operating system for microcontrollers, and extends it with software ...


4

AWS IOT requires that your device understand TCP/IP and encryption. The ATMega328 has 2K bytes of RAM, but Ethernet frames can be up to 1500 bytes long. Even if you could receive a packet, there wouldn't be any room left to process it. The nRF51822 has 16K RAM, which is plenty for Ethernet, but not enough to do TCP/IP and WiFi. (Both of which require ...


4

You want to get data off a moving vehicle into the cloud. A trailing cable seems a trifle impractical, so you're down to wireless. Wireless options are roughly: Satellite Cellular Point-to-point LPWAN Satellite is relatively expensive and a little bit tricky to get going. Point-to-point requires that you set up the other end of the link and it doesn't ...


4

To summarize, you want an Arduino, which is driving around in a car or a bus, to send some data to a sensor. Firstly, you need to be clear whether you need this data in real time, or whether you can collect it during the drive and send it to the server at the end. If you need real-time, then we can probably rule out WiFi, unless you are 1000% certain that ...


4

This is a very generic question, the answers mainly depend on your existing skills, and if you desire to progress into developments that might be commercially relevant. Depending how far you want to plan your learning ahead, you might want to start simple, and upgrade the architecture/implementation as you go along. Platform An SBC (Pi or similar) is great ...


4

First you have to know that only one RSSI gives you nothing about distance. Because it may vary from device to device. To calculate distance you must know "calibrated" value. For example, RSSI value measured with this device on 1 meter distance. When you do that you will have 2 RSSI values: calibrated and current. Then use this formula: double Dist = pow(10....


4

Precise Description for the Query Initial NTP time sync In the Yocto build system under conf/local.conf add ntp recipe as follows: IMAGE_INSTALL_append = " ntp" on Target board initially stop the systemd service: systemctl stop ntp Assuming board is connected to the internet: ntpd -gq Info: Check time using date For safe side also sync the ...


4

Infrared detection of body heat sounds like your best bet, with sensors in the ceiling above each desk. Triangulation of signal strength is a nightmare, even assuming that you can force everyone to carry a device. You might consider something like checking if the PC at that desk is logged in or not, but that relies on people remembering to log out. ...


4

Maybe a light barrier between the two front legs of the desk? Assuming they are not standing desks some part of the leg or chair will interrupt the barrier most of the time. At least at my work all of the time. But maybe that is because we all work on computers.


4

These systems work by having the device connect out from your home network to the a server run by the service. This outbound connection is bi-directional so the server can send commands back "down" this link as well as the device sending data "up". The service then proxies commands sent to it to the device.


3

There a million ways to skin this cat. Best for you at this stage to just try to get something working. Beyond that you can worry about "right" and "suitable" ways. Your setup is feasible and makes sense. Maybe you're running into trouble because you're expecting to find some software off the shelf? Since the DHT22, the Uno, the HC-05 and the Pi are all ...


3

Look at TI/Energia Launchpad and SimpleLink line. CC3220 or MPS432. There are Bluetooth options and a pretty good set of software. Link to Texas Instruments CC3220S-LAUNCHXL site. This board has a built in temperature sensor and accelerometer, so it's fun to play with. SimpleLink™ Wi-Fi® CC3220S Wireless Microcontroller LaunchPad™ Development Kit Link to ...


3

The title of your question has one issue, but the text of your message has another...you might want to either change the title, or create a new question ;) As for the error in your text: Is this error happening when you try to compile your sketch in the Arduino IDE? The error points to a missing module or library, which the author of the google-cloud-iot-...


3

As the library's documentation states the RFM9x's NSS pin should get connected into pin 10. Also as you can see in the following image: the pin 10 is the SPI's slave select pin (ss in short) so the NSS pin on the RFM9x is connected into slave select pin. So in the function: LoRa.setPins(ss, reset, dio0); The ss variable takes the number of pin that is ...


Only top voted, non community-wiki answers of a minimum length are eligible