topguy wrote: ↑
Sun Sep 03, 2017 7:56 pm
Any smart implementation of RXTX library for Linux should use the standard Linux methods to talk to serialports and ttys so then it shouldnt matter which hardware you have. USb2serial devices get named /dev/ttyUSB0 and works the same on most linux'es.
Actually what happened in my case when I made java application on Raspberry Pi 2. I had to import RXTX library in my code, and I thought that this will be enough, but I got an error because the librxtxSerial.so was not found while running the application. My application could not communicate with serial until I got the correct librxtxSerial.so that suits Raspberry Pi 2.
I may conclude from your words, that the librxtxSerial.so that worked with RPI2 should work also for RPI3?
please look at this post:
https://blogs.oracle.com/jtc/serial-por ... e-embedded
in the final part they have written:
"The RXTXcomm.jar file can be downloaded here. To spare you the effort, a few pre-built versions of librxtxSerial-2.1-7.so are provided at this location:
librxtxSerial-2.1-7.so for ARMv5 based Plug Computers
librxtxSerial-2.1-7.so for ARMv6l armel based systems (e.g. original Raspberry Pi Debian distro)
librxtxSerial-2.1.7.so for ARMv6l armhf (hard float) systems (e.g. Raspberry Pi Raspbian distro)
librxtxSerial-2.1-7.so for ARMv7l architecture - Many thanks to Daniel Ryan"
so does not this mean, that there is librxtxSerial.so for different versions of ARM? and consequently, as RPI2 core is different from RPI3 core,then there must be librxtxSerial.so that works for RPI3??
I just want to know, which one of above mentioned librxtxSerial.so should I use with RPI3 for correct java RXTX library usage?