Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2420667
  • 博文数量: 384
  • 博客积分: 10193
  • 博客等级: 上将
  • 技术积分: 3785
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-09 18:02
文章分类

全部博文(384)

文章存档

2011年(10)

2010年(29)

2009年(39)

2008年(36)

2007年(43)

2006年(198)

2005年(29)

分类: LINUX

2006-06-02 19:48:27

E680i使用usb联接线联接到Linux机器上以后,使用lsusb可以看到联接的设备

Bus 001 Device 006: ID 22b8:3802 Motorola PCS C330/A780 GSM Phone
Bus 001 Device 003: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000


现在使用ifconfig也无法看到usb0这一设备。需要在E680i运行acmattach.txt,内容如下:

echo MotNet > /proc/motusbd

然后运行ifconfig -a可以看到usb0设备

blueice:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:50:8D:D1:64:4C
          inet addr:192.168.1.210  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::250:8dff:fed1:644c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:515 errors:0 dropped:0 overruns:0 frame:0
          TX packets:184 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:69421 (67.7 KiB)  TX bytes:18637 (18.2 KiB)
          Interrupt:177 Base address:0xb000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:17035 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17035 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:20847754 (19.8 MiB)  TX bytes:20847754 (19.8 MiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

usb0      Link encap:Ethernet  HWaddr E6:CA:62:C6:3F:4C
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

为usb0设备配置ip地址后可以telnet到E680i

blueice:/lib/modules# ifconfig eth0 down
blueice:/lib/modules# ifconfig usb0 192.168.1.1
blueice:/lib/modules# telnet 192.168.1.2
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.

MontaVista Linux Consumer Electronics Edition 3.0
Linux/armv5tel 2.4.20_mvlcee30-mainstone


(none) login: root
Linux 192.168.1.11 2.4.20_mvlcee30-mainstone #7 Fri Feb 13 15:39:51 CST 2004 armv5tel unknown

MontaVista Linux Consumer Electronics Edition 3.0

\[\033[01;34m\]\W \$ \[\033[00m\]bash
~ # ifconfig -a
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:51539607564 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51539607564 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3710851744608 (864.0 b)  TX bytes:0 (0.3221223136  )

usbl0     Link encap:Ethernet  HWaddr 12:60:98:DA:DC:FC
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:279172874305 errors:0 dropped:0 overruns:0 frame:0
          TX packets:154618822692 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:15191299329489 (3.4 Kb)  TX bytes:0 (6.3221223136  )

~ # exit
exit
\[\033[01;34m\]\W \$ \[\033[00m\]exit
Connection closed by foreign host.

此时在Linux主机上查看usb设备显示如下

blueice:/lib/modules# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 22b8:600c Motorola PCS A768i GSM Phone
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 003: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam

E680i的设备号也有变化

阅读(2619) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~