MC8092 Linux issue

Hi

I’m working on an Linux embedded system (kernel 2.6.32.9) and I would use MC8092 with Ofono, I have already succeeded to use this card with pppd.

The problem is when I plug the card in my embedded system it creates only 5 interfaces (ttyUSB0 to ttyUSB4), and Ofono needs 7 interfaces, the 7th is the Network Interface, so it doesn’t work. I have already used a MC8792 and I had those 7 interfaces.

I have seen in the driver sources that MC8092 is a Sierra Wireless Direct IP modems, could you explain me what are the differences between MC8092 and MC8792.

I need to know which of the 5 interfaces created is the Modem, Diag, App and Network interfaces.

Best regards,

Simon

Hi Simon,

Sierra Wireless modules support various configuration, both MC8092 and MC8792 can work similarly.

Can you check with distributor if they can provide you an MC8092 module with non-DirectIP configuration (with 7 serial) or if they can help you to change it?

For info, Direct IP is an Sierra Wireless feature to present a NDIS interface to OS (versus traditional serial port for PPP only).

Thx.
L

Thank you for your answer, it really helps me.

I will check with my distributor asap.

Do you know the purpose of the 7th interface?
Because when I used the card with pppd (on ttyUSB3), it works fine. So I wonder why Ofono needs the 7th interface. And I’m forced to use Ofono in order to use other software… :frowning:
I’m waiting answers from Ofono mailing list too.

Thanks for your help.

Simon

Hi Simon,

I am new to ofono and I guess it failed to detect or recognize the MC8092 properly.
I tried to build it without success as dbus version mismatch…

Can you check the ofono log to see what was detected and even add support for MC8092 in ofono.rules?

BTW, which ofono release you are using?
As per this link: https://ofono.org/blogs/bertrandaygon/2012/ofono-16

Add support for Sierra Wireless DirectIP modem.

Thx
L

Hi Lotam,

Thanks for your help, I’m using ofono 1.6.
I have finally found that I had not sierra_net.c in my kernel, so I have added it by using those patches http://lwn.net/Articles/385096/.

Now ofono found the Network interface as usb0.
But now I have an error with PIN authentication, some AT command return ERROR, here is a part of the log I obtain :

ofonod[550]: plugins/udevng.c:setup_sierra() modem=/dev/ttyUSB3 app=/dev/ttyUSB4 net=usb0 diag=/dev/ttyUSB1
ofonod[550]: src/modem.c:set_modem_property() modem 0xf6e38 property Modem
ofonod[550]: src/modem.c:set_modem_property() modem 0xf6e38 property App
ofonod[550]: src/modem.c:set_modem_property() modem 0xf6e38 property Diag
ofonod[550]: src/modem.c:set_modem_property() modem 0xf6e38 property NetworkInterface
ofonod[550]: src/modem.c:ofono_modem_register() 0xf6e38
ofonod[550]: plugins/sierra.c:sierra_probe() 0xf6e38
ofonod[550]: src/modem.c:emit_modem_added() 0xf6e38
ofonod[550]: src/modem.c:call_modemwatches() 0xf6e38 added:1
ofonod[550]: plugins/hfp_ag.c:modem_watch() modem: 0xf6e38, added: 1
ofonod[550]: plugins/dun_gw.c:modem_watch() modem: 0xf6e38, added: 1
ofonod[550]: plugins/smart-messaging.c:modem_watch() modem: 0xf6e38, added: 1
ofonod[550]: plugins/push-notification.c:modem_watch() modem: 0xf6e38, added: 1
ofonod[550]: plugins/sierra.c:sierra_enable() 0xf6e38
ofonod[550]: src/modem.c:get_modem_property() modem 0xf6e38 property Modem
ofonod[550]: plugins/sierra.c:open_device() Modem /dev/ttyUSB3
ofonod[550]: Modem: > ATE0 &C0 +CMEE=1\r
ofonod[550]: Modem: < ATE0 &C0 +CMEE=1\r\r\nOK\r\n
ofonod[550]: Modem: > AT+CFUN=4\r
ofonod[550]: Modem: < \r\nOK\r\n
ofonod[550]: plugins/sierra.c:cfun_enable()
ofonod[550]: src/modem.c:modem_change_state() old state: 0, new state: 1
ofonod[550]: plugins/sierra.c:sierra_pre_sim() 0xf6e38
ofonod[550]: Modem: > AT+GCAP\r
ofonod[550]: src/sim.c:ofono_sim_add_state_watch() 0xf6408
ofonod[550]: src/sim.c:ofono_sim_add_state_watch() 0xf6408
ofonod[550]: src/sim.c:ofono_sim_add_state_watch() 0xf6408
ofonod[550]: Modem: < \r\n+GCAP: +CGSM,+DS,+ES\r\n\r\nOK\r\n
ofonod[550]: Modem: > AT+CRSM=192,12258,0,0,255\r
ofonod[550]: Modem: < \r\n+CME ERROR: 3\r\n
ofonod[550]: Modem: > AT+CGMI\r
ofonod[550]: Modem: < \r\nSierra Wireless, Incorporated\r\n\r\nOK\r\n
ofonod[550]: Modem: > AT+CRSM=192,28421,0,0,255\r
ofonod[550]: Modem: < \r\n+CME ERROR: 3\r\n
ofonod[550]: Modem: > AT+CGMM\r
ofonod[550]: Modem: < \r\nMC8092\r\n\r\nOK\r\n
ofonod[550]: Modem: > AT+CRSM=192,12037,0,0,255\r
ofonod[550]: Modem: < \r\n+CME ERROR: 3\r\n
ofonod[550]: Modem: > AT+CGMR\r
ofonod[550]: Modem: < \r\nP1_0_0_8AP R1338 CNHKGDKCE01 2011/10/21 09:21:31\r\n\r\nOK\r\n
ofonod[550]: Modem: > AT+CPIN?\r
ofonod[550]: Modem: < \r\n+CME ERROR: 14\r\n
ofonod[550]: Querying PIN authentication state failed
ofonod[550]: Modem: > AT+CGSN\r
ofonod[550]: Modem: < \r\n351516050021187\r\n\r\nOK\r\n
ofonod[550]: Modem: < \r\n!STKC: 81\r\n

It seems that “AT+CPIN?” return an error and it stops sierra setup. I have tried to send “AT+CPIN?” to the modem by using minicom and it return “+CPIN: READY” (I’m using a SIM card without PIN code). Do you know why it returns an error when I’m using Ofono?

Thx

Simon

CME ERROR 14 is SIM busy according to smssolutions.net/tutorials/g … rrorcodes/

Maybe it’s juts a timing issue? Unless there is some other thread/process using the SIM? Try inserting a sleep() before the PIN verification, or maybe add a retry loop with a small delay between the attempts.

There is no other process which uses the SIM .I have add a retry loop on the AT+CPIN? request, and the request return AT+CPIN READY, but I have not internet connection, anyway it’s seem to be an ofono issue, so I will post on Ofono mailing list. Thx for your help.

Simon