Unable to make it to Hello World
-
Hello,
In part 2 of the Getting Started, setting the APN throws an error:
AT+CGDCONT=0,“IP”,“cdp.iot.t-mobile.nl”
ERRORThe 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!
-
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)?
-
@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.
-
Ok that’s correct. Which module are you using (e.g. Queclec BS 95, U-blox Sara N200, etc.)
-
-
Strange, should be fine.
What do you get back from
at+cereg? (with the question mark included)
-
@afzal_m That gives +CEREG:0,5
-
@afzal_m Any suggestions on how to proceed?
-
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?
-
@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 -
@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.
-
@eric-barten Thank you Eric. Creating the socket without quotes was the solution. See my reply to @afzal_m.