LTE deinit GPY



  • Having some issues connecting to the LTE network with one of my GPYs, the modem seems to be busy with something else. It will not attach to the LTE network (but wifi works). I have formatted the devices, uploaded new firmware via CLI. Still I get the problem. Wanted to deinit the LTE connection, but I never get that far. I tried the following in VSCode. Anyone that knows how to solve this?

    >>> from network import LTE
    >>> lte=LTE()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    OSError: Couldn't connect to Modem!```
    >>>

  • Global Moderator

    That is some odd behaviour, can you contact me at support@pycom.io to sort this out?



  • @Gijs Have anotherone that is not performing as well. Updated to latest firmware via Firmware updated, ticked all erase boxes and so on. When I run my code it indicates I2C error and will not connect via LTE.

    OSError: Couldn't connect to Modem (modem_state=disconnected)
    

    and then

    >>> import sqnsupgrade; sqnsupgrade.info(debug=True)
    <<< Welcome to the SQN3330 firmware updater [1.2.6] >>>
    >>> GPy with firmware version 1.20.2.r0
    The current delay is 1000
    Response (+++ #1): b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x00\x00\xff\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00\xfe\x00\x00\x00\x00\xff\x00\x00\xff\xff\xfc\xff\xff\xfe\xff\xff\xff\x00\xff\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\xff'
    Modem state: None
    Cannot determine modem state!
    

    Had to shorten the text above as I could not post the complete output.



  • @Gijs After a few reformatting sessions, we are now good and working, thanks for your help!


  • Global Moderator

    Oh oops, my mistake, the debug argument for lte = LTE()should come in lte.init(debug=True) ;)

    Next, it seems the modem is responding just fine to the sqnsupgrade.info() command, are you able to run a firmware update to the modem? That should solve the issue I believe. It might seem like a downgrade, but the 40160 CatM1 version is actually a little better than the 47510 version. As a sidenote, are you able to do a firmware update of your GPy? 1.20.0.rc13 is from quite a while ago

    Best,
    Gijs



  • Thanks for your kind support @Gijs highly appreciated.

    >>> from network import LTE
    >>> lte=LTE()
    >>> lte = LTE(debug=True)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: extra keyword arguments given
    >>> 
    

    and then

    >>> import sqnsupgrade; sqnsupgrade.info(debug=True)
    <<< Welcome to the SQN3330 firmware updater [1.2.6] >>>
    >>> GPy with firmware version 1.20.0.rc13
    The current delay is 1000
    Response (+++ #1): None
    Response (AT #1) b'\r\nERROR\r\n'
    Response (AT #2) b'\r\nOK\r\n'
    Response (AT+SMOD?) b'\r\n2\r\nOK\r\n'
    Converting response: 2 to int...
    Modem state: 2
    Your modem is in application mode. Here is the current version:
    mirror? False  recover? False  resume? True  direct? True  atneg_only? False bootrom? False load_fff? False
    baudrate: 921600 target_baudrate: 921600
    SYSTEM VERSION
    ==============
      FIRMWARE VERSION
        Bootloader0  : 5.1.1.0 [39529]
        Bootloader1* : 5.1.1.0 [47510]
        Bootloader2  : NA
        NV Info      : 1.1,0,0
        Software     : 5.1.1.0 [47510] by robot-soft at 2020-01-24 08:44:21
        UE           : 5.0.0.0d
      COMPONENTS
        ZSP0         : 1.0.99-13616
        ZSP1         : 1.0.99-12376
    
    IMEI: XXXXX
    >>> 
    

    Blanked the IMEI, hope that is ok!


  • Global Moderator

    Generally, disconnecting power and re-applying it should solve the issue. If not, you can try
    lte = LTE(debug=True) to see the responses of the LTE modem (if any)
    Next to that, you can try the following: import sqnsupgrade; sqnsupgrade.info(debug=True) and let me know if that gives any output for you.

    Let me know!
    Gijs


Log in to reply
 

Pycom on Twitter