iotcreators.com web
    • Login
    • Search
    • forum.iotcreators.com
    • docs.iotcreators.com
    • Tags
    • Popular
    • Recent
    • Register

    Arduino MKR NB1500: lukt niet om te verbinden.

    iotcreators.com portal & API
    t-mobile nl arduino connection at command ublox firmware update
    5
    98
    895
    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.
    • C
      Crowdsourcer last edited by Aleksandra Klinkner

      De handleiding op deze site om te connecten met T-Mobile lijkt niet te werken voor de Arduino MKR NB1500. De meeste AT commando’s worden niet herkend (response: “ERROR”). De handleiding start met AT+NRB, NRB komt echter niet voor als AT commando in de Ublox handleiding van het narrow band modem. AT+CGPADDR werkt en geeft een IP adres terug.
      Data versturen lukt echter niet. Heeft iemand een handleiding hoe dit moet met het Arduino MKR NB1500 board?

      S 1 Reply Last reply Reply Quote 0
      • S
        Stefan de Lange @Crowdsourcer last edited by

        @Crowdsourcer De handleiding is gebaseerd op UBLOX N2, wat ondertussen alweer een verouderd modem is. Inderdaad jammer dat dat niet vermeld wordt in de handleiding want een groot deel van deze commando’s zijn modem specifiek.

        MKRNB1500 maakt gebruik van het UBLOX R4 modem, kijk even op https://www.u-blox.com/sites/default/files/SARA-R4_ATCommands_%28UBX-17003787%29.pdf voor de juiste commando’s. Voor AT+NRB (reboot) kun je op Ublox R4 AT+CFUN=16 gebruiken. Voor het sturen van data kun je AT+USOST gebruiken (wel eerst een socket openen)

        1 Reply Last reply Reply Quote 0
        • C
          Crowdsourcer last edited by

          @Stefan-de-Lange said in Arduino MKR NB1500: lukt niet om te verbinden.:

          UBLOX N2

          Bedankt, dat verklaart een boel. Helaas werkt op de Sara N4 modems ook AT+CFUN=16 niet, alleen 15 is toegestaan. Ik ga het nu even testen.

          S C 2 Replies Last reply Reply Quote 0
          • C
            Crowdsourcer last edited by

            Hierbij mijn eerste vertalingspoging van de T-Mobile guide naar Arduino MKR NB 1500 modem AT commands Het werkt nog niet, graag aanvullen, alvast bedankt!

            Deel 2: Network attach:
            AT+NRB wordt: AT+CFUN=15
            AT+NCONFIG=“AUTOCONNECT”,“TRUE” wordt: …??
            AT+NCONFIG=“CR_0354_0338_SCRAMBLING”,“TRUE” wordt: …??
            AT+NCONFIG=“CR_0859_SI_AVOID”,“TRUE” wordt: …??
            AT+NCONFIG? wordt: …??
            AT+CGDCONT=0,“IP”,“cdp.iot.t-mobile.nl” wordt: AT+CGDCONT=1,“IP”,“cdp.iot.t-mobile.nl” (foutje in handleiding: =0?)
            AT+CFUN=1 Werkt!
            AT+NBAND=8 wordt: …??
            AT+COPS=1,2,“20416” Werkt!
            AT+CSQ Werkt (geeft 20,99), dus goed signaal.
            AT+CGATT? Werkt (geeft een 1, dus connected)
            AT+CGPADDR Werkt (message terug: IP adres)
            AT+NPING=“172.27.131.100” wordt: …??
            AT+CGSN=1 wordt: AT+CGSN

            Deel 4: “Hello world”
            AT+NSOCR=“DGRAM”,17,7000,1 wordt???: … AT+USOCR=17,7000 (message +USOCR: 2)
            AT+NSOST=0,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64” wordt…??: AT+USOST=2,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64” maar geeft errors!

            AT commands U-Blox modems:
            U-Blox N2 modem (waarschijnlijk de T-Mobile handleiding): https://www.u-blox.com/sites/default/files/SARA-N2-N3_ATCommands_%28UBX-16014887%29.pdf
            U-Blox R4 modem (in Arduino MKR NB1500): https://www.u-blox.com/sites/default/files/SARA-R4_ATCommands_%28UBX-17003787%29.pdf

            S E 2 Replies Last reply Reply Quote 0
            • S
              Stefan de Lange @Crowdsourcer last edited by

              @Crowdsourcer Weet je zeker dat je een Sara N4 modem hebt? Volgens mij heeft de MKR NB1500 een Sara R4 series modem

              C 1 Reply Last reply Reply Quote 0
              • C
                Crowdsourcer @Stefan de Lange last edited by

                @Stefan-de-Lange Mijn Arduino heeft een u-blox SARA-R410M-02B, zoals ik in de pdf link had aangegeven.

                1 Reply Last reply Reply Quote 0
                • C
                  Crowdsourcer @Crowdsourcer last edited by

                  correctie: Sara R4

                  1 Reply Last reply Reply Quote 0
                  • S
                    Stefan de Lange @Crowdsourcer last edited by

                    @Crowdsourcer said in Arduino MKR NB1500: lukt niet om te verbinden.:

                    AT+NSOCR=“DGRAM”,17,7000,1 wordt???: … AT+USOCR=17,7000 (message +USOCR: 2)
                    AT+NSOST=0,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64” wordt…??: AT+USOST=2,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64” maar geeft errors!

                    Zou gewoon moeten werken. Let op spaties in het commando, verkeerde aanhalingstekens etc.

                    1 Reply Last reply Reply Quote 0
                    • C
                      Crowdsourcer last edited by

                      @Stefan-de-Lange said in Arduino MKR NB1500: lukt niet om te verbinden.:

                      AT+USOCR=17,7000 (message +USOCR: 2)

                      Helaas, geeft +CME ERROR: Operation not allowed

                      1 Reply Last reply Reply Quote 0
                      • C
                        Crowdsourcer last edited by

                        @Stefan-de-Lange said in Arduino MKR NB1500: lukt niet om te verbinden.:

                        AT+NSOST=0,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64”

                        Ik bedoelde dat AT+NSOST=0,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64”

                        een error geeft, ik kies dan NSOST socket nummer op basis van terugmelding van AT+USOCR=17, 7000 in dit geval was het 0.

                        1 Reply Last reply Reply Quote 0
                        • C
                          Crowdsourcer last edited by

                          @Stefan-de-Lange said in Arduino MKR NB1500: lukt niet om te verbinden.:

                          AT+USOST=2,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64”

                          AT+USOST=0,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64” werkt dus niet!

                          1 Reply Last reply Reply Quote 0
                          • C
                            Crowdsourcer last edited by

                            AT+USOST=0,“172.27.131.100”, 15683, 11, “48656c6c6f20576f726c64”

                            werkt ook niet.

                            S 1 Reply Last reply Reply Quote 0
                            • afzal_m
                              afzal_m iotcreators.com team last edited by

                              @Crowdsourcer

                              Did you try to open the socket first?

                              You can do that by executing this command
                              AT+USOCR=17

                              1 Reply Last reply Reply Quote 0
                              • afzal_m
                                afzal_m iotcreators.com team last edited by

                                Ah wait… I now noticed that you already did.

                                Then I’m also lost. It should work like this. :-(

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Stefan de Lange @Crowdsourcer last edited by

                                  @Crowdsourcer I think it’s not working because of old firmware. On a R410 with the most recent firmware I was able to send payload inline via AT+USOST=0,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64” (also called ‘base syntax’). On a R410 with very old firmware (from 2018) that didn’t work so you have to use the ‘hex syntax’, which is sending the payload after sending the command.

                                  I tried the following with the old firmware, that works:

                                  [2020-04-27_12:06:54:125]AT+CFUN=0
                                  [2020-04-27_12:06:54:860]OK
                                  [2020-04-27_12:06:57:092]AT+CGDCONT=1,"IP","cdp.iot.t-mobile.nl"
                                  [2020-04-27_12:06:57:111]OK
                                  [2020-04-27_12:06:58:556]AT+URAT=8
                                  [2020-04-27_12:06:58:556]OK
                                  [2020-04-27_12:07:01:279]AT+CFUN=15
                                  [2020-04-27_12:07:01:279]OK
                                  [2020-04-27_12:07:09:482]AT+CEREG=3
                                  [2020-04-27_12:07:09:482]OK
                                  [2020-04-27_12:07:11:499]AT+CFUN=1
                                  [2020-04-27_12:07:11:499]OK
                                  [2020-04-27_12:07:13:090]AT+COPS=1,2,"20416"
                                  [2020-04-27_12:07:13:098]OK
                                  [2020-04-27_12:07:20:349]AT+CGATT?
                                  [2020-04-27_12:07:20:349]+CGATT: 1
                                  [2020-04-27_12:07:20:349]OK
                                  [2020-04-27_12:07:21:702]AT+CGPADDR
                                  [2020-04-27_12:07:21:702]+CGPADDR: 1,10.0.0.25
                                  [2020-04-27_12:07:21:702]OK
                                  [2020-04-27_12:07:23:548]AT+USOCR=17,7000
                                  [2020-04-27_12:07:23:559]+USOCR: 0
                                  [2020-04-27_12:07:23:559]OK
                                  [2020-04-27_12:07:45:220]AT+USOST=0,"172.27.131.100",15683,11
                                  [2020-04-27_12:07:45:220]@ <send hex data after @>
                                  [2020-04-27_12:07:45:220]48656c6c6f20576f726c64
                                  [2020-04-27_12:07:49:524]+USOST: 0,11
                                  [2020-04-27_12:07:49:524]OK
                                  

                                  So you can use the hex syntax or upgrade your firmware and use the base syntax. It’s a good idea to upgrade your firmware anyway :)

                                  M 1 Reply Last reply Reply Quote 1
                                  • C
                                    Crowdsourcer last edited by

                                    @Stefan-de-Lange Thank you so much, it works now! My message appears at the IoT dashboard or T-Mobile.
                                    The joke is that I bought these modules last Friday, and updating the modem seems very difficult. I would need to do that using a pass through AT+ command method. I will contact Arduino for that. Thanks a lot again! Bert

                                    1 Reply Last reply Reply Quote 1
                                    • C
                                      Crowdsourcer last edited by

                                      @Stefan-de-Lange said in Arduino MKR NB1500: lukt niet om te verbinden.:

                                      AT+USOCR=17,7000

                                      Regarding the modem firmware update: I contacted Arduino and their hardware team is working hard to release instructions and the proper files to do the update. However they cannot mention a release date yet. Let’s hope for a fast release!

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        Stefan de Lange @Crowdsourcer last edited by

                                        @Crowdsourcer You might be able to solder a USB cable on the SARA R4 USB port to do the FW upgrade yourself:

                                        5c2a30e3-3877-444e-9feb-73472dd9cd22-image.png

                                        https://content.arduino.cc/assets/MKRNB1500_V3.0_sch.pdf

                                        C 1 Reply Last reply Reply Quote 0
                                        • M
                                          Martijn Kooijman @Stefan de Lange last edited by

                                          @Stefan-de-Lange said in Arduino MKR NB1500: lukt niet om te verbinden.:

                                          AT+CGDCONT=1,“IP”,“cdp.iot.t-mobile.nl”

                                          I tried this to connect my mkrnb1500 to the tmobile network, at first it seemed ok but now it looks like the sara card locks up when the sim card is inserted, is there a way to reset the settings?

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            Martijn Kooijman @Martijn Kooijman last edited by

                                            @Martijn-Kooijman To clarify whithout sim I can successfully send the following commands:
                                            AT
                                            ATI
                                            AT+CFUN=0, with sim I doesnt respond even to AT

                                            1 Reply Last reply Reply Quote 0
                                            • afzal_m
                                              afzal_m iotcreators.com team last edited by

                                              @Martijn-Kooijman I am not sure if it is the same, but this problem occured with the Ublox R410 as well.

                                              With simcard it was not possible to send AT commands, without simcard it was possible.
                                              This problem was solved in a later firmware release…

                                              M 1 Reply Last reply Reply Quote 0
                                              • M
                                                Martijn Kooijman @afzal_m last edited by

                                                @afzal_m
                                                Thanks there is a ublox sara r410 onboard, I already contacted ublox but did not receive the update yet. I was hoping it could work without the update as @Stefan-de-Lange suggested above

                                                S 1 Reply Last reply Reply Quote 0
                                                • S
                                                  Stefan de Lange @Martijn Kooijman last edited by

                                                  @Martijn-Kooijman The module should never ‘lock up’. The fact that it doesn’t even respond to AT indicates there is problem with the module and/or sim card. As @afzal_m mentioned you can try upgrading the FW to see if it solves the problem.

                                                  M 1 Reply Last reply Reply Quote 0
                                                  • 1
                                                  • 2
                                                  • 3
                                                  • 4
                                                  • 5
                                                  • 1 / 5
                                                  • First post
                                                    Last post