Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    lte.attach() doesn't work, but modem is attached

    Scheduled Pinned Locked Moved GPy
    gpyattachnb-iot
    9 Posts 6 Posters 1.5k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      shedaim
      last edited by

      Hi,

      I am trying to work with a GPy (NB-IoT), configured to only listen to Band 28, which is the band I'm using with a mobile EPC (Ericsson) I own.
      After configuring the SIM card, the modem tries to connect/attach to the cellular network and I can spot it on the MME and eNodeB (including a set of initializing messages). The modem is then given an IP address dynamically, an S-GW and a P-GW and it's state changes from "Idle" to "Active".

      I can 'ping' the modem and can 'traceroute' it to see it communicating through the right APN (configured on both SIM and Core).
      When I try the AT command - 'AT+CEREG?' I get the following answer: 2, 2, "0002", "XXXXXXX",9
      As I understand it, it means: configured to register to network, registered to network, location tag (which is the right NB-IoT cell), cell ID in hexa, some cause that I couldn't figure out what it means but seems irrelevant.

      If I try to lte.attach(), the modem won't attach and it will stay with lte.isattached() = False.
      Ideas on how to proceed and an explanation of what is the lte.attach() trying to do would be welcome.

      Thanks,

      Shedaim

      robert-hhR 1 Reply Last reply Reply Quote 0
      • R Offline
        rskoniec
        last edited by Xykon

        @shedaim I don't know which f/w you're using, but maybe this would be helpful:

        @robert-hh said in Trying to connect to LTE-M1:

        @chielvdiepen There is a problem in the lte.attach() API. @xykon adresses this in a trial firmware build at [LINK NO LONGER AVAILABLE]
        Please download and install that (install from file). It may fix you problem.
        See also this thread around https://forum.pycom.io/topic/3549/important-update-regarding-lte-modem-updates/83 and

        The machine is working as good as it's code.

        1 Reply Last reply Reply Quote 1
        • S Offline
          shedaim
          last edited by

          Indeed, that was the issue. With the new Firmware it's working.
          Thank you.

          1 Reply Last reply Reply Quote 0
          • W Offline
            wtrocel
            last edited by Xykon

            Hi Guys, this link seems to be broken, [LINK NO LONGER AVAILABLE] Is there any other location where I can find this firmware?

            I am facing similar issue, after the attach command , I can see form the network signalling that the device actually is attached to the NB-IoT network, however the isattach() respond false, which is not right

            I would appreciated if you could please pint me I the right direction

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              danielm @wtrocel
              last edited by

              @wtrocel
              Try to test with Pre-release v1.18.1.r6:
              https://github.com/pycom/pycom-micropython-sigfox/releases

              It still has some socket and LTE-related issues but it works better than previous releases.

              LTE-related issues:
              When modem Synchro state goes to OFF lte.isattached() and lte.isconnected() continue to return True. This seems to be happening also in case of strong signal. Probably can be solved by re-attach.

              I also suggest to reset the modem after LTE object initialization using 'AT+CFUN=1,1' command. Otherwise you may have issues with connecting after ESP32 soft-reset (when the modem is not restarted).

              1 Reply Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @shedaim
                last edited by

                @shedaim In the actual "official" version 1.18.1.r1 there is a bug, in that the response to attach is not correctly decoded. This is known since a while. Try to update to a more recent version.

                W 1 Reply Last reply Reply Quote 0
                • W Offline
                  wtrocel @robert-hh
                  last edited by

                  thanks guys..

                  I have downloaded this version, "GPy-1.20.0.rc0" is there any link with the instruction on how to upgrade my Pycom with this files?

                  Appreciated

                  robert-hhR P 2 Replies Last reply Reply Quote 0
                  • robert-hhR Offline
                    robert-hh @wtrocel
                    last edited by

                    @wtrocel Depends on what you downloaded. If you downloaded the source tree, you have to build your image based on the instrauctuion in README.md.
                    If you downloaded the zip files form here (https://github.com/pycom/pycom-micropython-sigfox/releases), you can use the Pycom updater with the option "upgrade from file". You can also use the updater and select "Include Development Versions".

                    1 Reply Last reply Reply Quote 1
                    • P Offline
                      Paul Thornton @wtrocel
                      last edited by

                      @wtrocel As @robert-hh has suggested using the pycom firmware update tool and selecting include development versions + development instead of stable is likely the easiest way to get the new Release candidate.

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • First post
                        Last post

                      Pycom on Twitter

                      Pycom