Sending UDP messages using BC660K (Eval) - or at least trying to

Hello,

I’m trying to send a simple UDP message (datagram)
I’ve tried opening a “UDP service” (I understand this is a UDP server) as well as opening “UDP” (I understand is UDP client).

When I try to send data, the send seems to work, but it is never received by my server.
Using a UDP client app on my phone I can send data to my server fine (using the cellular network), but with the BC660K EVAL I am having no success.
Can anyone suggest what I may be missing here?

For “UDP SERVICE”
Check I’m connected and have an IP:
AT+CGPADDR?
+CGPADDR: 0,“100.93.192.132”

Open socket:
AT+QIOPEN=0,0,“UDP SERVICE”,“127.0.0.1”,1234,1234,1
OK

Confirm socket is good:
AT+QISTATE=1,0
+QISTATE: 0,“UDP SERVICE”,“127.0.0.1”,1234,1234,2,0,1
OK

Send data:
AT+QISEND=0,“51.19.242.229”,1234,1234,5,“HELLO”
OK
SEND OK

For “UDP”
Open socket:
AT+QIOPEN=0,0,“UDP”,“51.19.242.229”,1234,1234,1

Confirm socket:
AT+QISTATE=1,0
+QISTATE: 0,“UDP”,“51.19.242.229”,1234,1234,2,0,1

Send data:
AT+QISEND=0,5,“ABCDE”
OK

Other info:
Revision: BC660KGLAAR01A04
AT+CEREG?
+CEREG: 1,5 (so connected to network OK)

AT+CGATT?
+CGATT: 1
OK (so connected to the APN ok, I think)

Many thanks for any ideas!

Steve

I suggest setting <local_port> to 0 and then try again

Hi Herbert,

Thanks for the suggestion.
I have now tried this, but I get the same result.
I now suspect this is an issue with Vodafone having IP whitelists/blacklists for their APNs.
I will try and see if this may be blacklisted.

Regards,
Steve

UPDATE
The APN I was using (lpwa.vodafone.iot) despite being the “public” APN, still was doing IP filtering.
I had to get the IP address I was trying to connect to whitelisted, for things to work.

Posting this in case this helps someone else.
FYI, if the “UDP SERVICE” open is used, this can be any IP and any valid port (and it really doesn’t matter), since when you come to actually send your packet, you stipulate the IP and port for the packet here.
Regards,
Steve