GPy cannot attach - Germany Telekom / Vodafone



  • Hi Community,

    I need help with a problem that I can no longer solve.

    I need help with a problem that I cannot solve on my own.

    My new GPy module sits on a Sens expansion board. Unfortunately the attach always fails.

    Card Info's - ThingsMobile Standard - used in germany

    Supportet Band's: 3, 7, 8, 20 (Telekom ... Multiprovider)

    APN: TM
    
    Anbietercode (PLMN): 23450
    
    MCC: 234
    
    MNC: 50
    

    My Code:

    import time
    from network import LTE
    
    def send_at_cmd_pretty(cmd):
        response = lte.send_at_cmd(cmd).split('\r\n')
        for line in response:
            print(line)
    
    
    lte = LTE()
    lte.reset()
    lte.init()
    lte.attach(band=20, apn='TM')
    
    print('Try to Attach.', end='')
    while not lte.isattached():
        time.sleep(10)
        print('.', end='')
        send_at_cmd_pretty('AT!="showphy"')     # get the PHY status
        send_at_cmd_pretty('AT!="fsm"')         # get the System FSM
    

    The Output:

    DL SYNCHRO STATISTICS
    =====================
        Synchro state                         : FAST SCAN
        PPU SIB1 ACQ watchdog                 : 0
        Frequency Hypothesis RF  (Hz)         : -2000
        RSRP (dBm)                            : -21474836.00
        RSRQ  (dB)                            : 0.00
        Channel estimation state (Cell-spec.) : LOW CINR
        Channel estimation state (UE-spec.)   : LOW CINR
        Channel estimation state (MBSFN)      : LOW CINR
        Channel estimation CINR               : -13.45
        Channel length                        : SHORT
      AGC
        AGC RX gain (dB)                      : 27.59
        RX PSD BO (dBFs)                      : -20.81
        RX PSD (dBm)                          : -99.24
        Noise level RS (dBm)                  : -128.24
        Digital gain (dB)                     : 2.41
        CINR RS (dB)                          : 0.00
      NARROWBANDS
        Last DL NB                            : Central
        Last UL NB                            : 0
      AFC
        Frequency offset RF  (Hz)             : 0
        Frequency offset BB  (Hz)             : 0
      PBCH
        MIB received quantity                 : 0
        MIB timeout quantity                  : 0
    
    OK
    
    
    SYSTEM FSM
    ==========
        +--------------------------+--------------------+
        |            FSM           |        STATE       |
        +--------------------------+--------------------+
        | RRC TOP FSM              |SCANNING            |
        | RRC SEARCH FSM           |WAIT_RSSI           |
        | RRC ACTIVE FSM           |NULL                |
        | PMM PLMN FSM             |ANY_WAITCELL        |
        | EMM MAIN FSM             |NULL                |
        | EMM AUTH FSM             |NULL                |
        | EMM CONN FSM             |NULL                |
        | EMM TAU FSM              |NULL                |
        | EMM TEST FSM             |NULL                |
        | ESM BEARER FSM           |BEARER_NULL         |
        | SMS MT FSM               |IDLE                |
        | SMS MO FSM               |IDLE                |
        | HP MAIN FSM              |IDLE                |
        | HP USIM FSM              |READY               |
        | HP SMS MO FSM            |IDLE                |
        | HP SMS MT FSM            |IDLE                |
        | HP CAT FSM               |IDLE                |
        +--------------------------+--------------------+
    
    OK
    

    Modem Firmware: 41065

    Please help me :(



  • @nftylitak

    Hi,

    got no answer.

    I test it with this code:

    def send_at_cmd_pretty(cmd):
        response = lte.send_at_cmd(cmd).split('\r\n')
        for line in response:
            print(line)
    
    
    lte = LTE()
    lte.reset()
    lte.init()
    time.sleep(10)
    
    send_at_cmd_pretty('AT+CMEE=2') 
    send_at_cmd_pretty('AT+CFUN=1')
    send_at_cmd_pretty('AT+COPS=?')  #this will take some time to reply, ~1minute 
    send_at_cmd_pretty('AT+COPS=1,2,"23450"')
    
    print('Wating.', end='')
    while 1:
        time.sleep(5)
        print('.', end='')
    

    Thats the output:

    OK
    
    
    OK
    
    
    
    Wating......................................................................................................................................................................
    


  • @nftylitak Thanks! Yes I modify my post :p

    ThingsMobile send me a mail ...
    They say on their page (German version) that they support Cat-M1. The support said that they will only be able to do this later this year. My God! Bad Business



  • @hw_meetnow the last line that you posted refers to +COPN not COPS :) So the syntax template is:

    AT+COPS[<mode>[,<format>[,<oper>[,<AcT>]]]]
    

    My next step would be:

    • to enable verbose error reporting to the modem
    • execute a network scan to see if my operator is listed
    • rerun the +COPS network operator lock with the verbose errors to see if I get anything usefull
    send_at_cmd_pretty('AT+CMEE=2') 
    send_at_cmd_pretty('AT+COPS=?')  #this will take some time to reply, ~1minute 
    send_at_cmd_pretty('AT+COPS=1,2,"23450"')
    


  • @nftylitak Thank you very much for your time!

    I tried both combinations. Got a error on this line (AT answer)

    send_at_cmd_pretty('AT+CFUN=0') -> OK
    send_at_cmd_pretty('AT+CGDCONT=1,"IP","TM"') -> OK
    send_at_cmd_pretty('AT+CFUN=1') -> OK
    send_at_cmd_pretty('AT+COPS=1,2,"23450"') -> ERROR
    

    and

    send_at_cmd_pretty('AT+CFUN=0') -> OK
    send_at_cmd_pretty('AT+CGDCONT=1,"IP","TM"') -> OK
    send_at_cmd_pretty('AT+COPS=1,2,"23450"') -> ERROR
    send_at_cmd_pretty('AT+CFUN=1') -> OK
    

    Mh is the command syntax okay? I think yes..

    +COPN:<numeric1>,<alpha1>[<CR><LF>+COPN:<numeric2>,<alpha2> [...]]
    


  • What if you tried to execute the attachment manually with AT commands with a network locking? We have seen cases where a lock to the MCC / MNC was needed when a specific SIM card was inserted in the modem for the first time.

    lte = LTE()
    lte.reset()
    lte.init()
    send_at_cmd_pretty('AT+CFUN=0')
    send_at_cmd_pretty('AT+CGDCONT=1,"IP","TM"')
    # send_at_cmd_pretty('AT+COPS=1,2,"23450"') 
    send_at_cmd_pretty('AT+CFUN=1')
    send_at_cmd_pretty('AT+COPS=1,2,"23450"')
    
    print('Try to Attach.', end='')
    while not lte.isattached():
        time.sleep(10)
        print('.', end='')
        send_at_cmd_pretty('AT!="showphy"')     # get the PHY status
        send_at_cmd_pretty('AT!="fsm"')         # get the System FSM
    
    

    I do not really remember if the COPS command needs to go before or after the CFUN, you could try both.



  • @robert-hh

    Thank you for your answer.

    Sorry no effect :(

    lte.attach(band=8, apn='TM')
    

    ->

    DL SYNCHRO STATISTICS
    =====================
        Synchro state                         : FAST SCAN
        PPU SIB1 ACQ watchdog                 : 0
        Frequency Hypothesis RF  (Hz)         : -2000
        RSRP (dBm)                            : -21474836.00
        RSRQ  (dB)                            : 0.00
        Channel estimation state (Cell-spec.) : LOW CINR
        Channel estimation state (UE-spec.)   : LOW CINR
        Channel estimation state (MBSFN)      : LOW CINR
        Channel estimation CINR               : 0.00
        Channel length                        : SHORT
      AGC
        AGC RX gain (dB)                      : 28.72
        RX PSD BO (dBFs)                      : 0.00
        RX PSD (dBm)                          : 0.00
        Noise level RS (dBm)                  : -30.00
        Digital gain (dB)                     : 1.28
        CINR RS (dB)                          : 0.00
      NARROWBANDS
        Last DL NB                            : Central
        Last UL NB                            : 0
      AFC
        Frequency offset RF  (Hz)             : 0
        Frequency offset BB  (Hz)             : 0
      PBCH
        MIB received quantity                 : 0
        MIB timeout quantity                  : 0
    
    OK
    
    
    SYSTEM FSM
    ==========
        +--------------------------+--------------------+
        |            FSM           |        STATE       |
        +--------------------------+--------------------+
        | RRC TOP FSM              |SCANNING            |
        | RRC SEARCH FSM           |WAIT_RSSI           |
        | RRC ACTIVE FSM           |NULL                |
        | PMM PLMN FSM             |NORM_WAITCELL       |
        | EMM MAIN FSM             |NULL                |
        | EMM AUTH FSM             |NULL                |
        | EMM CONN FSM             |NULL                |
        | EMM TAU FSM              |NULL                |
        | EMM TEST FSM             |NULL                |
        | ESM BEARER FSM           |BEARER_NULL         |
        | SMS MT FSM               |IDLE                |
        | SMS MO FSM               |IDLE                |
        | HP MAIN FSM              |IDLE                |
        | HP USIM FSM              |READY               |
        | HP SMS MO FSM            |IDLE                |
        | HP SMS MT FSM            |IDLE                |
        | HP CAT FSM               |IDLE                |
        +--------------------------+--------------------+
    
    OK
    


  • This post is deleted!


  • @hw_meetnow you could try the attach command w/o specifying the band. Besides that, Telekom uses band 8.


Log in to reply
 

Pycom on Twitter