Hot answers tagged

10

Belkin WeMo devices use uPnP and SOAP messages for control so can be easily controlled from any number of languages and options. Some details on the work I've done working out the protocol can be found here There are also the Sonoff devices that can be flashed with firmware to allow them to be controlled using MQTT IKEA's new TRÅDFRI light system use CoAP (...


10

Any read/write operations will be slower. However, if you don't want to stream Full HD videos or other heavy content that requires that kind of data transmission rates you'll be fine. Most of the time people just tend to recommend the new stuff. Especially in IoT surroundings just using the one that is enough is often better since it's often using less ...


10

Turns out there is no broker running on the Arch system whereas installing mosquitto on Raspbian automatically starts it. Simply enable and start the broker. Start the systemd service. systemctl start mosquitto Enable the systemd service to run on boot. systemctl enable mosquitto


7

Most cellular providers use Private IP (RFC-1918) ranges (e.g. 10.0.0.0/8) and NAT for their networks which means it is not possible to directly access a device connected via these networks remotely as it is behind a proxy server. Even if they are using fully routed networks the IP addresses are handed out dynamically and can change at any time. Having said ...


7

The solution is to install mosquitto-clients as well. pi@raspberrypi:/ $ apt-get install mosquitto-clients Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libc-ares2 libmosquitto1 The following NEW packages will be installed: libc-ares2 libmosquitto1 mosquitto-...


7

After some further investigation, I think the issue in the question is that although the power (rate of energy transfer) was reduced, the overall energy consumption was increased by using Docker, so there is no benefit in terms of reduced electricity costs. Based on the paper's figures for 100,000 requests, we can calculate the energy usage through the ...


6

Question 2.) Are there any other ideas that anyone can think of to solve this - even crazy ideas like XSS vectors to PUSH content into the captive portal from external servers? If I may suggest, you consider using the AllJoyn framework? runs on the local network. enables devices and apps to advertise and discover each other Looking at your problem ...


6

There are 4 standard SDA ratings that I'm aware of: 2, 4, 6, and 10. Basically, the number corresponds to the minimum write speed in MB/s that the card is capable. So for instance, a Class 4 would have a minimum write speed of 4 MB/s, whereas a Class 10 would have a minimum write speed of 10 MB/s. As Helmar mentioned, this means that the Class 4 will be ...


5

The Raspberry Pi Zero (and Model A) have just one USB port and as such can be used in device mode (it's the USB hub used to give the extra ports and the ethernet that stops the USB controller working device mode on the bigger raspberry pis). There are several guides online to using a Pi Zero in "USB Gadget" mode http://isticktoit.net/?p=1383 https://gist....


5

CTS and RTS are for flow signaling (Clear To Send) and (Request To Send). If you want to use 4 pins and you find out nothing is flowing through, you may want to pull CTS down to GND. In one post OP claimed I have the Arduinos communicating properly without these pins in use.. There OP had Arduinos communicating, they at least can survive without flow ...


5

Right click on Computer and open Properties. Select Advanced System Properties Click Advanced tab Under Performance, click Settings Under Performance Options, click Advanced tab Here under Virtual memory pane, select Change Uncheck Automatically manage paging file size for all drives Highlight your system drive Select Custom size Change the Initial size ...


4

There are sooooo many ways to do what you ask for. There are proprietary solutions with API's and there are Open solutions with total openness. Your question is broad and hard to give a straight answer depending on what your criteria is like: the size of your wallet, technical spec, availability in your market your preferences on color and so on. If you ...


4

There are several ways that you can create a modified distro, and the best approach will depend on your environment and how you anticipate that evolving over time. Yocto is good if you need to apply some patches and build your own custom kernel/distribution. It seems like you are not working at this level. Package Managers would be good if you want to be ...


4

One of the choices for creating Embedded Linux distributions is Yocto. Yocto is open source collaboration project that provides templates, tools and methods to help you create custom Linux-based systems for embedded products regardless of the hardware architecture. When someone/device manufacturer uses Yocto to create the Linux distro, they may choose to ...


4

A Full sized Raspberry Pi ( not a Pi Zero or Pi A) with more than 1 USB port can not act as a USB device. This is because to get 4 USB ports the USB controller is hard wired to a USB hub on the board. This means that when you plug the iPad into the Pi the iPad will act as the peripheral, not the host a it would when you plugged a printer directly into the ...


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 ...


3

Mediatek provide it's own binary wifi driver in its feeds based on old 15.05 OpenWrt version. It seems not updated since years (https://github.com/MediaTek-Labs/linkit-smart-7688-feed). Hard to know it they still support it or not. Luckily, some nice people build a new driver, more open called mt76 (https://github.com/openwrt/mt76). It's included in OpenWrt ...


3

You are facing these build errors as you are missing the sysroot corresponding to the arm-gcc that you are using as your CC. You may try changing the Makefile as follows: diff --git a/Makefile b/Makefile index 49cbb13..1123f27 100755 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ endif ifeq ($(OSTYPE),Linux) -CC ?= gcc +CC ?= /path/to/arm-linux-gnueabi/...


3

In order to use USB gadget mode, you either need two USB controllers native on the device (so one can act as master, and one as slave), or all of the other peripherals (Bluetooth, Wifi, Ethernet, Keyboard, etc) will need to be connected by serial, SPI or something similar. Since the 'normal' use case of a single board Linux computer will be to support some ...


3

Assuming you need to handle firmware updates (otherwise, you're insecure by default) then you will also need to sign the updates (and manage updates in a secure way). Otherwise, an attacker can simply present your device with a compromised update package. Clearly, if you do this, you make it impossible for the user to apply firmware updates in the same way, ...


3

Great question! Several things you should keep in mind. 1. Default passwords This is really basic, and you've probably already thought of it, but let me reiterate: default or easy passwords are deadly. When I asked this question, I learned that the way the Mirai worm works is simply to attack via default usernames and passwords. Whatever you do, do not ...


3

I'll bet ESP-Now frames can be sniffed by tshark using something like tshark -n -l -i wlp0s29u1u2 -I -y IEEE802_11_RADIO (add a -t type such as ek or json), then add a filter like -Y 'wlan.fc.type_subtype eq 4' to find the packets you want. You can use any wireless-aware packet injection tool to send WiFi packets. (i.e. Scapy)


3

If you're looking to keep clutter off of your wifi network, you could use Z-Wave or Zigbee lights (bulbs, sockets, or switches). Each of those network protocols can be run using a USB controller that would plug into your Linux machine. Both standards have active open-source communities. As MatsK said, it is pretty easy to integrate those into power scripts ...


2

If I am not wrong in understanding you question, You are trying to connect to the broker via a device which is not on the same network as the broker is. If that's the case then the thing is that MQTT broker is present only in your private network and it's not public even if you know the public IP as the public IP address is handled by NAT on your router. ...


2

From sensors you can register a listener to sensor events [1] and on every value you send it to a ByteArrayWriter/Listener pair over socket connection [2]. Socket needs only WLAN from the gateway, the rest of it is java code [3]. Complete solution needs some coding effort with the building blocks I gave. [1] https://developer.android.com/guide/topics/...


2

If I get your question correctly, you want to gather data from the IoT devices using a serial protocol over rs232/485. and then send this data onto some remote server using the cellular data. If that is the case then you could use a gsm modem to connect and send data over the cellular data network (gprs). This is a standard practice. It would look something ...


2

paraphrased from my answer here: You could use the Belkin Wemo Light Switch, if you can find one (apparently Belkin aren't making new ones any more). The initial configuration has to be done using the Belkin Wemo phone app, but once it's connected to your wireless network then you can forget the app and use Home Assistant instead. I personally run Home ...


2

This depends on the WiFi adapter you are using; some grant this level of access, others do not, or at least not in any documented or discovered way. Given that the ESP-series modules are comparable in price to USB WiFi adapters and without the concern of a vendor changing the internals without changing the part number, if you don't need other networking or ...


2

First of all, Welcome to IoT Stack Exchange! Now answering your question... I really think you should make your own. All you would need is an NRF51/2, a cheap vibration motor (those are usually rated 3V/70mA), a transistor and some good ol' coding. I researched a little bit about bracelets with vibration that can also be controlled with 3rd party apps ...


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