CGATT=1 but ERROR when sending message

Hello there,

I’ve been following the NB-IoT workshop last november. We used a T-mobile SIM to actually connect, which worked!

Now I have a vodafone SIM and I made some changes. I changed the Band, IP and scrambling just everything that needs to be done to be able to connect and send messages.

I currently have a CGATT=1, so it’s safe to say that I’m connected. When I send a message I get an “ERROR” message.
Here is the log of my file:


rdResp: timed out
rdResp: REBOOT_CAUSE_UNKNOWN
rdResp: u-blox
rdResp: OK
rdResp: OK
rdResp: timed out
rdResp: OK
rdResp: +NCONFIG: “AUTOCONNECT”,“FALSE”
rdResp: +NCONFIG: “CR_0354_0338_SCRAMBLING”,“TRUE”
rdResp: +NCONFIG: “CR_0859_SI_AVOID”,“FALSE”
rdResp: +NCONFIG: “COMBINE_ATTACH”,“FALSE”
rdResp: +NCONFIG: “CELL_RESELECTION”,“FALSE”
rdResp: +NCONFIG: “ENABLE_BIP”,“FALSE”
rdResp: OK
AUTOCONNECT… OK
CR_0354_0338_SCRAMBLING… OK
CR_0859_SI_AVOID… OK
COMBINE_ATTACH… OK
CELL_RESELECTION… OK
ENABLE_BIP… OK
rdResp: REBOOTING
rdResp:
rdResp: REBOOT_CAUSE_APPLICATION_AT
rdResp: u-blox
rdResp: OK
rdResp: timed out
rdResp: OK
rdResp: OK
rdResp: OK
rdResp: OK
rdResp: OK
rdResp: OK
rdResp: +CSQ: 99,99
rdResp: OK
rdResp: +CSQ: 99,99
rdResp: OK
rdResp: +CSQ: 13,99
rdResp: OK
rdResp: ERROR
rdResp: ERROR
rdResp: ERROR
rdResp: ERROR
rdResp: OK
Connected succesfully!
Temperature + humidity sensor initialized.
Temperature * 100 = 2584
Humidity * 100 = 3285
0A:18:0C:D5
Check connection…
rdResp: +CGATT: 1
rdResp: OK
Sending message…
rdResp: ERROR
Temperature * 100 = 2571
Humidity * 100 = 3212
0A:0B:0C:8C
Check connection…
rdResp: +CGATT: 1
rdResp: OK
Sending message…
rdResp: ERROR
Temperature * 100 = 2567
Humidity * 100 = 3202
0A:07:0C:82
Check connection…
rdResp: +CGATT: 1
rdResp: OK
Sending message…
rdResp: ERROR

I used the AT commands:
AT+CGDCONT=1, “IP”,“nb.inetd.gdsp”
AT+NBAND=20
AT+COPS=1,2,“20404”

I hope you can assist me with resolving this issue.

Kind regards,
Thijs

Hi,

I see that your Vodefone Sim connected to the network succesfully.

The libraries are only working on a NB-IoT network with coap.
Vodafone send raw udp. we are at the moment finishing the udp library.

Kind regards,
Jan

Hi,

Do you have any documentation on how to send raw udp using the AT commands?

Kind regards,
Thijs

Dear Thijs,

I added the sequence here:
http://support.sodaq.com/sodaq-one/at/

Regards,
Jan

1 Like

Hi Jan,

I’ve noticed some problems with the example:

AT+NSOCR=DGRAM,17,16666,1 //Create socket
AT+NSOST=0,84.200.60.162,16666,4,4142430A //Send UDP datagram on socket 0 (to echo server)
AT+NSORF=0,4 //Receive data on socket 0

The first command actually has to be “AT+NSORC=“DGRAM”,17, 16666,1”
Without quotes around the DGRAM it doesn’t create the socket. Same goes for the IP and message on the NSOST.
Here the command I had to use was “AT+NSOST=0,“84.200.60.162”,16666,4,“4142430A””.

I didn’t use the AT+NSORF=0,4 command. After the AT+NSOST I received a 0,4 as response.

After that everything worked. Thanks for the help !

Kind regards,
Thijs

1 Like