<\/a><\/p>\nThe power supply never will be UP of 3,62Volts<\/p>\n
After of some days testing I will say that is recommended that you install a resistor from VCC to CH_PD, to make UP this pin. With an 1k resistor will be perfect.<\/p>\n
<\/p>\n
<\/p>\n
The next example code only make a GET of a WEBPAGE, if we run a TCPDUMP in the middle of the NETWORKS we will capture the request.<\/p>\n
This code will be compatible with any project ARDUINO or PINGUINO<\/p>\n
#define SSID \u00abWalii\u00bb \/\/your wifi ssid here
\n#define PASS \u00abffffffffff\u00bb \/\/your wifi wep key here<\/p>\n
#define DST_IP \u00ab164.138.31.203\u00bb \/\/baidu.com
\n#define HOST \u00abpinguino.walii.es\u00bb<\/p>\n
char myChar;<\/p>\n
void setup()
\n{
\npinMode(9, OUTPUT);
\npinMode(13, OUTPUT);<\/p>\n
\/\/blink led13 to indicate power up
\nfor(int i = 0; i<15; i++)
\n{
\ndigitalWrite(13,HIGH);
\ndelay(50);
\ndigitalWrite(13,LOW);
\ndelay(50);
\n}<\/p>\n
\/\/ Open serial communications for WiFi module:
\nSerial.begin(115200);
\n\/\/ Set time to wait for response strings to be found
\nSerial.setTimeout(5000);
\ndelay(100);<\/p>\n
\/\/test if the module is ready
\nSerial.println(\u00abAT+RST\u00bb);
\nif(Serial.find(\u00abready\u00bb))
\n{
\ndelay(1000);
\n\/\/connect to the wifi
\nboolean connected=false;
\nfor(int i=0;i<5;i++)
\n{
\nif(connectWiFi())
\n{
\nconnected = true;
\nbreak;
\n}
\n}
\nif (!connected)
\n{
\n\/\/die
\nwhile(1);
\n}<\/p>\n
delay(5000);
\n\/\/set the single connection mode
\nSerial.println(\u00abAT+CIPMUX=0\u00bb);
\n}
\nelse
\n{
\ndelay(100);
\n}
\n}<\/p>\n
void loop()
\n{
\nString cmd = \u00abAT+CIPSTART=\\\u00bbTCP\\\u00bb,\\\u00bb\u00bb;
\ncmd += DST_IP;
\ncmd += \u00ab\\\u00bb,80″;
\nSerial.println(cmd);
\nif(Serial.find(\u00abError\u00bb)) return;
\ncmd = \u00abGET \/status HTTP\/1.0\\r\\nHost: \u00ab;
\ncmd += HOST;
\ncmd += \u00ab\\r\\n\\r\\n\u00bb;<\/p>\n
Serial.print(\u00abAT+CIPSEND=\u00bb);
\nSerial.println(cmd.length());
\nif(Serial.find(\u00ab>\u00bb))
\n{
\n}
\nelse
\n{
\nSerial.println(\u00abAT+CIPCLOSE\u00bb);
\ndelay(1000);
\nreturn;
\n}<\/p>\n
Serial.print(cmd);<\/p>\n
delay(500);
\n\/\/Serial.find(\u00ab+IPD\u00bb);
\nwhile (Serial.available())
\n{
\nchar c = Serial.read();
\ndelay(50);
\n}<\/p>\n
delay(1000);
\n}<\/p>\n
boolean connectWiFi()
\n{
\nSerial.println(\u00abAT+CWMODE=1″);
\nString cmd=\u00bbAT+CWJAP=\\\u00bb\u00bb;
\ncmd+=SSID;
\ncmd+=\u00bb\\\u00bb,\\\u00bb\u00bb;
\ncmd+=PASS;
\ncmd+=\u00bb\\\u00bb\u00bb;
\nSerial.println(cmd);
\ndelay(2000);
\nif(Serial.find(\u00abOK\u00bb))
\n{
\nreturn true;
\n}
\nelse
\n{
\nreturn false;
\n}
\n}<\/p>\n
<\/p>\n
<\/p>\n
TCPDUMP capture.<\/p>\n
22:25:46.492679 IP 10.10.10.127.60604 > 164.138.31.203.80: Flags [.], ack 5761, win 638, options [nop,nop,TS val 108106608 ecr 2454109009], length 0
\n22:25:46.493147 IP 164.138.31.203.80 > 10.10.10.127.60604: Flags [.], seq 5761:7201, ack 73, win 905, options [nop,nop,TS val 2454109009 ecr 108106599], length 1440<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Specifications and Features<\/h3>\n\n- Default Baud Rate: <\/strong>
115200<\/code><\/li>\n- 802.11 b \/ g \/ n<\/li>\n
- Wi-Fi Direct (P2P), soft-AP<\/li>\n
- Built-in TCP \/ IP protocol stack<\/li>\n
- Built-in TR switch, balun, LNA, power amplifier and matching network<\/li>\n
- Built-in PLL, voltage regulator and power management components<\/li>\n
- 802.11b mode + 19.5dBm output power<\/li>\n
- Built-in temperature sensor<\/li>\n
- Supports antenna diversity<\/li>\n
- \u00abOff\u00bb leakage current is less than 10uA<\/li>\n
- Built-in low-power 32-bit CPU: can double as an application processor<\/li>\n
- SDIO 2.0, SPI, UART<\/li>\n
- STBC, 1×1 MIMO, 2×1 MIMO<\/li>\n
- A-MPDU, A-MSDU aggregation and the 0.4 Within wake<\/li>\n
- 2ms, connect and transfer data packets<\/li>\n
- Standby power consumption of less than 1.0mW (DTIM3)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"
This is a new module, that will help us to communicate with our ARDUINOS or PINGUINOS modules. Is like a modem, by all the people…<\/p>\n","protected":false},"author":2,"featured_media":706,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,3,15],"tags":[],"_links":{"self":[{"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=\/wp\/v2\/posts\/704"}],"collection":[{"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=704"}],"version-history":[{"count":2,"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":801,"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=\/wp\/v2\/posts\/704\/revisions\/801"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=\/wp\/v2\/media\/706"}],"wp:attachment":[{"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pinguino.walii.es\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}