Go Down

Topic: [Solved] Serial monitor, not connected (Read 1 time) previous topic - next topic

ExperimentUno

Nov 10, 2019, 06:47 am Last Edit: Jun 04, 2020, 07:08 pm by ExperimentUno Reason: Update
Hello forum, Sorry if I posted in a wrong section..

I'm using Arduino on Archlinux, the version is 1.8.9. Everything seems fine, but serial monitor doesn't communicate with the Arduino. Currently tried a Nano and Uno.
The same connection writes the sketch without errors. For both the Arduinos

If I use another program I can communicate with the Arduinos, so is it a bug ?

===========================================================
Thank you so much for the clue I found that the latest java version makes things work again

sterretje

If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

ExperimentUno

The baud rate is following the sketch specifics.
I found an error
Code: [Select]
Exception in thread "EventThread /dev/ttyACM0" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
at processing.app.Serial.serialEvent(Serial.java:185)
at jssc.SerialPort$LinuxEventThread.run(SerialPort.java:1299)

This is happening for both Arduinos.

I think there's somthing under the hood.

alonso67231

It is a problem with the java environment. I'm not sure if it is on all linux distros or only Manjaro but I followed these steps to solve it:


On the terminal
$ archlinux-java status

This is the reply:
Available JAva environments:
java-8-openjdk (default)

$ sudo pacman -Syu jre11-openjdk
$ sudo archlinux-java set java-11-openjdk
$ archlinux-java status

This is the reply:
Available JAva environments:
java-11-openjdk (default)
java-8-openjdk

Now you restart the Arduino IDE and the problem should be fixed.

valkatr

thanks alot alonso67231
i had similar issue and fixed it with your guidance
*worshiping*

exploreunitedkingdom

Nếu như bạn đang có nhu cầu tìm kiếm các thông tin thể thao, xã hội, giáo dục hấp dẫn và nóng hổi nhất thì còn chần chừ gì mà không truy cập ngay vào explore united kingdom com.
#explore_united_kingdom #thethao #xahoi #giaoduc #tintuctonghop

profeinfogabriel


Go Up