[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!