2025年3月13日 星期四

PLS83 power saving

AT command
at^spow=2,1000,3

Power saving, to get the USB device ID
# pwd
/sys/bus/usb/drivers/usb
# ls
3-10  3-11  3-2  3-4  3-8  3-9  bind  uevent  unbind  usb1  usb2  usb3  usb4

//unattached device, /dev/ttyACM* will be disappeared.
//but didn't see any log in dmesg
# echo 3-2 | sudo tee ./unbind    


echo "0" > "/sys/bus/usb/devices/3-2/power/autosuspend_delay_ms" (先查一下原本設定…)
echo "auto" > "/sys/bus/usb/devices/3-2/power/control"

back to normal mode
# pwd
/sys/bus/usb/drivers/usb
# ls
3-10  3-11  3-2  3-4  3-8  3-9  bind  uevent  unbind  usb1  usb2  usb3  usb4

//attached device, /dev/ttyACM* will appear.
//but didn't see any log in dmesg
# echo 3-2 | sudo tee ./bind    


echo "2000" > "/sys/bus/usb/devices/3-2/power/autosuspend_delay_ms" (忘了原本設定…)
echo "on" > "/sys/bus/usb/devices/3-2/power/control"

ref:
1. what-is-the-difference-between-usb-port-bind-unbind-and-autosuspend

沒有留言:

張貼留言