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

    AT-comands error message

    iotcreators.com portal & API
    3
    12
    3202
    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.
    • A
      Alessandro Mirabella last edited by

      I just receive the t-mobile sim card for an IoT project.
      I am using an MKRNB1500.
      I tried to follow the steps from the website https://docs.iot.t-mobile.nl/docs/tools, but the arduino program provided it is not working for my microcontroller.
      I tried to use a different library and I can type now the AT-COMMANDS, some works and some no.

      Now I am stuck in the 2nd step of the tutorial to attach the microcontroller to the network and most of the commands returns an ERROR.
      What should I do?

      E 1 Reply Last reply Reply Quote 0
      • E
        Eric Barten iotcreators.com team @Alessandro Mirabella last edited by

        Hi @alessandro-mirabella I have the same device and it works fine with both ther libraries and through AT commands.
        Can you specifiy which command fails? Usually when the SIM card is not correctly inserted a lot of commands give an error, can you check this?

        1 Reply Last reply Reply Quote 1
        • A
          Alessandro Mirabella last edited by

          @eric-barten
          AT+NRB
          AT+NCONFIG=“AUTOCONNECT”,“TRUE”
          AT+NCONFIG=“CR_0354_0338_SCRAMBLING”,“TRUE”
          AT+NCONFIG=“CR_0859_SI_AVOID”,“TRUE”
          AT+NCONFIG?
          AT+NBAND=8
          AT+NPING=“172.27.131.100”
          AT+NPINGERR
          AT+CGSN=1
          the comands above returns: ERROR

          AT+CGDCONT=0,“IP”,“cdp.iot.t-mobile.nl”
          the comand above returns: +CME ERROR: operation not supported

          1 Reply Last reply Reply Quote 0
          • A
            Alessandro Mirabella last edited by

            After a bit of research and luck, I found the at comand to verify if the sim card is attached
            AT+USIMSTAT? returns 0 and from the documentations list (see below) the device cannot read the sim card. Sooooo I am trying to move the simcard in different position and see if the status changes. If you have other suggestions, please let me know.

            List of AT+USIMSTAT? results:
            • 0: SIM card not present
            • 1: PIN needed
            • 2: PIN blocked
            • 3: PUK blocked
            • 4: (U)SIM not operational
            • 5: (U)SIM in restricted use (FDN or BDN active)
            • 6: (U)SIM operational (registration may be initiated)
            • 7: SIM phonebook ready to be used (when the SIM application is active)
            • 8: USIM phonebook ready to be used (when the USIM application is active)
            • 9: (U)SIM toolkit REFRESH proactive command successfully concluded
            • 10: (U)SIM toolkit REFRESH proactive command unsuccessfully concluded
            • 11: PPP connection active, (U)SIM toolkit REFRESH proactive command delayed till
            PPP deactivation
            • 12: voice call active,

            B 1 Reply Last reply Reply Quote 0
            • B
              Bob Mooij @Alessandro Mirabella last edited by

              @alessandro-mirabella it looks like you have a SARA-R4 from ublox.

              Can you try the following commands:

              AT+URAT=8
              AT+URAT?
              AT+CMEE=2
              AT+CGDCONT=1,“IP”,“cdp.iot.t-mobile.nl”
              AT+CGDCONT?
              AT+CFUN=1
              AT+COPS=1,2,“20416”
              AT+CSQ
              AT+CEREG=2
              AT+CEREG?
              AT+CGPADDR
              AT+USOCR=17
              AT+USOST=0,“172.27.131.100”,15683,4,“Data”
              AT+USOCL=0

              (Source: https://support.sodaq.com/sodaq-one/sodaq-sara-r410m/#tmobile_at_commands)

              A 4 Replies Last reply Reply Quote 1
              • A
                Alessandro Mirabella last edited by

                AT+CGDCONT=1,“IP”,“cdp.iot.t-mobile.nl”
                +CME ERROR: operation not supported

                At this point it is not working.

                1 Reply Last reply Reply Quote 0
                • A
                  Alessandro Mirabella @Bob Mooij last edited by

                  @bob-mooij
                  Yes, I have an MKRNB1500 with a SARA-R410M-02B chip.
                  And I am using the MKRNB library for the AT commands.

                  1 Reply Last reply Reply Quote 0
                  • A
                    Alessandro Mirabella @Bob Mooij last edited by

                    @bob-mooij ok…I did a very stupid mistake. I have entered this command with a space.
                    AT+CGDCONT=1,“IP”,“cdp.iot.t-mobile.nl”
                    +CME ERROR: operation not supported

                    Now it is working until here:
                    AT+USOST=0,“172.27.131.100”,15683,4,“Data”
                    +CME ERROR: Operation not allowed

                    1 Reply Last reply Reply Quote 0
                    • A
                      Alessandro Mirabella @Bob Mooij last edited by

                      @bob-mooij Ok thank you! now it is working until the end. Does it mean that the network is attached?correct?
                      Looks like I was “copy and paste” in the wrong way.
                      In the website, if you copy and paste the commands, sometimes there is a space at the end of the command…and that space doesn’t make work the command and returns an ERROR.

                      1 Reply Last reply Reply Quote 0
                      • A
                        Alessandro Mirabella @Bob Mooij last edited by

                        @bob-mooij I can see now that I receive a message on the starter kit in t-mobile.
                        it is working.
                        Now I should understand how to regularly send a message.
                        Could you help me?
                        Should I always repeat this set of messages all the time?

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          Bob Mooij @Alessandro Mirabella last edited by

                          @alessandro-mirabella

                          These commands are for connecting to the t-mobile network

                          AT+URAT=8
                          AT+CMEE=2
                          AT+CGDCONT=1,“IP”,"cdp.iot.t-mobile.nl"
                          AT+CFUN=1
                          AT+COPS=1,2,"20416"
                          AT+CSQ
                          AT+CEREG=2
                          

                          These for creating a (UDP) socket and sending data

                          AT+USOCR=17
                          AT+USOST=0,“172.27.131.100”,15683,4,"Data"
                          AT+USOCL=0
                          

                          Create UDP Socket AT+USOCR=17
                          SendTo command (UDP only) AT+USOST=0,“172.27.131.100”,15683,4,"Data"
                          Close Socket AT+USOCL=0

                          You can find all the AT commands and the description of the commands here:
                          https://www.u-blox.com/sites/default/files/SARA-R4-SARA-N4_ATCommands_%28UBX-17003787%29.pdf

                          A 1 Reply Last reply Reply Quote 1
                          • A
                            Alessandro Mirabella @Bob Mooij last edited by

                            @bob-mooij After some experimenting I kind of figure it out.
                            But thanks for this confirmation.

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post