linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Udev support for Ultima Cutter
@ 2011-08-17 11:48 Olafur Arason
  2011-08-17 13:27 ` Kay Sievers
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Olafur Arason @ 2011-08-17 11:48 UTC (permalink / raw)
  To: linux-hotplug

Hi, I need a udev rule file for Mutoh Ultima Cutter. It would be
preferable if it links
to /dev/cutter so I know which device to link to. This is a serial usb
connection.
I have previously managed to write data to this interface and have tried to make
a rule file but I don't know why it does not work and the udevadm
monitor interface
does not give me any clues.

Regards,
Olafur Arason

lsusb -v output

Bus 002 Device 002: ID 0c30:6001
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0c30
  idProduct          0x6001
  bcdDevice            2.00
  iManufacturer           1 MUTOH EUROPE NV
  iProduct                2 ULTIMA CUTTER
  iSerial                 3 MECTKDPD
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               44mA
    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 ULTIMA CUTTER
      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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Udev support for Ultima Cutter
  2011-08-17 11:48 Udev support for Ultima Cutter Olafur Arason
@ 2011-08-17 13:27 ` Kay Sievers
  2011-08-17 13:40 ` Olafur Arason
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2011-08-17 13:27 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Aug 17, 2011 at 13:48, Olafur Arason <olafura@olafura.com> wrote:
> Hi, I need a udev rule file for Mutoh Ultima Cutter. It would be
> preferable if it links
> to /dev/cutter so I know which device to link to. This is a serial usb
> connection.
> I have previously managed to write data to this interface and have tried to make
> a rule file but I don't know why it does not work and the udevadm
> monitor interface
> does not give me any clues.

Check /dev/serial/* if there is a link already that fits?

Kay

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Udev support for Ultima Cutter
  2011-08-17 11:48 Udev support for Ultima Cutter Olafur Arason
  2011-08-17 13:27 ` Kay Sievers
@ 2011-08-17 13:40 ` Olafur Arason
  2011-08-17 13:47 ` Kay Sievers
  2011-08-17 13:54 ` Greg KH
  3 siblings, 0 replies; 5+ messages in thread
From: Olafur Arason @ 2011-08-17 13:40 UTC (permalink / raw)
  To: linux-hotplug

I don't have /dev/serial/* I'm using Ubuntu 11.04 if that helps.
Here is a diff of before and after plugin in my cutter:
647,671d646
< P: /devices/pci0000:00/0000:00:1d.0/usb2/2-1
< N: bus/usb/002/002
< E: UDEV_LOG=3
< E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1
< E: MAJOR\x189
< E: MINOR\x129
< E: DEVNAME=/dev/bus/usb/002/002
< E: DEVTYPE=usb_device
< E: DRIVER=usb
< E: PRODUCTÃ0/6001/200
< E: TYPE=0/0/0
< E: BUSNUM\02
< E: DEVNUM\02
< E: SUBSYSTEM=usb
<
< P: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0
< E: UDEV_LOG=3
< E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0
< E: DEVTYPE=usb_interface
< E: PRODUCTÃ0/6001/200
< E: TYPE=0/0/0
< E: INTERFACE%5/255/255
< E: MODALIAS=usb:v0C30p6001d0200dc00dsc00dp00icFFiscFFipFF
< E: SUBSYSTEM=usb

It seems to be linked to /dev/bus/usb/002/002 but a consistent path is
needed for privileges and less frustration with always re-configuring the tools.

Also it's important that devices like this work automatically for everybody.

Regards,
Olafur Arason

On Wed, Aug 17, 2011 at 13:27, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Wed, Aug 17, 2011 at 13:48, Olafur Arason <olafura@olafura.com> wrote:
>> Hi, I need a udev rule file for Mutoh Ultima Cutter. It would be
>> preferable if it links
>> to /dev/cutter so I know which device to link to. This is a serial usb
>> connection.
>> I have previously managed to write data to this interface and have tried to make
>> a rule file but I don't know why it does not work and the udevadm
>> monitor interface
>> does not give me any clues.
>
> Check /dev/serial/* if there is a link already that fits?
>
> Kay
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Udev support for Ultima Cutter
  2011-08-17 11:48 Udev support for Ultima Cutter Olafur Arason
  2011-08-17 13:27 ` Kay Sievers
  2011-08-17 13:40 ` Olafur Arason
@ 2011-08-17 13:47 ` Kay Sievers
  2011-08-17 13:54 ` Greg KH
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2011-08-17 13:47 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Aug 17, 2011 at 15:40, Olafur Arason <olafura@olafura.com> wrote:
> I don't have /dev/serial/* I'm using Ubuntu 11.04 if that helps.

/dev/serial/looks like this usually:
  http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h¼4c751802147f1ff21bf52a57a2976754949453

> It seems to be linked to /dev/bus/usb/002/002 but a consistent path is
> needed for privileges and less frustration with always re-configuring the tools.

Which kernel driver binds to the device?

Kay

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Udev support for Ultima Cutter
  2011-08-17 11:48 Udev support for Ultima Cutter Olafur Arason
                   ` (2 preceding siblings ...)
  2011-08-17 13:47 ` Kay Sievers
@ 2011-08-17 13:54 ` Greg KH
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2011-08-17 13:54 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Aug 17, 2011 at 01:40:02PM +0000, Olafur Arason wrote:
> I don't have /dev/serial/* I'm using Ubuntu 11.04 if that helps.

Please file a bug with Ubuntu to add those persistant links, that is
exactly what you want here.

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-17 13:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-17 11:48 Udev support for Ultima Cutter Olafur Arason
2011-08-17 13:27 ` Kay Sievers
2011-08-17 13:40 ` Olafur Arason
2011-08-17 13:47 ` Kay Sievers
2011-08-17 13:54 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).