电子工程师技术服务社区
- 社区
- 论坛
- 开发板专区
- 随意控制Bpi M1上的蓝色灯和网卡灯
随意控制Bpi M1上的蓝色灯和网卡灯
-
-
FishXX
- LV5工程师
-
| 2015-01-16 21:15:31
- 浏览量 1026
- 回复:0
用法:
Usage: bpi_ledset
q Quiet (no informational messages)
v Verbose (extra informational messages)
b Blue led configuration
y Yellow led configuration
g Green led configuration
l Switch on when linked at 10Mbps
m Switch on when linked at 100Mbps
h Switch on when linked at 1000Mbps
a Blink with activity (Tx/Rx)
使用:
下载后解压缩
tar zxvf bpi_ledset.tar.gz
gcc -o bpi_ledset bpi_ledset.c
用法:
bpi_ledset 网卡接口 b(蓝色灯)l(当速度在10M时亮)m(当速度在100M时亮0)h(当速度在1000M时亮)a(有数据收发时亮)
y(黄色的灯)以后相同 。。。。。。g(绿色的灯)。。。。以后相同。。。。
实例:
bpi_ledset eth0 bl yl gl
这样设置是eth0只有在10M时三个灯全亮,现在都100M了,所以这就是相当于关了三个灯。。。
enjoy it!
用法:
Usage: bpi_ledset
q Quiet (no informational messages)
v Verbose (extra informational messages)
b Blue led configuration
y Yellow led configuration
g Green led configuration
l Switch on when linked at 10Mbps
m Switch on when linked at 100Mbps
h Switch on when linked at 1000Mbps
a Blink with activity (Tx/Rx)
使用:
下载后解压缩
tar zxvf bpi_ledset.tar.gz
gcc -o bpi_ledset bpi_ledset.c
用法:
bpi_ledset 网卡接口 b(蓝色灯)l(当速度在10M时亮)m(当速度在100M时亮0)h(当速度在1000M时亮)a(有数据收发时亮)
y(黄色的灯)以后相同 。。。。。。g(绿色的灯)。。。。以后相同。。。。
实例:
bpi_ledset eth0 bl yl gl
这样设置是eth0只有在10M时三个灯全亮,现在都100M了,所以这就是相当于关了三个灯。。。
enjoy it!