CLI application to interact with Badgerd SDWire devices
Project description
CLI for Badgerd SDWire Devices
Application also supports legacy SDWireC and non-Badger'd sdwires as well as new Badgerd SDwire Gen2 devices.
Please see below for usage:
❯ sdwire --help
Usage: sdwire [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
list
switch dut/target => connects the sdcard interface to target device
❯ sdwire switch --help
Usage: sdwire switch [OPTIONS] COMMAND [ARGS]...
dut/target => connects the sdcard interface to target device
ts/host => connects the sdcard interface to host machine
off => disconnects the sdcard interface from both host and target
Options:
-s, --serial TEXT Serial number of the sdwire device, if there is only one
sdwire connected then it will be used by default
--help Show this message and exit.
Commands:
dut dut/target => connects the sdcard interface to target device
host ts/host => connects the sdcard interface to host machine
off off => disconnects the sdcard interface from both host and target
target dut/target => connects the sdcard interface to target device
ts ts/host => connects the sdcard interface to host machine
Installing
Using pip
pip install sdwire
Using apt
sudo add-apt-repository ppa:tchavadar/badgerd
sudo apt install python3-sdwire
Listing SDWire Devices
sdwire list command will search through usb devices connected to the system
and prints out the list of gen2 and legacy devices.
❯ sdwire list
Serial Product Info
sdwire_gen2_101 [SDWire-Gen2::Badgerd Technologies]
bdgrd_sdwirec_522 [sd-wire::SRPOL]
Switching SD Card Connection
sdwire switch command switches the sd card connection to specified direction.
If there is more than one sdwire connected to then you need specify which sdwire
you want to alter with --serial or -s options.
If there is only one sdwire connected then you dont need to specify the serial, it will pick the one connected automatically. See the examples below.
❯ sdwire list
Serial Product Info
sdwire_gen2_101 [SDWire-Gen2::Badgerd Technologies]
bdgrd_sdwirec_522 [sd-wire::SRPOL]
❯ sdwire switch -s bdgrd_sdwirec_522 target
❯ sdwire switch target
Usage: sdwire switch [OPTIONS] COMMAND [ARGS]...
Try 'sdwire switch --help' for help.
Error: There is more then 1 sdwire device connected, please use --serial|-s to specify!
❯ sdwire list
Serial Product Info
bdgrd_sdwirec_522 [sd-wire::SRPOL]
❯ sdwire switch host
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sdwire-0.2.5.tar.gz.
File metadata
- Download URL: sdwire-0.2.5.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3df63a2a27d81f29b3cfb6c28d0f64e52c4c2873ff3547a7b72c5e3385869b2
|
|
| MD5 |
fdf961711ece9363e721fe60af5f35e2
|
|
| BLAKE2b-256 |
223758ef439c76db4c128dfaffa5e1e6a94a965c818225181e7df48ba1e2c02a
|
Provenance
The following attestation bundles were made for sdwire-0.2.5.tar.gz:
Publisher:
pypi_publish.yaml on Badger-Embedded/sdwire-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sdwire-0.2.5.tar.gz -
Subject digest:
a3df63a2a27d81f29b3cfb6c28d0f64e52c4c2873ff3547a7b72c5e3385869b2 - Sigstore transparency entry: 430160389
- Sigstore integration time:
-
Permalink:
Badger-Embedded/sdwire-cli@fd1c705c59defe97b01b4d2cb9cdc18709713737 -
Branch / Tag:
refs/tags/0.2.5 - Owner: https://github.com/Badger-Embedded
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yaml@fd1c705c59defe97b01b4d2cb9cdc18709713737 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sdwire-0.2.5-py3-none-any.whl.
File metadata
- Download URL: sdwire-0.2.5-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f892f8a2d2c118b3963bf592df629eb0339f00da1a7f8b61c2695ad88aee5fac
|
|
| MD5 |
7162e7976ed538f60cda9d30ea3ee512
|
|
| BLAKE2b-256 |
4cdbf4149d29cb8371f8329cceb6fec265dbd47a3f16f0a346d79587f8c994a8
|
Provenance
The following attestation bundles were made for sdwire-0.2.5-py3-none-any.whl:
Publisher:
pypi_publish.yaml on Badger-Embedded/sdwire-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sdwire-0.2.5-py3-none-any.whl -
Subject digest:
f892f8a2d2c118b3963bf592df629eb0339f00da1a7f8b61c2695ad88aee5fac - Sigstore transparency entry: 430160396
- Sigstore integration time:
-
Permalink:
Badger-Embedded/sdwire-cli@fd1c705c59defe97b01b4d2cb9cdc18709713737 -
Branch / Tag:
refs/tags/0.2.5 - Owner: https://github.com/Badger-Embedded
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yaml@fd1c705c59defe97b01b4d2cb9cdc18709713737 -
Trigger Event:
push
-
Statement type: