<font color='black' size='2' face='arial'>I<font size="2" face="arial" color="black"><font face="Arial, Helvetica, sans-serif"> went a different route since I couldn't figure out if the TUN/TAP feature could support the need.<br>
<br>
I hacked the code to make an array of slaves. I've done up to 500 simulated slaves so far. This is on a single IBM ThinkPad T43 (Centrino) running Ubuntu 10.04.4LTS.<br>
<br>
There is a problem with topology detection because the downstream link appears on port 3, but I only enable ports 0 and 1. This doesn't seem to affect the linear topology I'm interested in.<br>
<br>
There is also a problem with LRW command, with the size of the packet and/or the number of slaves so the packet size is wrong and an incorrect area in the packet is written.<br>
<br>
I also changed the code to use the bin file of my particular slave of interest. This is not quite complete or generic at this time.<br>
<br>
All the above is sufficient for my internal testing needs. I would be willing to hand this code off after some cleaning with the understanding there would be de-hack-ification and debugging provided by others and re-released. I've also not been doing git updates, so the code may be weeks out of date.<br>
<br>
Thanks for your understanding,<br>
Bruno<br>
</font>
<div> <br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>
From: Shahbaz Youssefi <shabbyx@gmail.com><br>
To: rbenyehuda <rbenyehuda@manz.com><br>
Cc: babbittner <babbittner@aol.com>; etherlab-users <etherlab-users@etherlab.org><br>
Sent: Tue, Jan 15, 2013 4:05 am<br>
Subject: Re: [etherlab-users] Open source virtual Linux Ethercat Slave<br>
<br>
<div id="AOLMsgPart_1_49615327-157f-4b33-ac72-f8c5afe1ea3c">
<div dir="ltr">
<div>
<div>Hi Raz,<br>
<br>
</div>
Is it possible with your software to fake networks with large number of slaves? The way I understand, you should have `ethX` interfaces for your slaves to hook on to. Perhaps you could try <a __removedlink__1533682895__href="mailto:babbittner@aol.com">babbittner@aol.com</a>'s idea of named pipes and if any of the given parameters (to the user-space one) couldn't be opened, you automatically hook on to a named pipe to transfer the data?<br>
<br>
</div>
This would be very useful to test software targeted to work with large number of slaves, without actually having to buy that many slaves (or network cards!)<br>
<br>
Shahbaz<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Nov 26, 2012 at 8:39 AM, Raz Ben Yehuda <span dir="ltr"><<a __removedlink__1533682895__href="mailto:rbenyehuda@manz.com">rbenyehuda@manz.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, 2012-11-26 at 02:35 +0100, <a __removedlink__1533682895__href="mailto:babbittner@aol.com">babbittner@aol.com</a> wrote:<br>
> I'm attempting to run multiple virtual slaves on one host. I setup a<br>
> TUN/TAP interface via tunctl named tap0. Then I issued the commands:<br>
> ./ecslave tap0 &<br>
> ./ecslave eth0 tap0 &<br>
> but I get a message the tap0 interface is LINK DOWN.<br>
> Possibly I'm misusing the TUN/TAP virtual interfaces?<br>
</div>
user space ecslave checks that /sys/class/net/ethX/operstate is "up".<br>
Do you have this path for tap0 ?<br>
<div class="im"><br>
> Alternatively I'd like to use something like named pipes, but I<br>
> believe that would involve modifying the code. If I were to modify<br>
> the code<br>
</div>
This is what open source is all about. i will be happy to adopt your<br>
code.<br>
<div class="HOEnZb">
<div class="h5">> I think I'd add an option to specify the number of slaves to<br>
> virtualize and make an array of slaves internally.<br>
><br>
> Any other ideas?<br>
><br>
> Thanks,<br>
> Bruno<br>
<br>
<br>
<br>
<br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: Ben Yehuda, Raz <<a __removedlink__1533682895__href="mailto:RBenYehuda@manz.com">RBenYehuda@manz.com</a>><br>
> To: etherlab-users <<a __removedlink__1533682895__href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>><br>
> Sent: Wed, Nov 21, 2012 2:25 pm<br>
> Subject: [etherlab-users] Open source virtual Linux Ethercat Slave<br>
><br>
> Hello etherlab users<br>
><br>
> I wrote an open source linux virtual ethercat slave.<br>
><br>
> $ git clone git://<a target="_blank" __removedlink__1533682895__href="http://git.code.sf.net/p/ecslave/code">git.code.sf.net/p/ecslave/code</a> ecslave<br>
><br>
> Ecslave is "tailored" to etherlab and it provides a virtual<br>
> and cheap solution to set up and debug etherlab master application.<br>
><br>
> At the moment ec_slave is user space application, but i am going to add a<br>
> version to kernel mode in the near future.<br>
><br>
> wiki :<br>
> <a target="_blank" __removedlink__1533682895__href="https://sourceforge.net/p/ecslave/wiki/Howto/">https://sourceforge.net/p/ecslave/wiki/Howto/</a><br>
><br>
> I will be happy for debug and input.<br>
><br>
> raz<br>
><br>
> _______________________________________________<br>
> etherlab-users mailing list<br>
> <a __removedlink__1533682895__href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
> <a target="_blank" __removedlink__1533682895__href="http://lists.etherlab.org/mailman/listinfo/etherlab-users">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
<br>
</div>
</div>
<span class="HOEnZb"><font color="#888888">--<br>
<a target="_blank" __removedlink__1533682895__href="https://sites.google.com/site/ironspeedlinux/">https://sites.google.com/site/ironspeedlinux/</a><br>
</font></span>
<div class="HOEnZb">
<div class="h5"><br>
_______________________________________________<br>
etherlab-users mailing list<br>
<a __removedlink__1533682895__href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<a target="_blank" __removedlink__1533682895__href="http://lists.etherlab.org/mailman/listinfo/etherlab-users">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
</div>
</div>
</blockquote></div>
<br>
</div>
</div>
<!-- end of AOLMsgPart_1_49615327-157f-4b33-ac72-f8c5afe1ea3c -->
</div>
</font></font>