Problems with connecting Garmin Forerunner 305

Hi All,

I was using Windows and there everything works perfect with the Garmin forerunner.
I changed to Opensuse 11.3 but what i do i can’t get the Garmin Forerunner to sync with the application.>:(

I installed the application Training Center in Virtualbox and Wine and that works but when I plug in my USB cable it can’t detect the right device. Windows in Virtualbox does see the right device but because Opensuse is not detecting it right it will not work.

I also did install the garmin tools but no change.

Does anyone have any solutions I can try?

Hi
Is the garmin module running on the host OS?


lsmod |grep garmin


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.27-0.2-default
up 7 days 11:02, 5 users, load average: 0.05, 0.19, 0.24
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26

Hi
OK, I’ve checked the 0.9 version with our Forerunner 305 here and it’s all working fine, dumps the data etc.

I see it’s also been updated to 0.10 (Just a library name change), but took the liberty to clean up the rpm and submit the updates to the Application:Geo repository;
https://build.opensuse.org/request/show/63027

Now, there is pytrainer? pytrainer | Download pytrainer software for free at SourceForge.net which doesn’t look like it’s been packaged for openSUSE, so I’m in the process of creating the package and once it’s working will submit to the Application:Geo repository for inclusion. Do you think this package would work for you as well?

Hi
Here is python-pytrainer for you to try if you interested;
software.opensuse.org: Search Results
Use the 1-click method to install as there are some requirements for the package, BUT make sure you uncheck the box ‘stay subscribed’ to my repository. You should always keep to the minimum (oos, non-oss, update and packman essentials), besides I won’t update that often.

Thanks Malcom,

I checked it and no the garmin module is not running.
When i do this /sbin/modprobe garmintools
I get this error.
WARNING: All config files need .conf: /etc/modprobe.d/garmintools, it will be ignored in a future release.
FATAL: Module garmintools not found.

Somehow the package is not completee. Tried the 0.9 and the 0.10 package from 1 click and others.
Any clue how to solve this?

I checked out pytrainer and it looks perfect.

Greetings, Gert-Jan

Hi
If you install garmintools and python-pytrainer and use the garmintools plugin I have it all working fine here.

So from the command line does it see the device at all? If you connect via USB and check the output from the command dmesg, you should see something like;


[975635.920024] usb 2-5: new full speed USB device using ohci_hcd and address 10
[975636.123745] usb 2-5: New USB device found, idVendor=091e, idProduct=0003
[975636.123748] usb 2-5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[975636.123859] usb 2-5: configuration #1 chosen from 1 choice

Now garmintools is not a module… :wink:

Try running the command;


garmin_get_info

This command will provide info about your garmin, if you don’t see any output from the above two commands, then I suspect the cable your using.

This is my result: It seems to be working but:
8.265452] garmin_gps 6-3:1.0: Garmin GPS usb/tty converter detected
8.265528] usbcore: registered new interface driver garmin_gps
8.265529] garmin_gps: v0.33:garmin gps driver
531.339705] usbcore: deregistering interface driver garmin_gps
531.340606] garmin_gps ttyUSB0: Garmin GPS usb/tty converter now disconnected from ttyUSB0
531.340718] garmin_gps 6-3:1.0: device disconnected

<garmin_unit id=“c7a49163”>
<garmin_product id=“484” software_version=“2.90”>
<product_description>Forerunner305 Software Version 2.90</product_description>
</garmin_product>
<extended_data_list>
<extended_data>SIRFGPS N/A</extended_data>
</extended_data_list>
<garmin_protocols>
<garmin_physical protocol=“P000”/>
<garmin_link protocol=“L001”/>
<garmin_command protocol=“A010”/>
<garmin_waypoint>
<garmin_waypoint_waypoint protocol=“A100” waypoint=“D110”/>
</garmin_waypoint>
<garmin_route protocol=“A201” header=“D202” waypoint=“D110” link=“D210”/>
<garmin_track protocol=“A302” header=“D311” data=“D304”/>
<garmin_almanac protocol=“A500” almanac=“D501”/>
<garmin_date_time protocol=“A600” date_time=“D600”/>
<garmin_position protocol=“A700” position=“D700”/>
<garmin_pvt protocol=“A800” pvt=“D800”/>
<garmin_lap protocol=“A906” lap=“D1015”/>
<garmin_run protocol=“A1000” run=“D1009”/>
<garmin_workout>
<garmin_workout_workout protocol=“A1002” workout=“D1008”/>
<garmin_workout_occurrence protocol=“A1003” occurrence=“D1003”/>
<garmin_workout_limits protocol=“A1005” limits=“D1005”/>
</garmin_workout>
<garmin_fitness protocol=“A1004” fitness=“D1004”/>
<garmin_course>
<garmin_course_course protocol=“A1006” course=“D1006”/>
<garmin_course_lap protocol=“A1007” lap=“D1007”/>
<garmin_course_point protocol=“A1008” point=“D1012”/>
<garmin_course_limits protocol=“A1009” limits=“D1013”/>
</garmin_course>
</garmin_protocols>
</garmin_unit>

When I start pytrainer I see this in de messages: kernel: 2630.617177] pytrainer[10878]: segfault at 0 ip (null) sp 00007fff5d3915e8 error 14 in python2.6[400000+1000]

I’m Using the 64 bit version of OpenSuse 11.3

I also tried to install it myself but got the same error.

Hi
You need to unload the garmin_gps module. There should be a blacklist entry to disable this.

Can you re-install the garmintools from Application:Geo repository as this package has the file that does this.

Hi Malcom,

I tried everything the blacklist and other stuff, but no still luck
But when i reboot i see the message garmintools needs configuration file.

I see you use the I586 version of OpenSuse can that be my problem because I use the x86_64 version?

Hi
Nope, I’m using 64bit system here. What version of garmintools do you
have installed?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.1-1.2-desktop
up 15:53, 3 users, load average: 0.07, 0.08, 0.18
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26

I updated to Opensuse 11.4 this weekend and i have for the garmintools: 0.10-4.1 (0.10-0.pm1.1) and for the ligarmintools4 4.2.0-4.1 (4.2.0-0.pm.1.1) installed and can return to these lower versions

I just plugged in the cradle and i see this in the messages:
Mar 14 18:32:45 Ouders kernel: [43611.570116] usb 6-3: new full speed USB device using ohci_hcd and address 2
Mar 14 18:32:45 Ouders kernel: [43611.712100] usb 6-3: New USB device found, idVendor=091e, idProduct=0003
Mar 14 18:32:45 Ouders kernel: [43611.712109] usb 6-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Mar 14 18:32:45 Ouders mtp-probe: checking bus 6, device 2: “/sys/devices/pci0000:00/0000:00:13.1/usb6/6-3”
Mar 14 18:32:46 Ouders mtp-probe: bus: 6, device: 2 was not an MTP device

After reinstalling Pytrainer for 11.4 i don’t see the previous errors but still it won’t start, maybe because the forerunner is not detected right.

Hi
Can you remove the packman version and use the one from Application:Geo which is the one I updated and am using.
software.opensuse.org: Search Results

Hi Malcolm,

I got the connection between the Garmin forerunner and Opensuse 11.4 working.
With GPSbabel I can communicate with the cradle.

But when i try to start pytrainer, nothing happens.
Nothing is the messages log but he won’t start but also not give any error.

I reinstalled pytrainer again, but no change.
How do i proceed?

In the terminal when i start pytrainer i See this:

running pytrainer from egg installation
data_path: /usr/share/pytrainer/
gettext_path: /usr/share/locale
site_path: /usr/lib/python2.7/site-packages
RuntimeError: module compiled against API version 6 but this version of numpy is 4
Traceback (most recent call last):
File “/usr/bin/pytrainer”, line 96, in <module>
from pytrainer.main import pyTrainer
File “/usr/lib/python2.7/site-packages/pytrainer/main.py”, line 47, in <module>
from gui.windowmain import Main
File “/usr/lib/python2.7/site-packages/pytrainer/gui/windowmain.py”, line 39, in <module>
from pytrainer.recordgraph import RecordGraph
File “/usr/lib/python2.7/site-packages/pytrainer/recordgraph.py”, line 20, in <module>
from gui.drawArea import DrawArea
File “/usr/lib/python2.7/site-packages/pytrainer/gui/drawArea.py”, line 21, in <module>
from matplotlib.figure import Figure
File “/usr/lib64/python2.7/site-packages/matplotlib/figure.py”, line 16, in <module>
import artist
File “/usr/lib64/python2.7/site-packages/matplotlib/artist.py”, line 6, in <module>
from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
File “/usr/lib64/python2.7/site-packages/matplotlib/transforms.py”, line 34, in <module>
from matplotlib._path import affine_transform
ImportError: numpy.core.multiarray failed to import

Hi
Can you install python-numpy from here
http://download.opensuse.org/repositories/home:/malcolmlewis:/Python/openSUSE_11.4/


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.29-0.3-default
up 8:19, 2 users, load average: 0.11, 0.16, 0.09
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26

I installed the software python-numpy but it stay’s the same.

running pytrainer from egg installation
data_path: /usr/share/pytrainer/
gettext_path: /usr/share/locale
site_path: /usr/lib/python2.7/site-packages
RuntimeError: module compiled against API version 6 but this version of numpy is 4
Traceback (most recent call last):
File “/usr/bin/pytrainer”, line 96, in <module>
from pytrainer.main import pyTrainer
File “/usr/lib/python2.7/site-packages/pytrainer/main.py”, line 47, in <module>
from gui.windowmain import Main
File “/usr/lib/python2.7/site-packages/pytrainer/gui/windowmain.py”, line 39, in <module>
from pytrainer.recordgraph import RecordGraph
File “/usr/lib/python2.7/site-packages/pytrainer/recordgraph.py”, line 20, in <module>
from gui.drawArea import DrawArea
File “/usr/lib/python2.7/site-packages/pytrainer/gui/drawArea.py”, line 21, in <module>
from matplotlib.figure import Figure
File “/usr/lib64/python2.7/site-packages/matplotlib/figure.py”, line 16, in <module>
import artist
File “/usr/lib64/python2.7/site-packages/matplotlib/artist.py”, line 6, in <module>
from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
File “/usr/lib64/python2.7/site-packages/matplotlib/transforms.py”, line 34, in <module>
from matplotlib._path import affine_transform
ImportError: numpy.core.multiarray failed to import

Hi
I installed on this system, 32bit though and it started fine…


 pytrainer 
running pytrainer from egg installation
data_path: /usr/share/pytrainer/
gettext_path: /usr/share/locale
site_path: /usr/lib/python2.7/site-packages
Using xulrunner dir: /usr/lib/xulrunner-2.0b12

Can you check the following are installed and versions the same;


python-lxml|2.2.8-9.1
python-tz|2010h-3.1
python-dateutil|1.5-4.1
python-configobj|4.7.2-5.1
gpsbabel|1.4.2-3.1
python-gtkmozembed|2.25.3-35.2.mjl
python-fpconst|0.7.3-2.1.mjl
mozilla-js192|1.9.2.15-0.3.1
mozilla-xulrunner192|1.9.2.15-0.3.1
python-soappy|0.12.0-13.1.mjl
python-matplotlib|1.0.1-21.2.mjl
python-pytrainer|1.8.0-2.1.mjl
mozilla-xulrunner192-gnome|1.9.2.15-0.3.1

I have the following installed:
python-lxml-2.2.8-9.1.x86_64
python-tz-2010h-13.1.noarch
python-dateutil-1.5-4.1.noarch
python-configobj-4.7.2-5.1.noarch
gpsbabel-1.4.2-16.1.x86_64
python-gtkmozembed-2.25.3-19.4.x86_64
python-fpconst-0.7.3-1.1.x86_64
mozilla-js192-1.9.2.15-0.3.1.x86_64
mozilla-xulrunner192-1.9.2.15-1.1.x86_64
python-soappy-0.12.0-11.1.noarch
python-matplotlib-1.0.1.dev6576-1.2.x86_64
python-pytrainer-1.8.0.dev769-1.1.noarch
mozilla-xulrunner192-gnome-1.9.2.15-1.1.x86_64

I wil try to install Opensuse 32 bit on VirtualBo to test if that does work.

Hi
Your not running my version of python-pytrainer, you have this version which is from a different repository “1.8.0.dev769-1.1”

Sorry I used you link and just checked the opensuse version and not the name there.
Changed it now but then this is the result is the same when I start it.

running pytrainer from egg installation
data_path: /usr/share/pytrainer/
gettext_path: /usr/share/locale
site_path: /usr/lib/python2.7/site-packages
RuntimeError: module compiled against API version 6 but this version of numpy is 4
Traceback (most recent call last):
File “/usr/bin/pytrainer”, line 96, in <module>
from pytrainer.main import pyTrainer
File “/usr/lib/python2.7/site-packages/pytrainer/main.py”, line 46, in <module>
from gui.windowmain import Main
File “/usr/lib/python2.7/site-packages/pytrainer/gui/windowmain.py”, line 39, in <module>
from pytrainer.recordgraph import RecordGraph
File “/usr/lib/python2.7/site-packages/pytrainer/recordgraph.py”, line 20, in <module>
from gui.drawArea import DrawArea
File “/usr/lib/python2.7/site-packages/pytrainer/gui/drawArea.py”, line 21, in <module>
from matplotlib.figure import Figure
File “/usr/lib64/python2.7/site-packages/matplotlib/figure.py”, line 16, in <module>
import artist
File “/usr/lib64/python2.7/site-packages/matplotlib/artist.py”, line 6, in <module>
from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
File “/usr/lib64/python2.7/site-packages/matplotlib/transforms.py”, line 34, in <module>
from matplotlib._path import affine_transform
ImportError: numpy.core.multiarray failed to import