Chat freely about anything...

User avatar
By BitBanger
#7328 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
User avatar
By BitBanger
#7430 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
User avatar
By guidingstructures
#12475
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?