ESP8266 Wifi implementation

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

hi,

   

I want to program the cypress kit CY8CKIT-043 to communicate with ESP8266 wifi module to get wifi connection.

   

I have tested with Arduino UNO board using AT commands to communicate with ESP8266 module.

   

I have configured the UART pins P6.0 and P6.1 pins as UART comm for this module.

   

I want write program for communicating with ESP8266 module on UART.

   

Can anyone suggest how to approach or give me some example programs.docs.

0 Likes
20 Replies
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Uart pins  are P7.(0) and P7.(1). See Schematic Page 2 of 3 . Here is some information on how to use this part.

0 Likes
Anonymous
Not applicable

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.

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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?

0 Likes

hola estuve viendo el proyecto que monta un web server con esp8266 modo estacion PSOC4  , mi duda es si se puede hacer el mismo en psoc5lp  ? ya que no veo por el ejemplo el bloque UART SCB de PSOC4.

O si alguien pudiera compartir algo parecido pero hecho con PSOCLP

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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)

0 Likes
Anonymous
Not applicable

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

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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?

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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.zip

   

ullflash_tcp2uart.bin      - TCP2UART
fullflash_modbusrs485.bin  - MODBUS RS-485

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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.

0 Likes
lock attach
Attachments are accessible only for community members.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Take care for not overwriting your original files. I sketched an interrupt driven UART Rx.

   

See my notes.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

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?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Look at the comment: the Wait() is for readability only (and avoids a warning) in statements like

   

while(!something);    //   Wait until something happens

   

which reads now

   

while(!something) Wait();    //  No comment needed here

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Okay, I got it after posting the question to you.

   

But I am not able to get any data from ESP still.

   

I was tried to debug it's not going to that CY_ISR(GetChar) function, So the condition always failing.

   

Did you tested on the board this code?

0 Likes
Anonymous
Not applicable

Hey Bob,

   

I found out that issue with the ESP module.

   

After doing doing number of trails on cypress, may be the ESP got corrupted.

   

I tried with Arduino example for cross verifying the ESP8266-01 module, Its unable to send or receive any AT commands.

   

How to solve this issue, Please suggest..

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

No suggestions for healing hardware 😉

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I need to thank you for your time for this fantastic read!! I most certainly savored every bit of it and I have you book-marked to look at brand new things in your website also to share this on Professional Essay Writers Online.

0 Likes