Surely someone has done this before. I need to communicate from java to/from the Z's serial port.
========= installation ==============
I've installed http://s88074083.onlinehome.us/Zaurus/java...api_1.0_arm.ipk
This resulted in the following files in /home/QtPalmtop
Note that my LD_LIBRARY_PATH environmental variable is set to
I expect the calling sequence to be
SerialDemo --> comm.jar --> jcl.jar --> libSerial.so --> /dev/ttyS0
I manually performed the following configuration:
1) added user zaurus to the uucp line in /etc/group
2) chmod 777 /dev/ttyS0
3) chmod 777 /var
I got a font error and resolved it by adding this symbolic link:
mkdir -p /usr/local/qt-embedded/lib
ln -s /home/QtPalmtop/lib/fonts fonts
I built this demo
========== evm problems ============
With evm, I still get errors:
evm -Dcomm.enable -cp .:$x/comm.jar:$x/jcl.jar SerialDemo
RXTX WARNING: This library requires the user running applications to be in
group uucp. Please consult the INSTALL documentation. More information is
avaiable under the topic 'How can I use Lock Files with rxtx?'
check_lock_status: No permission to create lock file.
======= cvm problems ==========
With cvm, the application loads but I don't see any com ports:
cvm -Dcomm.enable -Djava.class.path=.:$x/comm.jar:$x/jcl.jar SerialDemo
========== Source code explorations =============
In the SerialDemo.java, search for
Enumeration en = CommPortIdentifier.getPortIdentifiers();
This appears to be returning an empty enumeration.
Note that I can rename the libSerial.so to a dummy name and the application DOES NOT complain. So, I don't think something is configured correctly.
If anyone knows what I'm doing wrong, please let me know!
Thanks in advance, Jeff