GarminPlugin
GarminPlugin copied to clipboard
Edge305 sync not working on FC18
I have configured garminplugin.xml as per the docs but I cannot sync my Edge 305 to Garmin Connect or Strava.
The device is found in Strava, but just hangs when trying to sync....
Configuration file: <GarminPlugin logfile="/home/brett/garmin.log" level="DEBUG"> <Devices> <Device> <Name>Edge305</Name> <StoragePath>/tmp</StoragePath> <StorageCommand>gpsbabel -i gpx -f %1 -o garmin,snlen=14 -F usb:</StorageCommand> <FitnessDataPath></FitnessDataPath> </Device> </Devices> <Settings> <ForerunnerTools enabled="true" /> <BackupWorkouts enabled="false" path="/home/brett/Dropbox/Workouts/<YEAR>/<MONTH>/" /> </Settings> </GarminPlugin>
DEBUG log: 06.06.13 11:51:00 destroy 06.06.13 11:51:00 destroy - last instance 06.06.13 11:51:00 NPP_New(instance=0x7fb33c71d860,mode=1,argc=4,args=[id=GarminNetscapePlugin,type=application/vnd-garmin.mygarmin,width=0,height=0 06.06.13 11:51:00 Overwriting Garmin Javascript Browser detection! 06.06.13 11:51:00 End Overwriting Garmin Javascript Browser detection! 06.06.13 11:51:00 User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0 06.06.13 11:51:00 URL: http://app.strava.com/upload/garmin_new 06.06.13 11:51:00 getvalue - xembed 06.06.13 11:51:00 getvalue - xembed 06.06.13 11:51:00 getvalue - scriptable object 06.06.13 11:51:00 hasMethod: VersionXml not found 06.06.13 11:51:00 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:00 hasMethod: VersionXml not found 06.06.13 11:51:00 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:00 hasMethod: VersionXml not found 06.06.13 11:51:00 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:00 hasMethod: VersionXml not found 06.06.13 11:51:00 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:00 hasMethod: VersionXml not found 06.06.13 11:51:00 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:00 hasProperty: Unlock not found 06.06.13 11:51:00 hasProperty: Unlock not found 06.06.13 11:51:00 Unlock("http://app.strava.com","4404618db74ce0651b9adc0ac81993ce") 06.06.13 11:51:00 hasMethod: VersionXml not found 06.06.13 11:51:00 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:00 hasMethod: VersionXml not found 06.06.13 11:51:00 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:00 hasMethod: VersionXml not found 06.06.13 11:51:00 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:00 hasMethod: VersionXml not found 06.06.13 11:51:00 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:00 hasProperty: CancelReadFitnessData not found 06.06.13 11:51:00 hasProperty: CancelReadFitnessData not found 06.06.13 11:51:00 CancelReadFitnessData() 06.06.13 11:51:00 Calling cancel read fitness data 06.06.13 11:51:00 Cancel Thread in GPSDevice für Edge305 06.06.13 11:51:00 hasProperty: StartFindDevices not found 06.06.13 11:51:00 hasProperty: StartFindDevices not found 06.06.13 11:51:00 StartFindDevices() 06.06.13 11:51:00 Destructor of GpsDevice Edge305 called 06.06.13 11:51:00 Cancel Thread in GPSDevice für Edge305 06.06.13 11:51:00 Searching for Edge705/Oregon300/... 06.06.13 11:51:00 Not searching on [/] [rootfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/proc] [proc] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys] [sysfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/dev] [devtmpfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/kernel/security] [securityfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/dev/shm] [tmpfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/dev/pts] [devpts] - wrong fstype. 06.06.13 11:51:00 Not searching on [/run] [tmpfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup] [tmpfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup/systemd] [cgroup] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/pstore] [pstore] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup/cpuset] [cgroup] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup/cpu,cpuacct] [cgroup] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup/memory] [cgroup] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup/devices] [cgroup] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup/freezer] [cgroup] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup/net_cls] [cgroup] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup/blkio] [cgroup] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/cgroup/perf_event] [cgroup] - wrong fstype. 06.06.13 11:51:00 Not searching on [/] [ext4] - wrong fstype. 06.06.13 11:51:00 Not searching on [/proc/sys/fs/binfmt_misc] [autofs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/kernel/debug] [debugfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/dev/hugepages] [hugetlbfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/tmp] [tmpfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/dev/mqueue] [mqueue] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/kernel/config] [configfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/boot] [ext4] - wrong fstype. 06.06.13 11:51:00 Not searching on [/home] [ext4] - wrong fstype. 06.06.13 11:51:00 Not searching on [/export] [nfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/public] [nfs] - wrong fstype. 06.06.13 11:51:00 Not searching on [/sys/fs/fuse/connections] [fusectl] - wrong fstype. 06.06.13 11:51:00 Not searching on [/run/user/1000/gvfs] [fuse.gvfsd-fuse] - wrong fstype. 06.06.13 11:51:00 Searching for garmin devices like Edge 305/Forerunner 305... 06.06.13 11:51:00 Creating device Edge305 from configuration. 06.06.13 11:51:00 Unable to load xml file /tmp/garmin/GarminDevice.xml 06.06.13 11:51:00 Device from configuration - no XML found for Edge305 06.06.13 11:51:00 Found Feature: GPX: Path: . Ext: gpx Name: GPSData 06.06.13 11:51:00 Found Edge305 at /tmp 06.06.13 11:51:00 Setting Storage Command for Edge305: gpsbabel -i gpx -f %1 -o garmin,snlen=14 -F usb: 06.06.13 11:51:00 Number of devices found: 1 06.06.13 11:51:00 hasProperty: nodeType not found 06.06.13 11:51:00 hasMethod: nodeType not found 06.06.13 11:51:00 hasProperty: className not found 06.06.13 11:51:00 hasMethod: className not found 06.06.13 11:51:00 hasProperty: attributes not found 06.06.13 11:51:00 hasMethod: attributes not found 06.06.13 11:51:00 hasProperty: nodeName not found 06.06.13 11:51:00 hasMethod: nodeName not found 06.06.13 11:51:00 hasProperty: scopeName not found 06.06.13 11:51:00 hasMethod: scopeName not found 06.06.13 11:51:00 hasProperty: scopeName not found 06.06.13 11:51:00 hasMethod: scopeName not found 06.06.13 11:51:01 hasProperty: FinishFindDevices not found 06.06.13 11:51:01 hasProperty: FinishFindDevices not found 06.06.13 11:51:01 FinishFindDevices() 06.06.13 11:51:01 Finish State of function FinishFindDevices: Working 06.06.13 11:51:01 hasProperty: DevicesXmlString not found 06.06.13 11:51:01 hasProperty: DevicesXmlString not found 06.06.13 11:51:01 DevicesXmlString() 06.06.13 11:51:01 getDeviceXML returns 1 devices 06.06.13 11:51:01 hasProperty: DeviceDescription not found 06.06.13 11:51:01 hasProperty: DeviceDescription not found 06.06.13 11:51:01 DeviceDescription(0) 06.06.13 11:51:01 GarminFilebasedDevice::getDeviceDescription() Done: Edge305 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasProperty: StartReadableFileListing not found 06.06.13 11:51:01 hasProperty: StartReadableFileListing not found 06.06.13 11:51:01 StartReadableFileListing(0,"FileBasedTest","FileBasedTest",false) 06.06.13 11:51:01 Starting thread to read file listing from garmin device Edge305 06.06.13 11:51:01 Thread started 06.06.13 11:51:01 Thread readFileListing started 06.06.13 11:51:01 hasProperty: FinishReadableFileListing not found 06.06.13 11:51:01 No directory found to read 06.06.13 11:51:01 Thread readFileListing finished 06.06.13 11:51:01 Thread finished 06.06.13 11:51:01 hasProperty: FinishReadableFileListing not found 06.06.13 11:51:01 FinishReadableFileListing() 06.06.13 11:51:01 Finish State of function FinishReadableFileListing: Finished 06.06.13 11:51:01 Writing DirectoryListingXml content to file: /tmp/1370512261.DirectoryListingXml 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasProperty: ParentDevice not found 06.06.13 11:51:01 hasProperty: ParentDevice not found 06.06.13 11:51:01 ParentDevice(0) 06.06.13 11:51:01 ParentDevice for device 0 - returning 'device has no parent device' 06.06.13 11:51:01 hasProperty: StartReadFITDirectory not found 06.06.13 11:51:01 hasProperty: StartReadFITDirectory not found 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...] 06.06.13 11:51:01 hasMethod: VersionXml not found 06.06.13 11:51:01 getProperty: VersionXml = [<?xml version="1.0" encoding="UTF-8" standalone...]
There is no need to change anything in the configuration for an Edge 305 device.
You only created a dummy device with the name Edge305 - that is only capable of receiving GPX files from a website like geocaching.com and send it using gpsbabel to a garmin device. The website Garmin Connect and Strava work the other way round - they request a file from your Edge305 and upload this file to the website.
So go ahead and delete your configuration file (or disable all entries)
The logfile states, that it is searching for your Edge 305 here:
06.06.13 11:51:00 Searching for garmin devices like Edge 305/Forerunner 305...
If the Edge is found, it will print out a line like this:
06.06.13 11:51:00 Found garmin device: Edge 305
So apparently your device is not found (I admit, that here a log message is missing)
The next line from your logfile shows it is creating the dummy entry to receive GPX files, which has nothing to do with your physical Garmin Edge 305 device.
06.06.13 11:51:00 Creating device Edge305 from configuration.
So apparently either your Edge 305 is not attached to your computer, or your user does not have the rights to access it. I assume that the kernel module garmin_gps blocks the device exclusive. So do try a
sudo /sbin/rmmod garmin_gps
More info in my FAQ Section "Forerunner/Edge 205/305 is not detected": http://andreas-diesner.de/garminplugin/doku.php?id=faq
If you start your browser as root, and the plugin is able to find your Edge 305, but is not able to access it as normal user you should try the section "Forerunner/Edge 205/305 is detected but no data can be read" from the FAQ.
Cheers Andreas
Hi Andreas, thanks, I have a better understanding of what is happening now.
The issue relates to permissions / accessing the USB device. I don't have a udev service in FC18. If I run firefox as root I can access the device, but using the plugin as a normal user fails. I did check the FAQ, but the suggestions don't work: there isn't a udev service (have checked through the new systemd configuration too), so going to bash around a bit and see how I can resolve USB access permission issues. Will post back if there's anything else, do you know any other ways to resolve this?
dmesg:
[86946.944069] usb 1-1.5: new full-speed USB device number 7 using ehci-pci
[86947.030460] usb 1-1.5: New USB device found, idVendor=091e, idProduct=0003
[86947.030466] usb 1-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
# cat /etc/udev/rules.d/51-garmin.rules
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="0666"
# udevadm hwdb --update
# udevadm control --reload
$ lsusb
Bus 001 Device 008: ID 091e:0003 Garmin International GPS (various models)
update selinux is also disabled.