- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
ispn:39613:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No suggestions for healing hardware 😉
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.