Bg95-m3 at+qcoapcreate=56830 error

Hi,

In GPRS mode, I cannot create the Coap context. It is possible to give an example.
I leave below the steps I am taking.

/* Start AT SYNC: Send AT every 500ms, if receive OK, SYNC success, if no OK return after sending AT 10 times, SYNC fail */
[2020-11-11 12:16:19:270_S:] AT
[2020-11-11 12:16:19:331_R:] AT
[2020-11-11 12:16:19:331_R:] OK
[2020-11-11 12:16:19:332_S:] ATI
[2020-11-11 12:16:19:395_R:] ATI
[2020-11-11 12:16:19:395_R:] Quectel
[2020-11-11 12:16:19:395_R:] BG95-M3
[2020-11-11 12:16:19:395_R:] Revision: BG95M3LAR02A03

[2020-11-11 12:16:19:395_R:] OK
[2020-11-11 12:16:19:405_S:] ATI
[2020-11-11 12:16:19:458_R:] ATI
[2020-11-11 12:16:19:458_R:] Quectel
[2020-11-11 12:16:19:458_R:] BG95-M3
[2020-11-11 12:16:19:458_R:] Revision: BG95M3LAR02A03

[2020-11-11 12:16:19:458_R:] OK

/* Use ATV1 to set the response format */
[2020-11-11 12:16:19:460_S:] ATV1
[2020-11-11 12:16:19:559_R:] ATV1
[2020-11-11 12:16:19:559_R:] OK

/* Use ATE1 to enable echo mode */
[2020-11-11 12:16:19:765_S:] ATE1
[2020-11-11 12:16:19:823_R:] ATE1
[2020-11-11 12:16:19:823_R:] OK

/* Use AT+CMEE=2 to enable result code and use verbose values */
[2020-11-11 12:16:19:970_S:] AT+CMEE=2
[2020-11-11 12:16:20:029_R:] AT+CMEE=2
[2020-11-11 12:16:20:029_R:] OK

/* Get the baudrate, if the value is 0 (auto baudrate), then it will be set to 115200 (fixed baudrate) to assure reliable communication and avoid any problems caused by undetermined baudrate between DCE and DTE, value of IPR should be saved with AT&W */
[2020-11-11 12:16:20:275_S:] AT+IPR?
[2020-11-11 12:16:20:332_R:] AT+IPR?
[2020-11-11 12:16:20:332_R:] +IPR: 115200

[2020-11-11 12:16:20:332_R:] OK

/* Use ATI to get module information of Manufacturer ID, Device module and Firmware version */
[2020-11-11 12:16:20:379_S:] ATI
[2020-11-11 12:16:20:442_R:] ATI
[2020-11-11 12:16:20:442_R:] Quectel
[2020-11-11 12:16:20:442_R:] BG95-M3
[2020-11-11 12:16:20:442_R:] Revision: BG95M3LAR02A03

[2020-11-11 12:16:20:442_R:] OK

/* Use AT+GSN to query the IMEI of module */
[2020-11-11 12:16:20:546_S:] AT+GSN
[2020-11-11 12:16:20:601_R:] AT+GSN
[2020-11-11 12:16:20:601_R:] 864475045194858

[2020-11-11 12:16:20:601_R:] OK

/* Use AT+CPIN? to query the SIM card status : SIM card inserted or not, locked or unlocked */
[2020-11-11 12:16:21:107_S:] AT+CPIN?
[2020-11-11 12:16:21:172_R:] AT+CPIN?
[2020-11-11 12:16:21:172_R:] +CPIN: READY

[2020-11-11 12:16:21:172_R:] OK

/* Use AT+CIMI to query the IMSI of SIM card */
[2020-11-11 12:16:21:285_S:] AT+CIMI
[2020-11-11 12:16:21:347_R:] AT+CIMI
[2020-11-11 12:16:21:347_R:] 268069636139549

[2020-11-11 12:16:21:347_R:] OK

/* Use AT+QCCID to query ICCID number of SIM card */
[2020-11-11 12:16:21:490_S:] AT+QCCID
[2020-11-11 12:16:21:554_R:] AT+QCCID
[2020-11-11 12:16:21:554_R:] +QCCID: 89351060000770861548

[2020-11-11 12:16:21:554_R:] OK

/* Use AT+CSQ to query current signal quality */
[2020-11-11 12:16:21:594_S:] AT+CSQ
[2020-11-11 12:16:21:649_R:] AT+CSQ
[2020-11-11 12:16:21:649_R:] +CSQ: 24,99

[2020-11-11 12:16:21:649_R:] OK

/* Use AT+CREG? /AT+CGREG? to query the network registration status. */
[2020-11-11 12:16:21:651_S:] AT+CREG?
[2020-11-11 12:16:21:749_R:] AT+CREG?
[2020-11-11 12:16:21:749_R:] +CREG: 0,1

[2020-11-11 12:16:21:749_R:] OK
[2020-11-11 12:16:21:769_S:] AT+CGREG?
[2020-11-11 12:16:21:851_R:] AT+CGREG?
[2020-11-11 12:16:21:851_R:] +CGREG: 0,1

[2020-11-11 12:16:21:851_R:] OK

/* Use AT+COPS? to query current Network Operator */
[2020-11-11 12:16:21:874_S:] AT+COPS?
[2020-11-11 12:16:21:952_R:] AT+COPS?
[2020-11-11 12:16:21:952_R:] +COPS: 0,0,“altice MEO”,0

[2020-11-11 12:16:21:952_R:] OK

[2020-11-11 12:16:38:625_S:] AT+QCOAPCREATE=56830
[2020-11-11 12:16:38:681_R:] AT+QCOAPCREATE=56830
[2020-11-11 12:16:38:681_R:] ERROR

Hi,
I’m sorry to reply you so late.
If you want to establish a COAP connection,you can follow the example below.

//Configure PDP context ID 1 for CoAP session.
AT+QCOAPCFG=“pdpcid”,0,1
OK
//Configure CoAP session retransmission settings.
(The ACK timeout is 4 seconds and the maximum retransmission count is 5.)
AT+QCOAPCFG=“trans”,0,4,5
//Open CoAP session and connect with CoAP server
AT+QCOAPOPEN=0,“220.180.239.212”,8028
OK

+QCOAPOPEN: 0,0 //Open the CoAP session successfully.
//Query status of CoAP session.
AT+QCOAPOPEN?
+QCOAPOPEN: 0,“220.180.239.212”,8028,3

OK
//Set CoAP message header.
AT+QCOAPHEADER=0,1234,1//Set CoAP message ID to 1234 and generate token automatically.
OK
//Set/Add CoAP options.
AT+QCOAPOPTION=0,0,0,11,“19” //Add Uri-Path to 19 into option index 0
OK
AT+QCOAPOPTION=0,0,1,12,40 //Add Content-Format to application/link-format into option index 1
OK
//Send 20 bytes CoAP non-confirmable message to server
AT+QCOAPSEND=0,1,2,1,20

Hello, CoAP Message!

OK

+COAPACK: 0,1,1234,0
//Receive downlink error message from server side.

+QCOAPRECV: 0,1234,4.04,6,D204D52E814B,0,9
Not Found
//Close CoAP session.
AT+QCOAPCLOSE=0
OK

+QCOAPCLOSE: 0,0 //Close CoAP session successfully.