Send Udp Data To Remote Client; Retrieve Data From Remote Client; Close A Udp Service; Udp Service Under Ipv6 Network - Quectel BG95 Series Application Note

Hide thumbs Also See for BG95 Series:
Table of Contents

Advertisement

3.8.2. Send UDP Data to Remote Client

AT+QISEND=2,10,"10.7.89.10",6969
>1234567890
SEND OK

3.8.3. Retrieve Data from Remote Client

+QIURC: "recv",2
AT+QIRD=2
+QIRD: 4,"10.7.76.34",7687
AAAA
OK
AT+QIRD=2
+QIRD: 0
OK
AT+QISEND=2,10,"10.7.76.34",7687
>1234567890
SEND OK

3.8.4. Close a UDP Service

AT+QICLOSE=2
OK

3.9. UDP Service under IPv6 Network

3.9.1. Start a UDP Service

//Start a UDP service whose <connectID> is 2 and <context> is 1. Before using AT+QIOPEN, the host
should activate the context with AT+QIACT first.
AT+QIOPEN=1,2,"UDP SERVICE","0:0:0:0:0:0:0:1",0,12345,0
OK
BG95&BG77&BG600L_Series_TCP/IP_Application_Note
BG95&BG77&BG600L Series TCP/IP Application Note
//Send 10 bytes data to a remote client whose IP is 10.7.89.10
and the port is 6969.
//Received data from the remote client.
//Retrieve UDP data. One whole UDP packet will be outputted.
There is no need to specify the read length.
//The retrieved data length is 4 bytes. The IP address of the
remote client is 10.7.76.34 and the port is 7687.
//Retrieve data.
//No data in buffer.
//Send data to the remote client whose IP is 10.7.76.34 and the
port is 7687.
//Close the service.
LPWA Module Series
48 / 56

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Bg77 seriesBg600l series

Table of Contents