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