-->
Page 1 of 2

AT+CIPSTART not working with AT+CWMODE=2 or 3

PostPosted: Wed Jan 14, 2015 11:17 pm
by BitBanger
I am trying to create a stand alone 3 node wifi network composed of two nodes in AT+CWMODE=1 (Station) and 1 node in AT+CWMODE=2 (AP).


Software Version reported by AT+GMR
AT+GMR
0020000903
compiled @ Dec 15 2014 19:43:31
AITHINKER-

These are all ESP-01 modules.

If I execute AT+CWJAP on the 2 station nodes to "join" them to my home wifi Access Point things work ok. I execute the following commands on each node:

AT+CWJAP="HomeNet","password"

AT+CWMODE=1
AT+CIPMUX=1
AT+CIPSERVER=1,1100

Then from one node I execute:
AT+CIPSTART=0,"TCP","192.168.4.101",1100

Life is good and I can AT+CIPSEND data back and forth between the two nodes.

***** Now replace my Home WiFi Access Point with an ESP **********

Next I reset the two Station nodes to start fresh. I fire up a third node to use as a AP for the two stations to join and set the CWSAP for it. I bring up the two station nodes and join them to the ESP AP node and this works ok.

I have tried the ESP (AP) node running AT+CWMODE=2 and AT+CWMODE=3. I can see the two station nodes attached with their appropriate IP addresses when I issue the AT+CWLIF command from the AP. I can NOT get the AT+CIPSTART command to succeed. I have tried it from one station to the other just like in the first test using my Home WiFi access point. No Luck. I have tried running the AT+CIPSTART from the AP node to both of the station nodes. No Luck. Every attempt results in:
AT+CIPSTART=0,"TCP","192.168.4.101",1100
0,CLOSED

ERROR


Am I doing something wrong or is this not supposed to work? Any insight would be appreciated!

BitBanger

Re: AT+CIPSTART not working with AT+CWMODE=2 or 3

PostPosted: Thu Jan 15, 2015 4:55 am
by Athena
Yes,ESP8266 can not do this...

Because ESP8266 can not be a router.. It cannot transfer message from one station to another station

Re: AT+CIPSTART not working with AT+CWMODE=2 or 3

PostPosted: Fri Jan 16, 2015 6:33 am
by BitBanger
Athena,
Thank you very much for that information. That helps. Here is what I am trying to do.

I have an existing network of microprocessor devices in my house hooked together via RS-485 in a hub and spoke network. I would like to replace the hardwire RS-485 connections with ESPs. The Spokes only talk to the Hub. The hub acts as a router in my network. There is no direct spoke to spoke traffic. I was trying to set the hub ESP in the AP mode and the spoke ESPs in the Station mode. Would this still require routing even if the spokes (Stations) only communicate to the hub (AP)?

BB

Re: AT+CIPSTART not working with AT+CWMODE=2 or 3

PostPosted: Mon Mar 23, 2015 8:09 am
by guidingstructures
BitBanger wrote:Athena,
Thank you very much for that information. That helps. Here is what I am trying to do.

I have an existing network of microprocessor devices in my house hooked together via RS-485 in a hub and spoke network. I would like to replace the hardwire RS-485 connections with ESPs. The Spokes only talk to the Hub. The hub acts as a router in my network. There is no direct spoke to spoke traffic. I was trying to set the hub ESP in the AP mode and the spoke ESPs in the Station mode. Would this still require routing even if the spokes (Stations) only communicate to the hub (AP)?

BB


Hi BitBanger,

I am trying to achieve what you have described and I am also getting an "ERROR" when I do AT+CIPSEND command. I have 2 ESP's. One acting as the station and one acting as the access point, and I want to communicate with each other without a router. Did you manage to get that working?