Questions tagged [uart]

a Universal Asynchronous Receiver/Transmitter, better known as serial port

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Sending an image from one Raspberry Pi 3B to another using Rx/Tx

I'm working on a project where I need to transmit a picture from one Pi to another using serial communication .. it is not possible to send it via the network .. it is required in the project to send ...
0
votes
2answers
41 views

Reading serial data from thermal camera MLX90640/GY-MCU90640 with Raspberry Pi 4 returns garbage characters

I am trying to read data from an MLX90640 thermal camera using the GY-MCU90640 board based on this tutorial. VIN is connected to 5V (4) GND is connected to GND (6) RX is connected to TX/GPIO14 (8) TX ...
1
vote
0answers
24 views

Uart Communication pi to pi

I first connected two raspberry pi, one is Model 4B(transmitter) and another Model 3 B+(receiver) via Uart. Done all uart enable steps (sudo raspi-config>Interfacing Options>Serial>Serial Interface is ...
1
vote
0answers
24 views

USB ports for 4G modules disappears after resetting the 4G module

I am using the EC25 quectel LTE module with Raspberry Pi 3 Model B. I can access the internet using serial pins of raspberry pi i.e. UART Tx and Rx. I can find ttyUSB[0-5] in ls \dev. I am sending AT ...
0
votes
1answer
39 views

Serial port on RPi 3 gets incorrect data using mini-UART

I have a sensor which every 1 second spits out a 32-character serial stream at 9600 baud. I hooked it up to the mini-UART pins on the GPIO connector. What I saw was bad data. After staring at the ...
2
votes
0answers
49 views

Mini-UART on RPi 3 and earlier loses synchronization if parity bit used

I have a sensor which every 1 second spits out a 32-character serial stream at 9600 baud. I hooked it up to the mini-UART pins on the GPIO connector. What I saw was bad data. After staring at the ...
0
votes
0answers
44 views

Getting garbage characters on RPi3 UART console, logs on HDMI are perfect

I have searched a lot on internet and tried all suggested solutions like criss-cross connection, checking loose connections, changing baud_rates and using GND connection for UART, but nothing seems to ...
0
votes
0answers
42 views

Can we implement a protocol other than spi on Raspberry Pi?

Pi supports SPI, I2C and UART by default. Can we implement any other protocol like MDIO into it? If yes, how do we do it?
0
votes
0answers
29 views

SIM800C GSM Module with USB to TTL Serial CH340 Module

I'm planning to use this instead of connecting the pins of the GSM module to the pins of the RPi3B. Since the voltage for the TxD and RxD pins of the SIM800C is 5V and the TxD and RxD pins of the ...
0
votes
1answer
66 views

Connecting a USB Device by GND, VCC, RX, and TX

I have a few basic devices that utilize a mini USB port. Rather than plugging them into a USB hub, is it possible to connect them and have them recognized by a Raspberry Pi through the four GND, VCC, ...
1
vote
1answer
60 views

Connecting Raspberry Pi to 5V UHF RFID reader over TTY via level shifter

I want to keep track of UHF RFID stickers. I'm hoping to do this using a Raspberry Pi zero attached to an UHF RFID reader. I acquired this reader: https://www.aliexpress.com/item/32848525319.html ...
1
vote
0answers
31 views

Could not read all bytes from /dev/ttyS0

I try to send some data to a module which connected via UART /dev/ttyS0, I send a standard command to module and module send me back a 13 bytes acknowledgment, but the first 5 bytes of ack not ...
-1
votes
1answer
68 views

Raspberry UART ports (GPIO14 & 15) show only “\xff”

I am trying to use UART port to receive a signal from Wiegand, but I am only receiving \xff when baud rate = 9600 b'\xff' b'\xff' b'\xff' b'\xff' b'\xff' b'\xff' b'\xff' b'\xff' When changing the ...
2
votes
0answers
36 views

How can I reconfigure the UART on the fly?

I have a Pi Zero with Raspbian which I'd like to use as a logger device with WiFi (it's not a W, I'm using an external WiFi stick). I need the UART to communicate with a microcontroller but sometimes ...
1
vote
2answers
36 views

Rpi zero w serial code python

So i set up my rpi zero w to comunicate at 11500 serial with an arduino... the arduino sends over serial lines such as "~1 11443". My idea is that the ~ character tells the pi when to look for data, ...
2
votes
1answer
150 views

Raspberry Pi 3 B+ (Buster) can't control Dynamixel AX-12A with Raspberry Pi 3 B+ (Buster) with half duplex communication

I have a project to make mobile robot with Dynamixel AX-12A as the wheel, so i changes the AX-12A to Wheel Mode with CM-530 and it works well. I follow the guide from http://www.oppedijk.com/robotics/...
0
votes
1answer
201 views

How to use serial and bluetooth at the same time

I'm working on a drone project using a mobile phone do send pitch/roll/throttle and yaw to a Rpi 4 2GB over bluetooth. This is no problem. But, then I want to send these values to the ...
1
vote
1answer
278 views

How can Rpi4B python UART talk to XY PWM Signal Generators?

Currently I am trying to automate a coil winding machine using stepper motors. I wrote a Python code to send frequencies to the stepper motors. But for some reason, the frequencies produced by ...
2
votes
1answer
966 views

SIM800 GSM Module To Raspberry Pi UART Serial Communication Problem

I am new to Raspberry Pi Zero and I want to connect it with a GSM module for GPRS connectivity. I bought the SIM800A GSM module but its LED is not even blinking one single time. I am able to turn on ...
3
votes
2answers
4k views

Where are the uarts on the raspberry pi 4?

The raspberry pi 4 has at least two uarts (as shown here), I know where I can connect to one of them. Pins 8, 10 and 12 have a uart as an option. Source: This site describes accessing uart1, where ...
0
votes
1answer
1k views

Configuration UART on pi 4

I am trying to configure the UART on the Pi 4. I have entered enable_uart=1 into /boot/config.txt and I have sudo systemctl disable serial-getty@ttyS0.service and removed console=serial0,115200 ...
0
votes
2answers
1k views

using GPIO pins as TX/RX pins

I'm working on a project that needs multiple TX/RX pins, but the Raspberry Pi that I have only has 1 of these pins. Can I use the GPIO pins as TX/RX pins? Or is there an adapter available somewhere? ...
0
votes
0answers
14 views

Can't read from serial0 using PySerial when python script starts at boot [duplicate]

I have a Python script that uses Pyserial, connects to '/dev/serial0' and reads from it in loop. The script works fine when starting it manually after the RPi is up. However, when I added the script'...
0
votes
1answer
49 views

Running multiple programs that use the same UART bus

Let's say we're writing two programs that uses both UART bus. The program A uses UART at 9600bps baud rate, and the program B uses UART at 115200bps baud rate. Can both of them operate concurrently ...
0
votes
0answers
53 views

Arduino Mega to Raspberry pi 3 Uart communication stops after a short while

I have been trying to setup a data stream from Arduino to rpi using an USB to Uart converter. I am using 4 startbytes and then reading all 36 bytes of data at once. Baudrate, parity and stopbits are ...
0
votes
0answers
66 views

Unable to open serial port GPIO pins

I'm trying to connect a barcode reader on the UART of the GPIO pins of the Raspberry Pi 3B+. I've installed minicom to read the serialport and have allready added the user pi to the groups tty and ...
1
vote
1answer
468 views

Mini UART Bluetooth PAN on Pi Zero W

I followed these instructions to enable a Bluetooth PAN on my Raspberry Pi Zero W. It mostly works fine, but it occupies a serial port. I need UART (mounted at /dev/ttyAMA0) for serial communications, ...
10
votes
1answer
2k views

Pi 4 I/O interface options… and where to find them

The BCM2711's hardware documentation lists multiple I/O interface options. Among others these are: up to 6 × I2C, up to 6 × UART (muxed with I2C), up to 6 × SPI (only five exposed on Raspberry Pi ...
0
votes
0answers
258 views

Interfacing SIM800L with PPP [LCP Terminated by Peer]

I am using SIM800L, and managed to interface it with RPi3. After successful configuration on /etc/ppp/peers/rnet, my file looks like this connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T ...
2
votes
1answer
131 views

How to connect 3V3 UART logic level to the 5 V RS232 C logic level?

How to connect the 3.3 V Raspberry Pi UART logic level to the 5 volt RS232 C logic level?
1
vote
1answer
1k views

Simple command line to write and read data from UART (serial) loopback

I want to connect the TX and RX pins together and from the command line echo some text into /dev/ttyAMA0 and tail the result (from somewhere). I ultimately want to communicate with an Arduino but ...
1
vote
1answer
30 views

Connecting Raspberry Pi to SFM3520-OP fingerprint module

I want to connect an SFM3520-OP fingerprint module with the RS232C serial port to the Raspberry Pi UART but I am doubtful about their logic level. Should I use a Max2323 or does it not need it?
2
votes
0answers
98 views

SPI0 and UART0 interference caused by SPI interrupt

I have a raspberry CM3 running a custom Linux version created by buildroot (kernel: 4.19.44-v7). The CM3 is configured to be part of a measurement system that is used on a quad-bike (so a lot of ...
2
votes
1answer
2k views

How to enable CTS/RTS (Hardware Flow Control) for MAIN UART (PL011) on Raspberry Pi 3 B+ module?

I am working on Raspberry Pi 3 B+ module with raspbian stretch lite os. I Wants to configure UART interface on Raspberry Pi 3. I have referred the following link & I am able to test UART ...
1
vote
1answer
350 views

use GPIO and/or UART to slow initiate K-line (ISO9141-2) communication with Audi ECU

Related to this question I'm learning to use the Pi GPIO and Python serial to communicate through an IC (L9637D) to interrogate PIDs for alarms etc. I can't get past the slow initiation sequence! ...
1
vote
1answer
2k views

Obtaining GPS & Internet together with Waveshare GSM/GPRS/GNSS HAT module

I'm using Stretch installed Raspberry Pi 3 B and Waveshare GSM/GPRS/GNSS HAT to obtain GPS real-time location and internet. What I have done : Used USB-UART interface and connected jumper Using ...
2
votes
1answer
436 views

Enable mini UART on CM3

I wan't to enable the mini UART on a CM3 for Linux console access in emergency cases. The full UART will be used for other purposes. With a newly flashed CM3 I can access the Linux console using ...
2
votes
3answers
484 views

Options to add 20 UART to RPi

So I am undergoing a project where I will need to add 20 UART (RX/TX) to a single raspberry Pi 3. Each device runs at 9600 After looking at the pi, I found it only has 1 UART on it. What would be ...
1
vote
1answer
207 views

Serial commands over Ethernet RPi 3b

I am trying to send LinBus protocol serial commands over the ethernet port of my Raspberry pi to a linear actuator connected on the other end via ethernet. Currently, I am using pyserial script to ...
1
vote
1answer
84 views

PIGPIO bit banging UART - SLR to plaintext

I've managed to read UART input by SLRO and SLR commands from pgpiod, however, SLR returns UART bit-banged data in the following format: [number of read bytes] [bytes] http://abyz.me.uk/rpi/pigpio/...
1
vote
1answer
206 views

RPi Zero: Two UART devices at the same time

I need to read UART data from one device, and send different data to the other device, all via raspberry pi zero. It has only one UART TX and one UART RX on GPIO pins, but I heard that it is possible ...
1
vote
2answers
304 views

Error while using wiringSerial

I am new to the Raspberry subject and only figure out some basics. I want to use a Nextion-Display withe a Raspberry pi 3b+ and communicate over the UART pins. For this I found wiringPi and that it ...
2
votes
2answers
2k views

Rpi3 to Arduino Serial UART Communication Tutorial

I'm trying to connect my Arduino to my Raspberry Pi using the GPIO pins. I understand that the Pi uses a 3.3V signal while the Arduino uses a 5V signal so I bought a bi-directional logic level ...
1
vote
0answers
44 views

Do Rpi3 UART devices inherit their device ID from the on-board UART0 controller (GPIO pins 8 & 10)?

I am working on a device prototype which reads load cell data to an Arduino which sends the load cell data via (hardware, not USB) Serial to the Rpi3 running Win10 IoT. The communication link ...
1
vote
2answers
930 views

5V-3.3V Sensors Confusion

Most of the sensors available in the market requires 3.3V-5V. The GPIO of the Raspberry Pi is 3.3V max only and not 5V tolerant. I have seen tutorials around the internet that they supply the sensors ...
0
votes
0answers
135 views

How to access Tx Rx of UART to TTL converter on RPi 3B?

I accessed the hardware by connecting it to GPIO pins (TX-RX) and wrote a code that that could send instructions to that hardware and receive outputs from it successfully. The first few lines of code ...
1
vote
0answers
34 views

UART 0 PCLK not registered (pi 3)

I'm using a rpi 3 and so to use the UART 0 I had to disconnect the bluetooth from it: enable_uart=1 dtoverlay=pi3-miniuart-bt dtoverlay=midi-uart0 in /boot/config.txt It works great but now at ...
0
votes
2answers
167 views

capture Image with picam then send to another pi via UART

I would like to send an image(JPEG) captured by a pi-zero (in a in-closed container) to an pi3 for storage and analysis. Currently I have UART via gpio set up, but so far I have only been able to send ...
0
votes
1answer
203 views

raspi-config is not working after installing Xenomai on Raspberry Pi 3

I followed the instructions given here to install Xenomai on a Raspberry Pi 3. After installing the kernel (now the RPi uses the kernel-xenomai.img during boot) I couldn't access my network, neither ...
1
vote
0answers
89 views

Toggle UART (enable_uart=1) without rebooting

Which pins can can I manually toggle to enable or disable UART on a Raspberry Pi Zero or 3B+ without rebooting? As I understand, /boot/config.txt is parsed before Linux is started, but I don't mind ...

1
2 3 4 5 6