Closed AlexHighTower closed 2 years ago
update from my side... I've made small investigation with 5 modems E1550 I have originally that was branded to different providers all of them was:
only one of them can have ppp working while initialised by chan_dongle, rest four fails as I wrote before.
but there is no problem if I use own software to work with sms...
I decided to dump all AT command chan_dongle sends to modem and reproduce it manually via minicom
I started ping command and send all command one-by-one...
and found command which breaks... it is AT+COPS=0,0
so, I remove this command from at_command.c, recompile and now I can use ppp and voice and the time!!!
the only problem that now instead of operator text can its numerical value is shown...
but for me it is not a problem because in any case it was shown wrong... I use sim cards of virtual operator (MVNO) and instead of name of virtual operator it was shown name of "base" operator...
it is possible to create setting for this case? so by default use AT+COPS=0,0 and special setting to disable it? and may be there is another way to get operator name?
Is this still an issue?
yes, it is still an issue for me tested on 3d046f7
as soon as while dongle initialization command AT+COPS=0,0 then ppp failed to connect
I recompile 3d046f7
with commented line ATQ_CMD_DECLARE_ST(CMD_AT_COPS_INIT, "AT+COPS=0,0\r"),
and now ppp works and dongle initialized successfully. the only issue here that instead on operator name I see its mcc mnc (numbers), but I don't care actually
And if you replace ATQ_CMD_DECLARE_ST
with ATQ_CMD_DECLARE_STI
?
That should make it ignore a failed AT+COPS=0,0
command (basically the same fix as 3d046f7).
the problem it that after executing AT+COPS=0,0 on dongle it is not possible to set up ppp session... response for AT+COPS=0,0 is OK it looks very strange and I can't find explanation, but for me it is 100% reproducible, see my first message with ppp connection log and it is not chan_dongle bug, is it "bug" (or whatever) of dongle itself
I disable chan_dongle plug dongle start up ppp session works fine
start minicom on second at port and send AT+COPS=0,0 ppp session drops and unable to establish only way to fix it - replug dongle or sent at+cfun=1,1
may be it is only my only problem with particular dongle fw and the only that can be implemented in chan_dongle - kind of switch to disable getting operator name...
I think issue can be closed for now..
Closing per reporters request. I have no idea what to do here.
Hello
I have couple of E1550 modem Before now both of them was used like this:
Today I decided to use asterisk to send\receive sms and as bonus get voice calls and now I have problems...
Main problem is that PPP now don't work! connection log looks like this:
as you see - immediate hangup
time to time log looks like
second problem is that dongle initialise very long in in asterisk... state shows "GSM not re" after that for several seconds it shows WRONG provider name!
but main problem, that even if I remove working with dongle from asterisk, REPLUG it, PPP still not work (((
can someone tell me is chan_dongle code sends some AT command which can broke PPP connection and how to restore it?