Break Transparent Transmission Mode from WiFi-End OR autostart UDP-listener/connect to TCP-server at power-up

wanderzirkus
Posts: 2
Joined: Thu Sep 14, 2017 11:17 pm

Break Transparent Transmission Mode from WiFi-End OR autostart UDP-listener/connect to TCP-server at power-up

Postby wanderzirkus » Thu Sep 14, 2017 11:42 pm

Hi,

pls forgive me the lengthy title, but as complex at is sound as easy is the goal I want to reach:
I want the ESP to establish a connection to a server on power-up. After this it should be able to execute AT-commands via WiFi (Mainly to manipulate one of the GPIOs) and also transmit messages coming over WiFi to the UART interface and vice versa.

With the AT+SAVETRANSLINK command this is possible and it is working pretty stable, but it puts the ESP in transparent transmission mode where it doesn't execute any AT-commands, because they are transmitted directly to the client sitting at the UART-end also.
As I need the AT-GPIO trigger only once per session (to wake up the processor connected to the ESP) the solution with the least effort would be to stop the transparent transmission by "+++", trigger the GPIO via AT-command and enter it again with AT+CIPSEND. Sadly the "+++" sequence is stopping the transparent transmission only from UART-side but not from the wifi-side. Is that intended this way? Or even better: Does it work from WiFi-side and I am just doing something wrong?

Another solution would be to listen for UDP-packets or even connect to a TCP-server automatically after power-up - without starting transparent transmission immediatly. But I didn't see a possibility to set this up without flashing own SDK-extending software on the chip.


I hope somebody can help me out of this if an easy and convenient way to achive it exists. :)

Thanks and greetings! :)

Her Majesty
Posts: 171
Joined: Mon Oct 27, 2014 11:09 am

Re: Break Transparent Transmission Mode from WiFi-End OR autostart UDP-listener/connect to TCP-server at power-up

Postby Her Majesty » Tue Sep 19, 2017 4:01 pm

Maybe "+++" and then "AT+CIPMODE=0"?
Or just connect to the server by AT+CIPSTART in every power on.

wanderzirkus
Posts: 2
Joined: Thu Sep 14, 2017 11:17 pm

Re: Break Transparent Transmission Mode from WiFi-End OR autostart UDP-listener/connect to TCP-server at power-up

Postby wanderzirkus » Sat Sep 23, 2017 9:38 pm

Hi,

the "+++" is not recognized as a stop command when it comes in on the wifi-end. That works only when it is put in from uart-side and I have no access to the µC running at the uart-end.

How can I call a custom command at every µC start?

Who is online

Users browsing this forum: No registered users and 4 guests