-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection question #32
Comments
I tried again, this was the output |
Hi David, It seems that you just need to grant yourself access to /dev/ttyACME0 (eg, with sudo chown or sudo chmod). Cheers |
Thanks Cédric, The SYNC works well now. I'm really pleased I can now connect my watch to Linux without having to send all my data via Polar flow. david@david-OptiPlex-790 /dev $ chown david:david ttyACM0 When I list the files in the /dev directory this is what ttyACM0 looks like now. Then using the polar_ftp ruby command I get: I have a couple of questions. I hope you don't mind, I'm a bit of a newby to Linux.
$ ./polar_training2gpx /home/david/polar/polarwatchfiles/U/0/20210424/E/185520 ~/polar/gpx_files/20210424run.gpx Many thanks, David |
#!/bin/sh
POLAR_DIR=/path/to/polar
IN_DIR=~/Polar/<device ID>
OUT_DIR=~/Trainings
$POLAR_DIR/polar_ftp SYNC
mkdir -p "$OUT_DIR"
for dir in $(find "$IN_DIR/U/0" -type d | grep -e '/E/[0-9]\+$'); do
out=$(echo $dir | sed -n 's/.*\/\([0-9]\+\)\/E\/\([0-9]\+\)$/\1-\2-polar.tcx/p')
outfile="$OUT_DIR/$out"
if [ -n "$out" -a ! -f "$outfile" ]; then
$POLAR_DIR/polar_training2tcx "$dir" "$outfile"
fi
done Adapt as suitable to you. BTW, if you only need this script, you may not need to change your $PATH -- just create a Cheers |
I have similar error on windows platform:
Where and how can I find the Vantage V path (value for -d) in Windows platform? |
Hi @maiko29, On Windows, I believe you should try If it's not connected on COM3, try COM4 or check the list of connected devices in Device Manager (check Show Hidden Devices and expand Ports (COM & LPT)). |
Thanks for sharing these tools. I'm having problems getting going.
I've installed everything but I get this error. 'no polar USB device connected' although I can find it in the folder /dev/ttyACM0 ?
It's a Polar Vantage M.
david@david-OptiPlex-790 ~/polar $ ./polar_ftp -d/dev/ttyACM0
? serial ? found, but couldn't open serial device on /dev/ttyACM0: EACCES
Please specify the device to use with the -d option.
No Polar USB device detected.
The text was updated successfully, but these errors were encountered: