Reply
Thread Tools
Posts: 6 | Thanked: 0 times | Joined on Jun 2009
#11
Hi
Good - I just looked into this thread again too - I did see the notification of the update. Hopefully you get some good results.
 
Posts: 6 | Thanked: 7 times | Joined on Apr 2009
#12
Originally Posted by le_top View Post
Hi
Good - I just looked into this thread again too - I did see the notification of the update. Hopefully you get some good results.
At least the command line works! I've used the shell script as stated below to download the data from my Holux M-241!

Code:
sh ./run_j2se_maemo.sh -a --outtype GPX
BT747 Cmd V1.68.25 build trial.trial.20090615000854062 GPL V3 LICENSE
MTK Firmware: Version: B-core_1.20 (01017-00E), ID(Device): 0033 (Holux M-241)
Device reports 1184 bytes used (0% of 2097152).
Device was in STOP on initialisation
>> Getting data from device
*#0%#**********#12%#**********#21%#**********#31%#**********#40%#**********#50%#**********#62%#**********#71%#**********#81%#**********#90%#******
#### DOWNLOAD SUCCESS ####
Time to download data (ms): 17323 ms
Converting to GPX
Input file: BT747_log.bin
Output directory: .
Output basename: GPSDATA
Conversion done
Time to convert data (ms): 437 ms
Experimental:  JNI_OnLoad called.
I'll collect some GPS data today and then repeat the test with more waypoints...

Code:
#!/bin/sh

BTADDR=00:xx:xx:xx:xx:xx

BTdevice=$(dbus-send --system --type=method_call --print-reply \
--dest=com.nokia.btcond /com/nokia/btcond/request \
 com.nokia.btcond.request.rfcomm_bind string:$BTADDR string:SPP 2>&1 )
if [ $? != 0 ]; then
 BTdevice=$(echo ${BTdevice} | cut -d ' ' -f 8-)
else
 BTdevice=$(echo ${BTdevice} | cut -d ' ' -f 7- | tr -d \")
fi

MYROOTPATH=. 
  
RXTXLIBPATH=/usr/share/java
export CLASSPATH=lib/jopt-simple-2.4.1.jar:/lib/jcalendar-1.3.2.jar:lib/swing-layout-1.0.3.jar:lib/swingx.jar:lib/swingx-ws.jar:dist/BT747.jar:dist/BT747_j2se.jar:rxtx-2.1-7-bins-r2/RXTXcomm.jar
 
MEM_HEAP_OPTION=-Xmx192m
java $MEM_HEAP_OPTION -Dgnu.io.rxtx.SerialPorts=${BTdevice} -Dbt747_port=${BTdevice} -Djava.library.path=${RXTXLIBPATH} bt747.j2se_view.BT747Main $* &
But the GUI does not start! Here's the result if I execute the script without any parameters:

Code:
sh ./run_j2se_maemo.sh
Header Chunk. Image width:20 height:34 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Header Chunk. Image width:50 height:50 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Got profile:java.awt.color.ICC_ProfileRGB@1042960
Header Chunk. Image width:50 height:50 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Got profile:java.awt.color.ICC_ProfileRGB@10423c0
Header Chunk. Image width:50 height:50 depth:8 color type:6 compression type:0 filter type:0 interlace:0
Got profile:java.awt.color.ICC_ProfileRGB@1042760
Exception during event dispatch:
java.lang.NullPointerException
   at org.jdesktop.swingx.JXMonthView.setLocale(JXMonthView.java:350)
   at javax.swing.JComponent.<init>(JComponent.java:792)
   at org.jdesktop.swingx.JXMonthView.<init>(JXMonthView.java:311)
   at org.jdesktop.swingx.JXMonthView.<init>(JXMonthView.java:261)
   at org.jdesktop.swingx.JXDatePicker.initMonthView(JXDatePicker.java:328)
   at org.jdesktop.swingx.JXDatePicker.init(JXDatePicker.java:320)
   at org.jdesktop.swingx.JXDatePicker.<init>(JXDatePicker.java:248)
   at org.jdesktop.swingx.JXDatePicker.<init>(JXDatePicker.java:199)
   at bt747.j2se_view.LogOperationsPanel.<init>(Unknown Source)
   at bt747.j2se_view.BT747Main.initAppData(Unknown Source)
   at bt747.j2se_view.BT747Main.<init>(Unknown Source)
   at bt747.j2se_view.BT747Main$32.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:200)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:615)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
   at java.lang.VMThread.run(VMThread.java:120)
Originally Posted by le_top View Post
Regarding the download problems with BT747: did you try to adjust the chunk size, read ahead, .... These parameters influence performance on Maemo.
I'm not a Java expert, can you therefore give me some hints how to adjust all these parameters?
 
Posts: 6 | Thanked: 0 times | Joined on Jun 2009
#13
Excellent!

Chunk size, read ahead and so are not configureable on the command line yet but given the confirmation that the command line works and the platform it runs on I'll do something about it. That is not 'java stuff', but application specific stuff.
You should know that BT747 always downloads in multiples of 64kB which is normally your case since the memory was filled with about 1kB. So you took about 17 seconds to get 64k. That is actually not to bad for bluetoth - I did not get to do better than 2k/s on my Nokia phone using the J2ME version.

Did you have to do anything to install the RXTX binaries on Maemo?

Regarding the GUI. The error is reported in one of the libraries. I can go and guess why and possibly do something about it. The other solution would be to simplify the GUI and use more 'basic' Java library stuff. Of course, if the normal GUI can work, this is surely better.

If I can not do something about it easily, I can catch the error and avoid the program from stopping - parts of the GUI will not work, but at least there is an estimate of how much that is. It may require some back and forth to update the builds.
 
Posts: 6 | Thanked: 0 times | Joined on Jun 2009
#14
I tried guessing what happens and it looks like a lot of changes were made to the code since I last fetched a copy of the swingx library.

I suggest that you get a more recent copy of it. It is somewhat difficult to get, but through some tricks, I got some valid links:
https://swingx.dev.java.net/files/do...swingx-1.0.zip
https://swingx.dev.java.net/files/do..._09_20-bin.zip

The first one corresponds to a milestone version of June 1st and the second one to a build from the state of the code on 20/09/2009.

In the first file, the swingx.jar is in the dist directory, in the second file, the file is in the root directory but has to be renamed to remove the date from the filename.

If things do not work, I suggest to work with the image of the current code and to report errors from there - that way my copy of the code is in line with the line numbers that will be reported for the errors.
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:19.