Serial Test #436
Unanswered
andi-riese
asked this question in
Q&A
Serial Test
#436
Replies: 2 comments 1 reply
-
We are considering to remove serial support from Pi4J, see #308 The jSerialComm library is very well-supported and offers a lot of functionality, it would be a bad decision to try to implement all of this in Pi4J... You can find more info about it at https://fazecast.github.io/jSerialComm/. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Frank,
thans for the fast answer.
A question concerning your book 'Getting started with Java on the Raspberry Pi'
I tried to download the Serial-Example from your book in chapter 12.
It has 16 chapters, but on github are only 11 .
Where can I find 12...16?
Andi
Am 8. Januar 2025 18:53:30 MEZ schrieb Frank Delporte ***@***.***>:
We are considering to remove serial support from Pi4J, see #308
The jSerialComm library is very well-supported and offers a lot of functionality, it would be a bad decision to try to implement all of this in Pi4J... You can find more info about it at https://fazecast.github.io/jSerialComm/.
--
Reply to this email directly or view it on GitHub:
#436 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
Von meinem Wischkastl gesendet
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make a Serial Connection.
I'm using the SerialTest and SerialReader - Example.
I'm using Eclipse and put pi4j- ... .jar files and pi4j-pipio...jar - files on the classpath as libraries.
In the SerialTest, line 16, I wrote instead of
.device(SERIAL_ADDRESS) .device("ttyAMA0") or .device("10000000cc10b08a")
Both doesn't work.
I get the Error:
[main] ERROR com.pi4j.library.pigpio.impl.PiGpioNativeImpl - /sys/module/spidev/parameters/bufsiz (Datei oder Verzeichnis nicht gefunden)
java.io.FileNotFoundException: /sys/module/spidev/parameters/bufsiz (Datei oder Verzeichnis nicht gefunden)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:213)
at java.base/java.io.FileInputStream.(FileInputStream.java:152)
at java.base/java.util.Scanner.(Scanner.java:645)
at com.pi4j.library.pigpio.impl.PiGpioNativeImpl.gpioInitialise(PiGpioNativeImpl.java:113)
at com.pi4j.library.pigpio.PiGpio.initialize(PiGpio.java:159)
at com.pi4j.plugin.pigpio.provider.serial.PiGpioSerialProviderImpl.create(PiGpioSerialProviderImpl.java:71)
at com.pi4j.plugin.pigpio.provider.serial.PiGpioSerialProviderImpl.create(PiGpioSerialProviderImpl.java:42)
at com.pi4j.context.Context.create(Context.java:344)
at com.pi4j.internal.IOCreator.create(IOCreator.java:58)
at com.pi4j.internal.IOCreator.create(IOCreator.java:146)
at serial.SerialTest.main(SerialTest.java:16)
[main] WARN com.pi4j.library.pigpio.impl.PiGpioNativeImpl - PIGPIO ERROR: PI_BAD_SER_DEVICE; bad serial device name
[
After starting I get an infinite loop of:
[SerialReader] WARN com.pi4j.library.pigpio.impl.PiGpioNativeImpl - PIGPIO ERROR: PI_BAD_HANDLE; unknown handle
Can anyone help me?
Thanks in advance.
Andi
Beta Was this translation helpful? Give feedback.
All reactions