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

Can Anyone Help Me this Question??

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

When do we use polling method and when do we use interrupts based method in RTOS?

Hey guys so when it comes to managing tasks in real-time operating systems (RTOS), I studied from an article that polling is like constantly asking, 'Are we there yet?' and Interrupts, however, are like someone tapping you on the shoulder to say, 'We've arrived!' when driving a car, Lol. But, when do we use polling method and when do we use interrupts based method. Can you think of times when you might want to do both at once? @Middleware & OS @Priyanka Singh @RΓ©mi @Navadeep @Umesh Lokhande @Computing Lead @FW Lead...

wanna ask if this model is good or not , i used fnn feedforward neural network with 2 layers

Hello guys, i wanna ask if this model is good or not , i used fnn feedforward neural network with 2 layers
attachment 0

How can I run independent tasks on separate cores using ESP-IDF on ESP32?

Hey @Middleware & OS coding gurus πŸ‘©β€πŸ’», There is this thing I want to fully understand. I'm working with ESP-IDF on an ESP32 and trying to run two independent tasks simultaneously on separate cores. Look how I did it using
C
C
πŸ‘‡πŸ‘‡: ``` xTaskCreatePinnedToCore(sensorsTask, "Sensor", 5000, 0, 0, &sensorTaskHandler, 0);...

Why does my RTOS MicroC project run smoothly outside tasks but fail within tasks?

Please guys @Middleware & OS , why is my RTOS MicroC project encountering issues where functions execute smoothly outside tasks but fails within tasks. Any pointers on troubleshooting this issue? Observe my cod eπŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡ ``` // Create a semaphore Semaphore sem = Semaphore(1);...

I'm confused about the difference between cooperative and non-preemptive scheduling.

Hi guys !! I'm confused about the difference between cooperative and non-preemptive scheduling. Some sources say they're the same, while others mention that in non-preemptive scheduling, higher priority tasks can interrupt lower priority tasks only at system ticks. Can anyone clarify this? Anyone? @Middleware & OS...

please I have a question

Hi guys please I have this question ``` // ga is a global variable int func_a() {...

I have a problem with atollic trueSTUDIO for stm32

guys I have a problem with atollic trueSTUDIO for stm32

How can i optimize real-time tasks with microthreading in an RTOS?

Has anyone tried using an RTOS with microthreading capabilities for real-time tasks with soft deadlines? I'm curious to see how it compares to traditional fixed-priority scheduling for responsiveness and resource utilization.
Solution:
Yes, using an RTOS with microthreading capabilities for real-time tasks with soft deadlines can offer benefits in responsiveness and resource utilization compared to traditional fixed-priority scheduling.

How can I efficiently process Kafka event streams and store relevant data in memory?

Please I need to know how I can efficiently process Kafka event streams, store relevant data in memory, and deliver it to a REST API without persisting events. I am new to using Apache Kafka. @Middleware & OS...
Solution:
To efficiently process Kafka event streams without saving them, first, understand the data flow using Kafka's consumer groups. Then, use in-memory data structures to store relevant information temporarily. Finally, design a REST API interface to deliver the processed data to callers. Familiarize yourself with Kafka's consumer APIs and explore libraries for in-memory data handling.

Any idea on some amazing solutions or projects I could implement with Zephyr RTOS ?

So i started using Zephyr RTOS , any idea on some amazing solutions or projects I could implement with this ? @Middleware & OS...
Solution:
Found this on Github. Exactly what you were looking for: https://github.com/zephyrproject-rtos/zephyr/wiki/Projects-Based-on-Zephyr

Why are some messages not received in ZeroMQ inter-process communication despite correct config?

So guys I'm using ZeroMQ for inter-process communication in my application. I have two separate processes running on the same machine, each with their own ZeroMQ endpoint. When I try to send messages from one process to the other, I'm noticing that some messages are not being received by the receiving process. Both endpoints are bound to the same protocol, address, and port. I've checked for common issues like incorrect socket types and binding conflicts, but I'm still experiencing the problem i...
Solution:
The issue of messages not being delivered in ZeroMQ could be caused by various factors such as network congestion, incorrect socket configurations, or a mismatch in socket types between the sender and receiver. To troubleshoot, ensure that both endpoints are using compatible socket types (e.g., PUB/SUB, REQ/REP), check for any network issues or firewall settings blocking communication, and verify that both processes are actively listening for incoming messages. Additionally, logging message send...

I'm adding FreeRTOS to my device, but I'm stuck on task priorities.

So guys I'm adding FreeRTOS to my device, but I'm stuck on task priorities. Even though I've checked everything I could check, higher-priority tasks aren't interrupting lower ones , preempting as it's called. Any ideas on what might be causing this?
Solution:
Sounds like you might be dealing with a priority inversion, which can happen when the lower priority tasks continues because of a mutex or semaphore

Segmentation Fault Error in Concurrent Sensor Data Processing Simulation: What's the Issue?

My code is supposed to simulate a system where multiple sensors collect data concurrently and process them. But I get this Segmentation fault (core dumped) error thrown in my console as the code crashes. Please what am I doing wrong ?
Solution:
Seems like your
pthread_create()
pthread_create()
does not receive the correct argument, which should be the address of the SensorData struct, not the address of the value field within the struct. This part of your code : ```...
attachment 0

Should I use QNX or RT-Linux for my real-time data system?

Hey guys , i'm planning a real-time data system: QNX or RT-Linux? Any advice on which is better? Pros and cons appreciated
Solution:
Depends on your application. RT Linux isn’t hard real-time, per se. Ubuntu has a good blog on this: https://ubuntu.com/blog/real-time-linux-vs-rtos-2.

Why does bcrypt password comparison fail in my Node.js + MongoDB login system?

Good morning everyone,i did a login system using node.js + mongodb, and I used bcrypt to encrypt the password. It encrypts fine and is stored in the database. But when I try to log in and compare the entered password with the encrypted password stored in the database, it always returns false, indicating they don't match. I've searched a lot on Stack Overflow and even tried AI, but I couldn't find a solution. If anyone knows the solution or has encountered this before, Note: I've encountered thi...
Solution:
I would suggest you console the value of "hash" , that's coming from the argument you passed through your bcrypt.hash() method. Check if the value of the hash argument is a string of the actual hashed password
attachment 0

Are there any common best practices for avoiding deadlocks in VxWorks?

Please are there any common pitfalls or best practices for avoiding deadlocks in VxWorks?
Solution:
Try these it might help you 1. Acquire resources in the same order to avoid deadlocks. 2. Ensure tasks don't create circular dependencies on resources. 3. Use semaphores/mutexes to manage resource access....

Please does anyone have any idea on scheduling algorithms on RTOS for automotive control systems ?

Good day guys ! Please does anyone have any idea on scheduling algorithms on RTOS for automotive control systems ?
Solution:
In automotive control systems, both Rate Monotonic Scheduling (RMS) and Earliest Deadline First (EDF) are commonly used. RMS is simpler but requires fixed task periods, while EDF is more flexible but can be more complex. The choice depends on the system's needs and characteristics.

I am exploring STM32 microcontroller development with RTOS (micrium). Any tips ?

Please I need help on this guys , I am exploring STM32 microcontroller development with RTOS (micrium). Any tips for calculating thread stack usage efficiently?
Solution:
From Arm's "Determining the stack usage of applications": Determining the required stack sizes for a software project is a crucial part of the development process. The developer aims to create a stable application, while not wasting resources. This application note explains methods that help finding the optimal setting while looking specifically on the stack load caused by interrupt service routines (ISRs) in RTOS applications running on an Arm Cortex-M based processor. Read more in the attached app note, provided by @Chimmuanya Okere....

Any tips for optimizing Round-Robin scheduling in FreeRTOS for real-time applications?

Hey guys, please I need your help here . I'm working on a home automation system using FreeRTOS and experimenting with Round-Robin scheduling for fair task execution. I'm facing issues with critical tasks like sensor data processing and actuator control getting delayed, affecting system responsiveness. I've tried adjusting priorities and time quantum, but the performance isn't as expected. Any tips for optimizing Round-Robin scheduling in FreeRTOS for real-time applications, or suggestions for a...
Solution:
cool. I think you should assume all the tasks to be periodic and come up the CPU utilisation factor. If that is within 70%, the tasks can be scheduled and no deadline will be missed. If u see that the utilisation is more than 70%, then u need a CPU thats faster or u need to optimise the code to be faster.