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

    Orange Belgium Gpy

    Scheduled Pinned Locked Moved Discussion
    gpy nbiotorange belgium
    25 Posts 10 Posters 4.2k Views 13 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.
    • P Offline
      peterv @Bettina
      last edited by

      @bettina Any news?

      1 Reply Last reply Reply Quote 0
      • P Offline
        peterv
        last edited by

        So today I managed to get a connection with the NB-1 firmware version 35351, haven't managed with version 37781 though. Here's what I used:

        lte = LTE()
        def send_at_cmd_pretty(cmd):
            response = lte.send_at_cmd(cmd).split('\r\n')
            for line in response:
                print(line)
        send_at_cmd_pretty('AT+CFUN=0')
        send_at_cmd_pretty('AT!="clearscanconfig"')
        send_at_cmd_pretty('AT!="addscanfreq band=20 dl-earfcn=6400"')
        send_at_cmd_pretty('AT!="zsp0:npc 1"')
        send_at_cmd_pretty('AT+CGDCONT=1,"IP","nbiot.iot"')
        send_at_cmd_pretty('AT+CFUN=1')
        while not lte.isattached():
            pass
        
        lte.connect()
        while not lte.isconnected():
            pass
        

        DNS doesn't work, but I managed to send some data through MQTT to Adafruit IO using the IP address for io.adafruit.com (as opposed to using the hostname).

        1 Reply Last reply Reply Quote 0
        • P Offline
          peterv
          last edited by

          It somehow started working with version 37781 too, managed to reduce the code to:

          lte = LTE()
          lte.send_at_cmd('AT+CGDCONT=1,"IP","nbiot.iot"')
          lte.attach(band=20)
          while not lte.isattached():
              machine.idle()
          lte.connect()
          while not lte.isconnected():
              machine.idle()
          

          DNS is still not working (maybe related to https://forum.pycom.io/topic/2934/lte-nb-iot-dns/4).

          danD L 2 Replies Last reply Reply Quote 0
          • danD Offline
            dan @peterv
            last edited by

            Hi @peterv,

            That's great that you got it working! There's an open issue for DNS on GitHub, as you can see there we are looking into the issue.

            1 Reply Last reply Reply Quote 0
            • F Offline
              Filip
              last edited by

              Any update on this one ?
              Tried all the above using my GPY and an Orange Maker SIM Card, but no luck : can't get the LTE attached.

              Apparently different APN's in use (cfr https://docs.allthingstalk.com/networks/use-orangebe-nbiot/ ):
              You purchased an Orange NB-IoT Rapid Development Kit and SIM card: starter.att.iot
              You purchased an Orange NB-IoT SIM card:
              Maker: att.iot
              Light: nbiot.iot
              Plus : nbiot.iot

              Any hints ?

              Thanks,

              Filip.

              @peterv said in Orange Belgium Gpy:

              6400

              1 Reply Last reply Reply Quote 0
              • F Offline
                Filip
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • F Offline
                  Filip
                  last edited by

                  OK, it does work for Orange Belgium using the instructions @peterv provided (thx for posting them), but ONLY using NB-IOT firmware NB1-37781, not using the more recent NB1-38729.

                  Cheers,

                  Filip.

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    Lonefish @peterv
                    last edited by

                    @peterv Do you have any news on newer firmware? With your code it started to work at some point on firmware 40343 without any changes that I know of. 2 days later, not changing anything, it stopped working..

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mp
                      last edited by

                      @lonefish said in Orange Belgium Gpy:

                      40343

                      I will test once i success in flash the nb firmware.
                      By the way, I heard that LTE catM is being deployed on Orange

                      R L 2 Replies Last reply Reply Quote 0
                      • R Offline
                        rskoniec @mp
                        last edited by rskoniec

                        @mp Here in Poland Orange also deploying pilots with Cat-M1.

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

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          mp
                          last edited by

                          My flash succeed!

                          In the first test device attache and connect quite quickly ( with csq = 16), but now with the same code it didn't work again (csq = 99,99). Strange, will test again later

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            mp
                            last edited by mp

                            @Lonefish Do you find a solution?

                            Anyone else have some track to debug when the code is stuck in the isattached loop?

                            Or have the 35351 firmware?

                            1 Reply Last reply Reply Quote 0
                            • L Offline
                              Lonefish @mp
                              last edited by Lonefish

                              @mp Apparently the SIM cards were deactivated, they deactivated the SIM cards after 3 months, and we didn't know. They are activated again and now it works again (firmware 40343)

                              I also heard the news that CAT M1 should be deployed, will test that out later this week.

                              L 1 Reply Last reply Reply Quote 0
                              • L Offline
                                Lonefish @Lonefish
                                last edited by

                                The current state (22 Januari) of the Orange LTE-CAT M1 is this according to Orange B2B:
                                Only in Antwerp and around 20 sites it's available. The network is ready, but still waiting to activate it because of a few reasons apparently.

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  mp
                                  last edited by

                                  Hey,
                                  I still have trouble to connect to nbiot :s
                                  Always stuck in lte.isattached loop.

                                  I checked my sim card with the allthinktalks modem and the card is still activated.
                                  I've tried the solution of peterv, annoguy, and in the official doc.
                                  @Lonefish which solution did you tried ?

                                  L 1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    mp
                                    last edited by

                                    Does anyone can help to figure out what going on ?
                                    It start to be frustrating ....

                                    J 1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      peterv
                                      last edited by

                                      Still works for me on 1.20.0.rc4/NB-IOT firmware 40343:

                                      >>> import sqnsupgrade
                                      >>> sqnsupgrade.info()
                                      <<< Welcome to the SQN3330 firmware updater [1.2.1] >>>
                                      >>> FiPy with firmware version 1.20.0.rc4
                                      Your modem is in application mode. Here is the current version:
                                      UE6.0.0.0
                                      LR6.0.0.0-40343
                                      

                                      and

                                      >>> from network import LTE
                                      >>> lte = LTE()
                                      >>> lte.send_at_cmd('AT+CGDCONT=1,"IP","nbiot.iot"')
                                      '\r\nOK\r\n'
                                      >>> lte.attach(band=20)
                                      >>> lte.isattached()
                                      False
                                      >>> lte.isattached()
                                      True
                                      >>> lte.connect()
                                      >>> lte.isconnected()
                                      True
                                      

                                      Still no DNS:

                                      >>> socket.getaddrinfo('www.pycom.io', 80)
                                      Traceback (most recent call last):
                                        File "<stdin>", line 1, in <module>
                                      OSError: -202
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • L Offline
                                        Lonefish @mp
                                        last edited by Lonefish

                                        @mp My solution was making sure the SIM cards are still activated. That was it, the code just works. I suspect you have the antenna connected?

                                        I have to say tho, the first time it seems to take a while to connect (like a few minutes even) but after that it just 'flies' through. Have you let it sit for a while? Like during lunch?

                                        EDIT: Have you updated the firmware to the latest version?

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          johanbrichau @mp
                                          last edited by

                                          @mp I have my Gpy connecting to Orange NB-IoT. I’m using latest dev firmware and modem firmware. See https://github.com/jbrichau/TrackingPrototype/blob/b3c5ec0cd3a7cd434fb6cec64c85c206d8d3277e/Device/main.py#L75 for my code.

                                          What is the firmware you are using?

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            mp
                                            last edited by

                                            Hello all,
                                            I use 40343, but it was painful to flash the firmware, is it possible that the firmware is corrupted? If upgrade success the firmware have to be ok?

                                            Yes i let it connected many minutes, and the antenna is connected. I dont use this anthena https://pycom.io/product/lte-m-antenna-kit/ but another nbiot antena (https://shop.sodaq.com/sodaq-sara-ubee-n211.html)
                                            I will retry this Sunday

                                            Thank you for you help

                                            M 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
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom