usb disconnect workaround
This commit is contained in:
parent
70268c1aec
commit
bc548b767a
17
REAME.md
17
REAME.md
|
|
@ -81,7 +81,22 @@ MessageContent="55534243123456780000000000000011063000000000010000000000000000"
|
||||||
NoMBIMCheck=1
|
NoMBIMCheck=1
|
||||||
|
|
||||||
/etc/usb_modeswitch.conf:
|
/etc/usb_modeswitch.conf:
|
||||||
SetStorageDelay=4
|
SetStorageDelay=8
|
||||||
|
|
||||||
|
Workaround fuer USB disconnects:
|
||||||
|
|
||||||
|
/etc/cron.d/reset_usb:
|
||||||
|
# Reset USB if device names disappear
|
||||||
|
* * * * * root [ ! -c /dev/ttyUSB0 ] && /usr/local/bin/usb_off_on.sh 2>/dev/null
|
||||||
|
|
||||||
|
/usr/local/bin/usb_off_on.sh:
|
||||||
|
#!/bin/bash
|
||||||
|
# Joerg
|
||||||
|
echo "$(date) - ${0} - reset USB because device disappeared" >> /var/log/usb_off_on.log
|
||||||
|
echo 0 > /sys/devices/platform/soc/20980000.usb/buspower
|
||||||
|
sleep 5
|
||||||
|
echo 1 > /sys/devices/platform/soc/20980000.usb/buspower
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Quick Tutorial Gammu:
|
Quick Tutorial Gammu:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue