Skip to main content

coospo-cli

Command-line tool for COOSPO CS500/CS600 bike computers over Bluetooth LE. It shows device information, battery level and memory usage, and downloads your activities (.fit files) without the CoospoRide app.

$ coospo info
Searching for Coospo compatible device...
Connected to CS500-1234567
Model:     CS500
Serial:    1234567
Hardware:  V1.41
Firmware:  V1.5.0
Battery:   87%
Memory:    25.3M/26.9M used (93%)

Supported devices

Device Status
COOSPO CS500 tested (hardware V1.41, firmware V1.5.0)
COOSPO CS600 expected to work (same protocol family), not tested yet

Older COOSPO models (BC102/107, BC200) use a different protocol (YMODEM over Nordic UART). Use xoss_sync for those.

If you own a CS600 or another model, please report whether it works in an issue.

Installation

Requires Python 3.13+ and a Bluetooth LE adapter. It uses bleak, so it should run on Linux (BlueZ), Windows and macOS; so far it's been tested on Linux.

pipx install coospo-cli

pip install coospo-cli works too. For the latest development version:

pipx install git+https://github.com/blshkv/coospo-cli

Usage

coospo info                            show model, serial number, firmware, battery and memory usage
coospo sync                            download new activities into fit_files/
coospo sync -o ~/rides                 ... into another directory
coospo get filelist.txt Setting.json   download specific files
coospo -n CS500-1234567 info           pick one of several devices by name
coospo -a AA:BB:CC:DD:EE:FF info       ... or by Bluetooth address

Run coospo --help or coospo COMMAND --help for all options.

  • sync first downloads filelist.txt (the list of activities on the device), then every .fit file not already in the output directory. It's safe to interrupt and run again: files are only saved after the transfer has been verified, and existing ones are skipped.
  • Nothing is ever deleted from the device.
  • The exit status is 0 on success and 1 if the device wasn't found or any file failed.

Troubleshooting

  • Device not found: the bike computer stops advertising while it is connected to the phone. Close CoospoRide or turn off Bluetooth on the phone, and make sure the device is switched on.
  • Several devices nearby: use -n with the full name shown on the device (e.g. CS500-1234567) or -a with its Bluetooth address.

Protocol

The CS500 doesn't use the Nordic UART/YMODEM protocol of older models. It uses vendor service 0xFDA0 with HDLC-like frames carrying protobuf payloads, plus a separate raw data channel for file contents. PROTOCOL.md documents everything known so far.

tools/gatt_dump.py (in the repository, not installed with the package) lists a device's GATT services and characteristics, which is a quick way to check whether another model uses the same service:

python3 tools/gatt_dump.py CS600

Helping with other models

Support for new devices or features (setting the clock, uploading settings) comes from capturing what the official app does:

  1. On Android, enable Developer options → Enable Bluetooth HCI snoop log, then toggle Bluetooth off and on.
  2. Use the feature in CoospoRide.
  3. Run adb bugreport bugreport.zip; the log is FS/data/misc/bluetooth/logs/btsnoop_hci.log.

Don't attach the log or the bug report to a public issue. They contain personal data such as your location, device addresses and ride history. Describe what you did and share the relevant frames instead.

Automatic sync

coospo sync downloads the activities the index (~/.local/state/coospo/index.db) does not know yet. coospo watch does the same whenever the device comes into range, at most once per --interval (default 10 minutes). Both can pass each new activity to a command, e.g. an uploader:

coospo init                                  # once: ignore the rides already on the device
coospo watch --post-sync ~/bin/strava-upload

contrib/strava-upload is such an uploader for Strava (standard library only). Create an API application at strava.com/settings/api with the callback domain localhost, copy the script to ~/bin, and run strava-upload auth once.

  • The command is run as CMD FILE, with COOSPO_FILE, COOSPO_SERIAL and COOSPO_ACTIVITY_TIME in the environment. If it exits non-zero it is retried with growing delays (1 min up to 6 h).
  • Downloaded files are deleted once the command succeeds. With --output DIR they are kept there. Without --post-sync, files are always kept (default ~/.local/share/coospo/fit_files).
  • A file that is still being recorded is not a complete FIT file; it is skipped and fetched again later.
  • Settings can go in ~/.config/coospo/config.toml (or $XDG_CONFIG_HOME/coospo/config.toml, or the file given with -c): name, address, scan_timeout, output, post_sync, interval. See contrib/config.toml for a commented sample.
  • contrib/ has a systemd user unit and an OpenRC init script that run coospo watch.

Development

pip install -e .
python3 -m unittest discover -s tests

License

GNU General Public License v3.0 or later, see LICENSE.

Acknowledgements

Inspired by xoss_sync, which supports XOSS, Cycplus and older COOSPO devices.

Metadata

Release files for coospo-cli 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coospo-cli 0.2.0
File Size Uploaded Provenance Actions
coospo_cli-0.2.0.tar.gz 43.8 kB With provenance Details for coospo_cli-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for coospo-cli 0.2.0
File Interpreter ABI Platform Actions
coospo_cli-0.2.0-py3-none-any.whl Python 3 none any Details for coospo_cli-0.2.0-py3-none-any.whl

Total release size: 74.5 kB

Release files / coospo_cli-0.2.0.tar.gz

Download URL coospo_cli-0.2.0.tar.gz
Size 43.8 kB
Tags Source
SHA-256 checksum
How to use checksums
09cc2dcbb5d8b63eac13118f03ba5347394b887bb01b93f3bccc62f13aafa6f8
BLAKE2b-256 checksum
How to use checksums
ba725770537202e535c8e9cf0b16b6fb4bd31f752270a24a0ccdbd23c67c0c1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / coospo_cli-0.2.0-py3-none-any.whl

Download URL coospo_cli-0.2.0-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02e82211ffe125c4b0af61456d0a965c47e4ac7a2b565e7cb483b0385ca0dbb8
BLAKE2b-256 checksum
How to use checksums
7047f37ac79881462cf6b8d085617c9a1db449fbd153f7ffd1a3d2a8b694b6c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for coospo-cli 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for coospo_cli-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page