Unable to make it to Hello World
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.