Post topics, source code that relate to the Arduino Platform

User avatar
By Bruce Markey
#18831 Yes please, that would be helpful, thank you.

I'm getting closer with this little module, and I'm almost totally sure it's a power thing. New bench power supply showed up yesterday, a TekPower TP1502d. Set to 3.3v, the esp went sort of nuts. All serial communication was garbled, couldn't send a command, and the little thing got hot. Granted it was never connected for more than a few seconds. So I'm not sure what that was all about.

I got my little usb/uart cp2102 set to run at 3.3v. Finally the esp acted normal, in as much as I could finally send serial commands to it with no garbage. Though I don't think it has enough power for when the esp sends. I need to figure out what was up with the power supply. Still though, closer.

After I typed this I read a blurb that I needed to ground my cp2102 to the same ground as the esp. Did that and now I get a clean serial connection and I can send commands. But.. I tried both my esp's, I can send AT and I get an OK. But most of the other commands return an ERROR.

Ok that issue is partly solved. Seems it was because I was using SecureCRT and it doesn't like some setting there. As soon as I used the arduino serial monitor it was fine. One of my chips still ERRORs on AT+CWLAP or CWJAP but most other commands work.

Either way, I'd still love the test code. Thanks!
User avatar
By ricg
#18920 The perl script runs as a server with ip 192.168.1.143 listening on port 8000 ( i use cygwin on windows )
The sketch runs as a client, add your router and passwd.
Start the perl script first then open an arduino serial monitor to the sketch and type 'c' and enter. That will start the client.
It sends varying length strings. The output from perl script will look like this:
server waiting for client connection on port 8000
connection from 192.168.1.147:1288
Received 1 bytes: H
Received 2 bytes: OG
Received 4 bytes: OKPA
Received 8 bytes: IYBVUXWI
Received 16 bytes: BPHEWXACVNHNNAGD
Received 32 bytes: IMMIKYDPPPQNIOLLBXHHJHGBYMRALGOT
----------------------------------
After the sketch cycles through sending you will be able to enter a cmd like 's32' which will send 32 bytes. This way you can test sending various lengths.

etc...
You do not have the required permissions to view the files attached to this post.