Hello ofono guys, I've got a embedded device with SIM5216E modem. Based on the previous work done by my colleague Jean-Christian de Rivaz (you can see previous talk on this mailing list about this modem "Some experiments with the SIMCOM SIM5216E modem on a ARM926 board"), the simcom AT doc, my MacGyver kit and my resourcefulness, i do a patch for ofono to support this modem (and maybe others models). I attach the patch to this email. While making this patch, I wondered about that : * After entering a pin code, ofono goes too fast and checks too early the sim pin status with "CPIN?". The ME responds "CME Error : 14 (SIM busy)" and ofono stops here. Ofono doesn't send more CPIN? or intercept the "+CPIN: READY" that the modem send after a while when SIM is back online. So, I use the same workaround that for ZTE : sending severals AT+CPIN? commands during 20 seconds until having "+CPIN: READY". It works well but as my modem sends the "+CPIN: READY" from its own, I think I can use another mechanism more "standard" in ofono, isn't it ? * I want to save power when i doesn't need the modem. So, i guess it is the purpose of the "org.ofono.Modem.SetProperty" dbus method and the setting "Powered". When I set "Powered" to "False", I see ofono calls the "disable" callback of "struct ofono_modem_driver", so I think its here I must write the famous CFUN command(s) to put modem down. In the AT doc for SIMCOM, I have severals CFUN values for, i think, disable purpose : 0 – minimum functionality 4 – disable phone both transmit and receive RF circuits 7 – Offline Mode For now, i do a CFUN=4 but maybe i need to do more and add CFUN=7 ? Or maybe use CFUN=0 ? Can the "disable" callback be called by ofono in other case and so, i must only do a CFUN=4 ? * I would like to do a reset of the modem at start and at end of ofono life (with AT+CFUN=6 or AT+CRESET). The purpose is having a modem always in init state for ofono and the others programs. Do you think its a good idea ? Best regards, Anthony Viallard.