XC-2 code overload

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
xcorific
Member++
Posts: 17
Joined: Fri Aug 12, 2011 2:36 pm

Post by xcorific »

After some disappointing issues with my XC-2, I was able to get the more "complicated" source code working. First, I had to power cycle my XC-2 several times, and when I touched the strain relief, it crumbled into several tiny pieces! I still couldn't get the XC-2 recognized in Win7, so I plugged in my XC-1A, and that worked fine. I could only get the XC-2 to come up with the USB cable from my XC-1A, so I guess the USB cable that came with the XC-2 was also defective.

The issues I had earlier with the ethernet examples were all noob related. I had to dig around in XDE to figure out how to make it find the header files needed for the ethernet server and other classes.

Once I resolved that problem and changed the IP address in the source (for app_ethernet_demo3.1v3), I was able to run the demo, but ping times were very high -- almost 200ms! I removed the printstrs and as expected, ping times went down below 1ms.

I'm going to look over the example code, but I have to say that the tutorial is lacking substance. The beginning of the tutorial is just like the one from the XC-1A, which is great for introducting non-ethernet, basic concepts. The ethernet tutorial literally says, "change the IP address", and then "make an LED blink". I'd like to see a real tutorial, like "this is how you can get a webserver running", or something similar.
You do not have the required permissions to view the files attached to this post.


User avatar
matrix
Active Member
Posts: 62
Joined: Sat Sep 17, 2011 12:05 pm

Post by matrix »

Hi all,

I have two XC-2 board, but did not do anything so far with it yet.
It would be nice if somebody could supply a good link, especially
with UDP stuff, because in my case that is the intended use.

Thanks
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

matrix wrote:Hi all,

I have two XC-2 board, but did not do anything so far with it yet.
It would be nice if somebody could supply a good link, especially
with UDP stuff, because in my case that is the intended use.

Thanks
You might find this easier to start with
https://xcore.com/projects/socket-based ... k-xsockets
compared to the TCP/IP stack found on github.

I have used it for UDP.
Probably not the most confused programmer anymore on the XCORE forum.
User avatar
Andy
Respected Member
Posts: 279
Joined: Fri Dec 11, 2009 1:34 pm

Post by Andy »

There is now a simple UDP example in the xtcp Github:

https://github.com/xcore/sc_xtcp/tree/m ... simple_udp
User avatar
matrix
Active Member
Posts: 62
Joined: Sat Sep 17, 2011 12:05 pm

Post by matrix »

cool, thanks for both links
User avatar
davelacey
Experienced Member
Posts: 104
Joined: Fri Dec 11, 2009 8:29 pm

Post by davelacey »

Hi,
In terms of tutorials the github version of the repositories (which have come on a bit since the 1.3 versions). Have more documentation:

http://github.xcore.com/sc_ethernet/index.html
http://github.xcore.com/sc_xtcp/

There are some worked examples in there as well which may help with using the code.

Dave