Skip to content

xhep-lab/cmdpasco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚙🚗 cmdpasco

Command prompt interface to PASCO Bluetooth devices

GitHub License GitHub Actions Workflow Status


This is a low-level, cross-platform command prompt interface to PASCO Bluetooth devices. There are commands to scan, connect, disconnect and record data from devices etc.

✨ Install

The code aims to be cross-platform. Installation by

pipx install git+https://github.com/xhep-lab/cmdpasco.git

📈 Run

Start the command prompt by

cmdpasco

For help, enter ? or help at the prompt. There are commands for

  • scan: scan for available PASCO Bluetooth devices
  • connect: connect to a PASCO Bluetooth device using the six-digit device code
  • info: show information about connected devices
  • record: record data from connected devices to disk
  • watch: plot data from connected devices in real time

E.g., here we connect to a device by ID number, record data at 1 second intervals, disconnect, and quit:

andrew@workstation:~$ cmdpasco
Welcome to the PASCO shell. Type help or ? to list commands.

(disconnected) connect 178-396
Device Smart Cart 178-396 connected
(Smart Cart 178-396) record 1
Saved data to cmdpasco_data_2025_09_01_15_26_54.txt
(Smart Cart 178-396) disconnect
Device Smart Cart 178-396 disconnected
(disconnected) quit

💡 Contribute

Contributions are strongly enouraged, especially from students using PASCO devices. Possibilities include:

  • installation by Conda
  • watch command that supports multiple measurements to watch
  • record command that allows recorded data to be filtered
  • Mock devices for testing - it's hard to develop the code as you have to have a PASCO device handy. Can we have a mock device for testing?
  • And of course bug fixes!

Please feel free to make a pull request or raise an issue.

About

cmd prompt interface to PASCO devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages