bencoh | sicelo: hi! do you remember what is needed to fully reset the modem (and associated components) instead of rebooting, when it shows the dreaded no-sim icon (and dmesg mentions modem reset)? | 18:23 |
---|---|---|
bencoh | (I vaguely remember csd and a few others being involved, but looks like csd alone is not necessarily enough) | 18:24 |
sicelo | mmm, i haven't run Fremantle in ages now, and i've forgotten. i'll try to look at logs and see if i can find anything | 20:36 |
bencoh | thx | 21:40 |
Vajb | bencoh: maybe something like "pnatd at+cfun" | 21:40 |
bencoh | hmm, maybe | 21:40 |
Vajb | Can't recall exact syntax rho | 21:40 |
Vajb | Tho* | 21:40 |
Vajb | at+cfun=1 | 21:41 |
Maxdamantus | iirc there's some process with "modem" in the name. | 21:42 |
Maxdamantus | oh, `killall csd` | 21:43 |
Maxdamantus | I think that's what I used. | 21:43 |
bencoh | apparently restarting csd isn't enough in this case | 21:43 |
bencoh | (no idea why) | 21:43 |
joerg | bencoh: that's a surprisingly tricky problem, the actual hardware interface between OMAP SoC and modem is quite undocumented and obscure | 22:46 |
joerg | there's no master switch to shut down the modem power supply | 22:46 |
joerg | and there are a few single signal lines between modem and omap where nobody can tell exactly what they do in detail | 22:47 |
Wizzup | bencoh: did you try entering offline mode? | 22:47 |
Wizzup | and then online mode again | 22:47 |
joerg | iirc there are mutual watchdogs in modem and system CPU, and when one doestn't tickle the other, the other reboots the one | 22:49 |
joerg | probably - if true - this would be the best low level failsafe reset option for modem | 22:51 |
joerg | AT+CFUN=0 is prolly "(almost) all off", | 22:53 |
joerg | https://m2msupport.net/m2msupport/atcfun-set-phone-functionality/ >> 0 minimum functionality 1 full functionality 2 disable phone transmit RF circuits only 3 disable phone receive RF circuits only 4 disable phone both transmit and receive RF circuits<< | 22:55 |
joerg | AT+CFUN=? for querying the modem of what it supports - only if implemented in pnatd which actually translates between human readable AT commands/responses and some binary protocol the modem actually speaks on the communication interface | 22:58 |
joerg | afaik | 22:59 |
bencoh | Wizzup: yeah, it doesn't seem to work most of the time | 23:04 |
bencoh | regarding pnatd, I'll have to try again, I feel like I missed something | 23:06 |
joerg | pnatd is sort of a bitch, it has no way to close it once it opened its STDIN STDOUT STDERR. You at least have to close the terminal input pipe, maybe it actually needs a kill signal | 23:13 |
joerg | https://termbin.com/qouj | 23:17 |
joerg | strings pnatd | 23:17 |
joerg | obviously phonet-based, so you might find some arcane wisdom buried in their sourcecode | 23:19 |
joerg | I discussed parts of that with some nokia devs back when, in context of my *starhash-enabler# and a few commands I missed that were not supported yet in the modem+interfacedriver, they added some of those I asked for, others not | 23:37 |
joerg | bencoh: but actually, the question is what you want to achieve by that "full reset of modem" | 23:39 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!