Announcements
Community Announcement : Welcome to the NEW Cypress Developer Community.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4

ShVy_264716
New Contributor II

Hi Everyone

I need to let my PSoC4 CY8CKIT-049 kit communicate with PC through Ethernet. I have an SPI to Ethernet Converter Module based on ENC28J60. I am planning to make a customized PSoC Creator component named "TCP" for this project. I have just started up by creating a project in PSoC Creator (Please find herewith the attachment.). Would anyone like to share his/her experiences by giving some code snippets, documents (Mainly to understand TCP/IP, SPI and their interconnectivity) and module projects?

Thanks in advance.

Shaunak Agastya Vyas

https://tinu.live/

0 Likes
1 Solution
Anonymous
Not applicable

Some tips for SPI protocols: Make sure to have a way to clear the buffer/data if invalid data is received (either a timer to clear received data, or a start/stop sequence to signal new messages). You will also need a way to send the default bus value (0x00 or 0xFF depending on your default logic level). An escape character to signal that the next default bus value is valid is the approach I took, and was used in ASCII as well.

For implementing TCP, take a look at the 7-layer OSI architecture, as it helps lay out and define each layer of the connection with its functionality: TCP/IP vs. OSI: What’s the Difference Between them?

Make sure to build in error handling for communications on the TCP/IP stack as well.

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Some tips for SPI protocols: Make sure to have a way to clear the buffer/data if invalid data is received (either a timer to clear received data, or a start/stop sequence to signal new messages). You will also need a way to send the default bus value (0x00 or 0xFF depending on your default logic level). An escape character to signal that the next default bus value is valid is the approach I took, and was used in ASCII as well.

For implementing TCP, take a look at the 7-layer OSI architecture, as it helps lay out and define each layer of the connection with its functionality: TCP/IP vs. OSI: What’s the Difference Between them?

Make sure to build in error handling for communications on the TCP/IP stack as well.

View solution in original post

0 Likes
ShVy_264716
New Contributor II

I have purchased an Ethernet to SPI Converter :

https://robokits.co.in/control-boards/interface-boards/ethernet-to-spi-interface-board-enc28j60

After searching out for long, I think Cypress does not have a dedicated "Ethernet (to SPI)" Library for PSoC4/PSoC5. I need to create a WebServer in PSoC4/5 first. So I have decided to use the following link as reference

PSoC 4 Pioneer Kit Community Project#031 – Ethernet Shield

Also I think this would help: Arduino - WebServer

Thanks ans Regards

Shaunak Agastya Vyas

https://tinu.live

0 Likes