If I add USB serial adapters they dont work either. There is apparently more to setting up serial on Slitaz than I thought. Any help would be appreciated. Ideally I would prefer to use the onboard Serial as that was the whole point of it all.
Need help with ADTPro Package installation
(42 posts) (2 voices)-
Posted 2 years ago #
-
Should I open a new thread about this?
Posted 2 years ago # -
I'd say you can continue here, I don't see the problem.
let's go step by step:
the adapter from the kernel is recognized?
dmesg -c
clear
insert the adapter then repeat
dmesg
must create the serial port
at that point if we are there the problem is of java or the program.
this in my case the messages at insertion:
root@slitaz:/home/tux$ dmesg
[ 614.536325] usb 5-1: new full-speed USB device number 2 using uhci_hcd
[ 615.304669] usbcore: registered new interface driver ftdi_sio
[615.304688] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 615.304827] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
[615.304866] usb 5-1: Detected FT232RL
[615.308541] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB0
root@slitaz:/home/tux$Posted 2 years ago # -
I will post those results but that wont work for my builton serial port (this is a laptop)
Posted 2 years ago # -
if it works with usb then it will look for the solution for the notebook serial (see kernel modules). Otherwise it's just a problem of jvm execution.
Or at least i think so...
Posted 2 years ago # -
Sorry for the Quality, its easier for me to post from phone.
I have two USB to serial adapters.. I cant seem to find my 3rd one anywhere.
Attached are the dmesg results from each one:Posted 2 years ago # -
As I imagined, the kernel doesn't recognize it.
You have to look for which driver is needed. You can try with the id (lsusb) product and vendor and search on the net which chip it mounts, or make and model then linux driver (always on the net).Posted 2 years ago # -
The second USB serial device on the second attached image I sent looks like it loaded though, didnt it?
Posted 2 years ago # -
I didn't see that image (the first one) IMG_20220128_162506.jpg
Yes it is recognized (Prolific pl2303 > ttyUSB0) and if ADTPro doesn't show the device it's definitely a java problem.If you use xterm you can copy the text from the terminal...
Posted 2 years ago # -
I found my 3rd usb serial adapter. It looks nothing like the other ones I have but apparently its the same exact chipset as it comes up identical to the other. Both of these work fine on other computers so I know theywork (with adtpro in windows)
Thats funny I am trying to upload another attachment and it is saying the limit size is 100KB. When did that happen, I was able to upload yesterday fine.
Posted 2 years ago # -
Simple consideration: notebook with rs232 > surely from several years ago > so only 32bit > a test with live 32bit
./adtpro.sh
ADTPro Server version 2.1.0Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load the jssc library: Couldn't load library library jssc
at jssc.SerialNativeInterface.<clinit>(SerialNativeInterface.java:90)
at jssc.SerialPortList.<clinit>(SerialPortList.java:43)
at org.adtpro.transport.SerialTransport.getPortNames(Unknown Source)
at org.adtpro.gui.SerialConfig.enumeratePorts(Unknown Source)
at org.adtpro.gui.SerialConfig.<init>(Unknown Source)
at org.adtpro.gui.SerialConfig.allocateSingleton(Unknown Source)
at org.adtpro.gui.SerialConfig.getSingleton(Unknown Source)
at org.adtpro.gui.Gui.<init>(Unknown Source)
at org.adtpro.ADTPro.main(Unknown Source)same problem as yours: no existing serial port...
I repeat which java version you have?
java -versionwhat version of slitaz do you use (as i know for now no official version has full 64bit support)?
And Laptop model?
Posted 2 years ago # -
My apologies for the long overdue response. Busy with work I had to put this problem on the backburner.
My computer is a Dell Latitude CPXJ, I have been using Slitaz on it since early version 3.0.
It Currently is running SLitaZ 4.0. I cannot get a newer version of Slitaz (or any other distro) to install on this system. ITs configured the way I need it for the most part and everything other than this issue is OK. Until recently that is, None of the Web Browsers Work anymore. I get TLS errors on everything now.Back to the problem at hand I am running Java version "1.7.0_45"
Java (TM) SE Runtime Environment (build 24.45-b18)
Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode)Posted 2 years ago # -
I did some testing and it seems to be the lack of the libjssc.so library.
It's not available in the repositories, so either compile it from source, or try this one I compiled.
https://disk.yandex.com/d/JDPG0DDr84iOXw
here the sources
https://github.com/java-native/jsscWith live 4.0 and java jdk-8u202 everything seems to work.
I didn't have your version of java.
Here is the list of commands I gave in the terminalTested on SliTaz live 4.0
wget http://85-207-0-21.static.bluetone.cz/java/1.8.0_202/jdk-8u202-linux-i586.tar.gz
tar -xvf jdk-8u202-linux-i586.tar.gz
download from the link jssc and copy it in /usr/lib/
su
Password:
cp libjssc.so /usr/lib/
mkdir /usr/lib/jvm
cp -ar jdk1.8.0_202 /usr/lib/jvm/
rm -rf jdk1.8.0_202* <<< optional remove source
ln -s /usr/lib/jvm/jdk1.8.0_202/jre/bin/java /usr/bin/java
java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) Server VM (build 25.202-b08, mixed mode)exit
goto on folder ADTPro-2.1.0 and then
./adtpro.sh
executed without errors and shows the serial portsthat's all!
Posted 2 years ago # -
Thank you for the prompt followup gibor. I will try this and post back.
Posted 2 years ago # -
Ok So I downloaded the files and uncompressed the tarball.
However when I type: cp libjssc.so /usr/lib/I get cp: can't stat 'libjssc.so': No such file or directory
I didnt go any further.
Posted 2 years ago #
Reply »
You must log in to post.