[PATCH] Add AsantePorter PID 0x7F38 to FTDI list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johan and other usb-serial/ftdi maintainers,

Here is a small patch for you which adds the PID for Asante Snap
Pump's FTDI data cable to the device list.  The Asante Snap pump is an
insulin pump, this device is a usb cable which connects to their
cradle.

The patch is listed below as well as here:
https://gist.github.com/bewest/9673924

Here is lsusb output from the device:

https://raw.githubusercontent.com/tidepool-org/asante-porter/master/lsusb

+ lsusb -d 0403:7f38 -v

Bus 002 Device 012: ID 0403:7f38 Future Technology Devices International, Ltd
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0403 Future Technology Devices International, Ltd
  idProduct          0x7f38
  bcdDevice            6.00
  iManufacturer           1 FTDI
  iProduct                2 TTL-232R-3V3-AJ
  iSerial                 3 FTX1MKWH
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               90mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 TTL-232R-3V3-AJ
      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     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)


-bewest
Ben West

>From 82bf3dcd649af33d8f41aa2098bd61bfa94cbc04 Mon Sep 17 00:00:00 2001
From: Ben West <bewest@xxxxxxxxx>
Date: Wed, 19 Mar 2014 20:34:33 -0700
Subject: [PATCH] Add AsantePorter PID 0x7F38 to FTDI list

This patch allows the ftdi usb serial module to create a device when
an Asante Porter usb data cable is plugged in.

Signed-off-by: Ben West <bewest@xxxxxxxxx>
---
 drivers/usb/serial/ftdi_sio.c     | 1 +
 drivers/usb/serial/ftdi_sio_ids.h | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 44ab129..7f26fa1 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -688,6 +688,7 @@ static const struct usb_device_id id_table_combined[] = {
  { USB_DEVICE(EVOLUTION_VID, EVO_HYBRID_PID) },
  { USB_DEVICE(EVOLUTION_VID, EVO_RCM4_PID) },
  { USB_DEVICE(FTDI_VID, FTDI_ARTEMIS_PID) },
+ { USB_DEVICE(FTDI_VID, FTDI_ASANTE_PORTER_PID) },
  { USB_DEVICE(FTDI_VID, FTDI_ATIK_ATK16_PID) },
  { USB_DEVICE(FTDI_VID, FTDI_ATIK_ATK16C_PID) },
  { USB_DEVICE(FTDI_VID, FTDI_ATIK_ATK16HR_PID) },
diff --git a/drivers/usb/serial/ftdi_sio_ids.h
b/drivers/usb/serial/ftdi_sio_ids.h
index e599fbf..0602fd6 100644
--- a/drivers/usb/serial/ftdi_sio_ids.h
+++ b/drivers/usb/serial/ftdi_sio_ids.h
@@ -194,6 +194,11 @@
 #define FTDI_ARTEMIS_PID 0xDF28 /* All Artemis Cameras */

 /*
+ * Definitions for Asante Porter, data cable for insulin pump.
+ */
+#define FTDI_ASANTE_PORTER_PID 0x7F38 /* Asante Porter */
+
+/*
  * Definitions for ATIK Instruments astronomical USB based cameras
  * Check it at http://www.atik-instruments.com/
  */
-- 
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux