[etherlab-users] Problem reading SII configuration from slave

Jesper Smith jsmith at ihmc.us
Mon Oct 31 22:53:40 CET 2011


The patch I have is for the latest stable-1.5 tag. To use the patch, put the 
SII information (export using TwinCAT) in 

[FIRMWARE_LOCATION]/ethercat/ec_[VENDOR ID]_[PRODUCT CODE].bin

For my distro, OpenSuSE, the firmware location is 
/lib/firmware/[KERNEL_VERSION], but this can differ between distro's. 

Regards,

Jesper


Op dinsdag 1 november 2011 10:00:04 schreef Graeme Foot:
> Hi,
> 
> Yes, I'm interested in the patch.
> 
> Thanks,
> Graeme.
> 
> 
> -----Original Message-----
> From: etherlab-users-bounces at etherlab.org
> [mailto:etherlab-users-bounces at etherlab.org] On Behalf Of Jesper Smith
> Sent: Friday, 28 October 2011 04:02
> To: etherlab-users at etherlab.org
> Subject: Re: [etherlab-users] Problem reading SII configuration from
> slave
> 
> Hello,
> 
> Because the supplier of our slaves told us that their SII information
> will
> never fit in the slave (the SII binary is 3kb and the slave only has a
> 2kb
> memory location) and we're stuck with 14 of them I've cleaned up the
> hack to
> read the SII information from a binary file and made it work in
> combination
> with other slaves.  If someone is interested I can make a patch to the
> most
> recent master code.
> 
> I've adjusted the fsm_slave_scan state machine to works as follows
> 
> - Read vendor id + product code from slave
> - Use the kernels firmware_request to load
> ec_${vendor_id}_${product_code}.bin
> /lib/firmware/${uname -r}/ethercat (or whatever path your distribution
> uses)
> 
> If firmware is found,
>         use that to load the SII information
> else
>         read SII information from the slave
> 
> 
> I think this can be used as starting point for reading XML files. I'm
> thinking
> of the following solutions
> 
> - Make a separate user space program that compiles the XML files to SII
> binaries and stores them in /lib/firmware
> - Store the XML file in /lib/firmware and parse it in the master module
> - Create a separate communication between the kernel and user space that
> 
> requests slave information from a daemon/udev.
> 
> Maybe someone on this list can voice their opinion what would be the
> neatest
> way to do it.
> 
> 
> Regards,
> 
> Jesper
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethercat.patch
Type: text/x-patch
Size: 12747 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20111031/b4f61eb8/attachment-0005.bin>


More information about the Etherlab-users mailing list