DevHeads IoT Integration Server

DII

DevHeads IoT Integration Server

The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.

Join

seeking-collabs

firmware-and-baremetal

middleware-and-os

edge-networking

pcb-and-analog

jobs

iot-cloud

code-review

devheads-feed

general-dev-chat

Looking to learn about making iot Bluetooth apps or wifi apps for esp32 android or ios

I am looking to learn about making iot Bluetooth apps or wifi apps for esp32 android or ios but i have not made anything like that before where to start what frameworks or tools to use anyone who has done it let me know guide me further
Solution:
Hi @electro_coco to build a professional mobile app for Bluetooth & Wifi clients, I use IONIC Framework with AngularJS. But you can also consider using ReactJS as well. In case, if you want to keep things simple in the beginning then start with MIT App Inventor which uses Javascript based blocks. This is for simple apps for IoT projects otherwise one could even choose to develop Native Android/iOS apps. Let us know specific use case and purpose. I hope this may help.

Troubleshooting HTTP POST Error on ESP32 with ADXL335 Accelerometer

Hey guys @Middleware & OS @MCU, MPU & Firmware , I am attempting to set up an ESP32 to collect vibration data using an ADXL335 accelerometer and send it to a server for predictive maintenance analysis. The data should be transmitted over Wi-Fi, I have configured the ESP32 to connect to a Wi-Fi network, set up the ADXL335 accelerometer to read vibration data, wrote code to send the sensor data to a server using HTTP POST requests. But still getting the error
Error on sending POST: -1
Error on sending POST: -1
This is my code...
Solution:
Thanks, it worked after correcting the url I forgot to add : after https

Deploying Edge Impulse models on the Arduino Nano RP2040.

Hello I am deploying Edge Impulse models on the Arduino Nano RP2040. Although Edge Impulse doesn't provide a specific library for the Nano RP2040, I have successfully adapted the models meant for the Nano BLE. Initially, these models included the nano_ble_accelerometer_continuous file, which I could tweak for use on the Nano RP2040. Recently, new models only include the nano_ble_accelerometer file, omitting the nano_ble_accelerometer_continuous file. This change also affects older models that previously included the continuous file. I will like to clarify if there have been updates or changes in Edge Impulse affecting the availability of the nano_ble_accelerometer_continuous file and would like to know if there are alternative approaches for continuous data acquisition on the Nano RP2040 @Middleware & OS...
Solution:
Edge Impulse periodically updates its libraries and SDKs to improve functionality, add features, and streamline the development process. It seems like one of these updates has resulted in the consolidation or removal of the nano_ble_accelerometer_continuous file. This change may be aimed at simplifying the implementation process by using a single file for accelerometer data handling.

Facing difficulties connecting an ENC28J60 Ethernet shield to an Arduino Nano ESp32

I'm facing difficulties connecting an ENC28J60 Ethernet shield to an Arduino Nano ESp32. I've mounted the Arduino Nano on top of the Ethernet shield. I'm using the EthernetENC library, I've tried using both CS port 5 and 10 for SPI communication, but the shield is not being detected. tested using...
Solution:
Here are a few additional things to try: - Verify the ENC28J60 chip's pins are correctly soldered to the shield. - Ensure the SPI pins (MOSI, MISO, SCK, and CS) are correctly connected to the Arduino Nano. - Try using a different SPI library, like the UIPEthernet library....
attachment 0

How can I enhance device authentication to ensure secure communication?

Hey guys I’m developing an IoT device with TI's TM4C129ENCPDT microcontroller, CC3100 Wi-Fi chip, and TI RTOS, using TLS for secure HTTPS communication. I currently use server-assigned tokens for authentication. How can I enhance device authentication to ensure secure communication and reassure clients about its security? @IoT Cloud...
Solution:
1. Use TLS certificates for mutual authentication. 2. Implement secure boot and firmware updates. 3. Store sensitive data securely. 4. Consider hardware-based security solutions. 5. Regularly update and review your security implementation....

Is there a module for TCP/IP implementation in Azure IoT Edge?

Hey @IoT Cloud so recently i want to use Azure IoT Edge for identity and protocol translation for an OBD-II device that communicates strictly via TCP/IP, while Azure IoT Hub supports MQTT, AMQP, and HTTPS. Our goals are Identity Translation (Create and register IDs for these devices from IoT Edge to IoT Hub and also to enable automatic device-to-IoT Hub communication through IoT Edge) also Protocol Translation(Enable communication between TCP/IP devices and Azure IoT Hub’s supported protocols (MQTT, AMQP, HTTPS)) So currently bi-directional communication for messaging and FOTA is needed ...
Solution:
Azure IoT Edge supports TCP/IP protocol. The repository is suitable for production use. There is detailed documentation and examples available....

Managing Priorities in a CAN Bus Network with Arduino Uno and MCP2515 Modules

hello everyone, i have a project of realizing CAN bus, to achieve it i use two Arduinos uno and two CAN modules, every arduino is attached to MCP2515 , i did the communication like pressing a push-up button in the transmitter side to control a led in the receiver side. i need help on managing the priority (like ABS has priority than any action like windshield wiper) how much Nodes(MCP2515) do I need? and how can I manage the priority of actions?@Helper @Middleware & OS...
Solution:
- Assign a unique priority level to each node (MCP2515) based on importance. - Use a priority manager node (additional Arduino or IC) to coordinate priorities and grant bus access to the highest-priority node. You'll need one priority manager node and multiple nodes (MCP2515) depending on the number of devices you want to connect....

Is it good practice to use MQTT to setdata for an IoT device?

Hey guys @IoT Cloud I know MQTT uses publish/subscribe, meaning all clients can pub/sub to any topic and all clients have to be connected to an MQTT broker. Is it also good practice to use MQTT to setdata for an IoT device? Let's imagine the IoT device is a smart light which can be controlled via a web app. The web app will subscribe for the r/g/b values and the intensity and then visualize the values in the app. But is it also good practice to set data via MQTT? Meaning the web app will then publish to the topic /deviceID/set/r/255(or something like this) and only the IoT device subscribes to the topic /deviceID/set/#. If this is not common practice what are the options? Do we have to implement multiple protocols for one IoT device?...
Solution:
MQTT is a very good option for that purpose. As long as the data isn't very large it will handle it

I need help on secure communication.

Hello all, I need help on secure communication. If any of you happen to know which library for mqtt-s with root ca, client certificate and client key? Have to use esp32 and w5500, not wifi.
Solution:
@wafa_ath Make use of OpenSSL to create your server certificate,the certificate will be signed by CA. Then..try as well to configure the MQTT broker to use the server certificate and private key. Check out on these points, l believe they will really be of help to you....

Simple IP based intercom device voice communication protocol

I like to know , which voice communication protocol helps me to setup and make voice communication between IP based intercom device. Things to be considered - zero configuration -automatically stream audio -con call option...
Solution:
The other thing to look at would be gstreamer - you could use that to encode the audio and then send it over the network to the receiver.

use MAX485 TTL to RS485 Converter Module with esp32 to get convert value of rs485 output to serial

need help related to using - use MAX485 TTL to RS485 Converter Module with esp32 to get convert value of rs485 output to serial and print it on serial port
Solution:
I guess you'll find the details about addressing scheme or the format of the data packets, including how to address specific devices (slaves) on the bus. So that you can write code for esp32 to read flow meter data.

how do I use the requests library to send data to an HTTP endpoint in MicroPython on an ESP8266?

Hello guys, how do I use the requests library to send data to an HTTP endpoint in MicroPython on an ESP8266? My code fails to connect. Here's the code: ```python import requests ...
Solution:
Shouldn't that be
response = request.post('http://example.com/data', data={'sensor': 'value'})
response = request.post('http://example.com/data', data={'sensor': 'value'})
i.e. data instead of json...

working on a project which involes esp32 works as an Audio source, connects to Bluetooth

Hello everyone, I'm working on a project which involes esp32 works as an Audio source, connects to Bluetooth (bt) headset/speaker. The requirement is that, esp32 first scans and pairs to bt headset then transfers the audio source....

Is the Built-In TCP/IP Stack in GPRS Modules Redundant for Embedded Linux, or Are There Benefits?

Good day everyone, I'm exploring GPRS modules for embedded Linux. Many vendors offer modules with built-in TCP/IP stacks. Since embedded Linux usually has its own TCP/IP stack and uses PPP for cellular connections, is this embedded modem stack redundant, or are there use cases where it's beneficial? @Middleware & OS
Solution:
It's mainly redundant. It's done for MCUs

connect and control a smart LED strip device running on NodeMCU (ESP8266) with Google Cloud IoT

How can I connect and control a smart LED strip device running on NodeMCU (ESP8266) with Google Cloud IoT Core using MQTT to get a faster response in data transmission ? @Middleware & OS...
Solution:
There is this Leon guy on YouTube , check this http://www.youtube.com/watch?v=RR0QmSZyiNk...

how can i implement secure communication between IoT devices using Transport Layer Security (TLS)

Good day guys how can i implement secure communication between IoT devices using Transport Layer Security (TLS) in embedded software in C programming language (peer to peer communication between devices), also are there any light weight libraries for implementing this in embedded systems, or key points to consider @Middleware & OS...
Solution:
There are various steps to take here. This is a helpful guide. Secure Communication in Embedded System https://www.linkedin.com/pulse/secure-communication-embedded-system-madhavan-vivekanandan?utm_source=share&utm_medium=member_android&utm_campaign=share_via...

How can I reduce the energy consumption of WiFi and MQTT?

Hello guys , I'm working on developing an IoT temperature and humidity sensor for my cellar. I'm using NodeMCU ESP8266. I'm sending the information to an MQTT broker. The battery (18650 3.7V 19800mAh Li-ion rechargeable lithium batteries) Lasted only 1 day 😂. How can I reduce the energy consumption of WiFi and MQTT? Is there a way to achieve low power consumption? Thank you....
Solution:
WiFi is a massive power drain. You may want to investigate something like LoRa https://en.wikipedia.org/wiki/LoRa which has a long range and lower power consumption.

implementing secure authentication on edge impulse

Hey guys, @IoT Cloud so lately I have been working with Edge Impulse , but I'm having trouble implementing secure authentication with the Edge Impulse SDK in Python. I'm using a Raspberry Pi 4 as the hardware and MQTT as the communication protocol, but l've tried various configurations and I'm still getting authentication errors. Can someone please share their expertise on how to resolve this issue and ensure secure communication with the Edge Impulse platform?
Solution:
Check your credentials, authentication method, MQTT topic, and payload format. Ensure everything matches the expected format. If issues persist, reach out to Edge Impulse's support.

Does anybody worked on Quectel EC200 series SIM module for establishing an MQTT connection to cloud

AT+QMTCONN=0,"deployment-fc9b6ee2","chara","chara" OK +QMTCONN: 0,1...
Solution:
```cpp #include <PubSubClient.h> #include <QuectelMQTT.h> const char* mqtt_server = "your_mqtt_server";...

Implementing real-time communication with MQTT

Hey guys am Implementing a real-time communication between IoT devices using the MQTT protocol. I'm working on the embedded software written in C++. The devices will act as both a publishers and subscribers, I'm using ESP32 platform, What are some key steps or considerations for implementing real-time communication with MQTT in this environment, are there any required C++ libraries for working with MQTT on embedded platforms? @Middleware & OS...
Solution:
1. Choose an MQTT library 2. Set up Wi-Fi connectivity 3. Configure an MQTT broker 4. Implement publisher and subscriber logic 5. Handle connections and disconnections...