当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 为什么设置不了化名啊??
帖子发表于 : 2012-07-30 21:37 

注册: 2012-07-17 21:44
帖子: 35
送出感谢: 0 次
接收感谢: 0 次
Numerical values can be specified either with decimal (no
prefix), octal (prefix '0') or hexadecimal (prefix '0x') base.
[email protected]:~$ ifconfig
eth0 Link encap:以太网 硬件地址 00:1f:d0:12:9b:be
inet6 地址: 2001:250:3000:4b19:21f:d0ff:fe12:9bbe/64 Scope:Global
inet6 地址: fe80::21f:d0ff:fe12:9bbe/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:4502 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1310 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:2150414 (2.1 MB) 发送字节:146800 (146.8 KB)
中断:26 基本地址:0x4000

lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 跃点数:1
接收数据包:1084 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1084 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:86424 (86.4 KB) 发送字节:86424 (86.4 KB)

[email protected]:~$ ethercat alias 0x4000
Failed to obtain number of masters: Failed to open master device /dev/EtherCAT0: Permission denied
[email protected]:~$ ethercat alias -a0x4000
'alias' takes exactly one argument!

ethercat alias [OPTIONS] <ALIAS>

Write alias addresses.

Arguments:
ALIAS must be an unsigned 16 bit number. Zero means
removing an alias address.

If multiple slaves are selected, the --force option
is required.

Command-specific options:
--alias -a <alias>
--position -p <pos> Slave selection. See the help of
the 'slaves' command.
--force -f Acknowledge writing aliases of
multiple slaves.

Numerical values can be specified either with decimal (no
prefix), octal (prefix '0') or hexadecimal (prefix '0x') base.
[email protected]:~$ ethercat config
Failed to obtain number of masters: Failed to open master device /dev/EtherCAT0: Permission denied


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 为什么设置不了化名啊??
帖子发表于 : 2012-07-31 8:26 
头像

注册: 2008-07-24 11:33
帖子: 4793
地址: 郑州
送出感谢: 4
接收感谢: 92
代码:
sudo ethercat alias 0x4000

我认为需要sudo一下。


_________________
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译