Hello everybody,
I've been using the taskit PanelCard for some time now and I'm really happy with the results! Great work! But now I'm willing to read data from a SerialPort and I would like to do this in Java! So as normally I would use the Java Communication API (javax.comm) but this isn't giving me any support for the ARM! It can be used on Linux, but only on x86 systems.
So does anybody has tried this before? And how did you communicate with the serial port? The communication would be a great issue, since linux uses a file to represent the serial port, but how to change the baudrate and stuff like that if I would use the file to read/write to serial port?
I hope someone has done this before and can give me some solutions to work with..
Thanks in advance,
Jan Pannecoeck

Re: Java and SerialPort
You should be able to use rxtx library to change these settings from Java. Unfortunatly, there are no packages for this in our Openembedded repository but I have quickly build these. You can find them here: http://www.armbedded.eu/download/software/rxtx/
Re: Java and SerialPort
Hello,
I found the rxtx library also, but I've been trying to compile it to get an librxtxSerial.so file but didn't manage to get this working! So realy thanks for this response!!
I've just tested your packages and it's working fine!
Re: Java and SerialPort
Hi all,
Sorry I'm responding on this quite old post but since my question is about the RXTX library, I thought I could post is in this post...
So, I'm using the RXTX library on a PanelCard and I'm communicating with a Serialport. This is all working fine, but when I am receiving quite a lot of data from the serialport, the CPU load of my PanelCard is very high (80-90% for the JamVm (so my JavaApplication that's receiving the data from the serial port)).
Is this a known issue? And is there some solution for this problem? Since communication via serialport shouldn't be taking that much CPU...
Any help is welcome...
Thanks in advance,
Jan
Re: Java and SerialPort
Hi!
I am interested in these packages, too. Using openembedded with the taskit3 kernel.
Tried to install them:
$ ipkg install ../librxtx-java_2.1-7r2-r3_all.ipk
Installing librxtx-java (2.1-7r2-r3) to root...
Configuring librxtx-java
So far, so good. But:
java.lang.UnsatisfiedLinkError: Native library `rxtxSerial' not found (as file `librxtxSerial.so') in gnu.classpath.boot.library.path and java.library.path thrown while loading gnu.io.RXTXCommDriver
And: it is right, there is no lib:
root@portux920t:/$ find -name "librxtxSerial.so"
./usr/local/jade/lib/librxtxSerial.so //mine, not in path.
(there is no RXTXcomm.jar either on the file system.)
I tested the other package:
ipkg install librxtx-jni_2.1-7r2-r3_armv5te.ipk
Clearing state_want and state_flag for pkg=librxtx-jni (arch_priority=0 flag=16 want=2)
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package librxtx-jni.
Check the spelling or perhaps run 'ipkg update'
So no success.
I could not compile librxtx myself because there is no javac onBoard. How did you do this?
Please help. I need the commports.
Felix
Re: Java and SerialPort
Portux920T is incompatible with the armv5te packages. I've added armv4t versions for librxtx, please try them.
Re: Java and SerialPort
There is a workaround:
http://cs.gmu.edu/~eclab/projects/robots/flockbots/pmwiki.php?n=Main.Gum...
provides a prog called SerialDaemon which gives a socket to the comm port.
Felix
Re: Java and SerialPort
Hi Sophia here, I am a student of ccie. Obtaining board simple search to find your site. I feel really nice to read especially in this article. It is very informative. All articles on your website are very informative and increase knowledge of many. However, this site plays a very important role in improving our new generation for the good work .... keep it up