Unable to receive data via TCP on BG96

I am trying to read some TCP data received at my BG96 but I am getting this error:

+QIOPEN: 0,0
at+qisend=0,3

aaa
SEND OK

+QIURC: “recv”,0
AT QIRD=0,15

Quectel
BG96
Revision: BG96MAR02A07M1G

ERROR

any ideas?
thanks

After you receive ERROR, could you try sending the AT command: AT+QIGETERROR

This command will return the error code of the last error and give you a more detailed description as to why the error occurred.

Some things that initially come to mind are:

  1. The “Quectel…” statements are responses to the AT command ATI, and shouldn’t be returned unless that command is executed. Are you ensuring that OK is returned before sending another AT command?
  2. Are the commands you show above in order or are there additional commands sent in between?
  3. Perhaps try querying your socket state with AT+QISTATE and verify that you still have a valid connection
1 Like

hi,irmanao:

AT+QISWTMD Switch Data Access Mode

at+qiswtmd=1
I suggest you set it to direct push mode,and try it again!

1 Like

Hi,

I am typing the command the wrong way…As it can be seen in my original post: AT QIRD=0,15

It’s missing an “+”.

Sorry about that , it was a late day when I was testing.
It now works fine.

Thanks for the swift help guys.