Questions tagged [serial]

is the process of sending data one bit at a time, sequentially, over a communication channel or computer bus. Traditionally "serial" relates to a three (or more with hardware handshaking) wire system (TIA-232-F), now using ∓25V Voltages. Technically speaking the specialized SPI (Serial Peripheral Interface) and I2C (Inter-Integrated Circuit) buses are serial communication systems as well - use one of those tags if they would be more appropriate!

Filter by
Sorted by
Tagged with
1
vote
0answers
24 views

How to receive serial data with c# on a raspberry with mono

Hello I want to make a program for the computer and the raspberry, this program must ensure that the raspberry and the computer can communicate via serial. I have already found a code that does this, ...
0
votes
1answer
27 views

Porting Arduino code to Raspberry PI

So I have some simple code for an Arduino device that I am trying to run on a Raspberry Pi, and I'm having some issues. Here is the code: #include <VirtualWire.h> byte message[...
0
votes
0answers
22 views

Looking for USB to USB serial cable

I having a raspberry pi zero w and a normal laptop as host. Instead of using UART, I want to know is it possible to connect to the USB port in raspberry pi zero w as a serial device via USB to USB ...
0
votes
0answers
13 views

SIM900A with Raspberry Pi 3 Weird Error and Behaviour

I am working on integrating Sim900a on Rpi3B. As usual connecting to TX->Rx, Rx->Tx (GPIO14, GPIO15 in Rpi) - following diagram from this link: How do I connect GSM SIM 900A to a Raspberry Pi 3? When ...
0
votes
1answer
27 views

Same code different output between Pi3 and Pi4

I got a simple rfid reader (brand unknown) connected to the serial0 rx port of a Pi4. Uploaden the following code and works perfect. class RFID(): def __init__(self): self.ser = serial....
1
vote
0answers
27 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 ...
0
votes
0answers
13 views

Basic Python interface to use with UHF RFID reader?

I have a Chinese UHF RFID reader that I'm using with a RasPi for a warehouse tracking project and it came with only a Windows SDK. The dense protocol document they provided in very rough English is ...
-2
votes
1answer
47 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 ...
0
votes
0answers
35 views

How to configure the RaspberryPi-B1 RFID reader by Eccel?

I am trying to configure the B1 RFID hat on my raspberry pi since it is a cleaner solution than using a USB RFID reader. However I have ran into some issues. Firstly, the documentation supplied by ...
2
votes
0answers
29 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
votes
0answers
26 views

Cant read RFID card consistently from EM18 + Raspberrypi

I connected EM18 rfid reader to RaspberryPi. Cards get read sometimes and sometimes not. In other words it is not read in a single attempt every time. Though after a successful read output is correct ...
4
votes
3answers
226 views

Serial output in case of no OS

I am using the raspberry pi 4. I have no screen connected to the raspberry pi, I do everything trough ethernet cable. I am currently changing kernels and thus sometimes I cannot boot, since I created ...
1
vote
1answer
58 views

Serial communication over USB port of Pi Zero

I want to send/receive data between PC and Pi-Zero over USB port near PWR port. I followed the instructions here https://www.tal.org/tutorials/raspberry-pi-zero-usb-serial-console But I don't enable ...
1
vote
1answer
77 views

Receiving login shell data via serial port

I'm writing code to send data to and from a raspberry pi (pi zero running raspbian lite) via serial port, using 1 python script on either side. I've set everything up so that I can use port='/dev/...
3
votes
0answers
145 views

Problem sending analog read values over serial

Ok I apologize as I have edited this quite a bit, but I have narrowed down the problem a bit more. For some reason I can't transfer values from my arduino analog pins?? I am trying to send values ...
1
vote
2answers
26 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, ...
0
votes
1answer
52 views

Problem running the serial module with Python

I am trying to use the serial port on the Raspberry but when I run the example below I have the message: TypeError: 'module' object is not callable import time import serial ser = serial.serial( ...
0
votes
2answers
34 views

Enable /dev/ttyAMA0 on Debian (not Raspbian)

I have an RaspberryPI 3+ with Debian installed on it. I'am trying to connect a serial device (Raspbee) via the GPIO pins like this. Under Raspbian this worked by enabling UART in raspi-config after ...
3
votes
1answer
64 views

Vintage terminal as RPi console

I want to connect a vintage 70s era terminal with a Raspberry Pi. The terminal uses a DB-25 connector and features hardware flow control (RTS/CTS/DTR etc). What would be the recommended way to hook it ...
2
votes
1answer
113 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/...
1
vote
2answers
105 views

Using EnOcean PI 868 with raspberry PI4

first of all: I'm new to raspberry I.ve just bought a raspberry PI 4 together with an EnOcean PI 868 module to set up a house automation system. To make it run I've tried the steps described on the ...
0
votes
0answers
61 views

Bluetooth hci0 device suddenly missing on 4B+

After a recent reboot of my 4B+ I noticed that my bluetooth connections had stopped working. I noticed that bluetoothctl reported no device, and further that sudo hciconfig hci0 up indicates Can't get ...
2
votes
2answers
112 views

Rpi Zero and Projector's USB RS232 Serial Cable Interface/Connection Problem

I know there are similar posts on this topic, but I've scoured them all and haven't been able to figure this out. I'm trying to control my projector via a R232 port. I have a USB to R232 cable, ...
0
votes
0answers
104 views

How to solve MPU9250 overflow problems?

I'm now working with mpu9250 for my master thesis, but I'm quite new to hardware device. My goal is to collect the data at the sample rate and postprocess these data via allan deviation. So I just ...
1
vote
1answer
198 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 ...
1
vote
0answers
21 views

How can I view networking interface logs over UART?

I have created a (needlessly complicated) networking setup that I tried to create by following this guide. I have colosally screwed up and now my RPi will disconnect randomly and requires a reboot to ...
2
votes
1answer
649 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 ...
2
votes
1answer
83 views

Need advice for connecting multiple arduinos to raspberry pi

I have a project in hand where I need to connect 5 arduinos as slaves to Raspberry Pi. Load Cells, Reed Switch, Solenoid lock will be connected to each of the arduino. The arduinos need to send the ...
1
vote
0answers
24 views

New to Pi I need to connect a device via serial communication, how do I teach myself?

I've been asked to connect and control a finger-sensing device to a Raspberry PI. There is a protocol to respect called OSDP. It supposes a serial connection on top of RS485. I'm a seasoned C/C++ ...
0
votes
2answers
69 views

txd and rxd pins with same numbers at the end of name

So I was looking at alternate functions of the GPIO pins of the Raspberry Pi 3b+ and found that some GPIO pins do support txd and rxd alternate functions. However some are named txd0/rxd0 and some are ...
0
votes
2answers
486 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? ...
1
vote
1answer
611 views

Rpi3B+ buster USB to Serial (/dev/ttyUSB0) Communication Problem

I'm trying to establish a serial communication between my Raspberry PI 3 B+ - running on Raspbian 10 Buster - and a testing machine I have. The normal behavior of the machine is to send test related ...
0
votes
1answer
65 views

Receiving data with an unwanted character

I'm sending data to my Raspberry Pi 3 from an Arduino Mega via serial communication, but sometimes the Arduino sends a strange character, in most of the time it sends a mirrored question mark. Why ...
2
votes
1answer
76 views

USB serial communication between Raspberry Pi 3 and Roboteq motor controller [closed]

I am new to Raspberry Pi and it's communication. I need to make a project where I want to use a Raspberry pi 3 as a monitoring device for motors and battery system. The Raspberry pi itself ...
1
vote
2answers
110 views

SIM800 UART Serial Corrupted Response Problem

I am adding a SIM800L module to a home burglar alarm system I'm building around a RPi3. I've already encountered, and overcome, the usual power problems, and I can successfully use the module to make ...
0
votes
0answers
43 views

Node-red on Pi: Unable to send/receive to Arduino Leonardo via USB serial

I'm connecting a Arduino Leonardo to Pi4 (P3b+ has the same issue). I wish to send and receive data from it in node-red (using serial nodes from the standard palette). I can see that Arduino is ...
2
votes
0answers
122 views

Hardware controlled RTS on a Pi4 not working accurately

We need to use RS485 to talk to one of our custom tools. We need to use hardware controlled rts/cts. I've read so many articles about this but nobody ever says it works for them with fast timing and ...
0
votes
1answer
179 views

Barcode Scanner using RX & TX (GPIO) PIN

Im having some issues reading from a barcode scanner module.. The scanner works just fine if it is used with a USB adapter, my goal is to use the RX & TX GPIO of my RPi to control it. What I am ...
-1
votes
1answer
119 views

Response to a incoming call using python script

I am trying to implement a system using Raspberry-pi and SIM-800 modules. Now I can see incoming calls from my python script, but it can not parse data. import serial serialport = serial.Serial("/...
0
votes
0answers
24 views

How to change COM port setting on Raspberry Pi using Ubuntu Mate

I would like to ask how to change USB port and COM port setting on Raspberry Pi 3 B+ using ubuntu Mate 18.04? I want to connect my sensor to the raspberry pi, and need the com port number. Any ideas ...
0
votes
0answers
116 views

Linux host can't connect to Raspberry Pi Zero serial gadget console

I followed this guide and enabled a serial console over USB. I can connect and log in from Windows but my Ubuntu laptop can't access the serial console. The Raspberry shows up ad a tty device in /dev/...
0
votes
0answers
74 views

RPI GSM Add-on SIM800 AT commands are not working

I am trying to send sms using RPI Add on v22 module and Raspberry-pi 3+. I have mounted this module on top of Raspberry-pi. When I use minicome using minicom -D /dev/ttyS0 -b 115200 -o I get the ...
1
vote
1answer
55 views

Can't return any values from ttyUSB0

I'm using a SICK S300 scanner connected via Diagnostic cable to my Raspberry Pi, and it shows the connection as /dev/ttyUSB0 however I can't retrieve any data from it whatsoever. Here is a simple ...
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
0answers
39 views

Communicate between two Raspberry Pis using USB-Ethernet cable

I have two raspberry pis I want to communicate between. For convenience, let's say one is always the talker and the other is always the listener. The listener's ethernet port is occupied by another ...
0
votes
0answers
96 views

reading EMG on Rpi3 using Teensy 3.2 on usb serial

We are using MyoWare EMG sensor and reading the RAW EMG pin as well as filtered SIG pin on the board. What it basically does is sends an analog value as a fraction of the input Voltage, which in this ...
0
votes
2answers
62 views

How to enable BlueTooth when TX/RX already being used

We have the TX/RX Gpio already being used on the Raspberry Pi 3B+ . I believe the onboard Bluetooth uses the same ? How can I get bluetooth working when our TX/RX is already being used. Right now I'...
0
votes
0answers
30 views

How to pass through usb serial data

I have two slave USB devices, one microcontroller and one real-time target machine (the latter is interfaced with a USB to RS232 cable). I would like to send serial data from the microcontroller to ...
0
votes
0answers
17 views

Sending a list of commands

I have a list of user created commands that get sent serially with a set wait time in seconds. What is the best way to do this in python and have the ability to hit a button to start, pause and stop ...
1
vote
2answers
1k views

How to read Wiegand serial data? (Rx/Tx)

Ok, I am losing my mind... Why is this so damn difficult? Current situation: - 12V Access control device that is connected like this i.e. Wiegand D0 to Tx and D1 to Rx, with voltage dividers. - ...