All of lore.kernel.org
 help / color / mirror / Atom feed
* regarding to simManager
@ 2013-11-06  1:35 TengChou Yang
  2013-11-06  2:22 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: TengChou Yang @ 2013-11-06  1:35 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 8005 bytes --]

Hi guys,
I am currently working on option module GTM 661 W.
Please see following log files,
ofonod[1566]: plugins/udevng.c:setup_hso()
/sys/devices/platform/s5p-ehci/usb1/1-1/1-1.1
ofonod[1566]: plugins/udevng.c:setup_hso() /dev/ttyHS0 255/255/255 00
(null) Diagnostic
ofonod[1566]: plugins/udevng.c:setup_hso() /dev/ttyHS1 255/255/255 01
(null) GPS
ofonod[1566]: plugins/udevng.c:setup_hso() /dev/ttyHS2 255/255/255 02
(null) GPS Control
ofonod[1566]: plugins/udevng.c:setup_hso() /dev/ttyHS3 255/255/255 03
(null) Application
ofonod[1566]: plugins/udevng.c:setup_hso() /dev/ttyHS4 255/255/255 04
(null) Control
ofonod[1566]: plugins/udevng.c:setup_hso() hso0 255/255/255 05 (null) (null)
ofonod[1566]: plugins/udevng.c:setup_hso() /dev/ttyHS5 255/255/255 06
(null) Modem
ofonod[1566]: plugins/udevng.c:setup_hso() control=/dev/ttyHS4
application=/dev/ttyHS3 modem=/dev/ttyHS5 network=hso0
ofonod[1566]: src/modem.c:set_modem_property() modem 0x12e978 property
Control
ofonod[1566]: src/modem.c:set_modem_property() modem 0x12e978 property
Application
ofonod[1566]: src/modem.c:set_modem_property() modem 0x12e978 property Modem
ofonod[1566]: src/modem.c:set_modem_property() modem 0x12e978 property
NetworkInterface
ofonod[1566]: src/modem.c:ofono_modem_register() 0x12e978
ofonod[1566]: plugins/hso.c:hso_probe() 0x12e978
ofonod[1566]: src/modem.c:emit_modem_added() 0x12e978
ofonod[1566]: src/modem.c:call_modemwatches() 0x12e978 added:1
ofonod[1566]: plugins/hfp_ag.c:modem_watch() modem: 0x12e978, added: 1
ofonod[1566]: plugins/dun_gw.c:modem_watch() modem: 0x12e978, added: 1
ofonod[1566]: plugins/smart-messaging.c:modem_watch() modem: 0x12e978,
added: 1
ofonod[1566]: plugins/push-notification.c:modem_watch() modem: 0x12e978,
added: 1
ofonod[1566]: plugins/hso.c:hso_enable() 0x12e978
ofonod[1566]: src/modem.c:get_modem_property() modem 0x12e978 property
Control
ofonod[1566]: plugins/hso.c:open_device() Control /dev/ttyHS4
ofonod[1566]: src/modem.c:get_modem_property() modem 0x12e978 property
Application
ofonod[1566]: plugins/hso.c:open_device() Application /dev/ttyHS3
ofonod[1566]: src/modem.c:get_modem_property() modem 0x12e978 property Modem
ofonod[1566]: plugins/hso.c:open_device() Modem /dev/ttyHS5
ofonod[1566]: < ATE0 +CMEE=1
ofonod[1566]: < ATE0 +CMEE=1
ofonod[1566]: < AT+CFUN=4
ofonod[1566]: < AT+CLVL=7
ofonod[1566]: plugins/hso.c:cfun_enable()
ofonod[1566]: < AT_OPMN
ofonod[1566]: plugins/hso.c:check_model()
ofonod[1566]: Model is GTM 661 W
ofonod[1566]: < AT_OBLS
ofonod[1566]: plugins/hso.c:sim_status()
ofonod[1566]: plugins/hso.c:sim_status() status sim 1 pb 1 sms 1
ofonod[1566]: src/modem.c:modem_change_state() old state: 0, new state: 1
ofonod[1566]: plugins/hso.c:hso_pre_sim() 0x12e978
ofonod[1566]: < AT+GCAP
ofonod[1566]: < AT+CSCS="GSM"
ofonod[1566]: < AT+CSCS="GSM"
ofonod[1566]: < AT_ODO?
ofonod[1566]: < AT_ODO=0
ofonod[1566]: < AT_OPCMENABLE=?
ofonod[1566]: plugins/hso.c:hso_set_online() modem 0x12e978 online
ofonod[1566]: < AT+CFUN=1
ofonod[1566]: src/sim.c:ofono_sim_add_state_watch() 0x132ce0
ofonod[1566]: src/sim.c:ofono_sim_add_state_watch() 0x132ce0
ofonod[1566]: src/sim.c:ofono_sim_add_state_watch() 0x132ce0
ofonod[1566]: < AT+CGMI
ofonod[1566]: < AT+CRSM=192,12258,0,0,255
ofonod[1566]: src/modem.c:common_online_cb() Online in PRE SIM state
ofonod[1566]: < AT+CGMM
ofonod[1566]: plugins/hso.c:opcm_support()
ofonod[1566]: < AT_OPCMENABLE?
ofonod[1566]: plugins/hso.c:opcm_query()
ofonod[1566]: < AT_OPCMENABLE=1
ofonod[1566]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00,
25
ofonod[1566]: < AT+CRSM=176,12258,0,0,10
ofonod[1566]: < AT+CGMR
ofonod[1566]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00,
10
ofonod[1566]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0,
tocopy: 10
ofonod[1566]: < AT+CRSM=192,28421,0,0,255
ofonod[1566]: < AT+CGSN
ofonod[1566]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00,
25
ofonod[1566]: < AT+CRSM=176,28421,0,0,10
ofonod[1566]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00,
10
ofonod[1566]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0,
tocopy: 10
ofonod[1566]: < AT+CRSM=192,12037,0,0,255
ofonod[1566]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00,
25
ofonod[1566]: < AT+CRSM=176,12037,0,0,10
ofonod[1566]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00,
10
ofonod[1566]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0,
tocopy: 10
ofonod[1566]: < AT+CPIN?
ofonod[1566]: drivers/atmodem/sim.c:at_cpin_cb() crsm_pin_cb: READY
ofonod[1566]: drivers/atmodem/sim.c:at_pin_retries_query()
ofonod[1566]: <  AT+CPINR
ofonod[1566]: < AT+CRSM=192,28590,0,0,255
ofonod[1566]: Querying remaining pin retries failed
ofonod[1566]: < AT+CRSM=192,28589,0,0,255

Once this happens(ofono stop after AT+CRSM), I can only list the modem with
the feature "sim"

root@g2:~# /usr/lib/ofono/test/list-modems
[ /hso_0 ]
    Features = sim
    Emergency = 0
    Powered = 1
    Lockdown = 0
    Interfaces = org.ofono.SimManager
    Online = 1
    Model = GTM661
    Revision = 1.8.4.0 (Date: Apr  5 2011, Time: 11:53:13)
    Type = hardware
    Serial = 356185040663949,NG39BCR2DJ
    Manufacturer = Option N.V.
    [ org.ofono.SimManager ]
        Retries =
        FixedDialing = 0
        SubscriberNumbers =
        PreferredLanguages = en
        BarredDialing = 0
        CardIdentifier = 89014104256259017109
        LockedPins =
        PinRequired = none
        Present = 1

If I kill ofonod and run it again, ofono will start working fine,

[ /hso_0 ]
    Features = sms gprs cbs net ussd rat sim
    Emergency = 0
    Powered = 1
    Lockdown = 0
    Interfaces = org.ofono.SmartMessaging org.ofono.PushNotification
org.ofono.MessageManager org.ofono.ConnectionManager
org.ofono.CellBroadcast org.ofono.NetworkRegistration org.ofono.Phonebook
org.ofono.SupplementaryServices org.ofono.RadioSettings
org.ofono.VoiceCallManager org.ofono.SimManager
    Online = 1
    Model = GTM661
    Revision = 1.8.4.0 (Date: Apr  5 2011, Time: 11:53:13)
    Type = hardware
    Serial = 356185040663949,NG39BCR2DJ
    Manufacturer = Option N.V.
    [ org.ofono.SmartMessaging ]
    [ org.ofono.PushNotification ]
    [ org.ofono.MessageManager ]
        Alphabet = default
        UseDeliveryReports = 0
        Bearer = cs-preferred
        ServiceCenterAddress = +13123149810
    [ org.ofono.ConnectionManager ]
        Powered = 1
        Attached = 1
        Bearer = none
        Suspended = 0
        RoamingAllowed = 0
    [ org.ofono.CellBroadcast ]
        Topics = 0-2,24,40,80,100,223
        Powered = 0
    [ org.ofono.NetworkRegistration ]
        Status = registered
        Strength = 51
        Name = AT&T
        LocationAreaCode = 55598
        Mode = auto
        MobileCountryCode = 310
        Technology = umts
        CellId = 58036143
        MobileNetworkCode = 410
    [ org.ofono.Phonebook ]
    [ org.ofono.SupplementaryServices ]
        State = idle
    [ org.ofono.RadioSettings ]
        TechnologyPreference = any
    [ org.ofono.VoiceCallManager ]
        EmergencyNumbers = 08 000 999 110 112 911 118 119
    [ org.ofono.SimManager ]
        Retries =
        MobileCountryCode = 310
        FixedDialing = 0
        SubscriberNumbers =
        PreferredLanguages = en
        BarredDialing = 0
        CardIdentifier = 89014104256259017109
        LockedPins =
        MobileNetworkCode = 410
        SubscriberIdentity = 310410625901710
        Present = 1

Here is my question,
1, why does it happen randomly?
2, what does "Querying remaining pin retries failed" mean? this message is
showing up even when the ofono is working fine.
3, sometimes all the module had been loaded, but the connection manager
will disappear.


Sincerely,
TengChou Yang

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 9948 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: regarding to simManager
  2013-11-06  1:35 regarding to simManager TengChou Yang
@ 2013-11-06  2:22 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2013-11-06  2:22 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]

Hi,

<snip>

 > ofonod[1566]: < AT+CPIN?
> ofonod[1566]: drivers/atmodem/sim.c:at_cpin_cb() crsm_pin_cb: READY
> ofonod[1566]: drivers/atmodem/sim.c:at_pin_retries_query()
> ofonod[1566]: <  AT+CPINR
> ofonod[1566]: < AT+CRSM=192,28590,0,0,255
> ofonod[1566]:Querying remaining pin retries failed
> ofonod[1566]: < AT+CRSM=192,28589,0,0,255
>
> Once this happens(ofono stop after AT+CRSM), I can only list the modem
> with the feature "sim"

It is hard to tell from your log what is going on.  Is your oFono 
modified in some way?  The AT command logging should print commands 
sent, echo (if any) and command responses.  I'm not seeing that here.

Do you get a response to the last CRSM command sent?  If not, then 
likely the modem crashed.  The two CRSM commands you see above are 
querying EFad and EFphase.  Right after there should be some more EFs 
being read followed by reading of the IMSI (+CIMI)

<snip>

>
> Here is my question,
> 1, why does it happen randomly?

Who knows.

> 2, what does "Querying remaining pin retries failed" mean? this message
> is showing up even when the ofono is working fine.

It just means that the sim atom driver does not implement this 
functionality.  It should probably be changed from a warning to a debug 
message.

> 3, sometimes all the module had been loaded, but the connection manager
> will disappear.

Impossible to tell without a log.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-06  2:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-06  1:35 regarding to simManager TengChou Yang
2013-11-06  2:22 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.