Page 3 of 3

Re: Problems conecting with Dreampi 1.4

Posted: Thu Nov 10, 2016 11:56 pm
by pelvicthrustman
[quote="Ryochan7"]Does the DreamPi script output OK after sending the ATA command? I think I have seen that happen before but I haven't used the upstream script in a while; I primarily use a modified version of the mgetty script posted in another thread although both mgetty and pon are available to be used in the modified version. The DreamPi script only cares that a known response is returned from the modem without trying to assume what response should be returned for a given command. Not waiting for a CONNECT response from the modem before launching pon would be a big problem./quote]

Good call! That was it. Yes the ATA command did indeed return OK as a response before responding CONNECT.

I duplicated send_command() as send_command_connect() (quick and dirty but works for testing) - put the timeout default to 60, and hardcoded 'resp' to the string "CONNECT" and it worked!

So if I'm not mistaken the takeaway from this is that checking return values is important - something like:

IF AT+VSM=1,8000 does not return OK then use AT+VSM=129,8000
and
Wait for ATA to return CONNECT

If those were put into DreamPi my modem would have worked straight away (actually the first one is optional...)

I see it's on github - I can whip up a patch if Kazade's cool with it. I don't imagine either of those changes should meaningfully impact other modems, but I then again I just got here so I'll leave it to the experts.

Thanks for the help!

Re: Problems conecting with Dreampi 1.4

Posted: Thu Nov 10, 2016 11:56 pm
by pelvicthrustman
Ryochan7 wrote:Does the DreamPi script output OK after sending the ATA command? I think I have seen that happen before but I haven't used the upstream script in a while; I primarily use a modified version of the mgetty script posted in another thread although both mgetty and pon are available to be used in the modified version. The DreamPi script only cares that a known response is returned from the modem without trying to assume what response should be returned for a given command. Not waiting for a CONNECT response from the modem before launching pon would be a big problem.


Good call! That was it. Yes the ATA command did indeed return OK as a response before responding CONNECT.

I duplicated send_command() as send_command_connect() (quick and dirty but works for testing) - put the timeout default to 60, and hardcoded 'resp' to the string "CONNECT" and it worked!

So if I'm not mistaken the takeaway from this is that checking return values is important - something like:

IF AT+VSM=1,8000 does not return OK then use AT+VSM=129,8000
and
Wait for ATA to return CONNECT

If those were put into DreamPi my modem would have worked straight away (actually the first one is optional...)

I see it's on github - I can whip up a patch if Kazade's cool with it. I don't imagine either of those changes should meaningfully impact other modems, but I then again I just got here so I'll leave it to the experts.

Thanks for the help!

Re: Problems conecting with Dreampi 1.4

Posted: Sat Apr 01, 2017 7:26 pm
by Brian172
Hi guys,

How would i be able to get my US robotics 5673 working with dream pi?
im having the exact same problems as you were having, but it seems you have solved it?
I'm not very familiar with coding, iv been using these forums to understand what to do to be honest.
i have managed to do a bit of trouble shooting, and im getting the same problems as Pelvicthrustman had.

any help would be greatly appreciated.

Re: Problems conecting with Dreampi 1.4

Posted: Thu Jun 22, 2017 9:15 pm
by hosler
can someone toss me the code change for this?

Re: RE: Re: Problems conecting with Dreampi 1.4

Posted: Tue Sep 12, 2017 12:19 am
by Scrivani
pelvicthrustman wrote:
Ryochan7 wrote:Does the DreamPi script output OK after sending the ATA command? I think I have seen that happen before but I haven't used the upstream script in a while; I primarily use a modified version of the mgetty script posted in another thread although both mgetty and pon are available to be used in the modified version. The DreamPi script only cares that a known response is returned from the modem without trying to assume what response should be returned for a given command. Not waiting for a CONNECT response from the modem before launching pon would be a big problem.


Good call! That was it. Yes the ATA command did indeed return OK as a response before responding CONNECT.

I duplicated send_command() as send_command_connect() (quick and dirty but works for testing) - put the timeout default to 60, and hardcoded 'resp' to the string "CONNECT" and it worked!

So if I'm not mistaken the takeaway from this is that checking return values is important - something like:

IF AT+VSM=1,8000 does not return OK then use AT+VSM=129,8000
and
Wait for ATA to return CONNECT

If those were put into DreamPi my modem would have worked straight away (actually the first one is optional...)

I see it's on github - I can whip up a patch if Kazade's cool with it. I don't imagine either of those changes should meaningfully impact other modems, but I then again I just got here so I'll leave it to the experts.

Thanks for the help!
Can you send me the dreampi.py with this modifications? I'm testing a external serial modems, having same problem with no waiting for CONNECT

Enviado de meu Moto G (5) Plus usando Tapatalk