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

recreate lora mesh with arduino and understand the working ?

is there any proper blog out there which helps to recreate lora mesh with arduino and understand the working ?
Solution:
I'll see your blog and raise you one: https://github.com/nootropicdesign/lora-mesh Lookingf for more insight into how it works than that?...

Designing an Edge Device with nRF52840 for BLE with 100 ft Range and Smoke Detector Sensor

Hello Everyone! I am going to design an edge device with nRF52840 for BLE protocol with smoke detector sensor. In this case, I am going to get range about 100 ft. so I would like to know if nRF52840 is suitable to my case. furthermore, if someone has schematics reference design with nRF52840, please let me know about that....

Issues with Bluetooth and Sensor Initialization on ESP32 using Zephyr RTOS

@Middleware & OS I'm developing a health monitoring system using an ESP32 microcontroller running Zephyr RTOS. The system uses Bluetooth to transmit data from sensors to a mobile application. I'm using a MAX30100 pulse oximeter and heart-rate sensor connected to the ESP32. My goal is to read the sensor data and send it via Bluetooth. I've written the code to initialize the sensors and set up Bluetooth communication, but I'm encountering errors. Specifically, the Bluetooth connection fails to establish, and I'm not receiving any data on my mobile application. Here are the steps I've tried and the errors encountered. ...
attachment 0

Why is my Dell PowerEdge R740xd server experiencing high CPU usage on minimal load?

I am experiencing this consistently high CPU usage around 30% to 40% on a dell poweredge r740xd server with two intel xeon gold 6248 CPU. The server is running ubuntu server 22.04 LTS and is primarily used for mySQL database hosting. I have noticed this issue for the past week. The high CPU usage persists even when the database load is minimal, and there are no other significant applications running. I've tried restarting the server, updating the OS and packages, and checking for CPU intensive processes using top and htop without success. Lemme attached a top output from a typical idle state for reference....
Solution:
Try install atop (man page at https://linux.die.net/man/1/atop) When it is running, press c to display the processes and how much CPU time they are using....
attachment 0

How can I fix "Network unreachable" error in BACnet temperature sensor setup on Raspberry Pi 4

Hey guys, am creating a building automation system using a Raspberry Pi 4 with Embedded Linux. The system should read data from a BACnet temperature sensor. I have checked the BACnet network configuration and IP address, verified the BACnet device status and settings, ensured the BACnet library is correctly installed and configured. But am getting the error Network unreachable ...
Solution:
Systemctl stop firewalld

How can I fix "BadNodeIdUnknown" error reading OPC UA sensor data on UP Squared board?

Hello dev i am setting up an industrial IoT gateway using an UP Squared board with Embedded Linux. The gateway should read data from an OPC UA temperature sensor, I have confirmed the OPC UA server IP address and endpoint, checked the node ID and namespace index, made sure the OPC UA client library is correctly installed and configured. But i am getting the error Error reading temperature: BadNodeIdUnknown ```python from opcua import Client...

How can I achieve reliable data transfer over LoRa using MicroPython on Pycom GPy?

@Middleware & OS I'm developing a smart agriculture system using a Pycom GPy, which features an ESP32 microcontroller with LTE and LoRa capabilities. The system is running MicroPython, and I'm using a soil moisture sensor to monitor soil conditions. My goal is to read soil moisture data and send it over LoRa to a remote gateway. I've written the following code to initialize the soil moisture sensor and set up LoRa communication, but I'm encountering errors, I'm unable to get valid readings from the soil moisture sensor, and the LoRa transmission does not seem to be working. ValueError: invalid pin for ADC...
Solution:
Hello guys, after a while of debugging and checking through I was able to fix the ValueError: invalid pin for ADC on my code, it turns out I was required to use p15 intead of p13 and for the Not joined yet... error it was due to tge mistake I made in imputing my Appkey which i have corrected now. This is My. Code ```python from machine import Pin, ADC from network import LoRa...

Why isn't my ATmega328P sending DHT11 sensor data to the ESP-01 module via MQTT?

I am working on a temperature and humidity monitoring system using an ESP-01 module (ESP8266) and an 8-bit AVR microcontroller (ATmega328P). I am using the DHT11 sensor to read temperature and humidity values. The ESP-01 is used to send the sensor data to an IoT platform via Wi-Fi using the MQTT protocol. The system is running on the Arduino OS. I have been able to configure the software to communicate with a sensor and transmit data, also set up pins for serial communication, initialized the sensor to read temperature and humidity, and implemented error checking for readings, then built a message with sensor data and tried to send it to the ESP-01 module. But then still encountered this error: The ATmega328P is not successfully sending the read data to the ESP-01 module. If successful, the ATmega328P should be able to read and send the sensor data to the ESP-01 module. ...
Solution:
The ATmega328P and ESP-01 need to communicate at the same baud rate. Change ESPserial.begin(115200); to ESPserial.begin(9600);.

Any advices on optimizing realtime loT applications with Edge Impulse on my Raspberry Pi 4

Hey guys I'm seeking expert advice on optimizing realtime loT applications with Edge Impulse on my Raspberry Pi 4. Specifically, I'm using Edge Impulse library version 2.14.0 to run a machine learning model for environmental monitoring and predictive maintenance. The model performs anomaly detection on accelerometer and gyroscope data from an MPU6050 sensor, processing 100 Hz streams. However, I'm struggling with synchronizing the real-time sensor data with the model's processing, leading to inconsistent performance. Any advice on optimizing data stream handling, such as buffering strategies or timing adjustments. @Middleware & OS...
Solution:
Hi @Daniel kalu One approach to optimize your real-time data stream is to implement a double-buffering technique. This can help ensure that you are continuously collecting data without any gaps while the model is processing the previous batch. You maintain two buffers: one for reading sensor data and one for processing it. While one buffer is being processed, the other buffer collects new data.

Need resources for Learning Embedded Systems and CAN Communication with NXP MPC5775B

Hi devs @Middleware & OS , I'm building an application on an NXP board using the MPC5775B microcontroller. The program receives data over CAN, processes it, and then sends it to a screen for display on a graphical interface. I'm comfortable with basic programming concepts but am new to embedded systems and CAN communication. I'm particularly confused about how to implement the data processing logic for this application like interpreting data format. Could you recommend any books, tutorials, or online resources that would help me understand these concepts better? Additionally, any general advice on developing this project from someone familiar with the MPC5775B or CAN communication would be greatly appreciated....
Solution:
This should give you a basic understanding of CAN Protocol, while read the Datasheet of the MCU. https://kvaser.com/can-protocol-tutorial/...

How can I fix the CONNECTION_REFUSED error in my STM32 Nucleo H743ZI2 MQTT setup?

Hey guys could anyone assist me with setting up MQTT communication on my STM32 Nucleo H743ZI2? I need to establish MQTT communication over TCP/IP with another STM32 device. Currently, I am using the standard MQTT library from LWIP, but I am open to alternatives like the PAHO library or others. I can only achieve a TCP connection but get a CONNECTION_REFUSED error when attempting MQTT. I've verified network configurations and broker details. Any guidance or examples would be greatly appreciated. @Middleware & OS...
Solution:
To resolve the CONNECTION_REFUSED error and establish MQTT communication: - Verify MQTT broker settings - Check network connectivity - Configure MQTT client correctly...

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