Incoming sms problem on Motorola Droid 4
Quoted 6 lines · Tony Lindgren
Quoted 2 lines · Pavel Machek
Is there way to power cycle the modem without reboot? That should make the debugging... less bad.
Yeah you can currently do:
Quoted 7 lines
# rmmod ohci-platform # rmmod phy-mapphone-mdm6600 # modprobe phy-mapphone-mdm6600 # modprobe ohci-platformOr rebind via sysfs. If the modem reboots, you should see the phy-mapphone-mdm6600 status interrupt trigger?
Rebind via sysfs works nicely. Note that rather long delay is needed, otherwise modem is in state when it talks AT but is not fully ready.
Thanks!
Pavel
bus = "/sys/bus/platform/drivers/"
phone = "phy-mapphone-mdm6600"
ohci = "ohci-platform"
os.system("sudo chown user "+bus+phone+"/unbind") os.system("sudo chown user "+bus+phone+"/bind") os.system("sudo chown user "+bus+ohci+"/unbind") os.system("sudo chown user "+bus+ohci+"/bind") os.system("echo 4a064800.ohci > "+bus+ohci+"/unbind") os.system("echo usb-phy(a)1 > "+bus+phone+"/unbind") os.system("echo usb-phy(a)1 > "+bus+phone+"/bind") os.system("echo 4a064800.ohci > "+bus+ohci+"/bind")
# With sleep 3, modem is initialized, but +CSMS (etc) still fails time.sleep(10)
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html