蓝点工坊(http://www.bluedrum.cn) 创始人,App和嵌入式产品开发。同时也做相应培训和外包工作。 详细介绍 http://pan.baidu.com/s/1y2g88
全部博文(311)
分类: 嵌入式
2011-02-15 23:06:47
Andrew Huang 转载请注明作者及网址.
手头有一个 USB Phone ,型号是 PD 250H.这是市面常见一款。自带有WINDOWS的驱动和应用程序。
在Windows下安装后,能被SkyPe识别,在USB的Phone屏幕上可以看到SkyPe的通讯录。
打开其安装程序。可以看到它除了SkyPe,还支持不少VOIP的软件。
查看其IC型号用的是 台湾合泰(HOLTEK) 出的HT
Linux 下的测试
支持48kHz/8kHz 回放, 8kHz/16kHz 录音。在WINDOWS下能正常工作,但是未提供如何在LINUX下。搜索相关文档,都提及可以直接使用。于是我把USB Phone直接插在我RHEL5来。果然识别了。
[root@huisen project]# dmesg | tail
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
usb 1-1: new full speed USB device using uhci_hcd and
address 2
usb 1-1: configuration #1 chosen from 1 choice
hiddev96: USB HID v1.10 Device [HOLTEK USB Phone] on usb-0000:00:07.2-1
usb 1-2: new full speed USB device using uhci_hcd and
address 3
usb 1-2: configuration #1 chosen from 1 choice
hub 1-2:1.0: USB hub found
hub 1-2:1.0: 7 ports detected
usbcore: registered new driver snd-usb-audio
[root@huisen
project]# lsusb
Bus 001 Device 002: ID 04d9:3822 Holtek Semiconductor, Inc.
Bus 001 Device 003: ID 0e
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
[root@huisen project]# cat /proc/bus/usb/devices
T:
Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc=
0/800 us ( 0%), #Int= 0,
#Iso= 0
D: Ver= 2.00
Cls=09(hub ) Sub=00 Prot=01 MxPS=64
#Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S:
Manufacturer=Linux
S: Product=EHCI
Host Controller
S:
SerialNumber=0000:02:02.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0
#EPs= 1 Cls=09(hub ) Sub=00 Prot=00
Driver=hub
E: Ad=81(I)
Atr=03(Int.) MxPS= 2 Ivl=256ms
T: Bus=01 Lev=00
Prnt=00 Port=00 Cnt=00 Dev#= 1
Spd=12 MxCh= 2
B: Alloc= 11/900 us ( 1%), #Int= 1, #Iso=
0
D: Ver= 1.10
Cls=09(hub ) Sub=00 Prot=00 MxPS=64
#Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S:
Manufacturer=Linux
S: Product=UHCI
Host Controller
S:
SerialNumber=0000:00:07.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0
#EPs= 1 Cls=09(hub ) Sub=00 Prot=00
Driver=hub
E: Ad=81(I)
Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00
Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc )
Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=04d9 ProdID=3822 Rev=
1.00
S: Manufacturer=HOLTEK
S: Product=USB Phone
C:* #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01
Prot=00 Driver=snd-usb-audio
I: If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02
Prot=00 Driver=snd-usb-audio
I: If#= 1 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02
Prot=00 Driver=snd-usb-audio
E: Ad=02(O)
Atr=09(Isoc) MxPS= 192 Ivl=1ms
I: If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02
Prot=00 Driver=snd-usb-audio
I: If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02
Prot=00 Driver=snd-usb-audio
E: Ad=83(I)
Atr=01(Isoc) MxPS= 16 Ivl=1ms
I: If#= 3 Alt=
0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00
Driver=usbhid
E: Ad=81(I)
Atr=03(Int.) MxPS= 8 Ivl=1ms
E: Ad=04(O)
Atr=03(Int.) MxPS= 32 Ivl=1ms
T:
Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 MxCh= 7
D:
Ver= 1.10 Cls=09(hub ) Sub=00
Prot=00 MxPS= 8 #Cfgs= 1
P:
Vendor=0e
S: Product=VMware
Virtual USB Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0
#EPs= 1 Cls=09(hub ) Sub=00 Prot=00
Driver=hub
E: Ad=81(I)
Atr=03(Int.) MxPS= 1 Ivl=255ms
[root@huisen project]#
并在alsa设备上新增一个card1
[root@huisen project]# ls -l /proc/asound/Phone
lrwxrwxrwx 1 root root 5 02-08 12:18 /proc/asound/Phone
-> card1
[root@huisen project]# ls -l /proc/asound/card1
æ
chinaunix网友2011-03-06 08:43:12
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com