All of lore.kernel.org
 help / color / mirror / Atom feed
* Huawei E3131 (or maybe E398) not connecting
@ 2014-04-23 19:14 =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
  2014-04-25 19:46 ` =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
  0 siblings, 1 reply; 2+ messages in thread
From: =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes @ 2014-04-23 19:14 UTC (permalink / raw)
  To: ofono

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

Hi,

I'm trying to make different 3G dongles work with ofono and connman at a
Beaglebone Black board.

I have Huawei E3131 (label at the case of the dongle). Linux recognizes it
as:
 ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM
Modem/Networkcard

When I try to connect to connman service this is the result.

ofonod[186]: drivers/atmodem/gprs-context.c:at_gprs_activate_primary() cid 1
ofonod[186]: Modem: > AT+CGDCONT=1,"IP","zap.vivo.com.br"\r
ofonod[186]: Modem: < \r\nOK\r\n
ofonod[186]: drivers/atmodem/gprs-context.c:at_cgdcont_cb() ok 1
ofonod[186]: Modem: > AT+CGDATA="PPP",1\r
ofonod[186]: Modem: < \r\n+CME ERROR: 50\r\n
ofonod[186]: drivers/atmodem/gprs-context.c:at_cgdata_cb() ok 0
ofonod[186]: Unable to enter data state
ofonod[186]: src/gprs.c:pri_activate_callback() 0x188fe8
ofonod[186]: src/gprs.c:pri_activate_callback() Activating context failed
with error: Incorrect parameters

​Can anyone give me an idea of what is causing this failure? ​

​Best Regards,

Jerônimo Lopes​

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

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

* Re: Huawei E3131 (or maybe E398) not connecting
  2014-04-23 19:14 Huawei E3131 (or maybe E398) not connecting =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
@ 2014-04-25 19:46 ` =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
  0 siblings, 0 replies; 2+ messages in thread
From: =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes @ 2014-04-25 19:46 UTC (permalink / raw)
  To: ofono

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

Hi again,

2014-04-23 16:14 GMT-03:00 Jerônimo Lopes <lopesjeronimo@gmail.com>:

> Hi,
>
> I'm trying to make different 3G dongles work with ofono and connman at a
> Beaglebone Black board.
>
> I have Huawei E3131 (label at the case of the dongle). Linux recognizes it
> as:
>  ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM
> Modem/Networkcard
>
> When I try to connect to connman service this is the result.
>
> ofonod[186]: drivers/atmodem/gprs-context.c:at_gprs_activate_primary() cid
> 1
> ofonod[186]: Modem: > AT+CGDCONT=1,"IP","zap.vivo.com.br"\r
> ofonod[186]: Modem: < \r\nOK\r\n
> ofonod[186]: drivers/atmodem/gprs-context.c:at_cgdcont_cb() ok 1
> ofonod[186]: Modem: > AT+CGDATA="PPP",1\r
> ofonod[186]: Modem: < \r\n+CME ERROR: 50\r\n
> ofonod[186]: drivers/atmodem/gprs-context.c:at_cgdata_cb() ok 0
> ofonod[186]: Unable to enter data state
> ofonod[186]: src/gprs.c:pri_activate_callback() 0x188fe8
> ofonod[186]: src/gprs.c:pri_activate_callback() Activating context failed
> with error: Incorrect parameters
>
> ​Can anyone give me an idea of what is causing this failure? ​
>
> ​Best Regards,
>
> Jerônimo Lopes​
>
>
I've made some tests and here's some things I've found.

If i test CGDATA command this is the result
> AT+CGDATA=?
< +CGDATA: ("NULL")

So I manage two ways of make this work, simply change line
214<http://git.kernel.org/cgit/network/ofono/ofono.git/tree/drivers/atmodem/gprs-context.c#n214>
of
drivers/gprs-context.c file.

Removing the "PPP" string from the command, but this doesn't work on other
Huawei (E160) modem that I have:
 sprintf(buf, "AT+CGDATA=,%u", gcd->active_context);

Or simply using ATD*99***%u# command, the same way of SIMCOM vendor.

I have a really superficial knowledge about AT commands, and make a quick
search about this two commands, and it seams to me that they both do the
same thing. But I would like to know when use one or other.​

Best Regards

Jerônimo Lopes

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

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

end of thread, other threads:[~2014-04-25 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-23 19:14 Huawei E3131 (or maybe E398) not connecting =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
2014-04-25 19:46 ` =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes

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.