1,927 questions
3
votes
0
answers
125
views
Communicating with two devices over BLE UART in python using bleak
Unfortunately, I don't have any experience with async programming, so it took me quite some time to get my code running on a Raspberry Pi 5 4GB (with bookworm 2025-05-13 OS) to communicate with one ...
1
vote
0
answers
134
views
STM32H7 UART RX not receiving data while TX works
TX works and prints info in console (I use Putty) but when I send on STM and echo I don't receive anything (and when I write symbols in console they don't appear). Baud rate and other config settings ...
0
votes
0
answers
37
views
Unable to transmit data with USART2 in STM32 NUCLEO-F072RB board
I have been trying to transfer data via the USART2 module through the RX/TX (PA2/PA3) pins.
Even though the configs are the same (9600, 8N1), and also the function returns HAL_OK, I still could not ...
0
votes
1
answer
79
views
Systemview Continuous Recording over UART
Im trying to implement Continuous Recording for systemview over UART on an STM32F103. my application is using FreeRTOS v11. I am able to successfully get data in snapshot mode and view it in ...
0
votes
1
answer
166
views
Embedded Linux Uart to be used as RS485
I have been working on multiple projects of Embedded Linux from last 5 years but there is a small problem when I use UART.
I am using STM32MP13F with MYIR board. The UART is connected to half duplex ...
0
votes
0
answers
78
views
MIFI firmware extraction using fuzzy data
I'm tinkering , and trying to get firmware out of my MIFI to study it, and I'm using UART to send fuzzy data to the MIFI, the the beginning I get:
[14:32:08] RX 0d 0a 4d 4f 44 45 3a 53 50 49 20 4e 41 ...
1
vote
0
answers
60
views
Raspberry Pi + EBYTE E32‑900T30S over UART — AUX=HIGH but no AT response
I’m trying to talk to an EBYTE E32-900T30S LoRa module from a Raspberry Pi 4 using the Pi’s UART and a small Python wrapper. The module’s AUX pin goes HIGH, but I get no response to AT queries (e.g. ...
4
votes
1
answer
134
views
Simple C, TypeScript code is supposed to allow safe UART transmission between host and target, but it doesn’t - Logpoints in embedded programming
I’m following an excellent bare metal tutorial on the Arm Cortex-M4, and I ran into unexpected, somewhat intriguing trouble when trying to properly handle UART interrupts.
Setup:
Host PC: Linux x86_64,...
0
votes
0
answers
53
views
Websocket data limitation in lte modem Simcom A7672s
I am using SIMCOM A7672S module for Websocket communication for OCPP, whilw doing this I need to tx/rx data more than 1500 bytes for few commands but as per documentation of the module the max limit ...
3
votes
1
answer
501
views
How to use HAL_UARTEx_ReceiveToIdle_DMA - STM32
I am using an STM32L476 dev board to buffer data that it is receiving serially through the virtual com port, in circular mode. I have decided to use the DMA of the STM32 and perform an echo with UART2,...
2
votes
1
answer
232
views
Getting garbled data from UART on ESP32 from DSMR5 meter
I'm trying to read out my DSMR5 electricity meter on an ESP-WROOM-32. I've connected the 3.3v from the ESP to the RTS on the meter, and connected the ground and TXD from the meter to the ground and ...
0
votes
1
answer
79
views
Microbit serial uart.read() loses characters
Microbit code like this:
from microbit import *
count = 0
def show_count_on_leds(c, brightness):
display.clear()
for i in range(min(c, 25)):
x = i % 5
y = i // 5
...
-2
votes
1
answer
192
views
What's blocking me from writing / reading from serial port in Ubuntu Linux? [closed]
I've created this Python script to distill the problem down to its most fundamental.
This works on Windows against COM3 (my Arduino programmed to return data via serial).
Why doesn't this work on ...
1
vote
0
answers
99
views
UART Proteus Simulation PIC24FJ128GA010
I want to make a simple UART transmission / reception from the PIC to hyperterminal in proteus. I will start by showing my code, then state the problem:
#include <stdbool.h>
#include <...
0
votes
2
answers
77
views
ESP32 and Fingerprint Sensor – Serial Monitor Shows Nothing
I'm trying to connect a fingerprint sensor (Adafruit type) to my ESP32 (DOIT ESP32 Devkit V1), but the Serial Monitor remains completely blank, even though I'm using Serial.begin(9600) and printing ...
1
vote
2
answers
96
views
UART with PIC32MX150 bare metal
I'm newish to PIC32 chips. I would like to connect my PIC32 to a RS485 MAX3485. That bit is fine, but what I can't manage to do is receive anything through the UART2 interface. Tx is fine it's just Rx....
0
votes
1
answer
104
views
Trying to connect to a UART CO2 sensor to to get readings using a python script but I can't get any responses following command
I'm using this specific CO2 sensor:
https://www.co2meter.com/products/sprintir6s-100-co2-smart-sensor?variant=43960919195846
for a school project and ultimately I'm trying get it connected to a ...
0
votes
0
answers
89
views
NEO M9N UART config failing after attempt to increase GPS measurement rate
I am using an STM32H723 to communicate with a u-blox NEO M9N IC over the UART protocol. I have established communication with the NEO M9N GPS and received accurate positioning data at around 1 Hz. ...
2
votes
2
answers
187
views
UART times out writing data
I have built a custom yocto image for my BBB and I'm having trouble with the UART. I have two uarts mapped ttyS1 and ttyS4. But for some reason I'm having trouble with ttyS1 timing out writing data, ...
0
votes
0
answers
89
views
How to Resolve Overrun Errors and Byte Misalignment in UART Communication
this is my first post so excuse me if i do something wrong.
I try to establish Uart Asynchronous line between two stm32f303k8 .one of them use basic timer to send 8 byte uint buffer every 200 mili-sec ...
2
votes
1
answer
148
views
Problem with jumping to application - STM32 Bootloader
I am making software bootloader for my STM32F407, and i managed to successfully write firmware in flash, starting at address 0x08004000 and I want to jump to it so my board can start executing that ...
0
votes
0
answers
43
views
Problem with sending data over serial port with Python
I am currently working on software bootloader implementation and using Python to handle sending data from my PC and receiving acknowledgement signals. Problem that I stumbled upon is that I am getting ...
0
votes
0
answers
211
views
Difficulty receiving response on RS485 UART with STM32
I am sending RS485 signals from a master (STM32 Nucleo board with a Waveshare - CAN RS485 shield) to a slave (custom PCB). The PCB then responds. I am switching the DE pin in the meantime and I can ...
1
vote
3
answers
143
views
Checking a char buffer from UART - what is the best practice? [closed]
Which of the following is better practice (or please suggest better alternatives) when using a global buffer with DMA with UART on an STM32 embedded application (no RTOS):
Option 1:
When entering the ...
1
vote
1
answer
177
views
I am getting DMA Transfer error interrupt every time I try to send a byte through PC COM Port to STM32F446RE
I am trying register level programming for STM32F446RE Nucleo-64 board. I want to receive data through UART in circular mode using DMA. I am getting DMA Transfer error interrupt every time I try to ...
0
votes
0
answers
34
views
UART read isn’t working without JTAG in msp430
I'm trying to use UART in my MSP-EXP430G2ET dev board that runs on msp430g2553 microcontroller. The UART works fine while debugging with the JTAG but when I close my debug environment and unplug my ...
1
vote
0
answers
86
views
LPC43xx UART configuration using libopencm3
I'm stuck with establishing communication between LPC43xx MCU and ESP32. I have wiring checked (RX to TX and vice versa) ESP32 to ESP32 and everything is OK, but with LPC I feel that missing some ...
0
votes
0
answers
65
views
UART data reception from happymodel ep1 ELRS
The topic of my work is to build a drone controlled by RPI 5 RC, using ELRS - Crossfire. I have a problem reading data on gpio pins 14, 15, tx/rx. I am using a Radiomaster pocket apparatus, it is ...
0
votes
0
answers
65
views
Serial/uart configuration on RPi 4
Quick question
I'm recovering from breakdown on my RPi 4. Old RPi was scrapped and copying all setup on new RPi. Unfortunatelly setap which use to work now does not respond. I have noticed settings of ...
1
vote
1
answer
133
views
Mocking/Stubbing HAL_UART_Receive() for the STM32
How do I mock/stub HAL_UART_Receive(&huart5, &temp, 1, BLUETOOTH_RX_TIMEOUT) for the stm32 using the CMock and unity framework?
1
vote
1
answer
64
views
When data arrives before calling the STM32G4 UART receive function
Data reception is locked if data arrives before the STM32 UART reception function is called.
I simulated this in the code example given below.
I send a data packet and receive an immediate response ...
0
votes
0
answers
51
views
MH-z19b stop working after 999999 millis (NodeMCU v3 ESP8266 12F)
everyone! I'm trying to make a CO2 sencor and it works well, until its runtime exceeds 999999 milliseconds. My wiring is TXD0->RX, RXD0->TX, GND->GND and V USB->Vin pinout on picture. I ...
0
votes
1
answer
256
views
ESP32-H2 supermini Serial Class methods not working PIO or Arduino IDE
So I am running an esp32-H2 Supermini on Platform IO and I need to use some method from Serial. initially, I had a problem with the monitor where Serial.println() was not working but that was fine as ...
0
votes
2
answers
439
views
Why printf("Hello World") example so hard in STM32Cubeide
well I am using Nucleo Board which is F401RE. Its UART2 has already connected Stlink. Since it is connected to UART2, the print code should have easily worked over USB with the computer, but things ...
2
votes
0
answers
223
views
STM32 basic UART bare metal setup issue
I am new here, first post, so thanks in advance for being gentle with me :)
After spending weeks trying to make this work and searching examples/education/forum, i now reach out and hope someone is ...
0
votes
0
answers
62
views
RS485 on Pocket Beagle
I am using pocket beagle with debian 10.3th vserion. I just want to know is there is any dtbo file there to start rs485 in pocket beagle?
Like; BBB have “BB-UART4-RS485-00A0.dtbo”, dtbo for pocket ...
0
votes
1
answer
54
views
xv6 uartinit: set baud rate
I'm confused about how the baud rate 38.4K is calculated in xv6.
Here is the UART documentation.
void
uartinit(void)
{
// disable interrupts.
WriteReg(IER, 0x00);
// special mode to set baud ...
0
votes
0
answers
46
views
Microchip dsPIC33CK256MP506 SPI Custom word size only transmits first 6 bit values
I'm setting up an SPI (on a dsPIC33CK256MP506) to behave as an synchronous UART (only transmitting as a slave).
Since SPI starts to transmit MSB I start with adding a start bit in front, then 8data ...
1
vote
1
answer
145
views
Virtual UART device in linux
I'm trying to implement a virtual UART using socat command for send and receive a string that is encrypted using XOR cipher on sending and decrypted while receiving using C program.
#include <stdio....
1
vote
0
answers
49
views
How to check Serial Write is complete in Raspberry Pi Python
Hi In my Project my raspberry pi act as a server and whenever the data came from the tcp client it is writing the same data in Serial Uart but when doing write operation in Serial Uart some character ...
0
votes
1
answer
86
views
Why does AT command don't work with ESP8266-01?
i have a problem with my new ESP01. I tried using AT commands with the baud rate of 115200, but don't receive OK answer. I also tried to flash it and didn't quite succeed as it's just flashing that ...
0
votes
0
answers
96
views
Software UART handled in interrupt mode makes my data corrupted
I'm currently working on getting my barcode scanner to work using soft-uart library by liyanboy74 on STM32 NUCLEOF446RE.
First of all when falling edge on my GPIO pin is detected, GPIO_EXTI_Callback() ...
0
votes
0
answers
452
views
How to resolve CMakeLists.txt error in visual studio (ninja build error)
I am working on a project with an ESP32 WROOM32 and trying to use two UARTS, we can get the first one to work and output data, but the second one not so much. I am currently trying to compile my code ...
1
vote
0
answers
80
views
STM32L073 Retargeting printf() Issue
Below code, I aim to use printf() by UART protocol on STM32L073V8T microcontroller. PD5 pin is used for USART2_TX function to transmit data on UART. When I open serial monitor, I see no data.
#include ...
2
votes
1
answer
143
views
Read lines from UART using fgets and select
I'm trying to use fgets in esp-idf to read a whole line from UART.
The basic reference code is the select example.
So far, here my code:
#define DLP_RFID2_BUF_SIZE 256
static char buffer[...
0
votes
0
answers
53
views
Writing kernel layer on UART driver
I want to take leverage the existing kernel API/module to create packet layer abstraction for user space application to transfer "packets" via UART interface.
So, the intention is a kernel ...
1
vote
1
answer
147
views
Using the DY-HV20T module with rp pico in UART
I'm trying to make this little MP3 player (dy-HV20T) work.
The module works in autonomous mode, but impossible to communicate with it in UART.
Here is the test code:
from machine import UART, Pin
from ...
1
vote
1
answer
317
views
Can't correctly print to serial UART using AVR-c on ATmega328P Arduino Uno
I'm trying to program an ATmega328P Arduino Uno "bare metal" to print to serial over the USB connection to my computer, however I only see replacement characters (�) being printed, both when ...
0
votes
1
answer
116
views
Is DateTime.Now inconsistent over time?
My Application logs Telegrams via UART from a Bus. For each Telegram I add an Timestamp with DateTime.Now at reception. Now I have the phenomena, that sometimes the next telegrams timestamp is up to ...
0
votes
1
answer
68
views
Convert 0 to 255 to single Char
I am trying to convert values from 0 to 255 to a single char.
I am using chr. But this is somehow converting a number like 255 to a two char string.
I add up those values to a string which is then ...