Re: Update SIM related data according to an event

2016-04-08 Thread Aleksander Morgado
Hey, > > sorry for the long -email, but I got stuck again in another problem: the > re-probe does not start when the ModemManager is in "SIM missing failed > state" and mm_base_modem_set_valid(..., false) is called. > > The current, modified, initialization code has got the following new steps: > >

Re: Update SIM related data according to an event

2016-04-07 Thread Carlo Lobrano
Hi all, sorry for the long -email, but I got stuck again in another problem: the re-probe does not start when the ModemManager is in "SIM missing failed state" and mm_base_modem_set_valid(..., false) is called. The current, modified, initialization code has got the following new steps: 1. mm-ifa

Re: Update SIM related data according to an event

2016-03-24 Thread Carlo Lobrano
Hi Aleksander, thank you for this reply, lot of information and clear. Carlo On 23 March 2016 at 10:06, Aleksander Morgado wrote: > Hey! > > On Tue, Mar 22, 2016 at 3:25 PM, Carlo Lobrano > wrote: > > I had some time now to look at the changes for SIM hot insertion feature > > (QSS unsolicite

Re: Update SIM related data according to an event

2016-03-23 Thread Aleksander Morgado
Hey! On Tue, Mar 22, 2016 at 3:25 PM, Carlo Lobrano wrote: > I had some time now to look at the changes for SIM hot insertion feature > (QSS unsolicited in Telit modems), lot of doubts actually. > > My idea is the following: > > 1. in modem iface initialization, ask the modem whether it supports

Re: Update SIM related data according to an event

2016-03-22 Thread Carlo Lobrano
Hi Aleksander, I had some time now to look at the changes for SIM hot insertion feature (QSS unsolicited in Telit modems), lot of doubts actually. My idea is the following: 1. in modem iface initialization, ask the modem whether it supports or not SIM hot insertion (TBD: sync method? property?).

Re: Update SIM related data according to an event

2016-03-13 Thread Carlo Lobrano
Thanks a lot! I'll have a look at that Carlo Il dom 13 mar 2016 11:57 AM Aleksander Morgado ha scritto: > On Sun, Mar 13, 2016 at 10:25 AM, Carlo Lobrano > wrote: > > That looks like a lot of work :D, better design all the changes before > > starting. > > Well, maybe not much work, but probabl

Re: Update SIM related data according to an event

2016-03-13 Thread Aleksander Morgado
On Sun, Mar 13, 2016 at 10:25 AM, Carlo Lobrano wrote: > That looks like a lot of work :D, better design all the changes before > starting. Well, maybe not much work, but probably a bit hard to get the logic right. > Brief recap > 1. Put the modem in failed state You may want to check what happ

Re: Update SIM related data according to an event

2016-03-13 Thread Carlo Lobrano
That looks like a lot of work :D, better design all the changes before starting. Brief recap 1. Put the modem in failed state 2. Keep a port open when in failed state but with handlers still assigned to unsolicited 3. start a full reprobe Another problem I saw is that when the SIM is not inserted

Re: Update SIM related data according to an event

2016-03-12 Thread Aleksander Morgado
On Fri, Mar 11, 2016 at 5:21 PM, Carlo Lobrano wrote: > I'm trying to update some modem data according to an unsolicited event. > > Telit modems have an unsolicited indication #QSS (Query SIM Status) which is > emitted when the SIM status changes (e.g. SIM removed/inserted). > > My intention is to

Update SIM related data according to an event

2016-03-11 Thread Carlo Lobrano
Hi all, I'm trying to update some modem data according to an unsolicited event. Telit modems have an unsolicited indication #QSS (Query SIM Status) which is emitted when the SIM status changes (e.g. SIM removed/inserted). My intention is to register an handler to this notification and somehow tr