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.
XC-2 code overload
-
- Member++
- Posts: 17
- Joined: Fri Aug 12, 2011 2:36 pm
You do not have the required permissions to view the files attached to this post.
-
- Active Member
- Posts: 62
- Joined: Sat Sep 17, 2011 12:05 pm
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
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
-
- XCore Expert
- Posts: 956
- Joined: Fri Dec 11, 2009 3:53 am
- Location: Sweden, Eskilstuna
You might find this easier to start withmatrix 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
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.
-
- Respected Member
- Posts: 279
- Joined: Fri Dec 11, 2009 1:34 pm
There is now a simple UDP example in the xtcp Github:
https://github.com/xcore/sc_xtcp/tree/m ... simple_udp
https://github.com/xcore/sc_xtcp/tree/m ... simple_udp
-
- Active Member
- Posts: 62
- Joined: Sat Sep 17, 2011 12:05 pm
cool, thanks for both links
-
- Experienced Member
- Posts: 104
- Joined: Fri Dec 11, 2009 8:29 pm
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
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