为 GPS 接收器安装 cp210x 驱动程序

为 GPS 接收器安装 cp210x 驱动程序

我正在尝试在运行 Xubuntu 16.04 的系统上安装 Transystem G-Log 760 GPS 记录器,但没有成功。

根据 GPSBabel 的手册,可以通过以下方式访问该设备:

gpsbabel -t -w -i mtk,erase -f /dev/ttyUSB0 -o gpx -F out.gpx

但它不起作用,因为‘ttyUSB0’ 设备不存在。

我要做什么才能让它出现?

该设备附带 cp210x 驱动程序源代码的链接以及以下说明:

Ubuntu:
1. make ( your cp210x driver )
2. cp cp210x.ko to /lib/modules/<kernel-version>/kernel/drivers/usb/serial
3. insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko
4. insmod cp210x.ko

我不知道我的内核的具体版本,但是我仍然在包含源代码的目录中输入了“make”,并收到了以下消息:

make[1]: Entering directory '/usr/src/linux-headers-4.4.0-34-generic'

因此我检查了目录“/lib/modules/4.4.0-34-generic/drivers/usb/serial”,假设这是所需的内核版本,然后发现文件“cp210x.ko”已存在

因此我只执行了 2 个“insmod”指令,没有收到任何回复。

二甲基硅油包含以下几行:

[ 9260.793858] usb 3-3.3: New USB device found, idVendor=0e8d, idProduct=3329
[ 9260.793867] usb 3-3.3: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[ 9260.793872] usb 3-3.3: Product: GPS Receiver
[ 9260.793877] usb 3-3.3: Manufacturer: MTK

LSUSB-v

Bus 003 Device 008: ID 0e8d:3329 MediaTek Inc. Qstarz BT-Q1000XT
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0e8d MediaTek Inc.
  idProduct          0x3329 Qstarz BT-Q1000XT
  bcdDevice            1.00
  iManufacturer           3 MTK
  iProduct                4 GPS Receiver
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           67
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              1 GPS COM(data_if)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        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     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                28
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              2 GPS COM(comm_if)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)

相关内容