GithubHelp home page GithubHelp logo

Comments (5)

LucianoZu avatar LucianoZu commented on June 8, 2024

This is an Ardulink 1 issue not an Ardulink 2 issue. Please pay attention on your Ardulink version for future requests.

Null Pointer on SerialConnectionPanel on row 129 is due to port selection lack. You should select a port before call getConnectionPort(). Maybe no ports are available too. This could happen when Link instance cannot find a valid port. Please check if RXTX library is installed and work properly on your system.

I suggest to you to migrate to Ardulink 2 here you can find serial connection based on JSSC that is simpler to use.

from ardulink-2.

tswapnil avatar tswapnil commented on June 8, 2024

Thanks LucianoZu,
I have tried to get the port List from - "List portList = link.getPortList();" but could not find any port . link is the default instance.

I also tried to work with ardulink 2 . I ran the console (I am using ubuntu machine ) (java -jar ardulink-console-2.0.1.jar) . On the widget too , it does not show any port . I have connected adafruit's flora and am able to see the port on arduino as well . I have also tried to manually assign the port - "/dev/ttyACM1" - I get a NoSuchPortException.
Could you suggest anything for ardulink2 or ardulink 1 that helps me connect to the serial port.
Thanks

from ardulink-2.

LucianoZu avatar LucianoZu commented on June 8, 2024

Ok,
the problem is RXTX that cannot detect ports called /dev/ttyACM[x] on Linux systems. Have you tried with Ardulink 2 console and JSSC (not RXTX) serial link?

However you should solve the problem with a linux symlink. I had the same problem with my Raspberry. Check it here:
http://www.ardulink.org/how-to-install-arduino-pc-link-on-raspberry-pi/

This is the content you are interested in:
"Unfortunately RXTX does not handle devices like /dev/ttyACM… but Raspberry PI sees Arduino usb connection just like a serial port of this kind. In other words Ardulink can not find the door to establish the connection. To fix the problem, you still need a symbolic link. Type the command:
ln -s /dev/ttyACM[x] /dev/ttyS8[x]
Where x should be a number. Probably zero. For more details see:
http://pblog.ebaker.me.uk/2011/09/processing-usb-ports-devttyacm0.html"

Thanks to you and enjoy using Ardulink.

from ardulink-2.

tswapnil avatar tswapnil commented on June 8, 2024

Thanks . That was really helpful. But another error keeps on coming now -

Experimental: JNI_OnLoad called.
Stable Library

Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Jun 06, 2017 2:14:54 AM org.zu.ardulink.ConnectionContactImpl writeLog
INFO: found the following ports:
Jun 06, 2017 2:14:54 AM org.zu.ardulink.ConnectionContactImpl writeLog
INFO: /dev/ttyS85
Jun 06, 2017 2:14:54 AM org.zu.ardulink.ConnectionContactImpl writeLog
INFO: /dev/ttyS80
PortList Size 2
/dev/ttyS85
/dev/ttyS80

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007f4786d3c462, pid=9388, tid=0x00007f4786c34700

JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)

Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)

Problematic frame:

C [librxtxSerial.so+0x6462] read_byte_array+0x52

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as:

/home/swapnil/Robotics/Server/hs_err_pid9388.log

Jun 06, 2017 2:14:54 AM org.zu.ardulink.ConnectionContactImpl writeLog
INFO: connection on /dev/ttyS80 established
Serial Arduino Connection Established

If you would like to submit a bug report, please visit:

http://bugreport.java.com/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

Aborted (core dumped)

This error comes after I run both ardulink 1 and ardulink 2 . Ardulink 2 finds ports after making symlinks. As soon as I click on connect button . It shows the above error.
It would help if you could tell how to resolve this . Did you come across this issue ?

Thanks

from ardulink-2.

LucianoZu avatar LucianoZu commented on June 8, 2024

Unfortunately RXTX is not maintained anymore so the problem could be generated by an incompatibility issue between your SO and RXTX library. So you should search on the web for it.

Do you have a similar problem with JSSC on Ardulink 2? I suggest you to migrate to this Link implementation that is easier to use and more stable. Of course it is available in Ardulink 2 only if you prefer Ardulink 1 you should implement a JSSC connection for it.

from ardulink-2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.