Serial Baud 5800 is supported? #140
-
Hi, It is not supported?, Thankyou |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey Luis, this seems to be a very "strange" speed and didn't find it documented somewhere immediately... These are the available ones in the library: https://github.com/Pi4J/pi4j-v2/blob/develop/pi4j-core/src/main/java/com/pi4j/io/serial/Baud.java |
Beta Was this translation helpful? Give feedback.
-
I remember looking into this issue several years ago and "non-standard" baud rates are not well supported by the Linux UART driver or the RaspberryPi. Most examples I found were using modified clock rates and C code to pull off a "non-standard" baud rate. To further complicate the issue, it appears that the PiGPIO library only supports the standard baud rates. So, "no" ... at this time the Pi4J project is not able to support non-standard baud rates. Unless both the underlying drivers and PiGPIO add support, it's unlikely that we can do much about it. I suppose if you had a USB to serial device with its own driver that could support the "non-standard" baud rate , then it could be possible with the linux file system serial provider, but we have not implemented that serial provider yet. Thanks, Robert |
Beta Was this translation helpful? Give feedback.
I remember looking into this issue several years ago and "non-standard" baud rates are not well supported by the Linux UART driver or the RaspberryPi. Most examples I found were using modified clock rates and C code to pull off a "non-standard" baud rate.
To further complicate the issue, it appears that the PiGPIO library only supports the standard baud rates.
So, "no" ... at this time the Pi4J project is not able to support non-standard baud rates. Unless both the underlying drivers and PiGPIO add support, it's unlikely that we can do much about it.
I suppose if you had a USB to serial device with its own driver that could support the "non-standard" baud rate , then it could be possible …