Skip to main content

CLI application to interact with Badgerd SDWire Gen2 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.2.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

sdwire-0.2.1-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sdwire-0.2.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sdwire-0.2.1.tar.gz
Algorithm Hash digest
SHA256 237b27f35415b5db3a5b1329ae6e0ca033cfb964edf1d0dd506f4b7badcd0fc8
MD5 67558767257d094122287f1a44b191fd
BLAKE2b-256 6f3684fc2bdf1905053e429f061b9ead0fdc7e6316d6e282ac96ea09a8c56837

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sdwire-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sdwire-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83293bace7a3e955b244dd6b5b7b0dfa2d7c0b73d0bae0387b6c808bcabf9543
MD5 73071c3bb7ddbd1fe6d4ba74f5110207
BLAKE2b-256 8b7f25f430d0b8700aa539cc61ba6e377ee93b26b713b5fb20c66369c05d0326

See more details on using hashes here.

Supported by

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