Need help with ethercat hal driver
31 Aug 2018 02:25 #116897
by cscheng
Need help with ethercat hal driver was created by cscheng
Hi ,experts
when I run hal to control a IO module by lcec component,the linux system has no respond.
my hal device xml is:
and the hal command below
when I type the last 'start' command, the output port is light on. the three output can sync with input. but a few seconds later, the linux has no responding. any keybord cmd and mouse movment are all no effect.
has any one met this problem?
when I run hal to control a IO module by lcec component,the linux system has no respond.
my hal device xml is:
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1">
<slave idx="1" type="generic" vid="000001DD" pid="00006002" configPdos="true">
<syncManager idx="0" dir="in">
<pdo idx="1a00">
<pdoEntry idx="6000" subIdx="1" bitLen="1" halPin="in0" halType="bit"/>
</pdo>
<pdo idx="1a01">
<pdoEntry idx="6010" subIdx="1" bitLen="1" halPin="in1" halType="bit"/>
</pdo>
</syncManager>
</slave>
</master>
</masters>
and the hal command below
loadusr -W lcec_conf ethercat_config_Delta_R1-all.xml
loadrt lcec
loadrt threads name1=cs-test period1=1000000
addf lcec.read-all cs-test
addf lcec.write-all cs-test
show thread
net link0 =>lcec.0.2.ot0
linksp link0 lcec.0.1.in0
net link1 =>lcec.0.2.ot1
linksp link1 lcec.0.1.in1
net link2 =>lcec.0.2.ot2
linksp link2 lcec.0.1.in2
start
when I type the last 'start' command, the output port is light on. the three output can sync with input. but a few seconds later, the linux has no responding. any keybord cmd and mouse movment are all no effect.
has any one met this problem?
Please Log in or Create an account to join the conversation.
Time to create page: 0.108 seconds