static usb device configuration

2010-12-12 Thread Emanuel Haupt
Is there any way I can make sure that the following device:

ugen1.3: product 0x6001 vendor 0x0403 at usbus1, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0008 
  idVendor = 0x0403 
  idProduct = 0x6001 
  bcdDevice = 0x0400 
  iManufacturer = 0x  no string
  iProduct = 0x  no string
  iSerialNumber = 0x0003  Reader 195
  bNumConfigurations = 0x0001 

Is always registered as:

/dev/usb/1.3.0

Using a pattern match on iSerialNumber could achieve that but how would
I configure something like that?

According to the /etc/devd.conf manpage I could create a symlink but that 
wouldn't solve my problem.

Emanuel
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: static usb device configuration

2010-12-12 Thread Emanuel Haupt
Andrew Thompson thom...@freebsd.org wrote:
 On 13 December 2010 07:49, Emanuel Haupt eha...@freebsd.org wrote:
  Is there any way I can make sure that the following device:
 
  ugen1.3: product 0x6001 vendor 0x0403 at usbus1, cfg=0 md=HOST
  spd=FULL (12Mbps) pwr=ON
 
   bLength = 0x0012
   bDescriptorType = 0x0001
   bcdUSB = 0x0200
   bDeviceClass = 0x
   bDeviceSubClass = 0x
   bDeviceProtocol = 0x
   bMaxPacketSize0 = 0x0008
   idVendor = 0x0403
   idProduct = 0x6001
   bcdDevice = 0x0400
   iManufacturer = 0x  no string
   iProduct = 0x  no string
   iSerialNumber = 0x0003  Reader 195
   bNumConfigurations = 0x0001
 
  Is always registered as:
 
  /dev/usb/1.3.0
 
 You would be better making a symlink using devd rules, something like
 
 notify 100 {
 match system  USB;
 match subsystem   DEVICE;
 match typeATTACH;
 match vendor  0x0403;
 match product 0x6001;
 action ln -s /dev/$cdev /dev/mydevice;
 };

Unfortunately the program in question uses libusb and the configuration
only allows to define the device by specifying busnum:devaddr and
there are multiple identical devices around with only iSerialNumber
being different from each other. Somehow I need to make sure the
devices in the USB hub are always recognized in the same order.

I guess one solution would be to generate the configuration each time
the program starts.

Emanuel
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: static usb device configuration

2010-12-12 Thread Emanuel Haupt
Hans Petter Selasky hsela...@c2i.net wrote:
 On Sunday 12 December 2010 19:49:24 Emanuel Haupt wrote:
  Is there any way I can make sure that the following device:
  
  ugen1.3: product 0x6001 vendor 0x0403 at usbus1, cfg=0 md=HOST
  spd=FULL (12Mbps) pwr=ON
  
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x
bDeviceSubClass = 0x
bDeviceProtocol = 0x
bMaxPacketSize0 = 0x0008
idVendor = 0x0403
idProduct = 0x6001
bcdDevice = 0x0400
iManufacturer = 0x  no string
iProduct = 0x  no string
iSerialNumber = 0x0003  Reader 195
bNumConfigurations = 0x0001
  
  Is always registered as:
  
  /dev/usb/1.3.0
 
 No, this is currently not possible unless you find the USB port which
 is enumerated first (I.E. has the lowest second number.)

When you say 'currently', is there something like that planed?

Emanuel
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Motorola TER/GUSB3-E Ralink Wireless USB

2010-11-12 Thread Emanuel Haupt
Hans Petter Selasky hsela...@c2i.net wrote:
 On Thursday 11 November 2010 17:36:38 Emanuel Haupt wrote:
  Hans Petter Selasky hsela...@c2i.net wrote:
   On Thursday 11 November 2010 17:00:00 Emanuel Haupt wrote:
I've got a Motorola TER/GUSB3-E Wireless USB stick that
identifies itself as:

# /var/log/messages

Nov 11 13:40:07 wiggles kernel: ugen1.3: Ralink at usbus1
Nov 11 13:40:07 wiggles kernel: umass0: Ralink 802.11 bg WLAN,
class 0/0, rev 2.00/0.01, addr 3 on usbus1 Nov 11 13:40:09
wiggles kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY.
CDB: 0 0 0 0 0 0 Nov 11 13:40:09 wiggles kernel:
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error Nov 11
13:40:09 wiggles kernel: (probe0:umass-sim0:0:0:0): SCSI
status: Check Condition Nov 11 13:40:09 wiggles kernel:
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0
(Medium not present) Nov 11 13:40:09 wiggles kernel: cd1 at
umass-sim0 bus 0 scbus2 target 0 lun 0 Nov 11 13:40:09 wiggles
kernel: cd1: Motorola USB Card  Removable CD-ROM SCSI-0
device Nov 11 13:40:09 wiggles kernel: cd1: 40.000MB/s
transfers Nov 11 13:40:09 wiggles kernel: cd1: Attempt to query
device size failed: NOT READY, Medium not present

# usbconfig -u 1 -a 3 dump_curr_config_desc
ugen1.3: 802.11 bg WLAN Ralink at usbus1, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON

 Configuration index 0
 
bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x0020
bNumInterfaces = 0x0001
bConfigurationValue = 0x0001
iConfiguration = 0x  no string
bmAttributes = 0x0080
bMaxPower = 0x00c8

Interface 0

  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x
  bAlternateSetting = 0x
  bNumEndpoints = 0x0002
  bInterfaceClass = 0x0008
  bInterfaceSubClass = 0x0006
  bInterfaceProtocol = 0x0050
  iInterface = 0x  no string
 
 Endpoint 0
 
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0081  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x
 
 Endpoint 1
 
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0001  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

Unfortunately it's not recognized by the ural driver. Has
anyone an idea what I could try? Add a usb device ID somewhere?
   
   Hi,
   
   If you use the dump_device_desc command you get the idVendor and
   idProduct you need for the ID-table in
   sys/dev/usb/wlan/if_ural.c .
   
   --HPS
  
  It's:
  
  ugen1.3: 802.11 bg WLAN Ralink at usbus1, cfg=0 md=HOST spd=HIGH
  (480Mbps) pwr=ON
  
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x
bDeviceSubClass = 0x
bDeviceProtocol = 0x
bMaxPacketSize0 = 0x0040
idVendor = 
idProduct = 0x2578
bcdDevice = 0x0001
iManufacturer = 0x0001  Ralink
iProduct = 0x0002  802.11 bg WLAN
iSerialNumber = 0x0003  retrieving string failed
bNumConfigurations = 0x0001
  
  I guess I'll have to fit 0x148f in there somewhere - not sure
  exactly where to add though. Any help would be appreciated.
  
  Emanuel
 
 I guess you can:
 
 grep -rE RALINK.*RT2573 /sys/dev/usb/
 
 And duplicate one of those entries.

According to [1], 0x148f seem to use RT2870.

Emanuel

[1] http://ralinkce.blogspot.com/
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Motorola TER/GUSB3-E Ralink Wireless USB

2010-11-11 Thread Emanuel Haupt
I've got a Motorola TER/GUSB3-E Wireless USB stick that identifies itself as:

# /var/log/messages

Nov 11 13:40:07 wiggles kernel: ugen1.3: Ralink at usbus1
Nov 11 13:40:07 wiggles kernel: umass0: Ralink 802.11 bg WLAN, class 0/0, rev 
2.00/0.01, addr 3 on usbus1
Nov 11 13:40:09 wiggles kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. 
CDB: 0 0 0 0 0 0
Nov 11 13:40:09 wiggles kernel: (probe0:umass-sim0:0:0:0): CAM status: SCSI 
Status Error
Nov 11 13:40:09 wiggles kernel: (probe0:umass-sim0:0:0:0): SCSI status: Check 
Condition
Nov 11 13:40:09 wiggles kernel: (probe0:umass-sim0:0:0:0): SCSI sense: NOT 
READY asc:3a,0 (Medium not present)
Nov 11 13:40:09 wiggles kernel: cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0
Nov 11 13:40:09 wiggles kernel: cd1: Motorola USB Card  Removable CD-ROM 
SCSI-0 device
Nov 11 13:40:09 wiggles kernel: cd1: 40.000MB/s transfers
Nov 11 13:40:09 wiggles kernel: cd1: Attempt to query device size failed: NOT 
READY, Medium not present

# usbconfig -u 1 -a 3 dump_curr_config_desc
ugen1.3: 802.11 bg WLAN Ralink at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=ON


 Configuration index 0

bLength = 0x0009 
bDescriptorType = 0x0002 
wTotalLength = 0x0020 
bNumInterfaces = 0x0001 
bConfigurationValue = 0x0001 
iConfiguration = 0x  no string
bmAttributes = 0x0080 
bMaxPower = 0x00c8 

Interface 0
  bLength = 0x0009 
  bDescriptorType = 0x0004 
  bInterfaceNumber = 0x 
  bAlternateSetting = 0x 
  bNumEndpoints = 0x0002 
  bInterfaceClass = 0x0008 
  bInterfaceSubClass = 0x0006 
  bInterfaceProtocol = 0x0050 
  iInterface = 0x  no string

 Endpoint 0
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0081  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 1
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0001  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

Unfortunately it's not recognized by the ural driver. Has anyone an idea what I
could try? Add a usb device ID somewhere?

Emanuel
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Motorola TER/GUSB3-E Ralink Wireless USB

2010-11-11 Thread Emanuel Haupt
Hans Petter Selasky hsela...@c2i.net wrote:
 On Thursday 11 November 2010 17:00:00 Emanuel Haupt wrote:
  I've got a Motorola TER/GUSB3-E Wireless USB stick that identifies
  itself as:
  
  # /var/log/messages
  
  Nov 11 13:40:07 wiggles kernel: ugen1.3: Ralink at usbus1
  Nov 11 13:40:07 wiggles kernel: umass0: Ralink 802.11 bg WLAN,
  class 0/0, rev 2.00/0.01, addr 3 on usbus1 Nov 11 13:40:09 wiggles
  kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0
  0 Nov 11 13:40:09 wiggles kernel: (probe0:umass-sim0:0:0:0): CAM
  status: SCSI Status Error Nov 11 13:40:09 wiggles kernel:
  (probe0:umass-sim0:0:0:0): SCSI status: Check Condition Nov 11
  13:40:09 wiggles kernel: (probe0:umass-sim0:0:0:0): SCSI sense: NOT
  READY asc:3a,0 (Medium not present) Nov 11 13:40:09 wiggles kernel:
  cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 Nov 11 13:40:09
  wiggles kernel: cd1: Motorola USB Card  Removable CD-ROM SCSI-0
  device Nov 11 13:40:09 wiggles kernel: cd1: 40.000MB/s transfers
  Nov 11 13:40:09 wiggles kernel: cd1: Attempt to query device size
  failed: NOT READY, Medium not present
  
  # usbconfig -u 1 -a 3 dump_curr_config_desc
  ugen1.3: 802.11 bg WLAN Ralink at usbus1, cfg=0 md=HOST spd=HIGH
  (480Mbps) pwr=ON
  
  
   Configuration index 0
  
  bLength = 0x0009
  bDescriptorType = 0x0002
  wTotalLength = 0x0020
  bNumInterfaces = 0x0001
  bConfigurationValue = 0x0001
  iConfiguration = 0x  no string
  bmAttributes = 0x0080
  bMaxPower = 0x00c8
  
  Interface 0
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x
bAlternateSetting = 0x
bNumEndpoints = 0x0002
bInterfaceClass = 0x0008
bInterfaceSubClass = 0x0006
bInterfaceProtocol = 0x0050
iInterface = 0x  no string
  
   Endpoint 0
  bLength = 0x0007
  bDescriptorType = 0x0005
  bEndpointAddress = 0x0081  IN
  bmAttributes = 0x0002  BULK
  wMaxPacketSize = 0x0200
  bInterval = 0x
  bRefresh = 0x
  bSynchAddress = 0x
  
   Endpoint 1
  bLength = 0x0007
  bDescriptorType = 0x0005
  bEndpointAddress = 0x0001  OUT
  bmAttributes = 0x0002  BULK
  wMaxPacketSize = 0x0200
  bInterval = 0x
  bRefresh = 0x
  bSynchAddress = 0x
  
  Unfortunately it's not recognized by the ural driver. Has anyone an
  idea what I could try? Add a usb device ID somewhere?
  
 
 Hi,
 
 If you use the dump_device_desc command you get the idVendor and
 idProduct you need for the ID-table in sys/dev/usb/wlan/if_ural.c .
 
 --HPS

It's:

ugen1.3: 802.11 bg WLAN Ralink at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 
  idProduct = 0x2578
  bcdDevice = 0x0001
  iManufacturer = 0x0001  Ralink
  iProduct = 0x0002  802.11 bg WLAN
  iSerialNumber = 0x0003  retrieving string failed
  bNumConfigurations = 0x0001

I guess I'll have to fit 0x148f in there somewhere - not sure exactly
where to add though. Any help would be appreciated.

Emanuel
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/123959: [ums] add support for Razer Lachesis 4000dpi usb mouse

2008-08-11 Thread Emanuel Haupt
The following reply was made to PR usb/123959; it has been noted by GNATS.

From: Emanuel Haupt [EMAIL PROTECTED]
To: Kai Wang [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: usb/123959: [ums] add support for Razer Lachesis 4000dpi usb
 mouse
Date: Mon, 11 Aug 2008 17:53:17 +0200

  Hello Emanuel,
  
  I believe this mouse is supported now, a patch which was committed by
  jhb@ should solve the UISUBCLASS problem several Razer mice have.
  
  It was solved in a different way, see this PR for details:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/118670
  
  If you have the mouse, could you please confirm that it is supported
  now so we can close the PR?
 
 I can confirm that it's solved in RELENG_7. The PR can be closed, thanks.
 
 Emanuel
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb/91546: [umodem][path] Nokia 6630 mobile phone does not work

2006-03-07 Thread Emanuel Haupt
The following reply was made to PR usb/91546; it has been noted by GNATS.

From: Emanuel Haupt [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc:  
Subject: Re: usb/91546: [umodem][path] Nokia 6630 mobile phone does not work
Date: Tue, 7 Mar 2006 18:29:36 +0100

 The patch works with my Nokia 6680 as well. I am running: 6.0-RELEASE-p4
 
 Thanks for the patch!
 
 Emanuel
 
 -- 
 GnuPG key id: 0x55E67774 Download: http://pgp.mit.edu:11371
 Key fingerprint: 17B3 FD8F BA68 4AB4 10FD  A9D1 AD52 6588 55E6 7774
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]