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

How do I make use of watchdog timer properly in my RTOS?

So I heard about this watchdog timer thing, with lots of processes, it's kinda confusing. How do I make use of watchdog timer properly in my RTOS? Maybe having each task send a little signal with its own special ID?
Solution:
In an RTOS, use the watchdog timer to monitor tasks' execution. Each task should periodically reset the watchdog timer to prevent it from timing out. If a task fails to reset the timer within its allotted time, it indicates a fault, triggering appropriate error handling. Sending signals with task IDs could aid in identifying which task caused the watchdog timeout, improving debugging.

What happens if there's no idle task in an RTOS?

Good day guys 🙌, Please I really need to know what happens if there's no idle task in an RTOS? Does the system automatically generate one? And besides consuming CPU time, what other roles do idle tasks play?
Solution:
I doubt there is any RTOS that would do that. If there would be no idle task, then the list of runnable tasks would be empty and the scheduler would probably crash. Generally the single most important reason for idle thread's existence is to make the list of runnable tasks "never empty". This simplifies the code of scheduler.

Does anyone know any Project that implement freertos ESP32-S3 idf plaftform ?

Hi all, Does anyone know any Project that implement freertos ESP32-S3 idf plaftform ?

the system time keeps resetting or becomes inaccurate ....

Hey guys, am using RTC module connected via I2C to keep track of time on Raspberry Pi. But the system time keeps resetting or becomes inaccurate ....
attachment 0

Should I Implement RTOS for Task Scheduling in my IoT Device with Adafruit?

Good day guys, I am running a program on Arduino IDE while utilizing Adafruit ESP32 Feather MCU. I have three sensors reading data thrice per run, with a 4G connection to transmit data to the SIM carrier's cloud database (likely on Azure). Additionally, I manage a buzzer and LEDs for device status indication. Do I need RTOS for task scheduling? Any suggestions to enhance or improve the device?
Solution:
The need to use RTOS is based on many factors considering your project requires managing multiple tasks. I'd suggest the use of RTOS in case you're already comfortable with porting RTOS on MCU. Otherwise, you can implement task scheduling without using RTOS to keep things simple

How do I preserve stack space with good code in an RTOS

I'm learning to code in C for a small microcontroller with limited RAM and an RTOS. I try to break my code into short functions, but each function call adds more stack memory usage. Any tips for keeping the code organized and readable without using too much memory?

thinking of setting up a small data acquisition system on a RTOS platform

Hello, Good day to everyone 🙌, so I'm thinking of setting up a small data acquisition system on a RTOS platform, like QNX or RT-Linux. I've heard that C/C++ is commonly used for this, but I'm wondering if it's worth considering Python for everything . Should I go with "all Python" , mix it with "C" for critical parts, or just stick to C? Please I need advice on this 💡🙏

DevHeads Demos: Navigating the Buildroot Menuconfig

If you want a specialized Linux implementation, you want buildroot. It allows devs to trim the fat off the normally-bloated Linux operating system by selecting only the packages they need for a particular application — and thereby reducing footprint and boot time. If you're new to buildroot, one of the first things you'll encounter is the menuconfig, which can be a tricky maze if you're not familiar with it. In this DevHeads Demo, embedded software expert @abhishek awasthi helps us navigate the buildroot menuconfig, select packages, build a custom Linux system, and boot it on a Raspberry Pi — all in just a few minutes. Check out the demo: https://youtu.be/z3CS7xuMwFs...

Converting Real-World Objects to 3D Models

In my exploration of transforming real-world environments into simulations for Extended Reality (XR), I've identified a series of steps that can facilitate the creation of 3D models. Here are the steps that i followed to achive it : Requirements - A mobile device (though a DSLR camera is preferable for higher quality) - A depth camera (optional, but beneficial for capturing depth information)...

how to port lvgl to the plaftformio (esp-idf framework)

Hi everyone, I’m currently encountering a challenge in determining whether I am on the right way porting LVGL to the PlatformIO using the ESP-IDF framework. My goal is to display widgets on a TFT display. Below, I’ve outlined the procedure I followed to port LVGL to the PlatformIO (ESP-IDF framework): Step 1: I will download the lvgl library and lv_port_esp32 from lvgl GitHub as shown at the image:...
No description

Need help making the shift from bare-metal to RTOS

So I'm navigating the transition from a bare-metal setup to utilizing an RTOS for my embedded project. What criteria or challenges should I consider when deciding to make this shift? what benefits have you observed in terms of task management and system performance? Please I need help

The need to move on from Bare-metal to RTOS

Curious to know, how one decides if their project needs to move on from Bare-metal to using an RTOS? then from RTOS to using Embedded Linux? @MCU, MPU & Kits @Software Integration

Attacks in Embedded System.

Although I am not an expert in Embedded Security or Cybersecurity, I'm eager to share some insights I gathered in my study of Embedded Security. As embedded systems increasingly implemented in various sectors and the demand for robust security grows, this post aims to outline common attack that are targeted in any device. Buffer Overflow Attacks:...

Need help with Proxmox

searching some one that know's proxmox and can help me fix a vm that dont want to start exept manual and dont save anything.

Standardised architecture of linux based embedded system.

Hello guys, I wanted to know more about standardised architecture of linux based embedded system. My system is having Digital IOs, Analog IOs, CAN, Modbus over RS485, RTC, Web server etc.......

How to use TFLite on Raspberry Pi Zero 2W

Hi, I want to run a pose estimation TFlite model on raspberry Pi Zero 2W, is there any way to do so. And I also want to know is the hardware resources of Raspberry Pi Zero 2W is sufficient to run smoothly

amazon alexa integration with o auth 2.0

so i have worked on integrating mqtt based devices with custom amazon alexa skill via aws lambda functions. at that time i used i used amazon's o auth server to configure the profile management. now i have moved to local mqtt and i want to have similar environment locally, so for now i was finding a solution for o auth 2.0 integration, it does not have to take the database into consideration, just a want to build a of skeleton which works for the authentication ... basically like hosting and co...

Issues connecting a camera to my Raspberry Pi

Hello, I'm trying to connect a camera to my Raspberry Pi, but I can't get it to be recognized. ```bash nourhd@raspberrypi:~ $ libcamera-hello Preview window unavailable...
No description

Starting Linux Kernel Series with this very basic question

How many of you think that Linux is a full-fledged Operating System ?