[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!
Problems conecting with Dreampi 1.4
Moderator: pcwzrd13
-
- rebel
- Posts: 15
- Dreamcast Games you play Online: PSO
-
- rebel
- Posts: 15
- Dreamcast Games you play Online: PSO
Re: Problems conecting with Dreampi 1.4
Good call! That was it. Yes the ATA command did indeed return OK as a response before responding CONNECT.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.
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!
-
- shadow
- Posts: 6
Re: Problems conecting with Dreampi 1.4
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.
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.
Pso
Griggs / RAmar / lvl 41
Dreaming since 1999
Griggs / RAmar / lvl 41
Dreaming since 1999
- Scrivani
- Vagabond
- Posts: 733
- Dreamcast Games you play Online: Almost all
Re: RE: Re: Problems conecting with Dreampi 1.4
Can you send me the dreampi.py with this modifications? I'm testing a external serial modems, having same problem with no waiting for CONNECTpelvicthrustman wrote:Good call! That was it. Yes the ATA command did indeed return OK as a response before responding CONNECT.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.
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!
Enviado de meu Moto G (5) Plus usando Tapatalk
Happy if may help:
- BBA Mode for DreamPi: https://bit.ly/3JEIuhs
- VPN Port Fowarding: https://bit.ly/3Bgw4bu
- DC Now Data Analysis: https://bit.ly/42coxXw
- DC KARA NOT DEAD AT ALL- VCD Method: https://bit.ly/3P6VePw
- Know part of BR Community: https://bit.ly/3iLXS12
- BBA Mode for DreamPi: https://bit.ly/3JEIuhs
- VPN Port Fowarding: https://bit.ly/3Bgw4bu
- DC Now Data Analysis: https://bit.ly/42coxXw
- DC KARA NOT DEAD AT ALL- VCD Method: https://bit.ly/3P6VePw
- Know part of BR Community: https://bit.ly/3iLXS12