logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

problems with PPP connection using Telit modem

posted in IGEPv2 EXPANSION
Thursday, March 08 2012, 05:31 PM
poltux
poltux
Offline
0
Hi everyone,

I'm trying to set up a PPP connection with the PPPD daemon but I have an issue I cannot solve.

In order to make PPPD work I tried to test that everything was working using AT commands.

As I understand from the document http://www.telit.com/module/infopool/do ... php?id=573 page 21, the steps I need to do are:

1) Define a context: AT+CGDCONT=1,\"IP\",\"\"
2) Enter the data state ATD*99***1#

When the data state is accomplished, PPPD can initiate the PPP protocol.

When I do these steps in order to check that the modem enters the data state, I should see a CONNECT message but instead the modem hangs. In fact, I tried the same procedure with a different modem with the same SIM and I can see the CONNECT message.

I have also checked that:

1) AT+FCLASS=0
2) AT+CBST=0,0,1

And these values are the ones I have in the other modem that is working.

AT+CSQ indicates I have good signal (17)

Has anyone had the same issue?

Thanks in advance,

Accepted Answer

marc
marc
Offline
Monday, March 12 2012, 03:37 PM - #permalink
0
Hi Pol, the only thing that catches my attention is that you are not initializing the modem with ATZ, my chatscript is somehow different but it works, don't ask me why but it does :-)

Here it is:
'' ATZ
OK "AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0"
OK "AT+IFC=0,0"
OK "AT+IPR=115200"
TIMEOUT 4
OK 'AT+CGDCONT=1,"IP","movistar.es"'
OK-AT-OK "ATDT*99#"
CONNECT


Another thing that drove me crazy a couple of years ago was that neither Movistar or Vodafone in Spain seem to support ppp compression algorithms so after trial and error I deactivated all compression I found, now it works fine, maybe not optimal but it works.

modem
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/movistar"
/dev/ttyO1
115200
nocrtscts
replacedefaultroute
defaultroute
noipdefault
user movistar
password movistar
ipparam movistar
usepeerdns
nodeflate
novj
noccp
ipcp-accept-local
persist


Note: nodeflate,novj, and noccp are the compression stuff.

Btw, you said you're using poky 6.0, as far as I know that version does not have the bsp hardware support for ISEE boards, are you sure your modem is working fine? have you tried opening the serial port and issuing an AT command? You can use minicom like this:
minicom /dev/ttyO1 -s115200
(Cntrl+X to exit)
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    marc
    marc
    Offline
    Sunday, March 11 2012, 06:30 PM - #permalink
    0
    what OS are you running?
    Could you post your full chatscript and peers file?
    The reply is currently minimized Show
  • Accepted Answer

    poltux
    poltux
    Offline
    Monday, March 12 2012, 11:44 AM - #permalink
    0
    I'm running Poky Linux 6.0 Edison

    My chatscript is the following:

    '' AT
    OK AT&D2&C1E0V1S0=0
    OK AT&C1
    OK AT+CGDCONT=1,"IP",""
    OK AT+CGMI
    OK AT+CSQ
    OK ATD*99***1#
    CONNECT \\d\\c

    My peers file is the following:

    hide-password
    noauth
    connect "/usr/sbin/chat -V -f /etc/ppp/chatscript-isp"
    debug
    115200
    defaultroute
    /dev/ttyO1
    user

    Thank you very much for your help,
    The reply is currently minimized Show
  • Accepted Answer

    poltux
    poltux
    Offline
    Tuesday, March 13 2012, 09:55 AM - #permalink
    0
    Thanks a lot Marc for your valuable help! I finally got my modem working.

    My problem was that I was not using the AT command AT+IFC=0,0 in my chatscript. This command as I see in the document AT Commands Reference Guide - Telit disables flow control. This was my problem and that's why I could not see the CONNECT message.

    Referring to the compression stuff, it was not necessary in my case, this simple peer file was enough:

    modem
    hide-password
    noauth
    connect "/usr/sbin/chat -V -f /etc/ppp/chatscript-isp"
    /dev/ttyO1
    115200
    replacedefaultroute
    defaultroute
    noipdefault
    user
    password


    Again, thanks a lot for your help.
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat