TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
USB Human Interface Device …

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> eSOM/2x86
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 13.08.2009, 11:31    Post subject: USB Human Interface Device … Reply with quote

Hallo Forum.

Wenn man eine USB HID Device (zum Beispiel eine Tastatur oder eine Maus) mit dem USB Host Interface verbinden will, muss auch der entsprechende Treiber usbhid geladen werden. Dafür wäre die Eingabe

Code:
modprobe usbhid


erforderlich. Der Treiber ist standardmäßig im MAX-Linux vorhanden. Erst nach dem Laden des Treibers wird die entsprechende Device funktionieren.

Gruß

KDW
Back to top
View user's profile Send private message
hannes76



Joined: 20 Oct 2009
Posts: 15

PostPosted: 29.06.2012, 20:20    Post subject: Auslesen von USBHID-Device Reply with quote

Hallo,
Ich möchte einen USB-Barcodescanner auf dem System betreiben. Dieser bindet sich als Tastatur ein (funktioniert auch unter Windows so).
Nach dem laden von usbhid wird das Gerät grundsätzlich erkannt und ich finde es auch in /proc/bus/input/devices. Allerdings wird kein Eintrag in /dev angelegt.

Meine Frage ist nun, ob hier noch etwas fehlt oder ich hier generell etwas falsch verstehe.

Vielen Dank und viele Grüße,

Hannes
Back to top
View user's profile Send private message
hne



Joined: 11 Jul 2008
Posts: 210
Location: Hannover

PostPosted: 10.07.2012, 11:00    Post subject: Reply with quote

Man braucht nicht direkt von dem HID-Gerät zu lesen.

Der Linux-Kernel setzt die HID zu normalen Tasten um, und sendet diese an die Applikation, welche gerade auf der Video-Konsole läuft. Die "Video-Konsole" ist die Bildschirmausgabe über eine Grafik-Karte.

Nach dem Booten ist es der getty. Nach dem Login, dann die bash und später das gestartete Programm. Man braucht auch kein extra Device zu öffnen, da "stdin" bereits als Eingabe automatisch geöffnet wird. stdin ist /dev/tty bzw. /dev/tty1 für die erste Video-Konsole. (VGA-Textmodus, Framebuffer oder Dummy-Konsole)
_________________
Henry Nestler
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> eSOM/2x86 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015