-
1. Re: ESP8266 Wifi implementation
user_242978793 Jan 4, 2017 8:57 AM (in response to rajakumari.satyasri_2104806)Uart pins are P7.(0) and P7.(1). See Schematic Page 2 of 3 . Here is some information on how to use this part.
-
Uart.txt.zip 10.4 K
-
-
2. Re: ESP8266 Wifi implementation
user_49271930 Jan 4, 2017 10:44 AM (in response to rajakumari.satyasri_2104806)I have some old projects.
For PSoC4:
PSoC4_ESP8266_ST_WDT.zip
SCB_BMP085_ESP8266.cywrk.zip
A few more here.
Projects work correctly only with specified firmware.
must be adjusted main.c -
3. Re: ESP8266 Wifi implementation
rajakumari.satyasri_2104806 Jan 5, 2017 12:20 AM (in response to user_49271930)Hi Pavloven.
thank you for valuable info.
I want to make it for CY8CKIT-043 kit, Waht are the options I need to set ?
I am getting errors for Tx,Rx, and RST pins while hardware configuration.
I have attached the project file and screenshot, please suggest where I went wrong?
-
ESP8266-CY8CKIT-043.png 232.2 K
-
4. Re: ESP8266 Wifi implementation
rajakumari.satyasri_2104806 Jan 5, 2017 12:24 AM (in response to user_242978793)Hi Bob,
I haven't get any info from doc you have shared.
I want to configure any one of UART tx and rx lines of CY8CKIT-043 to esp8266 module to communicate for wifi.
-
5. Re: ESP8266 Wifi implementation
user_49271930 Jan 5, 2017 3:51 AM (in response to rajakumari.satyasri_2104806)1. This is an old project you want to upgrade components ( press"!" At the bottom right)
2. You have removed several components but no reference to it in the program (LCD, pin Test)-
uart-000.cywrk_.zip 582.8 K
-
-
6. Re: ESP8266 Wifi implementation
rajakumari.satyasri_2104806 Jan 5, 2017 4:46 AM (in response to user_49271930)Hi,
Thank you for info.
You have some LCD i think to see the data, but how can see the debug messages?
I have connected the FTD1232 on 3.0 and 3.1 rx and tx pins, but unable to get data on the serial port.
Can you please provide comments in english, if possible
-
7. Re: ESP8266 Wifi implementation
user_49271930 Jan 5, 2017 5:56 AM (in response to rajakumari.satyasri_2104806)For the translation I use copy-paste https://translate.google.ru/
For debugging - Saleae Logic and additionally UART_1.
You can use the element 2xOR to FTD1232 _Rx-
uart-000.zip 581.4 K
-
-
8. Re: ESP8266 Wifi implementation
rajakumari.satyasri_2104806 Jan 6, 2017 3:12 AM (in response to user_49271930)Hi,
Thank you for your suggestions, I am using the same, but I am unable to get the device connected status.
What is the use of this below ckt, how to configure it in my project?
-
clk-isr.png 14.9 K
-
-
9. Re: ESP8266 Wifi implementation
user_49271930 Jan 6, 2017 6:30 AM (in response to rajakumari.satyasri_2104806)esp8266 often freezes.
So I used the SysTick, WDT and uint16 recon
isr_Reconn - reset WDT counter (otherwise restart)
if recon ++> 300 - preventive restart ESP
you can disable it until.For debugging I used this program: ESP8266 Config.exe (https://github.com/AppStackCC/ESP8266-Config)
Perhaps you are interested in TCP2UART or MODBUS RS-485 bridge for ESP8266
https://github.com/pvvx/esp8266web/releases/download/0.6.2/fullflash_and_webfs_062.zipullflash_tcp2uart.bin - TCP2UART
fullflash_modbusrs485.bin - MODBUS RS-485 -
10. Re: ESP8266 Wifi implementation
rajakumari.satyasri_2104806 Jan 9, 2017 4:16 AM (in response to rajakumari.satyasri_2104806)Hi,
I am writing AT commands to ESP module, but I am not getting how to get the response from ESP module.
I am using UART_PutString for writing data, and tried the UART_ReadRxData, UART_GetChar for reading data and sending this received data to other debug port, I am getting always 0 value while receiving.
Can you please check the code and I need debug statements instead of LCD for CY8CKIT-043 kit.
Actually my idea is I want to create 1 website and push data to the website from cypress using ESP module.
-
uart-000.cywrk__0.zip 2.9 MB
-
-
11. Re: ESP8266 Wifi implementation
bob.marlowe Jan 9, 2017 6:47 AM (in response to rajakumari.satyasri_2104806)You do not give the device time to answer!
UART_PutString("AT");
//UART_PutString("AT+CWMODE=1\r\n");
Rxbyte[0] = UART_ReadRxData(); // Here will not be a char ready.The answer to your AT command is afaik an ASCII string terminated by /n, /r or both. I would suggest you to
Check with UART_GetRxBufferSize() for any characters ready, put them into your string buffer until you get a terminating char, pad with a null char. Then print the string.
Change UART_1 to byte mode and buffers to 16 or more.
Happy coding
Bob
-
12. Re: ESP8266 Wifi implementation
rajakumari.satyasri_2104806 Jan 10, 2017 4:48 AM (in response to bob.marlowe)Hey Bob,
Thank you for your suggessions, I have made the code as per your instructions still the esp module is able to receive AT commands means blue LED is glowing, but I am not getting any rx data.
and WaitText fun always failing.
Please find attached code.
Suggest me where I am failing.
-
13. Re: ESP8266 Wifi implementation
bob.marlowe Jan 10, 2017 12:34 PM (in response to rajakumari.satyasri_2104806)Take care for not overwriting your original files. I sketched an interrupt driven UART Rx.
See my notes.
Bob
-
14. Re: ESP8266 Wifi implementation
rajakumari.satyasri_2104806 Jan 10, 2017 10:15 PM (in response to bob.marlowe)Thanks bob,
What the wait function will do.
There is no fun definition for #define Wait(x)
May I know what is the use of it?