brianrho / M590

A TCP client library for the M590 GPRS modem
6 stars 8 forks source link

I ave issue with M590/M590e #1

Closed vtomanov closed 5 years ago

vtomanov commented 5 years ago

some time when I send data I get

+CME ERROR: 100

100 is unknown error :(

it really weird as some time it is after the OK sometime before etc. any suggestion will be very appreciated.

EXAMPLE LOG 1

GPRS: COMMAND[ AT+TCPSETUP=1,109.169.26.34,5409 ] SIZE[ 33 ]
GPRS: RESPONSE[ OK ]
GPRS: RESPONSE[ +TCPSETUP:1,OK ]
GPRS: DATA PREPARED LEN[ 51 ]
GPRS: COMMAND[ AT+TCPSEND=1,51 ] GPRS: RESPONSE[ > ]
GPRS: COMMAND[ ⸮ ] -<<< the actual data 51 bytes + \r
GPRS: RESPONSE[ OK ] GPRS: RESPONSE[ +TCPSEND:1,51 ]
GPRS: RESPONSE[ +CME ERROR: 100 ]

EXAMPLE LOG 2

GPRS: COMMAND[ AT+TCPSETUP=1,109.169.26.34,5409 ] SIZE[ 33 ]
GPRS: RESPONSE[ OK ]
GPRS: RESPONSE[ +TCPSETUP:1,OK ]
GPRS: DATA PREPARED LEN[ 8 ]
GPRS: COMMAND[ AT+TCPSEND=1,8 ] SIZE[ 15 ]
GPRS: RESPONSE[ > ]
GPRS: COMMAND[ ⸮ ] << the actual data 8 bytes + \r GPRS: RESPONSE[ +CME ERROR: 100 ]

brianrho commented 5 years ago

It's been years since I used this module and I've always found it unreliable and eventually dumped it for the SIM800. I can't help you a lot here, as these results you're getting don't seem to be from my library. Still, the datasheet says to send AT+CMEE=2 to get more verbose errors, so you can try that and see if you can figure out the problem. Or just get a module like the SIM800 that'll save you all this trouble