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

I'm experiencing inconsistent Wi-Fi connectivity issues with my ESP32-C3-MINI-1-U board

Hi, I'm experiencing inconsistent Wi-Fi connectivity issues with my ESP32-C3-MINI-1-U board, specifically frequent disconnections (every 10-15 minutes) and slow reconnection times, which persist across different networks and environments, including home, office, and outdoor settings. I've tried updating the Wi-Fi firmware and adjusting network settings, but the problem remains. I'm using the Arduino IDE (version 2.0.3) with the WiFi library (version 2.0.0), and power-saving modes are disabled. M...

Optimizing MQTT Stability on ESP32 with Keep-Alive Tuning or Reconnection Strategy

Hey guys in my previous work with MQTT on ESP32, I've faced challenges like frequent disconnections in unstable networks and inconsistent message delivery despite adjusting QoS levels and retry settings. l've tried different keep-alive intervals but still experience data loss during network drops. Should I prioritize fine-tuning the keep-alive interval to maintain a stable connection, or would implementing a more robust reconnection strategy be a better approach?...

Is anyone experienced with Bluetooth HFP (Hands-Free Profile) development?

Hello @MCU, MPU & Firmware , Is anyone experienced with Bluetooth HFP (Hands-Free Profile) development? If so, could you provide recommendations for vendors with a mature and stable Bluetooth stack that supports the HFP profile?...

Debugging Intermittent CAN Bus Communication Failures on AVR128DA48

Hey guys, During integration testing, I’ve noticed intermittent failures in CAN Bus communication between nodes. Some messages are dropped, and errors are logged on the AVR128DA48. I’ve already checked for electrical noise and verified the hardware setup. I also added the following debug code to catch errors: ``` if (can_receive(can_dev, &rx_frame, K_MSEC(100)) == -EIO) { printk("CAN receive error\n"); }...

Optimizing MQTT Communication for High-Frequency Data Transmission with ESP32

Hey guys, while setting up communication between ESP32 and industrial/DIY sensors using MQTT, I noticed performance bottlenecks, message loss, and delayed logging, especially during high-frequency data transmission. How do different MQTT buffering techniques and architectural patterns compare when dealing with high data throughput in systems with network instability? What strategies can ensure message reliability and minimize delays when transmitting large volumes of sensor data from ESP32 to the MQTT broker?...

Troubleshooting CANBUS Flashing on Nucleo-F446 Board Using STM32 Bootloader

I'm attempting to flash code over CANBUS on a Nucleo-F446 board, using the instructions from the following application note: CAN Protocol Used in the STM32 Bootloader. According to the document, in Boot mode, the default CAN baud rate is 125 KBPS, and the CAN2 pins (PB5 and PB13) should be used....

Fixing IndexError in Gesture Recognition with TinyML on ESP32

After resolving the previous issues in my gesture recognition project on the ESP32 with TinyML, I’m now encountering a new problem. The program crashes intermittently with the following error:
IndexError: index 3 is out of bounds for axis 0 with size 3
IndexError: index 3 is out of bounds for axis 0 with size 3
...

Delays in LoRa Message Transmission with AVR128DA48 and SX1276 Module for Real-Time Alerts

Hey guys, I’m working on a real-time alert system using LoRa to notify operators when a sensor picks up a problem, like high temperatures. I’m using the AVR128DA48 and the LoRa SX1276 module. This is the code I’ve written for sending a basic alert: ``` void lora_send_alert() { lora_send(lora_dev, "High temperature detected!", sizeof("High temperature detected!"));...

How do I build an MJPEG server via WebSocket on ESP32 using Mongoose

I want to build a MJPEG server via websocket on esp32 in esp idf The problem is that I am using the mongoose network stack, and I have to know exactly how would the ws header look like After some searching, I found that I need data:image/jpeg;base64, and I did this : ``` mg_ws_printf(c, WEBSOCKET_OP_TEXT, "data:image/jpeg;base64,");...

How do I implement real-time inference on ESP32 and reduce latency for image recognition

Still based on my project image recognition system that can analyze images of tissue samples, identify malignancies, and predict possible symptoms and causes. How do i implement real-time inference and display predictions on the LCD or send data to the cloud? Cause my Inference latency is too high for real-time application, what's the best way to implement this to ensure that Inference time does not remains above acceptable thresholds for real-time use.

How do I achieve a fully functional voice-controlled system with reliable command recognition

How do i achieve a fully functional voice-controlled system with reliable command recognition and LED control? Am done with my project on developing a home automation voice-controlled system using MicroPython and TinyML on an ESP32 microcontroller to recognize specific voice commands ("turn on" and "turn off") for controlling an LED. It runs smoothly as intended with no errors but sometimes doesn't respond to the voice command, how can i achieve consistent voice recognition and LED control with the ESP32, leveraging TinyML and MicroPython....

Troubleshooting WiFi Connection Issues and High Latency with ESP32 CAM on Isolated Network

I'm working with the ESP32 CAM WiFi module and encountering two issues. It experiences high latency on my home network, and more concerning, it fails to obtain an IP address on an isolated network created with a Linksys WRT54 router (firmware v 4.21.1), despite other devices connecting successfully. The ESP32 CAM works fine on my home network using the standard 'CameraWebServer_Test' code. When attempting to connect to the isolated network, the ESP32 CAM (firmware version 1.0.6) produces the following error logs and debug messages: "WiFi.begin() failed!"...
Solution:
I rechecked the settings as you suggested and noticed that the issue is indeed related to the DHCP settings on the Linksys WRT54 router. I found that the DHCP server was not enabled on the router, which was causing the ESP32 CAM to fail obtaining an IP address. However, I also noticed that the router's firmware version is quite old and may not fully support the ESP32 CAM's WiFi capabilities. which is will consider upgrading the router's firmware or using a different router with more modern WiFi standards. Thank you for pointing me in the right direction! 🙏...

Preventing data loss on ESP32 during MQTT disconnects

Greetings every one what you do if you iot device infield get disconnected to wifi and you dont have anyother connectivity available? How you can ensure that data is not lost has anyone did something like this on esp32...

How can I resolve BLE connection issues with ESP32 and Android 11 using ArduinoBLE?

Hi Devs, I'm using an ESP32 as a BLE peripheral device to broadcast sine values to my Android 11 phone via the nRF Connect app, i am using the ArduinoBLE library on the ESP32. However, I'm encountering a connection issue. After disconnecting, I get a 'couldn't connect' error message when trying to reconnect. The only workaround I've found is to forget the device, scan for it again, and then connect. I'm getting the following error message in my serial monitor: `E (23456) BLE: Connection failed,...

Configuring AVR128DA48 for Real-Time CAN Bus Communication

I'm designing the system architecture for a Smart Industrial Monitoring System using the AVR128DA48 microcontroller and the CAN Bus protocol for communication between multiple sensors and a controller. I've chosen temperature, pressure, and vibration sensors. I plan to set up the microcontroller as the main CAN node, which collects data and processes it locally. Could you confirm if this architecture would work, or suggest any changes? Also, how can I configure the AVR128DA48 to handle data transmission in real-time over CAN, ensuring that no data loss occurs when dealing with multiple nodes?...
Solution:
Hi @Dtynin This architecture u picked is well-suited for your application, given the robustness of the CAN Bus protocol in industrial environments. To ensure reliable, real-time data transmission: Assign unique CAN IDs to each sensor, with higher priority for critical sensors like vibration. Optimize the CAN Bus speed according to your system’s bandwidth and distance requirements, typically between 125 kbps and 1 Mbps....

ESP32-Pico Failing to Publish MQTT Messages Due to Payload Size Exceeding Broker's Limit

Hey guys while sending sensor data from an ESP32-Pico to an MQTT broker,And combining multiple sensor readings into a single MQTT message, the payload size exceeds the broker's limit. As a result, the publish operation fails, and the transmission is interrupted, causing data loss. Error Message: E (48532) MQTT_CLIENT: Payload size exceeds the maximum limit The error occurred during testing when adding additional sensor data to the MQTT message, leading to transmission failures shown on the serial monitor. Any idea why the ESP32-Pico fails to publish MQTT messages when the payload size exceeds a certain threshold, leading to transmission interruptions?...

How do I set up UART communication between BeagleBone Black and Esp32?

Hello, I’m working on a light intensity monitoring system using BeagleBone Black and a Esp32. How do I set up UART communication between BeagleBone Black and Esp32? Because am receiving no data from microcontroller, I have checked checked UART pin connections and baud rate settings. ```python...

Why Does the MQTT Connection on ESP32-Pico Frequently Disconnect with Error errno=113?

Hii while developing an loT application with ESP32-Pico to monitor environmental conditions and send data to an MQTT broker. The MQTT connection is set to QoS 1 with a 60-second keep-alive interval. However, the connection frequently drops after a few minutes, requiring the device to reconnect, leading to data transmission delays. Error Message: E (10234) MQTT_CLIENT: Error transport connect failed, errno=113 The error was discovered during continuous data transmission tests, where the ESP32-Pico repeatedly lost its connection to the MQTT broker, displaying the error on the serial monitor....

ESP32 BLE Reconnection Issue with REMOTEXY App

Hi, DevHeads I'm using ESP32. I'm now trying out the BLE code to broadcast sine values to my Android 11 phone using REMOTEXY app. However, it doesn't get connected, a pop up message appears " couldn't connect" whenever I try to reconnect after disconnecting. I have to forget the device, scan for the device, and then connect to it. Are there any workarounds to this? Any advice for it to work correctly? this is the code I'm working with...
Solution:
move BLEDevice::startAdvertising(); inside the onDisconnect callback. Also, ensure pServer->getAdvertising()->start(); is called without BLEDevice::stopAdvertising();. This helps the ESP32 automatically reconnect without having to forget and rescan the device.
attachment 0

Best Tool to Diagnose Intermittent Wi-Fi Drops on ESP32 in Home Automation Project?

Hey guys in my current ESP32-based home automation project, I'm experiencing intermittent Wi-Fi connection drops, particularly when multiple devices are connected simultaneously. The serial monitor logs the error: "E (22345) wifi: Disconnect reason: 202 (AUTH_FAIL)." I've already verified the network credentials and ensured the router is functioning properly. What tool or method should I use to diagnose and resolve this Wi-Fi connectivity issue: Wireshark, an ESP32 Wi-Fi Sniffer, or a Spectrum A...
Solution:
To diagnose intermittent Wi-Fi connection drops on your ESP32 project, use the ESP32 Wi-Fi Sniffer to capture and analyze Wi-Fi traffic, which is ideal for identifying authentication failures or unauthorized disconnects. If interference or congestion is suspected, a Spectrum Analyzer can help pinpoint external sources like other networks or RF devices. Wireshark is best if you need to investigate deeper network-level issues such as TCP/IP errors. Start with the sniffer and use additional tools a...
Next