Posts by uli

    emulation mode


    The serial settings are derived from the rsterm and this forum with 8N1 and AT&K0 where I can't say why I should turn off flow control.
    Further is the speed of 19200 baud a bit low and the PC quite fast. This aspects together with several ser.send commands, each with a timeout set to zero, might access the serial port occaisionally at a moment when it is not ready and fail.


    I consider (2) and (3) more as general flaws of untreated exit-conditions of the ser.read-while-loop in GPIO.py. I haven't had program crashes on the module - it's either sufficiantly slow or the flow controlof the virtual serial port between python interpreter and modem is different.

    (1)
    listening to the serial line I noticed sometimes commands with missing bits like AT#GPIO=,1,1. In that case one of the multiple SER.sends in GPIO.py has failed. Is there a reason not to compose the command first and send it as one string?


    MDM.mdmser.send('AT#GPIO=%i,%i,1\r'%(GPIOnumber,value),5)


    (2)
    The error is caught by the following "if-clause", i.e. it caches: "+CME ERROR: op". The missing "eration not supported" causes a timeout error next time and blocking the the program for 20 seconds (TIMEOUT_CMD = 20).


    (3)
    rarely the reading the command response ends with "," causing an index error. The remaining incomplete string causes contains an "OK" but fails later at the if-clauses.



    There may be other weaknesses.

    Q: Type of module? A: TER
    Q: Firmware version? A: 7.02.504
    Q: Type of starter kit you have? s2
    (S1, S1B, S2, S3, EVK1, EVK2, none, other)


    Hello again,


    GPIO.getIOvalue() occasionally returns 5 or crashes. I noticed this while running my program on my PC. It crashes with the message below.
    I've no idea where the 5 comes from that I occasionally receive but I assume the crash results from an emty result-string caused by the timeout-condition.


    Traceback (innermost last):
    (...)
    res = GPIO.getIOvalue( 4 )
    File "C:\Program Files\Python\Lib\GPIO.py", line 78, in getIOvalue
    result = int(stat)
    ValueError: invalid literal for int():


    Good things come to those who wait.


    AT#EMAILD works and finally I can send an email and finish my work, which I consider as good.


    Thanks a lot to Lucat and Cosmin, you really were patient,
    Uli

    I did set the time by a routine calling a DAYTIME server. This part works and the modul keeps the correct time and date until the next time it is power off. I've successfully sent mails without corrcet time settings.


    Time set: no email by SEMAIL


    and module moved to anoteh location: no email by SEMAIL


    #MONI: E-Plus BSIC:33 RxQual:0 LAC:01C7 Id:1027 ARFCN:826 PWR:-82dbm TA:1

    In both of the last cases I used the same SIM card from E-Plus. This is the card causing the trouble with FW 07, while both FWs worked with a vodafone SIM card.


    I've checked the behaviour with auth.smtp.***.de again: it is the same behaviour. Strange, although I'm supposed to use the prefix AUTH. it worked with the Firmware 06. when I'd forgotten it.


    at+cclk
    Both moduls ware always resetted at power on to 00/01/01,00:00:** (no backup battery). I can set the time on both modules the using DAYTIME protocol from various NIST servers. I still havn't a clue what's going wrong when I try SNTP protocoll and nobody wants to tell me.


    Now it's time to ask TELIT?

    Here is the other bit with SKTD


    As the mail server does not echo the received commands - here is the complete dialog:


    AT#SKTD=0,25,"auth.smtp.server.de",0
    CONNECT
    220 auth.smtp.server.de (mrelayeu0) Welcome to *** ESMTP server
    HELO auth.smtp.server.de
    250 mrelayeu0.server.de pleased to meet you
    AUTH LOGIN
    334 VXNlcm5hbWU6 (base64 decoded: Username: )
    "usr bas64 coded"
    334 UGFzc3dvcmQ6 (base64 decoded: Password: )
    "pwd bas64 coded"
    235 authentication finished successfully
    MAIL FROM: sender@domain.com
    250 mail from: <sender@domain.com> ok
    RCPT TO:recipient@domain.de
    250 <recipient@domain.de> ok
    354 Enter mail, end with "." on a line by itself
    DATA
    From: <sender@domain.com>
    To: <recipient@domain.de>
    Subject: "Betreff"
    "Nachrichtentext"
    .

    250 Message 0MKwh2-1JIOXT3QxP-0005lz accepted by mrelayeu0.server.de
    QUIT
    221 auth.smtp.server.de Bye
    NO CARRIER




    at
    OK
    AT+IPR=115200
    OK
    AT&K0
    OK
    AT+CMEE=2
    OK
    AT+CPIN?
    +CPIN: SIM PIN
    OK
    AT+CPIN=####
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,1
    OK
    AT#MONI
    #MONI: D E-Plus BSIC:33 RxQual:7 LAC:01C7 Id:1027 ARFCN:826 PWR:-70dbm TA:1
    OK
    AT+CGMR
    PS:5.02.203/AL:6.04.606-B014-GM862 QUAD PY
    OK
    AT+CGATT?
    +CGATT: 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#GPRS?
    #GPRS: 0
    OK
    AT#GPRS=1
    +IP: 10.129.39.43
    OK
    AT#SKTD=0,25,"auth.smtp.server.de",0
    CONNECT
    220 auth.smtp.server.de (mrelayeu0) Welcome to *** ESMTP server
    250 mrelayeu0.server.de pleased to meet you
    334 VXNlcm5hbWU6
    334 UGFzc3dvcmQ6
    235 authentication finished successfully
    250 mail from: <sender@domain.com> ok
    250 <recipient@domain.de> ok
    354 Enter mail, end with "." on a line by itself
    250 Message 0MKwh2-1JIOXT3QxP-0005lz accepted by mrelayeu0.server.de
    221 auth.smtp.server.de Bye
    NO CARRIER


    ---------------------------------------------------------------


    AT
    OK
    AT+IPR=115200
    OK
    AT&K0
    OK
    AT+CMEE=2
    OK
    AT+CPIN?
    +CPIN: SIM PIN
    OK
    AT+CPIN=####
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,1
    OK
    AT#MONI
    #MONI: E-Plus BSIC:35 RxQual:0 LAC:0145 Id:3B51 ARFCN:783 PWR:-77dbm TA:0
    OK
    AT+CGMR
    07.02.504
    OK
    AT+CGATT?
    +CGATT: 1
    OK
    AT+CGDCONT=1,"IP","internet.eplus.de","0.0.0.0",0
    OK
    AT+CGQREQ=1,2,4,3,9,31
    OK
    AT#USERID="eplus"
    OK
    AT#PASSW="gprs"
    OK
    AT#GPRS?
    #GPRS: 0
    OK
    AT#GPRS=1
    +IP: 10.161.159.73
    OK
    AT#SKTD=0,25,"auth.smtp.server.de",0
    CONNECT
    220 auth.smtp.server.de (mrelayeu3) Welcome to *** ESMTP server
    250 mrelayeu3.server.de pleased to meet you
    334 VXNlcm5hbWU6
    334 UGFzc3dvcmQ6
    235 authentication finished successfully
    250 mail from: <sender@domain.com> ok
    250 <recipient@domain.de> ok
    354 Enter mail, end with "." on a line by itself
    250 Message 0MKxQS-1JIOc80He6-0004xt accepted by mrelayeu3.server.de
    221 auth.smtp.server.de Bye
    NO CARRIER


    Sorry for all that fuzz, but it isn't hploess, is it?

    As you requested testing SEMAIL. I'll put SKTD test in the next post.


    Yes, I set AT#jdr=4.


    I used rsterm and I didn't change any settings while I sent the emails, i.e. I clicked through the list and restarted the module and did it again.


    Sorry, the log is a bit lengthy but I didn't want you to miss anything. I alterd some personal details and deleted empty lines.


    AT
    OK
    AT+IPR=115200
    OK
    AT&K0
    OK
    AT+CMEE=2
    OK
    AT+CPIN?
    +CPIN: READY
    OK
    AT+CPIN=####
    +CME ERROR: operation not allowed
    AT+CREG?
    +CREG: 0,1
    OK
    AT#MONI
    #MONI: D E-Plus BSIC:33 RxQual:7 LAC:01C7 Id:1027 ARFCN:826 PWR:-73dbm TA:1
    OK
    AT+CGATT?
    +CGATT: 1
    OK
    AT+CGMR
    PS:5.02.203/AL:6.04.606-B014-GM862 QUAD PY
    OK
    AT#GPRS=0
    OK
    AT#ESMTP="smtp.server.de"
    OK
    AT#EUSER="usr"
    OK
    AT#EPASSW="pwd"
    OK
    AT#EADDR="sender@domain.com"
    OK
    AT#SEMAIL="recipient@domain.com","Sent with RS Terminal",0
    > first try s2 , SEMAILCTRL-Z
    OK


    ------------------------------------------------------------------------------


    AT
    OK
    AT+IPR=115200
    OK
    AT&K0
    OK
    AT+CMEE=2
    OK
    AT+CPIN?
    +CPIN: SIM PIN
    OK
    AT+CPIN=####
    OK
    AT+CREG?
    +CREG: 0,3
    OK
    AT#MONI


    #MONI: Vodafone D2 BSIC:50 RxQual:0 LAC:0262 Id:5AD4 ARFCN:55 PWR:-51dbm TA:0
    OK
    AT+CGATT?
    +CGATT: 0
    OK
    AT+CGMR
    07.02.504
    OK
    AT#GPRS=0
    OK
    AT#ESMTP="smtp.server.de"
    OK
    AT#EUSER="usr"
    OK
    AT#EPASSW="pwd"
    OK
    AT#EADDR="sender@domain.com"
    OK
    AT#SEMAIL="recipient@domain.com","Sent with RS Terminal",0
    > first try TER, SEMAIL
    CTRL-Z
    +CME ERROR: connection failed


    ------------------------------------------------------------------------------


    AT
    OK
    AT+IPR=115200
    OK
    AT&K0
    OK
    AT+CMEE=2
    OK
    AT+CPIN?
    +CPIN: SIM PIN
    OK
    AT+CPIN=####
    OK
    AT+CREG?
    +CREG: 0,3
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,1
    OK
    AT#MONI
    #MONI: E-Plus BSIC:35 RxQual:0 LAC:0145 Id:3B51 ARFCN:783 PWR:-75dbm TA:1
    OK
    AT+CGATT?
    +CGATT: 1
    OK
    AT+CGMR
    07.02.504
    OK
    AT#GPRS=0
    OK
    AT#ESMTP="smtp.server.de"
    OK
    AT#EUSER="usr"
    OK
    AT#EPASSW="pwd"
    OK
    AT#EADDR="sender@domain.com"
    OK
    AT#SEMAIL="recipient@domain.com","Sent with RS Terminal",0
    > second try, SEMAIL (TER)
    CTRL-Z
    +CME ERROR: connection failed
    AT#MONI
    #MONI: E-Plus BSIC:35 RxQual:0 LAC:0145 Id:3B51 ARFCN:783 PWR:-74dbm TA:0
    OK
    AT+CGATT?
    +CGATT: 1
    OK


    ------------------------------------------------------------------------------


    AT
    OK
    AT+IPR=115200
    OK
    AT&K0
    OK
    AT+CMEE=2
    OK
    AT+CPIN?
    +CPIN: READY
    OK
    AT+CREG?
    +CREG: 0,1
    OK
    AT#MONI
    #MONI: E-Plus BSIC:35 RxQual:0 LAC:0145 Id:3B51 ARFCN:783 PWR:-75dbm TA:0
    OK
    AT+CGATT?
    +CGATT: 1
    OK
    AT+CGMR
    07.02.504
    OK
    AT#GPRS=0
    OK
    AT#ESMTP="smtp.server.de"
    OK
    AT#EUSER="usr"
    OK
    AT#EPASSW="pwd"
    OK
    AT#EADDR="sender@domain.com"
    OK
    AT#SEMAIL="recipient@domain.com","Sent with RS Terminal",0
    > third try SEMAIL (TER) CTRL-Z
    +CME ERROR: connection failed


    ------------------------------------------------------------------------------


    AT
    OK
    AT+IPR=115200
    OK
    AT&K0
    OK
    AT+CMEE=2
    OK
    AT+CPIN?
    +CPIN: SIM PIN
    OK
    AT+CPIN=####
    OK
    AT+CREG?
    +CREG: 0,3
    OK
    AT#MONI
    #MONI: T-Mobile D BSIC:37 RxQual:0 LAC:690B Id:3962 ARFCN:102 PWR:-51dbm TA:0
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,1
    OK
    AT#MONI
    #MONI: E-Plus BSIC:33 RxQual:0 LAC:01C7 Id:1013 ARFCN:858 PWR:-79dbm TA:1
    OK
    AT+CGATT?
    +CGATT: 1
    OK
    AT+CGMR
    07.02.504
    OK
    AT#GPRS=0
    OK
    AT#ESMTP="smtp.server.de"
    OK
    AT#EUSER="usr"
    OK
    AT#EPASSW="pwd"
    OK
    AT#EADDR="sender@domain.com"
    OK
    AT#SEMAIL="recipient@domain.com","Sent with RS Terminal",0
    > 4th try SEMAIL (TER)CTRL-Z
    +CME ERROR: connection failed
    AT#MONI
    #MONI: E-Plus BSIC:33 RxQual:0 LAC:01C7 Id:1013 ARFCN:858 PWR:-77dbm TA:1
    OK
    AT+CGATT?
    +CGATT: 1
    OK


    ------------------------------------------------------------------------------


    AT
    OK
    AT+IPR=115200
    OK
    AT&K0
    OK
    AT+CMEE=2
    OK
    AT+CPIN?
    +CPIN: SIM PIN
    OK
    AT+CPIN=####
    OK
    AT+CREG?
    +CREG: 0,3
    OK
    AT#MONI
    +CME ERROR: no network service
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,1
    OK
    AT#MONI
    #MONI: D E-Plus BSIC:35 RxQual:0 LAC:0145 Id:3B51 ARFCN:783 PWR:-73dbm TA:1
    OK
    AT+CGATT?
    +CGATT: 1
    OK
    AT+CGMR
    PS:5.02.203/AL:6.04.606-B014-GM862 QUAD PY
    OK
    AT#GPRS=0
    OK
    AT#ESMTP="smtp.server.de"
    OK
    AT#EUSER="usr"
    OK
    AT#EPASSW="pwd"
    OK
    AT#EADDR="sender@domain.com"
    OK
    AT#SEMAIL="recipient@domain.com","Sent with RS Terminal",0
    > second try RS-EB-S2 , SEMAIL
    CTRL-Z
    OK

    Sorry I'm not permitted to grant you access to this or any other account of our mail server. Perhaps this might not be necessary any more.


    I've tried all kinds of configuration I could think of and the behaviour is not really plausible:


    (1) Initally I used a E-Plus prapaid card which worked on the RS-EB-S2 (06...) and didn't work with the identical software on TER-GX 110S (07...)
    In both cases I could register to the network but SEMAIL didn't work on the TER. But when I sent an email as described in this thread: eMail by "SEMAIL" and "SKTD" it worked. And the HTTP example form rsterm worked also.


    (2) Then I tried a vodafone SIM card and guess what: everything works. Having a closer look to signal strength and quality it turned out to be as followed:


    vodafone
    after +cpin it is quickly registered
    PWR: -58..-65 dB
    RxQual: 0


    E-Plus
    after +cpin it takes a few tries to register and prints JAMMED a couple of times
    PWR: -68..-78 dB
    RxQual: 7 or 0, but no numbers between


    So the poor network quality causes my troubles, but what I don't understand is: why does it work with one device and not with the other one, even if I use the same antenna and why can I send an email manualy via SKTD but not with SEMAIL. It doesn't make sense to me.


    Isn't it a digital world? Things are suppossed to work or not but not to funktion occaionally!

    AUTH is part of the SMTP procedure for server authentication and is independent to SIM authentication, where AT^SGAUTH=3 is included to provider.ini. Why use the Siemens proprietary command which isn't in the manual?


    The core problem is still SEMAIL - any news on that? Have you tested with GM862? As it works with your GM863 there must be a difference.


    Since I've a deadline to meat I've started to implement my own mail procedure. But this cannot be a desirable solution. First using EASY-things from Roundsolutions and once everything is working getting confronted with new hardware and one has to start all over again!

    I tried the HELO again and compared it to rsterm. In general it works but not with rsterm. Do you use LOGIN, PLAIN, CRAM-MD5, NTLM or any different method with AUTH? I have to use AUTH LOGIN.


    Back to the question for mail account details -I tried another account at web.de with the same unsuccessful: result #SEMAIL doesn't #SKTD does work.


    (Since this thread becomes threatening long, I want to thank you, I really appreciate your commitment)

    Sorry, I can't. The backoffice is very sensitve and strict about that.


    What is the difference between moduls running firmware 6 and 7? The manual states something about different hardware. Is it due to the change to RoHS conform? Is it a faster processor now? Are timeouts becomming to short/long?


    Since I'm loosing a bit of time with all of this, could you hint me about another problem, please. I don't get the call to a NTP server right. Once I'm connected (e.g. to ptbtime1.ptb.de) I fail to retrieve an answer. The request I found on the internet is '\x1b' + 47*'\0'. Further I#m unsure about the port: 13, 37, 123, 80, 1024, or ...?

    guess what 07.02.503 doesn't work, too.


    I've noticed the "+CME ERROR: connection failed" message appears quite quickly. It behaves like the smtp server login has failed.

    finally I've managed to send a mail using SKTD as described in this thread: eMail by "SEMAIL" and "SKTD", so I suspect the error in SEMAIL.


    Notice: I can't use the #SKTD example apllication from rsterm - I'm not sure why, however, I've to use EHLO because HELO dosn't work.

    That' s why I'm getting desperate - that's behaving the same way.


    I even opend the TER to use the antenna from S2.


    ----------------------------------------------------------------
    S2
    ----------------------------------------------------------------
    AT
    OK
    AT+IPR=115200
    OK
    OK
    AT+CMEE=2
    OK
    +CPIN: SIM PIN
    OK
    AT+CPIN=####
    OK
    AT+CPIN?
    +CPIN: READY
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,1
    OK
    AT#MONI
    #MONI: D E-Plus BSIC:33 RxQual:0 LAC:01C7 Id:1027 ARFCN:826 PWR:-65dbm TA:1
    OK
    AT+CGATT?
    +CGATT: 1
    OK
    PS:5.02.203/AL:6.04.606-B014-GM862 QUAD PY
    OK
    AT#GPRS=0
    OK
    AT#ESMTP="smtp.***.de"
    OK
    AT#EUSER="********"
    OK
    AT#EPASSW="********"
    OK
    AT#EADDR="***@***.com"
    OK
    AT#SEMAIL="***@***.com","Sent with RS Terminal",0
    > Hello?
    OK


    ----------------------------------------------------------------
    TER
    ----------------------------------------------------------------
    AT
    OK
    AT+IPR=115200
    OK
    AT&K0
    OK
    AT+CMEE=2
    OK
    AT+CPIN?
    +CPIN: SIM PIN
    OK
    AT+CPIN=####
    OK
    AT+CREG?
    +CREG: 0,2
    OK
    AT+CREG?
    +CREG: 0,1
    OK
    AT#MONI
    #MONI: D E-Plus BSIC:35 RxQual:0 LAC:0145 Id:3B51 ARFCN:783 PWR:-77dbm TA:0
    OK
    AT+CGATT?
    +CGATT: 1
    OK
    AT+CGMR
    07.02.504
    OK
    AT#GPRS=0
    OK
    AT#ESMTP="smtp.***.de"
    OK
    AT#EUSER="********"
    OK
    AT#EPASSW="********"
    OK
    AT#EADDR="***@***.com"
    OK
    AT#SEMAIL="***@***.com","Sent with RS Terminal",0
    > Hello again!
    +CME ERROR: connection failed

    done that, same result: S2 works TER doesn't.
    GPRS is 0


    A different TER (7.2.502) doesn't work either.


    (By that occasion I had to find out that the #LSCRIPT behaves differently: separator is ',' instead of ' ' and #LSCRIPT? doesn't work it had to be withot '?'. However you probably knew that)


    I tried the whole sending procedure manualy with hyperterminal and it didn't work.


    Now I'm realy in need for some ideas since I run out of them.