Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Parity bit is not sent with 1.4 on serial0 rpi4 #538

Closed
luixxx opened this issue Jun 18, 2021 · 1 comment
Closed

Parity bit is not sent with 1.4 on serial0 rpi4 #538

luixxx opened this issue Jun 18, 2021 · 1 comment

Comments

@luixxx
Copy link

luixxx commented Jun 18, 2021

Hi, could some body helpme?
I use serial0 on old Rpi3 and Pi4j 1.2 and works ok,
but now i´m trying to use the serial0 with Pi4j version 1.4, it doesnt work
I found on oscilloscope that the parity bit is not sent, appears to be always set in "none parity", i change parity in NONE, ODD, EVEN, MARK and SPACE, but the waveform is always the same, "NONE PARITY".
I use the same test aplication on "external Usb to Serial adapter" and it works ok.
My questions are
The serial0 on Rpi4 can manage parity options?
i have a mistake?
there is a bug?

Thankyou
SerialExample2.zip

I attached the source of the test

@luixxx
Copy link
Author

luixxx commented Jun 25, 2021

I have to disable onboard Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15

sudo nano /boot/config.txt
add line
dtoverlay=pi3-disable-bt

@luixxx luixxx closed this as completed Jun 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant