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

What framework or tool you guys use to make iot bluetooth ble /wifi apps for andriod and ios

What framework or tool you guys use to make iot bluetooth ble /wifi apps for andriod and ios

How can I implement memory management to optimize and conserve memory usage?

Hello, I am developing an embedded Linux system with limited resources, powered by a 1 GHz ARM Cortex-A7 CPU and 256 MB of RAM. The end application is a real-time data acquisition and processing device for environmental monitoring. How can I implement memory management to optimize and conserve memory usage in this project? I recently came across the jemalloc library but don't fully understand it. Are there alternative solutions or libraries that would be more suitable for this application? I wo...

my FreeRTOS project on STM32F103 exhibits a strange behavior with thread stack sizes

Hey guys my FreeRTOS project on STM32F103 exhibits a strange behavior with thread stack sizes. ManagerTask android RFIDTask function flawlessly with 128 and 256 bytes of stack space, respectively. However, increasing either thread's stack beyond 512 bytes leads to both threads crashing with what appears to be stack corruption , something like "nonsensical values in stack memory". How can I determine the
MAX SAFE TOTAL
MAX SAFE TOTAL
stack size for both threads, considering
configMINIMAL_STACK_SIZE
configMINIMAL_STACK_SIZE
is set to 128 bytes?
configTOTAL_HEAP_SIZE
configTOTAL_HEAP_SIZE
is currently set to 4096 bytes. @Middleware & OS...
attachment 0

C program in embedded Linux reads data from BMP280 temperature sensor and displays it on Adafruit1.2

Hello guys, I am trying to write a C program in embedded Linux that reads data from a BMP280 temperature sensor and displays the temperature on an Adafruit 1.3 OLED display connected via SPI. However, I am facing issues with reading data from the I2C sensor. I Connected the BMP280 sensor to the I2C bus and verified the connection using i2cdetect.Then i Set up the OLED display on the SPI bus and verified the connection. This is my attempt to read from the BMP280: ...

Using atomic operations to update the SPI busy flag in FreeRTOS

Hi everyone @Middleware & OS , I'm working on an embedded project using FreeRTOS . I encountered a scenario where I need to atomically clear an SPI busy flag (spiTxRxByteCount) to ensure thread safety. Disabling interrupts is a common approach, but I was wondering if we could achieve the same outcome using atomic operations provided by FreeRTOS. ``` static void ClearSpiBusyFlag(void) { uint8_t new_state = spiTxRxByteCount & ~0x0100; spiTxRxByteCount = AtomicCompareSet(spiTxRxByteCount, new_state);...

Implementing Task Synchronization in RTOS for Sensor Data Processing and Display

@Middleware & OS Hey guys, am working on a code to implement a task in a complex real-time operating system (RTOS) that deals with two tasks, TaskA and TaskB. TaskA is responsible for receiving data from a sensor, processing it, and sending it to TaskB for further processing. TaskB should receive the data from TaskA, perform some calculations, and display the result on an LCD screen. The tasks need to synchronize their execution, ensuring that TaskA does not send data to TaskB before it is ready, and TaskB does not start processing until it receives the data from TaskA. How can I implement this RTOS mechanism...

error while installing libjasper-dev package on debian 12 (bookworm)

hello, i want to ask when i try to install libjasper-dev package on debian 12 (bookworm) i get this error "-- Could not find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) "...

Is there a way to work with FreeRTOS without hardware?

Guys, is there a way to work with FreeRTOS without hardware, like simulation, for example, on Keil or another platform?"

Is there a tool that can help me automate the process of identifying all QNX-related system calls?

@Middleware & OS , I'm working on migrating a legacy application from QNX Neutrino to an open-source Linux-based RTOS. I've identified the third-party libraries and device drivers requiring porting. However, the challenge is analyzing the codebase for dependencies on specific QNX features like MsgSend, MsgReply, and MsgSendPulse. Since the code was written by another team, I have limited knowledge beyond compilation and execution details. Is there a tool available that can help me automate the process of identifying all QNX-related system calls or functions used in the code?...

turn my regular Ubuntu into real-time by adjusting the kernel with RT Linux patches or installations

So guys I'm attempting to turn my regular Ubuntu into real-time Ubuntu by adjusting the kernel with RT Linux patches or installations. However, I'm struggling to find a straightforward guide. Can anyone provide step-by-step instructions? @Middleware & OS...

which algo is much memory efficient and has better performance in traffic control system RMS or EDF?

So guys I want to get your opinion on this. I want to implement a task scheduling algorithm to control a traffic light system with three colors: red, yellow, and green. We can use two different algorithms: Algorithm 1: Rate Monotonic Scheduling (RMS) ``` #include <stdio.h>...

Why is there a need for a separate task stack in an RTOS?

So guys we know that In an RTOS (Real-Time Operating System), the Task Control Block (TCB) holds information for task management. But doesn't the TCB already include all the data needed for context switching, like register values? Why is there a separate task stack then? @Middleware & OS...

disturbing issue I'm having with LinkedList in C language, when I count how many nodes should be

Hello world!! @Middleware & OS There is this disturbing issue I'm having with LinkedList in C language, when I count how many nodes should be in the list, I always get 1
LL count: 1
LL count: 1
Here is the relevant code to get the last element , to add, and to count ``` void addLL(LL * head)...

Can someone tell me if my machine learning model is overfitting or not ?

I hope you are doing well , I m working on a machine learning project and I just plotted the confusion matrix

how To train a machine learning model using TensorFlow to recognize a specific image in clothin?

hi everyone I'm asking about how To train a machine learning model using TensorFlow to recognize a specific image in clothin...

how to Create the the Task in RTOS and How to set the Deadline to the Task?

1)how to Create the the Task in RTOS and How to set the Deadline to the Task and Priority of the Task 2)how to Write ISR in RTOS and it's step wise Procedure to write it 3) what is mean by Software Timer 3)how to write IPC like Shared memory And Message Queue in the RTOS 4) which APIs are used in Interrupt ...

Memory Operations During Context Switch: Impact on Priority Tasks?

Hi @Middleware & OS I have two tasks, A and B, with A being high priority and B low priority. There are two global variables, condition and mem. Let's say Task B is currently running and performing memory operations. If Task A becomes ready while Task B is running, resulting in a context switch, will the memory operation continue even if the condition is set to false? If so, at which index will it restart? And what will the content of mem be after Task B finishes executing? ``` Task B - Low priority task
if (condition) { ........

Resources for Learning Linux & Embedded C?

I am looking out for the opportunities to start my career in the embedded domains and currently I am learning Linux and Embedded c. Would love to collaborate with people to understand my route

2.8" 240x320 TFT display

Hello! I need help with this TFT display. Have anyone any experience with that? - It has got driver ILI9341 - http://www.lcdwiki.com/2.8inch_SPI_Module_ILI9341_SKU:MSP2807 A display worked perfect, but now, it does not display very well. When I upload an example code from TFT_eSPI library to the ESP32 (respectivelly clock example), then it flashes a few times and shows something like this. I think it is dead. ...
No description