Pi4J / pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)
http://www.pi4j.com
Apache License 2.0
1.31k stars 448 forks source link

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

Closed luixxx closed 3 years ago

luixxx commented 3 years ago

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 commented 3 years ago

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