LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2043|回复: 9

关键词:usb-serial pl2303 手机

[复制链接]
发表于 2006-3-17 09:40:19 | 显示全部楼层 |阅读模式
新买了台手机,PHILIPS 9@9i。
随机送了一个USB转串口的线,可以让手机和计算机通讯。

在另外一台装有linux的笔记本上,已经成功实现了通过irda互传数据。

现在用的是台式机,没用红外,只能通过usb-serial了。

通过lsusb看到usb串口线的芯片是Prolific Technology Inc. 于是重新编译一下内核,选种pl2303模块。
重启后,发现模块没有自动加载(k2.6.15.4+udev),于是手动加载。lsmod能看见pl2303了,可是/dev下并没有发现/dev/ttyUSBxxx……

怎么搞的?
 楼主| 发表于 2006-3-17 13:23:55 | 显示全部楼层
在google上找了一个解决方案:

修改pl2303.h,添加设备的厂家和产品ID号。

按照做了,可是还不行……没能见到/dev/ttyUSBxxx
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-20 08:36:02 | 显示全部楼层
奇怪,另外一个专门的usb转串口的设备就能用阿

难道数据线是定制的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-20 20:00:18 | 显示全部楼层
haha@loveDebian:~$ sudo lsusb -s 001:007 -v
Bus 001 Device 007: ID 0471:081e Philips
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0471 Philips
  idProduct          0x081e
  bcdDevice            3.00
  iManufacturer           1 Prolific Technology Inc.
  iProduct                2 USB-Serial Controller
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)


HELP ME PLEASE!
回复 支持 反对

使用道具 举报

发表于 2006-3-21 14:53:14 | 显示全部楼层
插上数据线,贴dmesg后门几行看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-21 20:15:55 | 显示全部楼层
usb 1-1: USB disconnect, address 2
usb 1-1: new full speed USB device using uhci_hcd and address 3

我怀疑数据线的芯片是不是定制的,不是pl2303阿?
回复 支持 反对

使用道具 举报

发表于 2006-3-21 21:22:40 | 显示全部楼层
要不用最土的办法编一个内核,把所有usb serial converter驱动都编进去看行不行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-21 21:57:09 | 显示全部楼层
哈哈! 可问题是内核里只有一个和Prolific公司相关的驱动阿……
回复 支持 反对

使用道具 举报

发表于 2006-3-22 00:11:47 | 显示全部楼层
我的手机是酷派858,在linux下可以用pl2303驱动上网。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-22 07:23:55 | 显示全部楼层
这位兄弟,能贴出 lsusb -v 看看吗?
你没有修改内核代码就能用?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表