USB in the Linux machine

If you want to see the machines connected run the command 

find /sys/bus/usb/devices/usb*/ -name dev 
 
A much detailed list can be obtained by 
 
#!/bin/bash

for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
    (
        syspath="${sysdevpath%/dev}"
        devname="$(udevadm info -q name -p $syspath)"
        [[ "$devname" == "bus/"* ]] && continue
        eval "$(udevadm info -q property --export -p $syspath)"
        [[ -z "$ID_SERIAL" ]] && continue
        echo "/dev/$devname - $ID_SERIAL"
    )
done 

In the case of TelosB Motes 

make sky-motelist

Comments

Popular Posts