Posts by uli

    Q: Type of module? A:TER GX 110S
    Q: Firmware version? A: 7.2.504
    Q: Type of starter kit you have? S2, FW 6.04.606-B014
    (S1, S1B, S2, S3, EVK1, EVK2, none, other)


    my program works on my starter kit board but not on the TER board.


    Logging the AT commands shows no difference but SEMAIL returns "+CME ERROR: connection failed"


    AT+CMEE=2 OK
    AT&K3 OK
    AT+CMEE=2 OK
    AT+CPIN? +CPIN: READY
    OK AT+CREG?
    +CREG: 0,1 OK
    AT+CGDCONT=1,"IP","internet.eplus.de","0.0.0.0",0,0 OK
    AT+CGQREQ=1,2,4,3,9,31 OK
    AT#USERID="eplus" OK
    AT#PASSW="gprs" OK
    at+cusd=1,*100# (...) betr{gt 8.97 Euro ",15 OK
    AT#ESMTP="auth.smtp.kundenserver.de" OK
    AT#EUSER="********" OK
    AT#EPASSW="********" OK
    AT#EADDR="***@***.com" OK
    AT#SEMAIL="***@***.com","...MESSAGE...",0 > 8.97 Euro prepaid SIM credit +CME ERROR: connection failed

    I intended to use the "Regular Expression" module (re). It works fine on my PC but not on the GM862. It misses "Perl Compatible Regular Expression" (pcre) which can be found as a dll. It is even downloadable as c-code. Couldn't just someone make that '.c' a '.py' or make it work anyhow. That would be pretty cool.


    regards,
    Uli


    PS5.02.203AL6.04.604-GM862 QUAD PY, S2

    at#lscript
    #LSCRIPT: AT.py 10396
    #LSCRIPT: PARAM.py 2525
    #LSCRIPT: INIT.py 3399
    #LSCRIPT: MAIN.py 9991
    #LSCRIPT: PTB.py 9751
    #LSCRIPT: VI.py 2773
    #LSCRIPT: autoexec.py 283
    #LSCRIPT: MODEM.py 3001
    #LSCRIPT: exceptions.py 7168
    #LSCRIPT: exceptions.pyo 4280
    #LSCRIPT: VI.pyo 2687
    #LSCRIPT: AT.pyo 8706
    #LSCRIPT: LOG.pyo 1273
    #LSCRIPT: PARAM.pyo 2558
    #LSCRIPT: MAIN.pyo 5146
    #LSCRIPT: PTB.pyo 4631
    #LSCRIPT: LOG.py 1440
    #LSCRIPT: MODEM.pyo 3184
    #LSCRIPT: LOG.ini 792
    #LSCRIPT: MODEM.ini 453
    #LSCRIPT: free bytes: 2921036
    OK
    at#rscript="LOG.ini"
    úZú
    AT#RSCRIPT="MODEM.ini"
    ½ýZú
    AT#RSCRIPT="autoexec.py"


    they are supposed top be text files. ?(

    at#rscript="file" returns rubbish.


    Files are OK and the module can read and write to NVM. However, if I try to readback a file I receive nonsens. LSCRIPT works fine and I can't see why RSCRIPT doesn't.



    PS5.02.203AL6.04.604-GM862 QUAD PY, S2

    now I've got it, I wasn't looking for a link called "click".


    Anyway I would have appreciated a more obvious link, e.g. in the front page menu.


    thanks

    the RS Hompage misses a link to the TechDoc download page. If the link is present than it's really well hidden.

    after a lot of reading and guessing I finally managed to send emails, but, I'm still unsure about context and order.


      What makes the difference between them?
      Is the first a CSD connection?
      What will be charged: bytes or seconds?
      There are often errors and long waiting periods during connection setup. Am I too impatient?
      All that fuzz with the AT commands, any suggestion for a tutorial and further readings (excep this forum).


    *** SEMAIL ***
    AT+CGQREQ=1,2,4,3,9,31
    AT+CGDCONT=1,"IP","internet.eplus.de","0.0.0.0",0,0
    AT#USERID="eplus"
    AT#PASSW="gprs"
    -------------------- email via SEMAIL ---
    AT#GPRS?
    AT#GPRS=0
    AT#ESMTP="auth.smtp.********.de"
    AT#EUSER="****"
    AT#EPASSW="****"
    AT#EADDR="myname@mydomain.com"
    AT#SEMAIL="yourname@yourdomain.com","a subject line",0
    ~~~~~~~~~~~~~~~~~~~~ email body ~~~
    Hi there,
    my message
    Regards
    ~~~~~~~~~~~~~~~~~~~~
    ^z


    *** SKTD ***
    -------------------- email via SKTD ---
    AT+CGQREQ=1,2,4,3,9,31
    AT+CGDCONT=1,"IP","internet.eplus.de","0.0.0.0",0
    AT#USERID="eplus"
    AT#PASSW="gprs"
    AT#GPRS=1
    AT#SKTD=0,25,"auth.smtp.********.de",0
    ~~~~~~~~~~~~~~~~~~~~ email kontext ~~~
    EHLO auth.smtp.********.de
    AUTH LOGIN
    USERNAME_base64_encoded
    PASSWORD_base64_encoded
    MAIL FROM:myname@mydomain.com
    RCPT TO:yourname@yourdomain.com
    DATA
    ~~~~~~~~~~~~~~~~~~~~ email body ~~~
    Hi there,
    my message
    Regards
    .
    ~~~~~~~~~~~~~~~~~~~~
    QUIT



    PS: 5.02.203 AL: 6.04.604 - GM 862 PY, RS-EB-S2

    in GM862_Python.doc. Anyway, none works.
    The example:


    Import SER
    SER.send('test')


    results in:


    Traceback (innermost last):
    File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 301, in RunScript
    exec codeObject in __main__.__dict__
    File "C:\Mailbox\SER_x.py", line 3, in ?
    a=SER.send('test')
    AttributeError: send


    However, it worked, but after using Hyperterminal to test the wireing it keeps produceing error messages. 19200, 8N1
    Why does the access fail?
    Are there special conditions at power-on-time to initialise the ports?

    (1) that`s why I considered a starter kit as a good idea but (3) suggests that I startet with the wrong package.


    (4) Do I need something else than one of these extension boards


    (5) Which one do I need to access the I/O, a serial port AND to debug.


    (6) Can I use the GM862 and antenna from TER?

    (1) I tried the example from documentation on a TER 105, however I don`t get it working. The AT commands for write, enable, list, ... return OK, but I don`t get any output from Python on the serial port which is connected to hypertrerminal.


    import SER
    a = SER.set_speed(`9600`)
    b = SER.send(`test`)
    c = SER.sendbyte(0x0d)
    d = SER.receive(10)


    The Python IDE returns an error due to the unknown SER module.
    It works fine on a PC using the module PySerial.


    import serial


    ser = serial.Serial()
    ser.setPort(0)
    ser.setBaudrate(9600)
    ser.setByteSize(serial.EIGHTBITS)
    ser.setParity(serial.PARITY_NONE)
    ser.setStopbits(serial.STOPBITS_ONE)
    ser.setTimeout(3)
    ser.open()


    weiter = True
    while weiter:
    line = ser.readline()
    print line
    if line == `q`:
    weiter = False
    ser.close()


    (2) can I use the Python interpreter without a SIM card (I havn`t got one yet), i.e. read and write to serial port and ignore the phone features?


    (3) where is the second com port hidden at the TER 105?


    Most certainly there is a "Hello World" which would show me, how to talk over com port.