Skip to contentSkip to conversation

Incoming sms problem on Motorola Droid 4

DISCUSSION Pavel Machek 1 participant 1 message May 14, 2018 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
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-platform

Or 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