FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

Re: [linux-minidisc] implementing unix himd autodetection function

<-- thread -->
<-- date -->
  • From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
  • To: linux-minidisc@lists.fu-berlin.de
  • Date: Sun, 23 Dec 2012 16:01:20 +0100
  • Subject: Re: [linux-minidisc] implementing unix himd autodetection function

On Sun, Dec 23, 2012 at 03:47:57PM +0100, Thomas Arp wrote:
> now I made a first patch for the unix autodetection function during
> application runtime.
> At current stage it displays debug messages only.

Hey, that's pretty cool. You're being really productive, congrats!

> I think there is a way to get "allDrives" using dbus for detection
> at application start, but i didn't check this yet.

Well, dbus is an interprocess communication system. I am not sure
whether you can actually enumarate devices through dbus. udev does
this on Linux.

> We can fetch the corresponding driver file (/dev/sdX) and the mountpoint.
> I don't know if there is any way to get  the vendor/product ids.
> 
> Maybe it's enough to check if vendor/model strings are "Sony Hi-MD"
> and if connection interface is usb to accept the drive as himd
> device.

An easy way would be to use udev which is unfortunately
Linux-specific. udev emumerates devices and can assign device files
according to specific properties (USB IDs, for example). With udev,
you could have any HiMD/NetMD device known from a
himd.rules/netmd.rules file assign the device file /dev/himdN or
/dev/netmdN (N being an integer number).

We might have to come up with an abstraction layer such that we have
support for at least Linux, *BSD and MacOS X.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



<-- thread -->
<-- date -->
  • Follow-Ups:
    • Re: [linux-minidisc] implementing unix himd autodetection function
      • From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
  • References:
    • [linux-minidisc] implementing netmd support in the gui application
      • From: "Thomas Arp" <manner.moe@gmx.de>
    • Re: [linux-minidisc] implementing netmd support in the gui application
      • From: Thomas Arp <manner.moe@gmx.de>
    • [linux-minidisc] implementing unix himd autodetection function
      • From: Thomas Arp <manner.moe@gmx.de>
  • linux-minidisc - December 2012 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the linux-minidisc mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal