Assumes Debian-based linux
- (install rust, eg
sudo snap install --classic rustup
on Ubuntu, or via bash commandcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
) - Using serialports-rs package
- requires libudev under linux:
sudo apt-get install libudev-dev
git clone https://gitlab.com/Susurrus/serialport-rs
cargo run --example list_ports
- With a couple Particle devices attached, output will be something like:
/dev/ttyACM0
Type: USB
VID:2b04 PID:c019
Serial Number: e00fce68be7218691acb0000
Manufacturer: Intel Corporation
Product: B5_SOM_CDC_Mode
/dev/ttyACM1
Type: USB
VID:2b04 PID:c006
Serial Number: 200027001347343432310000
Manufacturer: Intel Corporation
Product: Photon