| Versions |
 |
|
| Author |
Topic  |
|
mdeweerd
798 Posts |
Posted - 17 nov. 2007 : 00:45:49
|
| You should set the first line of the file to the name of a shell of choice that exists. I have no idea what you have available. A '/bin/sh' should do. You could also try to make the first line blank - it might just work. |
 |
|
|
Sting
United Kingdom
21 Posts |
Posted - 17 nov. 2007 : 00:48:50
|
| UH HA yes i got it running on da MAC from that link u just gave me.. but what port? theres no port scan and do i need to install a driver for the Q1000 first? |
 |
|
|
mdeweerd
798 Posts |
Posted - 17 nov. 2007 : 00:52:40
|
| Yes, you do need to install a driver first (see the doc (readme, ...) or http://bt747.wiki.sourceforge.net/ ). The port name is fixed on Mac - just take any number... |
 |
|
|
Sting
United Kingdom
21 Posts |
Posted - 17 nov. 2007 : 01:19:10
|
i think my luck just ran out.. to be honest im very new to mac and have no idea on how to proceed with the instructions laid out on that driver site. It refers to downlaoding a distribution version and putting the files into loads of different directories?? I got lost just after using the sudo commands.. my mac was warning me not to misuse these commands or else! I cannot afford to mess this machine up. I think I'll just use the online GPS Visualizer for converting my csv's until this app is properly implemted for Mac.
thanks anyway. |
Edited by - Sting on 17 nov. 2007 12:30:33 |
 |
|
|
panyo
17 Posts |
Posted - 17 nov. 2007 : 21:52:30
|
The /bin/bash not found problem is because of the line endings. The Linux and OSX scripts should not have DOS line endings. I have been setting these via Emacs.
Having some java problems, I get a usage note from java, but will report back if I get it working. |
Palm T3, iTrek Z1, Gentoo Linux PowerPC |
 |
|
|
mdeweerd
798 Posts |
Posted - 17 nov. 2007 : 22:15:01
|
| Ok, I just did a dos2unix on them using Cygwin so that it should be OK for a version > 1.12. |
 |
|
|
panyo
17 Posts |
Posted - 18 nov. 2007 : 00:41:25
|
Revised post Since there were no replied as of my getting more info, I did a re-write to clarify what I have found:
The line endings in the script were wrong, and the last line was broken into two lines. Fixing the script and following the Mac directions linked near the bottom of http://bt747.wiki.sourceforge.net/ brought up the GUI.
Problems: The check boxes and pulldowns are not responsive. Maybe there is just long (tens of seconds?) lag in communication? I have tried the height difference box on the log tab, the port pulldown on the con tab and dismissing the info boxes from the info bar hidden under the blue program name bar. Some seem to activate after a second dialogue element is pressed.
To connect I pressed 'Connect Port Nbr' which jumped me to the 'Log' tab.
I don't think I was able to set '5hz fix and log' with the 'easy' button. Pressing it gave no feedback and when I re-launched the application, the 'Ctl' tab showed Time 1.0s and fix 200 ms. However, the FMT tab has UTC, LATITUED, LONGITUDE, HEIGHT, and MILISECOND set, rather than the fuller set in the manual, indicating perhaps the '5Hz fix and log' button did something. Is it true that I need to pare down the information recorded if using the 5Hz mode?
Perhaps of interest: my 'con' screen shows the Z1 I purchased about a week ago from Semsons is: Model: 5202 (757/Z1 v2) Firmware: M-core_1.94
Also perhaps of interest, the 'Othr' 'Flash' tab shows I have 'Times Left: 8' Though, on the 5hz button again, Update Rate is 1Hz (perhaps this, as a default, is not supposed to change?).
-----deleted incorrect speculations and above answered questions regarding my non-hacked iTrek Z1.---------- |
Palm T3, iTrek Z1, Gentoo Linux PowerPC |
Edited by - panyo on 18 nov. 2007 05:53:24 |
 |
|
|
mdeweerd
798 Posts |
Posted - 18 nov. 2007 : 09:38:34
|
I've fixed the script, so it should be ok in the next release.
The low responsiveness of the GUI is strange. The only 'slowness' that can be observed from time to time is the update of the GUI with actual device information. This can happen when switching between tabs a lot in a short time or when the download was interrupted and data is still being sent by the device. Try to see if setting the fix to 1000 ms again makes a change in this slowness (if it does, I hava an idea to improve it).
You do connect correctly to the device as you get model information and stuff like that.
'Set 5Hz fix and log' seems to work partially - the fix was set to 5Hz, but not the log. The value for 'Time (s)' to expect is 0.2 .
The fix or the log conditions should not have an influence on the log format. I would think that there was just a limited set activated. The log format information is sent or set in a single command, so the information is complete.
On my device (iBlue) the flash tab shows 'Times Left:0'. These values are indeed the defaults if you would remove the battery. I have '1Hz' on this tab all the time, while I can set it to 5Hz, as you can since the fix was reported '200 ms'. This means also that there could be some interest in allowing the user to change these settings (not implemented currently as I thought Times Left was always going to be 0).
|
 |
|
|
panyo
17 Posts |
Posted - 18 nov. 2007 : 09:54:08
|
BT747 1.12 does not work with iTrek Z1 on the Mac.
The iTrek Z1 is no longer functioning. Taking the battery out and waiting a bit did not re-set the values or change the behavior. I am got the log off of it and tried to set the values back to defaults.
In KisMac Trunk r239, I saw satellite info that appeared to be fluctuating at 5Hz with spikes that flashed to full scale. After re-setting values by hand, the satellite signal view is now sane.
After moving it across the room, something that could be tracked before, it wanders and then sticks. I do not seem to be able to connect through the USB port anymore.
Hm. Every time I touch things made for non-Free platforms, I lose time and money.... Ok, this time just a few dollars, a few hours, and I have learned a lot about GPS.
 |
Palm T3, iTrek Z1, Gentoo Linux PowerPC |
 |
|
|
panyo
17 Posts |
Posted - 18 nov. 2007 : 10:54:11
|
Ok, left the battery out a little longer and I can at least connect bt747 to USB, so I am glad to keep experimenting until all possible can be learned about this.
quote: Originally posted by mdeweerd
low responsiveness of the GUI is strange. The only 'slowness' that can be observed from time to time is the update of the GUI with actual device information. This can happen when switching between tabs a lot in a short time or when the download was interrupted and data is still being sent by the device. Try to see if setting the fix to 1000 ms again makes a change in this slowness (if it does, I hava an idea to improve it).
The lag in response remains and seems independent of potential data transfers. It is seems like inputs and outputs are out of sync. I cannot click in a box and get a check. But if I click in another box, and then back again, I do get a check. Similarly for text fields. Is there a way to generate debugging output to trace what is being done as I click through a controlled test?
quote:
'Set 5Hz fix and log' seems to work partially - the fix was set to 5Hz, but not the log. The value for 'Time (s)' to expect is 0.2 .
The fix or the log conditions should not have an influence on the log format. I would think that there was just a limited set activated. The log format information is sent or set in a single command, so the information is complete.
I thought about taking screen shots when I first got this working. At least I was thorough enough to report my model number. It would be nice if someone with the same model could report the true defaults.
quote:
On my device (iBlue) the flash tab shows 'Times Left:0'. These values are indeed the defaults if you would remove the battery. I have '1Hz' on this tab all the time, while I can set it to 5Hz, as you can since the fix was reported '200 ms'. This means also that there could be some interest in allowing the user to change these settings (not implemented currently as I thought Times Left was always going to be 0).
The Z1 was brilliant. The last real exercise I did with it was to trace myself getting out of the car, closing the door, walking around the back of the parked car, up the steps, and across my living room to place the gps on the windowsill, not more than three meters from the driver's side door of the car. It worked without a flaw on my Palm T3 .. how much more fun it would be if they open it up to users officially.
By the way:
The USB connection still is not right for positioning. In GpsDrive on my Gentoo machine that does not have Bluetooth, it makes random geometric patterns around the target. The program says I have a connection and shows satelites, so it is not a simulation. It is also different from the random, but sticking, track from Bluetooth on roadnav on the Mac, which in turn is not the track I was able to outline my floorplan with when it was working.
|
Palm T3, iTrek Z1, Gentoo Linux PowerPC |
Edited by - panyo on 18 nov. 2007 11:02:57 |
 |
|
|
mdeweerd
798 Posts |
Posted - 18 nov. 2007 : 11:17:31
|
Currently, the debug functionality implemented logs part of the transactions with the device. In the pull-down menu you need to go to settings and then click 'Debug'. It is inactive on each start of the program.
Are the menu transactions always slow, even without connecting to your device?
You might want to try another java version and report it. If we are lucky we coiuld match it against the java version of one of the Mac users that does not have your problems.
It seems you have a Mac and a Gentoo machine - does your Gentoo machine have the same behaviour?
I'll not be able to give more feedback after this message today. |
Edited by - mdeweerd on 18 nov. 2007 11:20:16 |
 |
|
|
mdeweerd
798 Posts |
Posted - 18 nov. 2007 : 14:57:00
|
Version 1.13 is online. You can disable the GPS NMEA string decoding that may have some impact on performance. That has to be done @ "Menu/Settings/GPS decode active". After this operation the position on the con tab will no longer appear or no longer change. |
 |
|
|
panyo
17 Posts |
Posted - 18 nov. 2007 : 20:29:51
|
Mdeweerd, to be sure, your project is really great and I feel very positive about it. Closed platforms (E.g. the cat and mouse games involving Java and Microsoft, the fact that we can't just run Linux on the Palm and be done with it, etc.) have costs to society besides the dollar price. Effort going into the success of your project contributes to recovering some of these potential benefits for society and is surely a worthy effort if my experience proves not to be user error. To keep things in perspective, even buying 4 of these is less expensive than getting a single all in one unit. Your program and like efforts by others add tremendous fun and value to this unit, including the learning from apparently failed experiments like mine.
For reference, here are my Java versions: MacBook OS 10.4.11 java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112) Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
PowerPC 450Mhz G4 Cube Gentoo linux-2.6.22-gentoo-r5 java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxp32devifx-20070806 (SR5a)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux ppc-32 j9vmxp3223-20070426 (JIT enabled) J9VM - 20070420_12448_bHdSMR JIT - 20070419_1806_r8 GC - 200704_19) JCL - 20070725
I will report on these and possibly the new 1.5.0a IBM JRE for Gentoo in a few hours.
|
Palm T3, iTrek Z1, Gentoo Linux PowerPC |
 |
|
|
mdeweerd
798 Posts |
Posted - 18 nov. 2007 : 21:54:23
|
On windows, java has a profiling option built in, but when activating it, the application is really slow.
Anyway, I profiled the application using eclipse (under Java 1.5) and when the GPS NMEA string decoding is active, 75% of the cpu goes to this activity. Deactivating it may therefore help improve performance on your machine. |
 |
|
|
panyo
17 Posts |
Posted - 18 nov. 2007 : 22:09:47
|
quote: Originally posted by mdeweerd
Currently, the debug functionality implemented logs part of the transactions with the device. In the pull-down menu you need to go to settings and then click 'Debug'. It is inactive on each start of the program.
Where are those logs stored?
quote:
Are the menu transactions always slow, even without connecting to your device? .... It seems you have a Mac and a Gentoo machine - does your Gentoo machine have the same behaviour?
On Gentoo, I need to compile a PowerPC version of librxtxSerial.so to test connecting but the interface comes up, no problem. My test button was 'hght - geiod diff.' In Linux, no problem. In OSX, with no device connected, behavior was the same: I had to click and double click many times both on and off the button before I could get it to toggle.
Reverting to an older Java on the Mac will be troublesome. I will see what I can do about making a PowerPC version of the rxtx library.
Also on the script: the broken line is fixed, but the DOS line ending problem persists. The Linux script is fine. Running the mac script with corrected line endings from the a shell works, but clicking does not. The last has something to do with how scripts know where they were invoked from on the mac. If someone else does not get this, I can find how it was handled in a few other Mac apps I have worked on.
Finally, here is a crude script for installing the Mac components:
-------------------------------------- #!/bin/bash mkdir /Applications/gps cp -r rxtx-2.1-7-bins-r2/Mac_OS_X /Applications/gps/rxtx cp rxtx-2.1-7-bins-r2/RXTXcomm.jar /Applications/gps/rxtx cp -r webstart /Applications/gps/ cp dist/BT747_rxtx.jar bt747_MacosX.command /Applications/gps/
|
Palm T3, iTrek Z1, Gentoo Linux PowerPC |
 |
|
Topic  |
|
|
|
| This page was generated in 1,88 seconds. |
 |
|