Open alexiordan opened 5 years ago
For my K3765 modems, if I set in dongle.conf only
imei
,imsi
, it doesn't work. I need to set alsodata
andaudio
, but this brings me the inconvenience of sometime being changed at boot.WHat should I do in order to be detcted by IMEI/IMSI?
Here is my
lsusb
output:Bus 001 Device 008: ID 12d1:1465 Huawei Technologies Co., Ltd. K3765 HSPA Bus 001 Device 007: ID 12d1:1465 Huawei Technologies Co., Ltd. K3765 HSPA
Here is my
dongle show devices
output:ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number dongle0 0 Free 13 0 0 XYZ K3765 11.126.03.09.00 353142041XXXXXX 226013661XXXXXX Unknown dongle1 0 Free 14 5 4 XYZ K3765 11.126.03.07.00 358880034XXXXXX 226013661XXXXXX Unknown
Here is my
modinfo option|grep 1465
output:alias: usb:v12D1p1465d*dc*dsc*dp*icFFiscFFipFFin*
Hello there.
Friend, have You ever solved this problem?
Best Regards.
No, I did not.... Sorry
No, I did not.... Sorry
I may be onto something. By what I have read over the internet, each time before device opening chan_dongle will search for devices with predefined VendorID:ProductID pairs, detect ports or this devices, and check its IMEI and IMSI. Our devices VendorID:ProductID are probably not predefined. I think if we add them in that predefined list, everything will work. Do You know how to add them in the predefined list?
I found this info on this link
http://chan-dongle.blogspot.com/
Best Regards.
Sounds promising! My best guess will be to look for such list in the github repository, but currently I cannot do it.
Sounds promising! My best guess will be to look for such list in the github repository, but currently I cannot do it.
Thanks for reply. I will try to find it and if I do, I will post it here. Please do the same if You find some spare time.
Best regards.
Sounds promising! My best guess will be to look for such list in the github repository, but currently I cannot do it.
Hello friend,
I have, probably, found what may solve this problem. Now, the only problem for me is that I don't know how to do it. It is needed to edit the file pdiscovery.c where these lines can be found:
static const struct pdiscovery_device device_ids[] = { { 0x12d1, 0x1001, { 2, 1, / 0 / } }, / E1550 and generic / // { 0x12d1, 0x1465, { 2, 1, / 0 / } }, / K3520 / { 0x12d1, 0x140c, { 3, 2, / 0 / } }, / E17xx / { 0x12d1, 0x1436, { 4, 3, / 0 / } }, / E1750 / { 0x12d1, 0x1506, { 1, 2, / 0 / } }, / E171 firmware 21.x : thanks Sergey Ivanov / };
In my case I need to edit last line. I have found this on the following link:
https://github.com/bg111/asterisk-chan-dongle/issues/155
I really cannot find this file in the installation. Do You have any idea how to do this now when we know what is needed?
Best Regards.
Great! As I see K3765 has:
But I would start finding out why 1 got commented out. Maybe is a reason for that.
Great! As I see K3765 has:
- vendor id: 12d1
- product id: 1465 It seems to be identical to K3520... (second line - which is commented out) So I would proceed like this:
- Why is that line commented out?
- Uncomment
- Pull request
- Wait for the binaries OR Compile the chan_dongle
- Replace current version of the chan_dongle with one obtained at step 5.
But I would start finding out why 1 got commented out. Maybe is a reason for that.
Hi,
Thanks for reply.
Actually, my modem has this ID 0x12d1, 0x1506 and I have to make different changes while You need to uncomment that line. However, I have no idea how to compile... I did this standard way with some software with instruction (make, make file, configure make install....)
Best Regards
If you have the source code locally, just modify that pdiscovery.c file as suits you, and run again that sequence of commands (make, make file etc.) . That should produce a new binary containing your modification.
Let me know if it worked.
One more thing. Maybe it will be wise to backup an original version of the folder, before making any modifications. So if you break anything to be easy to recover. That or just to be able to take again the source code from repository...
If you have the source code locally, just modify that pdiscovery.c file as suits you, and run again that sequence of commands (make, make file etc.) . That should produce a new binary containing your modification.
Let me know if it worked.
I have installed it via the script which came with the RasPBX. Installing dongle in raspbx is done by running install-dongle command.
However, right now I tried to install it using the source code which was previously edited to suit my case. The source code was downloaded from here:
https://github.com/antirek/asterisk-chan-dongle
Installation instructions are here (didn't try to install asterisk as it it installed already. Only dongle...):
https://github.com/bg111/asterisk-chan-dongle/wiki/Installation
It doesn't install...
This is what I get:
root@raspbx:/home/asterisk-chan-dongle-master# aclocal && autoconf && automake -a aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:50: installing './compile' configure.in:6: installing './config.guess' configure.in:6: installing './config.sub' configure.in:7: installing './install-sh' configure.in:7: installing './missing' automake: error: no 'Makefile.am' found for any configure output
Best Regards.
Unfortunately I did not managed to do it. I made some steps, but without success. However, I did this before fail: (following: https://www.linuxquestions.org/questions/linux-software-2/autoconf-4175547628/ )
Those steps let me call ./configure
But then I failed with: configure: error: Can't find "asterisk.h"
Unfortunately I did not managed to do it. I made some steps, but without success. However, I did this before fail: (following: https://www.linuxquestions.org/questions/linux-software-2/autoconf-4175547628/ )
- sudo apt install automake
- sudo apt install automake1.11
- apt-get install build-essential
Those steps let me call ./configure
But then I failed with:
configure: error: Can't find "asterisk.h"
I am having troubles with this too.
I can't believe that nobody knows how this should be and can be done. Did You have any luck in the meantime?
Best Regards.
So is K3765 working or not? On a wiki it is stated it is supported (and that is is same model as E1762)... is it OK to buy it or not?
I think you can buy e1550 modem.
On Mon, 6 Sep 2021, 14:56 Matej Kovacic, @.***> wrote:
So is K3765 working or not? On a wiki it is stated it is supported (and that is is same model as E1762)... is it OK to buy it or not?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/antirek/asterisk-chan-dongle/issues/215#issuecomment-913472044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJADRRMH3P362MYH7JCM6ADUAR62LANCNFSM4G3LQRKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
For my K3765 modems, if I set in dongle.conf only
imei
,imsi
, it doesn't work. I need to set alsodata
andaudio
, but this brings me the inconvenience of sometime being changed at boot.WHat should I do in order to be detcted by IMEI/IMSI?
Here is my
lsusb
output:Here is my
dongle show devices
output:Here is my
modinfo option|grep 1465
output: