Chat freely about anything...

User avatar
By freedom2000
#14218 Hi all,

I have designed two simple boards each equiped with one ESP8266 - 12 and a PIC 18F4550 MCU
I want the two boards to communicate in order to build a "long range" wireless joystick

One board will be Access Point and acts as TCP server
The other Station and connects the first as a TCP client

The two boards works really well but only "alone"
As long as I try to link one to the other I can't establish the connection, and I get an "ERROR unlink"

Here is what I do :

board one :
AT+CWMODE=3 (both station and AP)
AT+CWSAP="JP ESP8266","",1,0 (fully opened AP)
AT+CIPMUX=1 (multiple connections allowed)
AT+CIPSERVER=1,5000

On the second board :
AT+CWJAP="JP ESP8266","" (join the first board AP)
AT+CIPMODE=1
AT+CIPSTART="TCP","192.168.4.1",5000

And here I get the unlink error

It is incredibly frustrating... both boards works really well with a PC server or an Android client... but fail to connect each other

Would you have any idea how to solve this issue ?

(I know that NodeMCU allows this but it is too slow for my application)

Thanks
JP
User avatar
By freedom2000
#14396 I finally succeeded to do it.

Everything was Ok but...

server must be in Access Point mode only
client must be in Station Mode only


I believe that when the client is in AP + Station mode there is a kind of missmatch when trying to connect to 192.168.4.1 address which is valid for the server but may be also for the client chip...

JP