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

    Unable to make it to Hello World

    iotcreators.com portal & API
    t-mobile nl
    3
    12
    1947
    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.
    • M
      Marijn last edited by

      Hello,

      In part 2 of the Getting Started, setting the APN throws an error:
      AT+CGDCONT=0,“IP”,“cdp.iot.t-mobile.nl”
      ERROR

      The other steps in part 2 went without errors. AT+CGATT? results in 1, so I am attached. I also got an ip and was able to ping. Then I did part 3, registering the imei.

      But then in the Hello World part 4,
      AT+NSOCR=“DGRAM”,17,7000,1 throws ERROR
      and
      AT+NSOST=0,“172.27.131.100”,15683,11,“48656c6c6f20576f726c64” throws ERROR.

      Any suggestions on how to proceed? Thanks!

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

        It looks like you are trying to send an UDP message. Did you register the IMEI with the UDP protocol or CoAP protocol (during step 3)?

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

          @afzal_m said in Unable to make it to Hello World:

          UDP

          Hi, thanks for replying quickly. I did choose UDP. I thought I was supposed to do so.

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

            @marijn

            Ok that’s correct. Which module are you using (e.g. Queclec BS 95, U-blox Sara N200, etc.)

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

              @afzal_m said in Unable to make it to Hello World:

              Queclec BS 95

              I am using the QUECTEL BC95-B8.

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

                Strange, should be fine.

                What do you get back from

                at+cereg? (with the question mark included)

                M 2 Replies Last reply Reply Quote 0
                • M
                  Marijn @afzal_m last edited by

                  @afzal_m That gives +CEREG:0,5

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

                    @afzal_m Any suggestions on how to proceed?

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

                      Everything looks fine then… the only thing that I can come up with right now is maybe something with the format of the command line. The usage of quotation marks depend on the firmware version of the device.

                      Are you using the latest firmware?

                      E M 2 Replies Last reply Reply Quote 0
                      • E
                        Eric Barten iotcreators.com team @afzal_m last edited by

                        @afzal_m and @Marijn everything looks fine indeed the problem is in the socket creation.
                        Depending on the firmware version of the module it could be the case that the quotes are not required:
                        AT+NSOCR=“DGRAM”,17,7000,1 could be changed to AT+NSOCR=DGRAM,17,7000,1
                        Also try different port numbers (7000) and socket numbers (1)
                        And perhaps try to retype the quotes sometimes they get copied wrong

                        M 1 Reply Last reply Reply Quote 1
                        • M
                          Marijn @afzal_m last edited by

                          @afzal_m Thanks! It’s working now:)

                          I didn’t upgrade the firmware. That step seemed a bit complicated when I started. I wasn’t succesful at reading the current firmware to begin with. In the meanwhile, I had contact with the vendor, who told me the module is running the latest firmware (packaging was sealed).

                          Earlier, I had already tried the AT+CGDCONT command with and without quotes (all kinds of), all resulting in ERROR. Then I noticed that changing the 0 into an 1 returns OK, with and without quotes. I don’t know if that’s significant. The result of at+cereg? was still +CEREG:0,5.

                          But creating the socket without quotes returned OK now and the remaining steps were easy now. I was able to deliver the Hello World message.

                          To be clear, I never had a positive result from AT+CGDCONT=0,IP,cdp.iot.t-mobile.nl. at+cereg? still returns +CEREG:0,5. Is that okay?

                          Thanks again for your time.

                          1 Reply Last reply Reply Quote 1
                          • M
                            Marijn @Eric Barten last edited by

                            @eric-barten Thank you Eric. Creating the socket without quotes was the solution. See my reply to @afzal_m.

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