[Ardour-Users] BCF2000 and Mackie: quick poll

Josh Parsons josh.parsons at stonebow.otago.ac.nz
Tue Aug 7 19:45:50 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Anderson wrote:

>> There is a way to get udev to assign an attached BCF2000 a consistent
>> name under /dev/ however,...

> Any idea how to create, say, /dev/midi-bcf2000-1 and /dev/midi-bcf2000-2
> if two devices were attached?

I haven't tried, but in theory you could do it like this...

You would need to know the serial numbers of the two BCFs as reported by
# lsusb -v (the "iSerial" line), so that udev can tell them apart.

Then you would configure udev thus (supposing that the serial numbers
are XXXXXX and YYYYYY):

KERNEL=="midiC[0-9]D0", ATTRS{product}=="BCF2000",
ATTRS{serial}=="XXXXXX", SYMLINK+="midi-bcf2000-1"
KERNEL=="midiC[0-9]D0", ATTRS{product}=="BCF2000",
ATTRS{serial}=="YYYYYY", SYMLINK+="midi-bcf2000-2"

You might be tempted by the idea of udev naming the "first" BCF2000 it
finds /dev/midi-bcf-1 and the "second" /dev/midi-bcf-2, but I don't
think that's possible, and in any case it would be a non-solution, since
which physical BCF device counts as "first" and which "second" might
swap around from boot to boot.

Oh, should also mention that all these udev tricks are on the assumption
that the BCF2000 is attached via usb.

- --
Josh Parsons
Philosophy Department
Otago University
PO Box 56
Dunedin 9054
New Zealand

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGuS5eHnAMQavoTZsRAtBRAJoDW9WFh9XSXH6ePuc/TYUkN39uiACeOgek
inTI864PTMxILEAhOAw3RGM=
=RCnP
-----END PGP SIGNATURE-----



More information about the Ardour-Users mailing list