This little patch adds an ability to recognize Posiflex PP-7000 retail printer for ftdi_sio
driver. The printer uses FT232BM USB-serial brigde but is programmed with custom VID and PID.
The patch is made for 2.6.11.1 kernel but is extremely easy to adapt to newer versions. I also
posted it to "Patches" page on sf.net project. I wrote to project admin a letter asking to give me
an access to their CVS but got no reply.
Kind regards
--- linux-2.6.11.1/drivers/usb/serial/ftdi_sio.c.orig 2005-03-04 20:26:42.000000000 +0300
+++ linux-2.6.11.1/drivers/usb/serial/ftdi_sio.c 2005-12-06 22:47:20.000000000 +0300
@@ -488,6 +488,7 @@
{ USB_DEVICE_VER(BANDB_VID, BANDB_USTL4_PID, 0x400, 0xffff) },
{ USB_DEVICE_VER(BANDB_VID, BANDB_USO9ML2_PID, 0x400, 0xffff) },
{ USB_DEVICE_VER(FTDI_VID, EVER_ECO_PRO_CDS, 0x400, 0xffff) },
+ { USB_DEVICE(POSIFLEX_VID, POSIFLEX_PP7000_PID) },
{ } /* Terminating entry */
};
@@ -611,6 +612,7 @@
{ USB_DEVICE(BANDB_VID, BANDB_USTL4_PID) },
{ USB_DEVICE(BANDB_VID, BANDB_USO9ML2_PID) },
{ USB_DEVICE(FTDI_VID, EVER_ECO_PRO_CDS) },
+ { USB_DEVICE(POSIFLEX_VID, POSIFLEX_PP7000_PID) },
{ } /* Terminating entry */
};
--- linux-2.6.11.1/drivers/usb/serial/ftdi_sio.h.orig 2005-03-04 20:26:44.000000000 +0300
+++ linux-2.6.11.1/drivers/usb/serial/ftdi_sio.h 2005-12-05 22:22:27.000000000 +0300
@@ -246,6 +246,12 @@
#define EVER_ECO_PRO_CDS 0xe520 /* RS-232 converter */
+/*
+ * Posiflex inc retail equipment (http://www.posiflex.com.tw)
+ */
+#define POSIFLEX_VID 0x0d3a /* Vendor ID */
+#define POSIFLEX_PP7000_PID 0x0300 /* PP-7000II thermal printer */
+
/* Commands */
#define FTDI_SIO_RESET 0 /* Reset the port */
#define FTDI_SIO_MODEM_CTRL 1 /* Set the modem control register */
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]