Re: Ofono not "recognizing" some USB dongles

2014-04-06 Thread Denis Kenzior
Hi Jerônimo,



> After that, I've changed "setup_huawei" at plugins/udevng.c to force
> Pcui to point to ttyUSB2, but then I got stuck at the next AT commnad,
> 'ATI': 
> ofonod[241]: src/modem.c:get_modem_property() modem 0x1909b0 property Modem
> ofonod[241]: plugins/huawei.c:open_device() Modem /dev/ttyUSB0
> ofonod[241]: src/modem.c:get_modem_property() modem 0x1909b0 property Pcui
> ofonod[241]: plugins/huawei.c:open_device() Pcui /dev/ttyUSB2
> ofonod[241]: Modem: > ATE0 +CMEE=1\r
> ofonod[241]: PCUI: > ATE0 +CMEE=1\r
> ofonod[241]: Modem: < \r\nOK\r\n
> ofonod[241]: PCUI: < \r\nOK\r\n
> ofonod[241]: PCUI: > ATI\r
> 

Try switching the PCUI and Modem ports?  E.g. run PCUI on ttyUSB0 and
vice versa.

> So, can anyone give me a clue of what to do next?

Not much I can suggest besides tracing what ports / commands makes this
hardware work and try to replicate.

Regards,
-Denis

___
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono


Re: Ofono not "recognizing" some USB dongles

2014-04-06 Thread Jerônimo Lopes
2014-03-31 18:25 GMT-03:00 Jerônimo Lopes :

> Long story, I'm trying to setup a system using Buildroot, Beaglebone
> Black, Connman, Ofono, and 3G USB dongles to connect to the internet.
>
> I have 3 usb dongles (names showed at their plastic case):
>  - ZTE MF-190: not working
>  - Huawei E173: not working
>  - Huawei E160: working
>
> I'm attaching some log information of the dongles.
>
> Both not working ones, are working at a PC with Ubuntu 13.10. Also they
> are recognized as the same device on Beaglebone and PC.
>
> I'm aware that it's probably not a 'Ofono problem'. I'm using buildroot
> default kernel for the Beaglebone and set some options myself, like USB
> Serial Converter (not enabled by default), so there is a big probability
> that something is missing.
>
> Best regards.
>

I have some more information about this problem.

The dongle is called ZTE MF-190. As said before, this dongle works nice in
ubuntu 13.10, with NetworkManager.

Kernel reconizes it as:
ID 0685:7000 ZD Incorporated HSDPA Modem (before switch)

Then Kernel itself (not usb-modeswitch) switches to:
ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem

And creates 4 tty devices:
[   28.798238] usbcore: registered new interface driver option
[   28.815415] usbserial: USB Serial support registered for GSM modem
(1-port)
[   28.832826] option 2-1.1.4:1.0: GSM modem (1-port) converter detected
[   28.848742] usb 2-1.1.4: GSM modem (1-port) converter now attached to
ttyUSB0
[   28.857913] option 2-1.1.4:1.1: GSM modem (1-port) converter detected
[   28.866902] usb 2-1.1.4: GSM modem (1-port) converter now attached to
ttyUSB1
[   28.875310] option 2-1.1.4:1.2: GSM modem (1-port) converter detected
[   28.883900] usb 2-1.1.4: GSM modem (1-port) converter now attached to
ttyUSB2
[   28.891824] option 2-1.1.4:1.3: GSM modem (1-port) converter detected
[   28.900624] usb 2-1.1.4: GSM modem (1-port) converter now attached to
ttyUSB3

Then, if I start ofono, this is what I get in the end:
ofonod[218]: src/modem.c:get_modem_property() modem 0x1011f0 property Modem
ofonod[218]: plugins/huawei.c:open_device() Modem /dev/ttyUSB0
ofonod[218]: src/modem.c:get_modem_property() modem 0x1011f0 property Pcui
ofonod[218]: plugins/huawei.c:open_device() Pcui /dev/ttyUSB3
ofonod[218]: Modem: > ATE0 +CMEE=1\r
ofonod[218]: PCUI: > ATE0 +CMEE=1\r
ofonod[218]: Modem: < \r\nOK\r\n
ofonod[218]: src/modem.c:set_powered_timeout() modem: 0x1011f0
 
Well, I've tried sending this AT commands manually on all tty devices, only
ttyUSB0 and ttyUSB2 are responding, to any command.

After that, I've changed "setup_huawei" at plugins/udevng.c to force Pcui
to point to ttyUSB2, but then I got stuck at the next AT commnad, 'ATI':
ofonod[241]: src/modem.c:get_modem_property() modem 0x1909b0 property Modem
ofonod[241]: plugins/huawei.c:open_device() Modem /dev/ttyUSB0
ofonod[241]: src/modem.c:get_modem_property() modem 0x1909b0 property Pcui
ofonod[241]: plugins/huawei.c:open_device() Pcui /dev/ttyUSB2
ofonod[241]: Modem: > ATE0 +CMEE=1\r
ofonod[241]: PCUI: > ATE0 +CMEE=1\r
ofonod[241]: Modem: < \r\nOK\r\n
ofonod[241]: PCUI: < \r\nOK\r\n
ofonod[241]: PCUI: > ATI\r

Again, if tried manually send ATI commnad, but then something really weird
happens, in both ttyUSB0 and ttyUSB2:
 - I send "ATI" command, and get no response back, no matter how much time
I wait.
 - I send 2 "AT" commands, and then I get "ATI" response, like that:

ATI
AT
AT

Manufacturer: huawei
Model: E1750
Revision: HSDPA_6281_V002
OK
 351753032849324
+GCAP: +CGSM,+DS,+ES

OK

OK


So, can anyone give me a clue of what to do next?

Best Regards,

Jerônimo Lopes
___
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono


Re: Ofono not "recognizing" some USB dongles

2014-04-01 Thread Jerônimo Lopes
Ok, but I already have set CONFIG_TUN.

Another information, I don't know if it is relevan, I'm using Buildroot
toolchain, with uClic.


2014-04-01 10:31 GMT-03:00 Daniel Wagner :

> On 03/31/2014 11:25 PM, Jerônimo Lopes wrote:
> > Long story, I'm trying to setup a system using Buildroot, Beaglebone
> > Black, Connman, Ofono, and 3G USB dongles to connect to the internet.
> >
> > I have 3 usb dongles (names showed at their plastic case):
> >  - ZTE MF-190: not working
> >  - Huawei E173: not working
> >  - Huawei E160: working
> >
> > I'm attaching some log information of the dongles.
> >
> > Both not working ones, are working at a PC with Ubuntu 13.10. Also they
> > are recognized as the same device on Beaglebone and PC.
> >
> > I'm aware that it's probably not a 'Ofono problem'. I'm using buildroot
> > default kernel for the Beaglebone and set some options myself, like USB
> > Serial Converter (not enabled by default), so there is a big probability
> > that something is missing.
>
> FWIW, didn't look at the logs, but one common problem I am aware of is
> the missing support of CONFIG_TUN in the kernel.
>
> HTH,
> daniel
>
___
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono


Re: Ofono not "recognizing" some USB dongles

2014-04-01 Thread Daniel Wagner
On 03/31/2014 11:25 PM, Jerônimo Lopes wrote:
> Long story, I'm trying to setup a system using Buildroot, Beaglebone
> Black, Connman, Ofono, and 3G USB dongles to connect to the internet.
> 
> I have 3 usb dongles (names showed at their plastic case):  
>  - ZTE MF-190: not working
>  - Huawei E173: not working 
>  - Huawei E160: working
> 
> I'm attaching some log information of the dongles.
> 
> Both not working ones, are working at a PC with Ubuntu 13.10. Also they
> are recognized as the same device on Beaglebone and PC.
> 
> I'm aware that it's probably not a 'Ofono problem'. I'm using buildroot
> default kernel for the Beaglebone and set some options myself, like USB
> Serial Converter (not enabled by default), so there is a big probability
> that something is missing.

FWIW, didn't look at the logs, but one common problem I am aware of is
the missing support of CONFIG_TUN in the kernel.

HTH,
daniel
___
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono