User Tools

Site Tools


netmdpython

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
netmdpython [2010/10/28 21:21] mannermoenetmdpython [2013/05/16 11:39] (current) – [Download] glaubitz
Line 21: Line 21:
  
 <code> <code>
-sudo port install libusb git-core+sudo port install libusb git-core py26-crypto sox
 </code> </code>
  
Line 27: Line 27:
  
 <code> <code>
-sudo apt-get install python2.6 libusb-dev git-core subversion+sudo apt-get install python2.6 libusb-dev git-core subversion python-crypto sox
 </code> </code>
  
Line 34: Line 34:
 Download and install [[http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi|Python2.6]], [[http://www.voidspace.org.uk/downloads/pycrypto-2.1.0.win32-py2.6.zip|PyCrypto]] and [[http://sourceforge.net/projects/sox/files/sox-win/14.3.1/|sox]]. Download and install [[http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi|Python2.6]], [[http://www.voidspace.org.uk/downloads/pycrypto-2.1.0.win32-py2.6.zip|PyCrypto]] and [[http://sourceforge.net/projects/sox/files/sox-win/14.3.1/|sox]].
  
-Download [[http://libusb-winusb-wip.googlecode.com/files/zadig.exe|zadig.exe]] (WinUSB device driver installer), connect your NetMD device and run zadig.exe.+Download [[http://libusb-winusb-wip.googlecode.com/files/zadig.exe|zadig.exe]] (WinUSB device driver installer), connect your NetMD device and run //zadig.exe//.
  
-Klick //Options->List all devices//, choose your Net MD device an klick //Install Driver//. +Click //Options->List all devices//, choose your NetMD device an choose //Install Driver//. 
-//**SonicStage will not be able to communicate with your netmd device anymore. +//**NOTE: SonicStage will not be able to communicate with your NetMD device anymore. 
-If you want to use SonicStage you have to uninstall WinUSB device driver first**//. +If you want to use SonicStage again, you will have to uninstall WinUSB device driver first.**// 
-(Enter device manager, choose your device and uninstall it, you can find it at "libusb (WinUSB) devices"+(To uninstall the driver, run Windows "Device Manager", choose your device and uninstall it, you can find it at "libusb (WinUSB) devices"
-Then unplug and reconnect your device)+Then unplug and reconnect your device).
  
-Download latest version of [[http://github.com/vpelletier/python-libusb1/tree/|python-libusb1]] and replace usb1.py and libusb1.py in netmd subdirectory of your linux-minidisc folder with the python-libusb1 versions. These versions can find and open libusb windows dll which is not implemented in usb1.py and libusb1.py of current main source repositoryyet. +Download latest version of [[http://github.com/vpelletier/python-libusb1/tree/|python-libusb1]] and replace usb1.py and libusb1.py in the //netmd// subdirectory of your //linux-minidisc// folder with the python-libusb1 versions. These versions can find and open libusb Windows DLL which has not been implemented in usb1.py and libusb1.py of current main source repository yet. 
  
 Download and extract [[http://libusb-winusb-wip.googlecode.com/files/libusb_2010.10.14.7z|libusb windows backend]] and copy libusb1.0.dll to your  Download and extract [[http://libusb-winusb-wip.googlecode.com/files/libusb_2010.10.14.7z|libusb windows backend]] and copy libusb1.0.dll to your 
-windows/system32 folder (usually C:\WINDOWS\system32). Use the version according to your os, mingw32 version should work on Windows XP 32-bit. +windows/system32 folder (usually C:\WINDOWS\system32). Use the version according to your version of Windowsthe mingw32 version should work on Windows XP 32-bit.
  
-Open a console window(//Start->Run//, type //cmd// and press enter) and type+Open a command prompt (Click //Start->Run//, type //cmd// and press enter) and type
 <code> <code>
 set PATH=<sox install dir>;%PATH% set PATH=<sox install dir>;%PATH%
 </code>  </code> 
-to add the path of sox directory temporarely.(<sox install dir> means the path to your sox installation directory, usually C:\sox-14-3-1). +to add the path of sox directory temporarily. (<sox install dir> means the path to your sox installation directory, usually C:\sox-14-3-1). To use it permanently you can add the path to your system variables.
-To use it permanently you can add the path to your system variables.+
  
 If you want to use ffmpeg to convert uploaded files, you can download Windows binaries of [[http://ffmpeg.arrozcru.org/autobuilds/|ffmpeg]]. If you want to use ffmpeg to convert uploaded files, you can download Windows binaries of [[http://ffmpeg.arrozcru.org/autobuilds/|ffmpeg]].
Line 60: Line 59:
 </code> </code>
    
-To use the tools, open a console window, change into netmd subdirectory of your linux-minidisc folder and start the scripts by their name (just type  +To use the tools, change into netmd subdirectory of your linux-minidisc folder and run the scripts by their name (just type  
-"dump_md.py", "upload.py", ...) with parameters if needed. See **How to use the tools** below.+"dump_md.py", "upload.py", ...) with parameters if required. See [[netmdpython#how_to_use_the_tools]] below.
  
  
-===== Download =====+==== Getting the code ====
  
-Clone the main source repository: +To get the codeclone it with //git// as shown on the [[start#source_code|homepage]].
- +
-<code+
-git clone git://sulphur.uio.no/linux-minidisc +
-</code>+
  
 The Python libnetmd can be found in the //netmd// subdirectory: The Python libnetmd can be found in the //netmd// subdirectory:
Line 226: Line 221:
 ==== downloadhack.py - download tracks to NetMD (buggy) ==== ==== downloadhack.py - download tracks to NetMD (buggy) ====
  
-Use this script download tracks to your NetMD Walkman. **Note: This requires the NetMD root key from Sony which is not (yet) part of the official repository due to legal reasons.**+Use this script download tracks to your NetMD Walkman. <del>**Note: This requires the NetMD root key from Sony which is not (yet) part of the official repository due to legal reasons.**</del> 
 ==== mdctl.py - test libnetmd functionality (DEBUG use only) ==== ==== mdctl.py - test libnetmd functionality (DEBUG use only) ====
  
Line 237: Line 233:
  
 **Important notes regarding all tools:** **Important notes regarding all tools:**
- 
-  * The tools use a python binding for libusb 1.0. There is no libusb 1.0 for Windows yet, so no chance of using them on Windows. 
  
   * Write access to usb device required (even for listing, as it requires sending usb commands). One way to obtain the rights on modern Linux distributions that use PolicyKit ist to add the portable_audio_player capability to the Net MD device using the provided fdi file (look in netmd/etc of the linux-minidisc tree). Another way is to run them with root permissions (not recommended) or make sure the device raw USB device (the file /dev/bus/usb/<bus>/<device>) gets read/write access by the user you want to use the tools with.   * Write access to usb device required (even for listing, as it requires sending usb commands). One way to obtain the rights on modern Linux distributions that use PolicyKit ist to add the portable_audio_player capability to the Net MD device using the provided fdi file (look in netmd/etc of the linux-minidisc tree). Another way is to run them with root permissions (not recommended) or make sure the device raw USB device (the file /dev/bus/usb/<bus>/<device>) gets read/write access by the user you want to use the tools with.
netmdpython.1288300919.txt.gz · Last modified: 2010/10/28 21:21 by mannermoe

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki