May 28 2004, 03:36 PM
Post
#1
|
|
|
Group: Members Posts: 7 Joined: 26-May 04 Member No.: 3,454 |
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 java/comm.jar java/jcl.jar lib/libSerial.so javax.comm.properties Note that my LD_LIBRARY_PATH environmental variable is set to /home/QtPalmtop/lib 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 cd /usr/local/qt-embedded/lib ln -s /home/QtPalmtop/lib/fonts fonts I built this demo http://s88074083.onlinehome.us/Zaurus/java...-SerialDemo.zip ========== evm problems ============ With evm, I still get errors: x=/home/QtPalmtop/java evm -Dcomm.enable -cp .:$x/comm.jar:$x/jcl.jar SerialDemo 14 1082109100 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 |
|
|
|
![]() |
Aug 17 2004, 01:48 PM
Post
#2
|
|
|
Group: Members Posts: 1 Joined: 17-August 04 Member No.: 4,315 |
Seems like a lot of work ...
Our company provides the SerialPort API that runs on Zaurus, and 25+ other platforms. It's a simple matter to install our IPK, and write your application. http://www.serialio.com/products/serialport/serialport.htm This has been on the market for over 8 years (nearly 2 yrs before javax.comm) , and is the most widely used API for Java in the world. We also provide a javax.comm interface if you prefer 'handcuff' your development to that API. http://www.serialio.com/support/jspCommAPI.htm |
|
|
|
jeff_burch How to access serial port from Java on the Zaurus? May 28 2004, 03:36 PM
jeff_burch I just discovered that if I leave off the jcl.jar ... May 28 2004, 04:13 PM
jeff_burch Yahoo, almost there for evm! I changed /etc/passwd... May 28 2004, 04:31 PM
guguseli Hi,
did it works for you now? I haave a similar... May 3 2005, 11:32 PM
Meanie QUOTE(guguseli @ May 4 2005, 05:32 PM)Hi,
... May 4 2005, 03:27 AM
onlinejunkie QUOTE(Meanie @ May 4 2005, 01:27 PM)QUOTE(gug... Aug 1 2005, 03:55 AM
onlinejunkie Yesterday I have tested the javacomm api with (Jeo... Aug 1 2005, 11:41 PM
totaln00b Jeff_Burch,
How did you get on with this? I am ha... Sep 1 2004, 07:02 AM
mazx Gentlement,
In addition to all the steps covered... Sep 11 2005, 01:20 PM![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 11:27 AM |