Since the service would run as a normal user instead of root, it would not be able to write to the /run/ folder to write its PID file, as daemon processes are supposed to do. Organizing for the service to be started on linux meant writing a service file and registering it with systemd: ĭescription=Download FIT files from Garmin devices (ANT-FS version) I even dusted off my APUE book and made the application a Linux daemon process. The sync protocol was documented by Garmin (it was called ANT-FS) and I could easily write an application, fit-sync-ant, to download the files from my FR310. This required an ANT+ dongle, which is plugged into a USB port on the computer. The first Garmin device I owned was a FR310 XT, this was before Bluetooth connectivity was common on computers, so the device used to sync using the ANT+ protocol, the same one that the device is used to communicate with sensors, such as Heart Rate monitors or Speed sensors on a bike. The PiFitSync project contains all the files for setting up the download application, and as I updated it for the latest generation of Garmin Watches, I looked back on the different strategies I used to implement the download mechanism. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |