AnsweredAssumed Answered

ppp with gprs modem

Question asked by Selcuk Mustafa on Mar 3, 2015
Latest reply on May 15, 2015 by Selcuk Mustafa



I'm running MQX v4.1.1 on TWR-K64F120M + TWR-SER. When I try to connect to internet with a gsm modem (i.e. Cinterion BGS2T) through shell commands, I get an error. Command flow is as below:



shell> gsm init

shell> gsm connect

shell> ppp connect ittyf:

PPP: Initialized on 'ittyf:'.

PPP: Attempting to establish connection. Please wait...


PPP: Failed to connect to remote peer.

PPP: Connection released.

PPP: The connection attemp failed because the modem (or other connecting device) on the remote computer is out of order.

PPP: Connection released.



gsm init: sends command "at+cgdcont=1,\"IP\",\"internet\",\r" to modem

gsm connect: sends command "atdt*99#\r" to modem and initiates an internet call. After this command I get an "CONNECT" word. Then MQX starts to send some PPP handshake. ISP sends some but I got the error after waiting a few seconds.

Modem is connected to TWR-SER board RS232 port ( ittyf: ).


I read this topic: PPP over serial. But I guess it's about an old version of MQX. For example: I couldn't find the functions _io_ras_install("ras:") or _io_dun_install("dun:") in my code to make some fixes.


Have a nice day.