Unable to send data (TCP connection) with BG95

Hi All,

I have an LPWA BG95-M3 Mini PCIe module.

As a test I want to send some data, but every time I am getting this error:
(xxx = my server ip address and port)

AT+QIOPEN=1,1,“TCP”,“xxx.xxx.xxx.xxx”,xxxx,0,0
AT+QIOPEN=1,1,“TCP”,“xxx.xxx.xxx.xxx”,xxxx,0,0
OK

AT+QISTATE=1,1
AT+QISTATE=1,1
+QISTATE: 1,“TCP”,“xxx.xxx.xxx.xxx”,xxxx,0,1,1,1,0,“usbmodem”
OK

AT+QISEND=1,0
AT+QISEND=1,0
ERROR

AT+QIGETERROR
AT+QIGETERROR
+QIGETERROR: 572,operation not allowed
OK

Any idea why I am getting this error?

Kind regards,
Peter

Hi Peter,
from logs and marked red, 1 means “Opening”, client is connecting or server is trying to listen, you need wait till connected and socket state change to 2 means connected.
image

image