Post topics, source code that relate to the Arduino Platform

User avatar
By Samighi11
#713
SirGeorg wrote:OK, now it works for me too, I just did not wait enough for the server response

Now I will have to write an arduino library - anybody already working on that?


i am currently working directly with the chip.

AT+CWJAP="SSID","PWD"

AT+CIFSR
10.0.0.131

AT+CIPSTART="TCP","10.0.0.110",5000
Linked

AT+CIPSEND=4
> ABCD
SEND OK

AT+CIPCLOSE
OK

Note that the documentation appears to be wrong. there is no Channel ID or I can't get the syntax right. It works if you do ="TCP".... also, if I kill the server the I have to reset the chip. it says unlink all the time.

Syntax for CIPSTART from the chip
AT+CIPSTART=?
+CIPSTART:(id)("type"),("ip address"),(port)
+CIPSTART:((id)"type"),("domain name"),(port)

Issue with syntax as stated

AT+CIPSTART=2,"TCP","10.0.55.110",5000
Link typ ERROR


Issue with Server crash and chip won't link

AT+CIPSTART="TCP","10.0.55.110",5000

ERROR
Unlink

I am going thru command by command to get things to work. I have gotten it to accept WEP keys and attempt to setup an AP, but no luck seeing it.
User avatar
By Samighi11
#749
haxtormoogle wrote:Took me a few hours to get a good reply from google.
But it works :)

The timings in the original sketch are all wrong! The arduino does not properly pick up the OK some times and there is no check to see if the module is waiting or busy.

googleyay.png


Got a full html return from google searching for "lol"

Built a proper test shield with 3.3v regulator and voltage divider.

had to pull up the enable pin with 3.3v
Firmware version
AT+GMR
00150900


Do you have a sketch and wiring to share? I am also looking to see if the RESET PIN can be used (HIGH normal, LOW/HIGH to reset). If I disconnect abnormally, I can't AT+RST, so I want to reset.

I would like to see your sketch and getting it working also (interested in the +IPD). I have been able to send data to a server by typing the commands, but not with a sketch.
User avatar
By villTech
#775
Samighi11 wrote:Note that the documentation appears to be wrong. there is no Channel ID or I can't get the syntax right.

Syntax for CIPSTART from the chip
AT+CIPSTART=?
+CIPSTART:(id)("type"),("ip address"),(port)
+CIPSTART:((id)"type"),("domain name"),(port)


AT+CIPSTART=2,"TCP","10.0.55.110",5000
Link typ ERROR

channel id is used when multiple connection is set:
at+cipmux=1
on power up, cipmux is cleared.
User avatar
By Samighi11
#781 :P
villTech wrote:
Samighi11 wrote:Note that the documentation appears to be wrong. there is no Channel ID or I can't get the syntax right.

Syntax for CIPSTART from the chip
AT+CIPSTART=?
+CIPSTART:(id)("type"),("ip address"),(port)
+CIPSTART:((id)"type"),("domain name"),(port)


AT+CIPSTART=2,"TCP","10.0.55.110",5000
Link typ ERROR

channel id is used when multiple connection is set:
at+cipmux=1
on power up, cipmux is cleared.


Yes. Thank you. After significant trial and error, I now have a python harness built to test all the commands. Once I got most to work, the became obvious. I have gotten it to be a AP (which I was amazed worked), send data via http (had to pre-construct http header), receive and read data from hosts. I am now working on a porting my nrf2401 temp sensor to this device.