atefsaeed2010 / asterisk-chan-dongle-01

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
0 stars 1 forks source link

IMEI discovery for Huawei E173 modem does not work. #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure chan_dongle to do modem discovery through imei. i.e. audio, data, 
and imsi commented out and imei set to that of the dongle in dongle.conf
2. Run asterisk with debug mode on.

What is the expected output? What do you see instead?
I expected chan_dongle to detect the device based on imei but it kept on giving 
the following lines of code.

[May  5 20:39:03] DEBUG[21114]: chan_dongle.c:536 pvt_discovery: [dongle0] 
Trying ports discovery for IMEI 354369044266097
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/1-0:1.0
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/2-0:1.0
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/1-1
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:410 pdiscovery_lookup_ids: 
[dongle0 discovery] found /sys/bus/usb/devices/1-1 is idVendor 12d1 idProduct 
1436
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/1-1:1.0
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/1-1:1.1
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/1-1:1.2
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/1-1:1.3
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/1-1:1.4
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/1-1:1.5
[May  5 20:39:03] DEBUG[21114]: pdiscovery.c:721 pdiscovery_request_do: 
[dongle0 discovery] checking /sys/bus/usb/devices/1-1:1.6
[May  5 20:39:03] DEBUG[21114]: chan_dongle.c:564 pvt_discovery: [dongle0] Not 
found ports for IMEI 354369044266097

What version of the product are you using? On what operating system?
Version 1.1 R26. (svn download on 5 May 2011)

Please provide any additional information below.
I looked in to the pdiscovery.c file and noticed a struct static const struct 
pdiscovery_device device_ids. This struct does not have the vendor id product 
id for E173 listed. For E173 it is 12d1:1436. I tried adding an entry but that 
dint work probably because I got the port numbers wrong. If you can tell me 
what those numbers mean I can try at my end and contribute a patch for doing 
discovery for E173.

Original issue reported on code.google.com by zahir.ko...@gmail.com on 5 May 2012 at 3:13

GoogleCodeExporter commented 9 years ago
Sorry I forgot to add that I am running asterisk on Ubuntu 10.04. Kernel 
version 2.6.32-24.

Original comment by zahir.ko...@gmail.com on 5 May 2012 at 3:14

GoogleCodeExporter commented 9 years ago
Lot of peoples works with E173 and using discovery by imei fine.

So, i think you not prepare dongle for working with chan_dongle, you dongle 
has wrong device id.

Please read http://wiki.e1550.mobi/ carefully.

Issue will be 'Invalid' soon.

Original comment by bg_...@mail.ru on 13 May 2012 at 7:47

GoogleCodeExporter commented 9 years ago
Thanks for the pointer. I have not run any of those preparation tools. That is 
because my device works (voice calls and SMS) without doing any of them. So 
with voice activated, and device already unlocked, do you suggest I do firmware 
update so that the vid/pid values are right?

Original comment by zahir.ko...@gmail.com on 14 May 2012 at 8:55

GoogleCodeExporter commented 9 years ago
use mode_switch for corrent device ids and interface -> port maps

Original comment by bg_...@mail.ru on 19 Jul 2012 at 10:26