Powershell - creating a DUN dialup script that also delays start of PPP LCP handshake after connection completes
Is there a way to implement a Powershell script that:
- Uses RAS remote access or DUN dial-up networking services to establish a connection to dial out to a 3G HSPA cellular modem (using "ATD*99#") to establish a PPP packet-radio connection?
- Configures the DUN dialup network connection such that there is a 500ms delay after dialing before initiating the LCP handshake to negotiate a PPP session?
A delay is needed after dialing before the start of the PPP LCP handshake because we wish to avoid the peer server dropping (failing to receive) a premature LCP Configure-Request (ConfReq) packet sent by the local Windows PC before the remote server has had a chance to complete PPP stack startup initialization. If the first LCP ConfReq packet is not received, the peer server will not send a ConfAck. Then the local PC will timeout waiting for a ConfAck, and it will retry the ConfReq request after 4-5 seconds.
I know how to implement a delay before start of LCP handshake on Linux with the pppd utility by using the "connect-delay nnn" parameter in a peer script / chat script (where nnn is the delay in milliseconds before LCP handshake is started once a connection is established by dialing). But I need a Windows equivalent solution.
Any suggestions on how to do this?
Thanks,
Gord Finlay