Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input/output error in nativeavailable when triggering an inventory #17

Open
AliBenBelgacem opened this issue Dec 17, 2019 · 0 comments
Open

Comments

@AliBenBelgacem
Copy link

Hi,

I'm trying to trigger an invontory on my Jetson TX2 Card. (aarch64 with ubuntu)
1- I daownlod all samples.
2- Compile and build all (command line)
3- sh run_sample.sh samples/00_Connection/
=> Work fine: Result:
createSerial(/dev/ttyACM0, 115200)
NurApi v1.9.0.8
Ping response: OK
info.name: NUR-10W
info.serial: K190305243
See you again!.
Log[2]: 1576586513827 Timeout. send packet one more time
disconnectedEvent()
4- sh run_sample.sh samples/01_SimpleInventory/
=> ERROR: createSerial(/dev/ttyACM0, 115200)
java.io.IOException: Input/output error in nativeavailable
at gnu.io.RXTXPort.nativeavailable(Native Method)
at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1598)
at com.nordicid.nurapi.NurApiSerialTransport.readData(NurApiSerialTransport.java:65)
at com.nordicid.nurapi.NurApi.readThread(NurApi.java:2966)
at com.nordicid.nurapi.NurApi.access$1100(NurApi.java:29)
at com.nordicid.nurapi.NurApi$7.run(NurApi.java:2939)
at java.lang.Thread.run(Thread.java:748)

I tried to change the version of Rxtxcomm but it didn't work.
Also i try to user socket connection , the server is running but when i try to test a client i get always error: java socket connection verification failed

Can you help me please to solve the serial communication issue and/or the socket connection?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant