Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • F firmware
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 29
    • Merge requests 29
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • card10card10
  • firmware
  • Merge requests
  • !378

Linux script to transfer a file to a card10 via BLE

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged schneider requested to merge schneider/ble-transfer into master Apr 19, 2020
  • Overview 1
  • Commits 2
  • Pipelines 2
  • Changes 2

I got tired of going in and out of USB mode to transfer scripts to the card10. I also didn't want to use the more or less reliable serial connection.

This script used bluepy to open a connection and uploads the file using the same mechanism that the apps are using.

Caveats:

  • Linux seems to always use the slowest allowed connection speed that the device offers. This severely limits data transmission speeds with the currently released firmware. It specifies a 1 second maximum connection interval, leading to one transaction every 2 seconds. Android apparently does not care about the announced connection interval...
  • Needs a pairing with the Linux machine. This can be done following the steps in Documentation/bluetooth/card10.rst.
  • Does only work under Linux as bluepy only support Linux.
  • Further documentation is missing

I'd like to merge this in it's current state.

Things to improve:

  • Abstract a file transfer away into a class.
  • Allow transmission of multiple files
  • Allow transmission of directories
  • Honor the --silent option
  • Offer pipenv with the requirements
Edited Apr 19, 2020 by schneider
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: schneider/ble-transfer