Beispiel: Externe Festplatte wird via USB an einen PC angeschlossen. Wie
kommunizieren USB-Festplatte und PC?
Leider finde ich via Google nicht, was ich suche. Kann mir hier jemand weiterhelfen?
Holger
Didn't find your answer? Ask the community — no account required.
M
Matthias Weingart
Holger :
formatting link
M.
O
Olaf Barheine
Moin!
Kaum zu glauben. Das Internet ist eigentlich voll mit USB-Tutorials, z.B.:
formatting link
Oder was fehlt Dir?
H
Holger
Matthias Weingart schrieb:
an
xternen
e
Danke.
M
Michael Baeuerle
In Kapitel 4.3 findet sich dort der Hinweis zu "bInterfaceSubClass": | | Subclass code (assigned by the USB-IF). Indicates which industry | standard command block definition to use. | Does not specify a type of storage device such as a floppy disk or | CD-ROM drive. | (See USB Mass Storage Overview Specification)
Diese findet sich hier:
Dort in Kapitel 2 listet Table 1 die Werte. Steht dort 6, handelt es
kann sich z.B. als SCSI-Platte (mit dem SBC Befehlssatz) ausgeben.
Bei mir hat ihn der Kernel auf /dev/sdb gemapped. Mit dem SCSI INQUIRY Befehl kann man den USB-Stick nun fragen welchen SCSI-Befehlssatz er benutzt: | | # sg_inq --hex /dev/sdb | standard INQUIRY:
Der Befehl INQUIRY ist im SCSI Dokument SPC definiert.
| 00 00 80 02 02 1f 00 00 00 37 00 15 88 c6 35 65 be ........7....5e. ^^ Die 5 LSBs dieses Bytes sind der PERIPHERAL DEVICE TYPE. Null bedeutet
| | 00h SBC Direct-access device (e.g., magnetic disk)
Die Befehle sind in einem eigenen Dokument SBC (SCSI Block Commands) definiert.
Registrierung bekommt man sie AFAIK immer noch umsonst:
V
Volker Borchert
--
"I'm a doctor, not a mechanic." Dr Leonard McCoy "I'm a mechanic, not a doctor." Volker Borchert
H
Holger
Mit den erhaltenen Antworten bin ich zufrieden, nochmals sagen ich "danke" allen, die mir geholfen haben.
Holger
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.