sent and recieve "simultaneously"?

CCP1CON
Posts: 10
Joined: Fri Oct 23, 2015 4:18 am

sent and recieve "simultaneously"?

Postby CCP1CON » Fri Oct 23, 2015 4:31 am

Hi,

if I send this to the ESP and set it to transmit

Code: Select all

AT+CWMODE_CUR=2\r\n
AT+CIPSTART=\"TCP\",\"192.168.10.11\",900\r\n
AT+CIPMODE=1\r\n
AT+CIPSEND\r\n


will it still be able to receive data and send them out through UART to my MCU?

Thanks for your advice.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: sent and recieve "simultaneously"?

Postby ESP_Faye » Mon Oct 26, 2015 11:50 am

Hi,

You have set the ESP8266 enter UART <-> WiFi passthrough mode.

Remote <-network-> ESP8266 <-UART-> MCU

Data received from the network will be sent to your MCU by UART.
And data recerved from MCU through UART will be sent to remote device through network.

Thanks for your interest in ESP8266 !

tj4shee
Posts: 4
Joined: Tue Oct 27, 2015 11:54 pm
Location: Lexington, KY

Re: sent and recieve "simultaneously"?

Postby tj4shee » Wed Oct 28, 2015 4:51 am

I must not be understanding something.... I am new to the ESP8266.....

Here is my UART Stream.....

Code: Select all

AT+CIPSTART="TCP","192.168.1.102",80

CONNECT

OK
CLOSED
AT+CIPSTART="TCP","192.168.1.102",80

CONNECT

OK
AT+CIPSEND=28


OK
>   

busy s...

Recv 28 bytes

SEND OK

+IPD,298:<!DOCTYPE html>
<html>
<head>
   <title></title>
</head>
<body style="font-size:2.0em;text-align:center;">
   <br><br>
   This page is no longer available.
   <br><br>
   For BASTools use this link:
   <br>
   <a href="http://www.ibmanalyticsservice.com/bastools">www.ibmanalyticsservice.com</a>
</body>
</html>
CLOSED
AT+CIPCLOSE


ERROR
AT+CIPMODE?

+CIPMODE:0

OK
AT+CIPMODE=1


OK
AT+CIPSTART="TCP","192.168.1.102",80

CONNECT

OK
AT+CIPSEND=16

IPMODE=1

ERROR



If +CIPMODE = 0, I can send data ....... MCU UART->ESP8266->network->Server
and it sends data back...

But, if I change CIPMODE to 1...... it won't let me send data from the MCU out.....

Isn't this backwards from the AT+CIPMODE instructions documented ?

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: sent and recieve "simultaneously"?

Postby ESP_Faye » Wed Oct 28, 2015 10:35 am

Hi,

Here is a guide, 4B-ESP8266__AT Command Examples.

Please refer to Chapter 4 in the documentation for UART - WiFi passthrough mode.

Who is online

Users browsing this forum: No registered users and 188 guests