[etherlab-users] Setting a port to open
Florian Pose
fp at igh-essen.com
Wed Aug 27 10:58:46 CEST 2008
Hi Aaron,
On Tue, Aug 26, 2008 at 10:11:31PM -0700, Aaron Edsinger wrote:
> Hello. I am trying to set port 3 on the ET1200 to open, or auto. By
> default it is set to closed, and the master must manually set it to open
> by changing bits 15/14 in register 0x0100 on the ET1200. Has anyone done
> this with success?
yes. The attached patch adds physical-memory read/write operations to
the master 1.4. They can be accessed with the ethercat tool. Though this
is not a permanent solution for this problem, you could try opening the
port via userspace with something like:
echo -ne \\0<octal-byte> | ethercat phy_write -p<your-slave> 0x0100 -
> Or can someone suggest the proper way to patch the
> EtherLab master to do this? I have modified fsm_slave.c (by adding a new
> fsm state) to do this but without any luck.
This is the correct approach. It would have to be done in the slave
configuration state machine, perhaps before going to PREOP.
--
Best regards,
Florian Pose
http://etherlab.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phy.patch.bz2
Type: application/octet-stream
Size: 5160 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20080827/1f617ef1/attachment-0004.obj>
More information about the Etherlab-users
mailing list