Stalker V2.3 +GPRSbee + Low power + Ubidots


#1

Hi!!! It is quite complex what I am doing but probably you can help me.
I am using Stalker V2.3 and GRPRBee

GPRSBee is connected in Bee port but I changed RX and TX pins to be on Stalker Pins 7 and 8.

I am running a code where I put the device in sleep mode and wake it up with Real Time Clock every 2 minutes. (Int jumper and PD5 power bee jumper welded in Stalker)

When I wake it up I send through GPRS temperature to Ubidots. I am having some problems with serial communication and connecting to Ubidots.

I guess that there is a problem between libraries SoftwareSerial and Wire. Code and error!

GPRSShield_Ubi.ino (3.7 KB) error.txt (8.2 KB)

Thank you very much in advance.
Best,
Rodri


#2

Hi Rodri,
I see your attachments and and I can see two things.
First:
AT+CSTT=“internet.wind”

ERROR

This is to connect with your VPN of your red mobile , I can see that quite fails, that means it’s a little unstable

Second: Check this
AT+CIPSTART=“tcp”,“things.ubidots.com”,“80”

OK
AT+CIPSEND

ERROR
POST /api/v1.6/variables/5408256b76254210e3acafbf/values HTTP/1.1
Content-Type: application/json

SIM900 R11.0

ERROR
Content-Length: 12
X-Auth-Token: YRWsXoUOptheqaDFN2T58o65hyHe4m
Host: things.ubidots.com

{“value”:31}

That error is because you begin to communicate without good connection to the ubidots server. When you use AT+CIPSTART=“tcp”,“things.ubidots.com”,“80” you’ll need to wait until you CONNECT OK reply.
Then you need more delay.

Best Regards,
Mateo Velez