Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdwire-0.3.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdwire-0.3.0-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file sdwire-0.3.0.tar.gz.

File metadata

  • Download URL: sdwire-0.3.0.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sdwire-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a0ed2df104e86ccf9f269ff86312d7632ec6a31f5cfbd9ddedf886671de399b3
MD5 1c1e3e9e5b75e3d53987156ed06c49ce
BLAKE2b-256 432fde654f4db5841aaa4abde72628c43f955310a72db349c6b6cafed200f2cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdwire-0.3.0.tar.gz:

Publisher: pypi_publish.yaml on Badger-Embedded/sdwire-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sdwire-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: sdwire-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sdwire-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cb0a657cd8c0e80af22d792ad2377803c48ab1b5fa8793df51e0d1336a9fac8
MD5 369d7eae34f9aea90c555b7610ebe25c
BLAKE2b-256 ed54af62c73e6930dda6c5f7121dc55f6b0317c8de7bd5a9a83e6d989d6be2fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdwire-0.3.0-py3-none-any.whl:

Publisher: pypi_publish.yaml on Badger-Embedded/sdwire-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page