Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jeff_burch

Pages: [1]
1
Yahoo, almost there for evm! I changed /etc/passwd and set the zaurus user to the group ID for uucp. Now I can see the ports! Got the receive side working. Now onto why I can\'t transmit...

I had added zaurus to the uucp line in /etc/group but it didn\'t appear to have any effect...

Still not sure about cvm...

- Jeff

2
I just discovered that if I leave off the jcl.jar from the path, evm will launch the application like cvm AND NOT give the RXTX lock error. Of course I get a class not found exception:

evm -cp .:$x/comm.jar SerialDemo
Caught java.lang.ClassNotFoundException: gnu/io/RXTXCommDriver while loading driver gnu.io.RXTXCommDriver

This is driven by the javax.comm.properties file. I can rename this file and get evm to run w/o ro without the jcl.jar. Of course nothing useful happens and I still don\'t have any comm ports listed...

The other interesting observation is that if I launch cvm w/o jcl.jar on the class path, cvm DOES NOT complain. So, it appears that cvm is not making the connection from comm.jar --] jcl.jar   (as specified in the javax.comm.properties file).

So, it appears that cvm has larger problems than evm. I bet my evm problems are related to the following RXTX warning:

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.

                please see: How can I use Lock Files with rxtx? in INSTALL

Note that if I rename libSerial.so to some dummy name, I now see this error with evm:

x=/home/QtPalmtop/java
evm -cp .:$x/comm.jar:$x/jcl.jar SerialDemo
Caught java.lang.UnsatisfiedLinkError: libSerial.so search
            /home/QtPalmtop/bin/libSerial.so: cannot open shared object file: No such file or directory
            /home/QtPalmtop/libSerial.so: cannot open shared object file: No such file or directory
            /mnt/card/lib/libSerial.so: cannot open shared object file: No such file or directory
            /home/QtPalmtop/lib/libSerial.so: cannot open shared object file: No such file or directory while loading driver gnu.io.RXTXCommDriver

So, the good new: it looks like evm is getting all the way to loading the shared library.
The bad new: it looks like cvm is having major problems going between comm.jar --] jcl.jar
Also, I still don\'t know how to resolve the lock problem...

Thanks in advance.

- Jeff

3
I\'m having a related problem that is explained here: http://www.zaurususergroup.com/index.php?n...iewtopic&t=4495

If you solved this, could you please let me know?

Thanks in advance, Jeff

4
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

5
I solved my problem! I had removed the zaurus line from /etc/passwd by mistake. Now I can run evm and cvm as user zaurus. Make sure to export LOGNAME=zaurus from your .profile.

- Jeff

6
Well, I\'ve made some progress. I need to set this environmental variable:

   export LOGNAME=zaurus

Note that I had \"unknown\" before. Now I get this error message:

$ evm -version
Qt/Embedded data directory is not owned by user 0
Aborted

$ cvm Example5
No application name set, use cvm instead
Qt/Embedded data directory is not owned by user 0
Aborted

7
I\'ve recently upgraded my 5500 Z\'s rom to 3.10 and installed Jeode evm and Sun\'s cvm.

Whenever I run either program from the embeddedkonsole or a telnet session, I get the following error messages:

$ type evm
evm is hashed (/home/QtPalmtop/bin/evm)

$ evm -version
QSocket::writeBlock: Socket is not open
QSocket::writeBlock: Socket is not open
QSocket::writeBlock: Socket is not open
QSocket::writeBlock: Socket is not open
No Qt/Embedded server appears to be running.
If you want to run this program as a server,
add the \"-qws\" command-line option.

$ type cvm
cvm is /home/QtPalmtop/j2me/bin/cvm

$ cvm -version
java version \"J2ME Personal Profile for Zaurus 1.0\"
J2ME Personal Profile 1.0 (build 1.0_ea4-b18)
J2ME CDC-HI 1.0_v01

$ cvm Example5
No application name set, use cvm instead
QSocket::writeBlock: Socket is not open
QSocket::writeBlock: Socket is not open
QSocket::writeBlock: Socket is not open
QSocket::writeBlock: Socket is not open
No Qt/Embedded server appears to be running.
If you want to run this program as a server,
add the \"-qws\" command-line option.

----------------------------------------------------------------------
On the old rom, I only had this problem when running from a telnet session. I got around it by adding this to my .profile:
export LOGNAME=unknown

This LOGNAME trick doesn\'t appear to work anymore. What should I try next?

I\'m wondering if I need to install or enable the Qt/Embedded server for the new rom? How would I check? Here is a process dump:

$ ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 13:50 ?        00:00:00 init
root         2     1  0 13:50 ?        00:00:00 [keventd]
root         3     1  0 13:50 ?        00:00:00 [swapper]
root         4     1  0 13:50 ?        00:00:00 [swapper]
root         5     1  0 13:50 ?        00:00:00 [swapper]
root         6     1 75 13:50 ?        02:04:13 [kapm-idled]
root         7     0  0 13:50 ?        00:00:00 [ksoftirqd_CPU0]
root         8     0  0 13:50 ?        00:01:02 [kswapd]
root         9     0  0 13:50 ?        00:00:00 [bdflush]
root        10     0  0 13:50 ?        00:00:00 [kupdated]
root        11     1  0 13:50 ?        00:00:00 [swapper]
root        12     1  0 13:50 ?        00:00:07 [mtdblockd]
root        92     1  0 13:50 ?        00:00:00 /sbin/sdmgr
root       128     1  0 13:50 ?        00:00:00 /sbin/cardmgr
root       139     1  0 13:50 ?        00:00:00 /usr/sbin/inetd
bin        149     1  0 13:50 ?        00:00:00 /usr/sbin/rpc.portmap
root       160     1  0 13:50 ?        00:00:00 /home/QtPalmtop/bin/atd /var/spo

root       190     1  0 13:50 ?        00:00:00 /sbin/launch
root       191     1  0 13:50 ?        00:00:08 /sbin/shsync
root       192   190  0 13:50 ?        00:00:00 /bin/sh ./qpe.sh
root       212   192  0 13:50 ?        00:00:39 qpe -owner zaurus.qpe
root       213   212  0 13:50 ?        00:00:00 qeserver zaurus qpe
root       214   213  0 13:50 ?        00:00:03 qeserver zaurus qpe
#500       248   212  0 13:50 ?        00:00:34 launcher -qcop /tmp/qcop-msg-lau

#500       813   212  0 13:53 ?        00:00:07 embeddedkonsole -qcop /tmp/qcop-

#500       814   813  0 13:53 ttya0    00:00:00 -bash
root       815   814  0 13:53 ttya0    00:00:00 sh
root       938     1  0 13:56 ?        00:00:00 /sbin/dhcpcd eth0
root       942   139  0 13:56 ?        00:00:01 telnetd: 192.168.1.102 [cygwin]
root       943   942  0 13:56 ttya1    00:00:01 -bash
root      4134   815  0 16:06 ttya0    00:00:00 bash
root      4221   943  0 16:34 ttya1    00:00:00 ps -ef



Thanks in advance! - Jeff

Pages: [1]