I have an XC-2 Ethernet kit and i wanted to use it as an LED screen controller. More or less obviously I want to use Ethernet as a way to send data to the board... I was looking at the ethernet code that i got from the software components on Xmos.com and i find it... very confusing...
I would like to know if there is a "minimal" of simplified version of the code where i can just receive data, seperate the data part of the ethernet packet in to 32bit int's and store it in a frame buffer(external SRAM chip)...
if you have any questions, feel free to ask :D
Thanks in advance,
-Alex
XC-2 and Ethernet
-
- Active Member
- Posts: 46
- Joined: Wed Apr 20, 2011 9:30 pm
-
- Respected Member
- Posts: 298
- Joined: Thu May 12, 2011 11:14 am
Have you looked at the sc_ethernet component on the XCore github?
-
- Active Member
- Posts: 46
- Joined: Wed Apr 20, 2011 9:30 pm
Yes I did and its essentially the same... and still as confusing...phalt wrote:Have you looked at the sc_ethernet component on the XCore github?
-
- Active Member
- Posts: 62
- Joined: Sat Sep 17, 2011 12:05 pm
Hi,
just for the case you did not check already:
https://www.xcore.com/forum/viewtopic.p ... 5&start=10
The link contains various user experiences and links with code examples,
UDP included.
just for the case you did not check already:
https://www.xcore.com/forum/viewtopic.p ... 5&start=10
The link contains various user experiences and links with code examples,
UDP included.
-
- Respected Member
- Posts: 318
- Joined: Tue Dec 15, 2009 12:46 am
There's a simple version of the ethernet code in Programming XC on XMOS Devices (see 6.5 Case Study: Ethernet MII). This omits error checking / CRC checking so you probably can't use in a real application without modification, but you may find it helpful if you are trying to understand the protocol.narutoxela wrote:I would like to know if there is a "minimal" of simplified version of the code where i can just receive data, seperate the data part of the ethernet packet in to 32bit int's and store it in a frame buffer(external SRAM chip)...
-
- Experienced Member
- Posts: 104
- Joined: Fri Dec 11, 2009 8:29 pm
This is arguably hidden in the documentation a bit but it is worth going through the code walkthrough here:
http://github.xcore.com/sc_ethernet/app_tutorial.html
Dave
http://github.xcore.com/sc_ethernet/app_tutorial.html
Dave
-
- Active Member
- Posts: 46
- Joined: Wed Apr 20, 2011 9:30 pm
Thank you all, I will be looking at your links! :P Hope ill find what im looking for! :P
-
- Active Member
- Posts: 46
- Joined: Wed Apr 20, 2011 9:30 pm
I was just thinking about it... Maybe Ethernet is just too complicated and maybe even overkill for my application. Basically i will be sending 28224 Byte frames at 60Hz, so it makes arround 2MBytes/s... Maybe i could just use a FT2232H and put it in USB to Parallel FIFO mode which is capable of 10MBytes/sec. It should be way simpler... I think... What do you think?...
-
- Active Member
- Posts: 62
- Joined: Sat Sep 17, 2011 12:05 pm
Which max. transfer distance does your application need ?
-
- Active Member
- Posts: 46
- Joined: Wed Apr 20, 2011 9:30 pm
Ohh... not alot, max 6 to 10 feet...matrix wrote:Which max. transfer distance does your application need ?
Edit: But the conversion from USB to FIFO would be only towards the end of the total distance so it would be 6 to 10 feet of USB Cable then the conversion would take place on the onboard F2232H (custom pcb).