Http_test not working with NBIoT

Hey,

I tried the http_test example from the Sodaq_R4X library on a Sodaq Sara R412 AFF. When setting the connection RAT to 2G the example works like expected. When setting RAT to NBIoT there is an error when the +UHTTPC command is sent. Sending data via TCP/UDP socket is working fine when connected via NBIoT. Anyone else experiencing this behaviour?

I also posted a question here:
https://portal.u-blox.com/s/question/0D52p00008ntkadCAA/sarar412m02b-uhttpc-command-fail-when-connected-via-nbiot

Hi @thomas,

Can you check if your R412M module has the latest firmware?
https://support.sodaq.com/Boards/Sara_AFF/#r4

Best regards,
Jan

Hi,

yes, I updated two days ago to M0.10.00,A.02.14.

Hi @thomas,

I have tested the today the http_get on the AFF R412M with the latest firmware.
For me it works fine.

Maybe you need to whitelist the IP before you can reach it on NB-IoT?
Do you have a battery attached? (I think yes, since 2G works)

Best regards,
Jan

Hi @Jan,

the module has the same IP address no matter if connected via 2G or NBIoT. So I think its not a problem with the modules IP-address. The battery is connected. I think the next thing I will try is to send the HTTP POST to the servers IP-Address and not to its URL. Maybe it is a DNS resolving problem.

Best regards
Thomas

1 Like

Hi @Jan,

it really seems to be a DNS issue as the DNS servers are not set when connected via NB-IoT

2G:

AT+CGCONTRDP=1
+CGCONTRDP: 1,5,iot.1nce.net,foo.foo.foo.foo, ,8.8.8.8,8.8.4.4
OK

NB-IoT:

AT+CGCONTRDP=1
+CGCONTRDP: 1,5,iot.1nce.net,foo.foo.foo.foo, , ,
OK

Any idea how to set the DNS IP manually?

Best regards
Thomas