User Tools

Site Tools


himdmusictransferformac

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
himdmusictransferformac [2009/03/26 23:20] karcherhimdmusictransferformac [2009/03/28 15:55] wikiadmin
Line 31: Line 31:
 The goal here is to fully understand the C++-code which contains the HiMD-functionality and reimplement the code in C/C++ again. That code would reside inside a library called "libhimd" which then can be used from a simple Qt-based GUI to provide the functionality (and beyond :)) of "HiMD Transfer for Mac" on all platforms which support Qt. The goal here is to fully understand the C++-code which contains the HiMD-functionality and reimplement the code in C/C++ again. That code would reside inside a library called "libhimd" which then can be used from a simple Qt-based GUI to provide the functionality (and beyond :)) of "HiMD Transfer for Mac" on all platforms which support Qt.
  
 +===== Operation =====
 +
 +The following will try to explain in detail how the software works (incomplete).
 +
 +==== Download of an MP3 to a MiniDisc ====
 +
 +  - Unmount the MiniDisc within MacOSX (the Disk-icon of the MiniDisc vanishes from desktop)
 +  - Read disk-id and DES-encryption key from disk to generate key for block-encryption
 +  - Fetch a 16kByte block of the source MP3 and encrypt it with some 3DES-like encryption, write into a 32kByte Buffer
 +  - Fetch another 16kByte block, encrypt, write to the buffer and flush it
 +  - Write the buffer to disk using special SCSI write-commands
 +  - Repeat previous 3 commands until MP3 is written to disk
 +  - Decode idv3-Tag from MP3 and create track-info and write to disk
 +  - Once the application is closed, mount the disk in MacOS again (Icon reappars on desktop)
  
 ===== Links ===== ===== Links =====
  
 [[http://forums.minidisc.org/index.php?showtopic=6509&hl=sniff]] [[http://forums.minidisc.org/index.php?showtopic=6509&hl=sniff]]
 +
 +===== Connecting the device to Linux, USB-Output =====
 +
 +<code>
 +[2405910.685270] usb 2-9: new full speed USB device using ohci_hcd and address 5
 +[2405910.918600] usb 2-9: configuration #1 chosen from 1 choice
 +[2405910.926599] scsi18 : SCSI emulation for USB Mass Storage devices
 +[2405910.926599] usb-storage: device found at 5
 +[2405910.926599] usb-storage: waiting for device to settle before scanning
 +[2405910.926599] usb 2-9: New USB device found, idVendor=054c, idProduct=021a
 +[2405910.926599] usb 2-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 +[2405910.926599] usb 2-9: Product: Hi-MD
 +[2405910.926599] usb 2-9: Manufacturer: Sony
 +[2405910.926599] usb 2-9: SerialNumber: 02000102A36E
 +[2405916.130872] usb-storage: device scan complete
 +[2405916.135091] scsi 18:0:0:0: Direct-Access     SONY     Hi-MD WALKMAN    1000 PQ: 0 ANSI: 0 CCS
 +[2405916.147196] sd 18:0:0:0: [sdf] 149373 2048-byte hardware sectors (306 MB)
 +[2405916.154210] sd 18:0:0:0: [sdf] Write Protect is off
 +[2405916.154216] sd 18:0:0:0: [sdf] Mode Sense: 00 2a 05 00
 +[2405916.154220] sd 18:0:0:0: [sdf] Assuming drive cache: write through
 +[2405916.181629] sd 18:0:0:0: [sdf] 149373 2048-byte hardware sectors (306 MB)
 +[2405916.187352] sd 18:0:0:0: [sdf] Write Protect is off
 +[2405916.187359] sd 18:0:0:0: [sdf] Mode Sense: 00 2a 05 00
 +[2405916.187362] sd 18:0:0:0: [sdf] Assuming drive cache: write through
 +[2405916.187368]  sdf: unknown partition table
 +[2405916.302773] sd 18:0:0:0: [sdf] Attached SCSI removable disk
 +[2405916.302773] sd 18:0:0:0: Attached scsi generic sg5 type 0
 +[2406419.909323] usb 2-9: USB disconnect, address 5
 +</code>
  
himdmusictransferformac.txt · Last modified: 2009/06/29 14:38 by wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki