logo

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

Telit

posted in IGEP BERLIN
Tuesday, March 25 2014, 11:30 AM
0
Dear IseeCommunity:

I've bougth DM3730 COM Module and IGEP Berlin expansion boards. I've installed the fast boot demo(https://www.isee.biz/support/downloads/item/igepv2-rc-fastboot-demo) on the COM Module and the virtual machine on my computer that is able to run the example programs that are in eclipse. Do you recommend to put the IGEP Firmware Yocto into the COM Module? My idea is to develop an application that works with the Telit GSM/GPRS Module that it's on the IGEP Berlin board, so my questions are these:
· Do you recommend to put the IGEP Firmware Yocto (https://www.isee.biz/support/downloads/item/igep-firmware-yocto-1-2-2-3) into the COM Module to work better with the GSM/GPRS Module or it is enough putting the fastboot demo?
· I saw that the Telit module works and communicates with the AT commands, that I've to use for my application. Where can I use them? For example, I need to initialize the module with the correct command, insert the PIN, and use the communications AT commands. In which part of my programm develop in C or C++ I have to insert them and how?
Responses (4)
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Wednesday, March 26 2014, 03:29 PM - #permalink
    0
    Hi gerteksa,

    I suggest you use the standard IGEP Firmware yocto due it include the necessary tools for setup the modem.

    About the modem you can read the documentation included in our wiki page :

    http://labs.isee.biz/index.php/How_to_use_Telit_Modem

    At last all modems use AT commands for control the modem (In the Telit manual you've all AT commands).

    Normally for establish a data connexion you should use ppp, using google you can find several references to it:

    http://www.tldp.org/HOWTO/PPP-HOWTO/
    http://linux.die.net/man/8/pppd

    Here you've a complete example included in the IGEP Firmware:

    http://labs.isee.biz/index.php/How_to_go_to_Internet_through_GPRS_setup

    Cheers
    Manel
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 02 2014, 01:56 PM - #permalink
    0
    Dear IseeCommunity:

    I've power it up and use this steps: (http://labs.isee.biz/index.php/How_to_use_Telit_Modem). It works.

    Now, I'm trying to connect the GSM/GPRS Telit 865Quad to the Vodafone Spain GPRS Network. I've continued the steps you gave me (http://labs.isee.biz/index.php/How_to_go_to_Internet_through_GPRS_setup), changing files that are named movistar to vodafone, and changing inside those files movistar to vodafone.

    ls -l /etc/ppp/chascripts

    lrwxrwxrwx 1 root root 15 Jun 24 00:38 apn -> apn.es.vodafone
    -rw-r--r-- 1 root root 33 Jun 24 02:23 apn.es.vodafone
    -rw-r--r-- 1 root root 102 Jun 24 02:08 pap-secrets
    lrwxrwxrwx 1 root root 8 Jun 24 00:40 pin -> pin.NONE
    -rw-r--r-- 1 root root 15 Jun 24 00:40 pin.CODE
    -rw-r--r-- 1 root root 3 Jun 24 00:40 pin.NONE
    -rw-r--r-- 1 root root 421 Jun 24 02:13 vodafone

    where:
    · apn.es.vodafone includes: AT+CGDCONT=1,"IP","airtelnet.es"
    · pin.NONE includes: AT
    · vodafone includes the same code as the example of movistar, I don't change nothing in it.
    · pap-secrets, includes:
    #Secrets for authentication using PAP
    #client server secret IP addresses
    Vodafone * "Vodafone" *

    cd /etc/ppp
    mkdir peers
    cd peers
    vi vodafone and here include the same as your example:

    noauth
    hide-password
    /dev/ttyO1
    115200
    nocrtscts
    defaultroute
    noipdefault
    user vodafone
    usepeerdns
    nodeflate
    novj
    noccp
    persist
    connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/vodafone"
    ipcp-accept-local
    ipcp-accept-remote
    lcp-echo-failure 8
    lcp-echo-interval 3

    and put the lines:

    echo 0 > /sys/class/gpio/gpio145/value
    echo 1 > /sys/class/gpio/gpio163/value
    sleep 1
    echo 0 > /sys/class/gpio/gpio163/value

    as when I started, and try to connect to the vodafone net using the command: "pppd call vodafone"

    and prove tail commans: "tail -f /var/logs/messages, breaking always in this part:

    abort on (BUSY)
    abort on (NO CARRIER)
    abort on (VOICE)
    abort on (NO DIALTONE)
    abort on (NO DIAL TONE)
    abort on (NO ANSWER)
    abort on (DELAYED)
    report (CONNECT)
    timeout set to 6 seconds
    send (ATO^M)
    extect (OK)
    alarm
    send (AT)
    expect (OK)
    alarm
    Failed
    Connect script failed
    ...



    Could you please help me saying what I've to change or to do? In other project that I worked I used the vodafone net to communicate with my server by GPRS, and I used the apn "airtelnet.es", user "wap@wap" and password "wap125", if you need this information.

    And the last question is this:
    when you say "When the system starts, the /etc/init.d/pppd check if /etc/ppp/ppp_on_boot exists and in that case runs this file. The script just turn on the modem and calls pppd to connect to movistar."

    I don't have the pppd in /etc/init.d/ path. What I have to do after that?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 02 2014, 06:00 PM - #permalink
    0
    Dear IseeCommunity:

    I have a mistake. When I said that in other project I used "airtelwap.es" apn, "wap@wap" user and "wap125" password, I changed apn.es.vodafone file and the result is that the command needs to be: AT+CGDCONT=1,"IP","airtelwap.es".

    After that I used that configuration, and I obtained this results:

    Jun 24 06:38:42 igep00x0 local2.info chat[1640]: expect (OK)
    Jun 24 06:38:42 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:43 igep00x0 local2.info chat[1640]: ATZ^M^M
    Jun 24 06:38:43 igep00x0 local2.info chat[1640]: OK
    Jun 24 06:38:43 igep00x0 local2.info chat[1640]: -- got it
    Jun 24 06:38:43 igep00x0 local2.info chat[1640]: send (AT^M)
    Jun 24 06:38:43 igep00x0 local2.info chat[1640]: expect (OKd)
    Jun 24 06:38:43 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:43 igep00x0 local2.info chat[1640]: AT^M^M
    Jun 24 06:38:43 igep00x0 local2.info chat[1640]: OK^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: alarm
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: send (AT^M)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: expect (OK)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: AT^M^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: OK
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: -- got it
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: send (ATI^M)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: expect (OK)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: ATI^M^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: 332^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: OK
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: -- got it
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: send (ATZ^M)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: expect (OK)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: ATZ^M^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: OK
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: -- got it
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: send (AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: expect (OK)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: OK
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: -- got it
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: send (AT+IFC=0,0^M)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: expect (OK)
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: AT+IFC=0,0^M^M
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: OK
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: -- got it
    Jun 24 06:38:46 igep00x0 local2.info chat[1640]: send (ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M)
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: expect (OK)
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M^M
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: OK
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: -- got it
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: send (AT+CGDCONT=1,"IP","airtelwap.es"^M)
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: expect (OK)
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: AT+CGDCONT=1,"IP","airtelwap.es"^M^M
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: OK
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: -- got it
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: send (ATD*99***1#^M)
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: timeout set to 30 seconds
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: expect (CONNECT)
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: ^M
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: ATD*99***1#^M^M
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: CONNECT
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: -- got it
    Jun 24 06:38:47 igep00x0 local2.info chat[1640]: send (^M)
    Jun 24 06:38:47 igep00x0 daemon.info pppd[1639]: Serial connection established.
    Jun 24 06:38:47 igep00x0 daemon.info connmand[1295]: ppp0 {newlink} index 17 operstate 2
    Jun 24 06:38:47 igep00x0 daemon.info pppd[1639]: Using interface ppp0
    Jun 24 06:38:47 igep00x0 daemon.notice pppd[1639]: Connect: ppp0 <--> /dev/ttyO1
    Jun 24 06:39:24 igep00x0 daemon.warn pppd[1639]: LCP: timeout sending Config-Requests
    Jun 24 06:39:24 igep00x0 daemon.notice pppd[1639]: Connection terminated.
    Jun 24 06:39:24 igep00x0 daemon.info avahi-daemon[1349]: Withdrawing workstation service for ppp0.
    Jun 24 06:39:24 igep00x0 daemon.info connmand[1295]: ppp0 {dellink} index 17 operstate 2
    Jun 24 06:39:25 igep00x0 daemon.notice pppd[1639]: Modem hangup
    Jun 24 06:39:50 igep00x0 auth.info sshd[1655]: Accepted none for root from 192.168.7.13 port 47161 ssh2
    Jun 24 06:39:50 igep00x0 auth.info sshd[1659]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
    Jun 24 06:39:50 igep00x0 auth.info sshd[1659]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: abort on (BUSY)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: abort on (NO CARRIER)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: abort on (VOICE)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: abort on (NO DIALTONE)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: abort on (NO DIAL TONE)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: abort on (NO ANSWER)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: abort on (DELAYED)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: report (CONNECT)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: timeout set to 6 seconds
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: send (ATQ0^M)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: expect (OK)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: ATQ0^M^M
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: OK
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: send (ATZ^M)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: timeout set to 3 seconds
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: expect (OK)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: ATZ^M^M
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: OK
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: send (AT^M)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: expect (OKd)
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: AT^M^M
    Jun 24 06:39:56 igep00x0 local2.info chat[1661]: OK^M
    Jun 24 06:39:59 igep00x0 local2.info chat[1661]: alarm
    Jun 24 06:39:59 igep00x0 local2.info chat[1661]: send (AT^M)
    Jun 24 06:39:59 igep00x0 local2.info chat[1661]: expect (OK)
    Jun 24 06:39:59 igep00x0 local2.info chat[1661]: AT^M^M
    Jun 24 06:39:59 igep00x0 local2.info chat[1661]: OK
    Jun 24 06:39:59 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:39:59 igep00x0 local2.info chat[1661]: send (ATI^M)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: expect (OK)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: ATI^M^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: 332^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: OK
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: send (ATZ^M)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: expect (OK)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: ATZ^M^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: OK
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: send (AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: expect (OK)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: OK
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: send (AT+IFC=0,0^M)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: expect (OK)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: AT+IFC=0,0^M^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: OK
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: send (ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: expect (OK)
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M^M
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: OK
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:40:00 igep00x0 local2.info chat[1661]: send (AT+CGDCONT=1,"IP","airtelwap.es"^M)
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: expect (OK)
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: AT+CGDCONT=1,"IP","airtelwap.es"^M^M
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: OK
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: send (ATD*99***1#^M)
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: timeout set to 30 seconds
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: expect (CONNECT)
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: ^M
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: ATD*99***1#^M^M
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: CONNECT
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: -- got it
    Jun 24 06:40:01 igep00x0 local2.info chat[1661]: send (^M)
    Jun 24 06:40:01 igep00x0 daemon.info pppd[1639]: Serial connection established.
    Jun 24 06:40:01 igep00x0 daemon.info connmand[1295]: ppp0 {newlink} index 18 operstate 2
    Jun 24 06:40:01 igep00x0 daemon.info pppd[1639]: Using interface ppp0
    [b]Jun 24 06:40:01 igep00x0 daemon.notice pppd[1639]: Connect: ppp0 <--> /dev/ttyO1

    [/b]Jun 24 06:40:38 igep00x0 daemon.warn pppd[1639]: LCP: timeout sending Config-Requests
    Jun 24 06:40:38 igep00x0 daemon.notice pppd[1639]: Connection terminated.
    Jun 24 06:40:38 igep00x0 daemon.info avahi-daemon[1349]: Withdrawing workstation service for ppp0.
    Jun 24 06:40:38 igep00x0 daemon.info connmand[1295]: ppp0 {dellink} index 18 operstate 2
    Jun 24 06:40:39 igep00x0 daemon.notice pppd[1639]: Modem hangup


    When Jun 24 06:40:01 igep00x0 daemon.notice pppd[1639]: Connect: ppp0 <--> /dev/ttyO1
    appears, with using ifconfig -a the ppp0 is available, but without IP address, and when the line Jun 24 06:40:39 igep00x0 daemon.notice pppd[1639]: Modem hangup
    appears, with the same command the ppp0 interface is down.

    So... What is the problem? Why in the commands we are not using user and password for apn?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 04 2014, 02:00 PM - #permalink
    0
    Hi gerteksa,

    Your pppd configuration seems to be correct, but it could be more helpful attach your /etc/ppp configurations files.

    Maybe the problem resides into modem received signal strength, please post your signal coverage with "at+csq" command too.

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