Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't communicate to E160G modem #110

Closed
grwlf opened this issue Aug 2, 2020 · 3 comments
Closed

Couldn't communicate to E160G modem #110

grwlf opened this issue Aug 2, 2020 · 3 comments

Comments

@grwlf
Copy link

grwlf commented Aug 2, 2020

Hi. I have E160G modem which seems to work correctly with minicom (sudo minicom -D /dev/ttyUSB0) and reference C program. Namely, I could easily send AT commands like 'AT' or 'ATI'.

Unfortunately, asterisk-chan-dongle reports errors like this:

*CLI> dongle cmd dongle0 ATI
[dongle0] 'ATI' Device disconnected
*CLI>     -- [dongle0] Trying to connect on /dev/ttyUSB0...
[Aug  2 11:56:47] WARNING[29293]: chan_dongle.c:284 opentty: Open /dev/ttyUSB0 successfully
      dongle cmd dongle0 ATI
[Aug  2 11:56:53] WARNING[29293]: chan_dongle.c:284 opentty: Open /dev/ttyUSB1 successfully
    -- [dongle0] Dongle has connected, initializing...
[Aug  2 11:56:53] ERROR[29215]: at_queue.c:251 at_queue_run: [dongle0] Error write command 'USER'S' expected response 'OK' length 4, cancel
[dongle0] 'ATI' Queue error
*CLI> [Aug  2 11:56:53] ERROR[29503]: at_queue.c:251 at_queue_run: [dongle0] Error write command 'AT' expected response 'OK' length 3, cancel
[Aug  2 11:56:53] ERROR[29503]: chan_dongle.c:454 do_monitor_phone: [dongle0] Error adding initialization commands to queue
    -- [dongle0] Error initializing Dongle
    -- [dongle0] Dongle has disconnected
    -- [dongle0] Trying to connect on /dev/ttyUSB0...

Could you please suggest what could be wrong?

Note, that printf("Open XXXX successfully\n") message was added by me, it is the only change in sources. I'm using latest asterisk-chan-dongle (git hash 328b2b7) and asterisk 15.

Configs are here. Please ignore unusual format, in the end it encodes regular text files.

@grwlf
Copy link
Author

grwlf commented Aug 26, 2020

Got some new info for this case:

I disabled opening audio_fd in chan_dongle.c:715 (wrote -1 to it and commented out sanity checks). After that device has passed AT-checks and could receive some SMS (I got messages like [dongle0] Got full SMS from Beeline@ ....). What could it mean? Could an attempt to open audio port hang the modem entirely?

@grwlf
Copy link
Author

grwlf commented Aug 29, 2020

I just got another modem which seems to work better. For now I believe that the problem was in my particular hardware.

@grwlf grwlf closed this as completed Aug 29, 2020
@wdoekes
Copy link
Owner

wdoekes commented Aug 29, 2020

Thanks for the feedback / self-close :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants