[font="Calibri"]Hallo zusammen,[/font]
[font="Calibri"]Ich möchte vom USB Stick die Seriennummer auslesen[/font]
[font="Calibri"]Ich habe schon etwas rumgesucht und leider nur das gefunden.[/font]
[font="Calibri"]Mit „usb-devices“ im Terminalfenster bekomme ich folgende Ausgabe:[/font]
[font="Calibri"] [/font]
[font="Calibri"]T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#= 4 Spd=480 MxCh= 0[/font]
[font="Calibri"]D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1[/font]
[font="Calibri"]P: Vendor=0781 ProdID=5571 Rev=01.00[/font]
[font="Calibri"]S: Manufacturer=SanDisk[/font]
[font="Calibri"]S: Product=Cruzer Fit[/font]
[font="Calibri"]S: SerialNumber=4C530202011121111075[/font]
[font="Calibri"]C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=224mA[/font]
[font="Calibri"]I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage[/font]
[font="Calibri"] [/font]
[font="Calibri"]Das ist nur ein Auszug. Es werden alle USB Geräte angezeigt[/font]
[font="Calibri"]Ich möchte nur die Ser-Nr vom Stick[/font]
[font="Calibri"]Dieser wird ja mit Driver=usb-storage angezeigt[/font]
[font="Calibri"]Wie komme ich die Information in Python[/font]
[font="Calibri"]Oder gibt es eine Komplet andere Lösung[/font]
[font="Calibri"]Danke und Gruß[/font]
[font="Calibri"]Hanebampel[/font]
[font="Calibri"] [/font]
[font="Calibri"] [/font]
[font="Calibri"] [/font]