Modding Eject drive via IDE cable possible ?

Discussion in 'Modding' started by nosmo, 13 Aug 2004.

  1. nosmo

    nosmo What's a Dremel?

    Joined:
    5 Oct 2003
    Posts:
    316
    Likes Received:
    3
    Just took my DVD player apart as was playing up and discovered it has a standard IDE drive in it.
    Normal for DVD players BUT there is only the IDE cable and molex connecting to it.
    The eject button on the DVD player doesn't touch the eject on the drive itself as it has been removed.

    My question is, how does it eject via the IDE cable ?
     
  2. DreamTheEndless

    DreamTheEndless Gravity hates Bacon

    Joined:
    27 Jan 2004
    Posts:
    1,554
    Likes Received:
    0
    data signal - just like when you right click on the drive in 'my computer' and select eject.
     
  3. Firehed

    Firehed Why not? I own a domain to match.

    Joined:
    15 Feb 2004
    Posts:
    12,574
    Likes Received:
    16
    You wouldn't happen to know the software shortcut that lets that happen would you? I wanna make an eject drive shortcut (like how if you just make a shortcut to "explorer.exe C:\" it'll open C:) but the only stuff that google returns is non-free software :waah:
     
  4. FuzzyOne

    FuzzyOne

    Joined:
    19 Sep 2002
    Posts:
    1,823
    Likes Received:
    32
  5. Shadowspawn

    Shadowspawn Another hated American.

    Joined:
    1 Jul 2002
    Posts:
    1,867
    Likes Received:
    0
    There has got to be a command line shortcut for that...

    /me opens google
     
  6. Xiachunyi

    Xiachunyi What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,404
    Likes Received:
    0
    Use the "mciSendCommand" function if you can program.

    I think I can make one for you if you want. If so do you want Command line or Windowed Dialog Box?
     
  7. Smilodon

    Smilodon The Antagonist

    Joined:
    25 Mar 2003
    Posts:
    6,244
    Likes Received:
    102
    You can use girder aswell i think...

    I had open/close functions for both my cdroms on my remote for a wile..
     
  8. Firehed

    Firehed Why not? I own a domain to match.

    Joined:
    15 Feb 2004
    Posts:
    12,574
    Likes Received:
    16
    Thanks for the offer :) Hmm... well what I'm looking for is something that you could just run (by start->run, a shortcut, etc) and have it open the drive, so command line would probably be it.

    Nosmo... what you could look into is seeing where the eject button links to... I'd imagine it's on one of the cables but it could be some sort of other controller. I would think it would have to be a controller, because hard drives don't exactly eject. Perhaps the drives would use pin 39 for eject as hard drives use it for activity LEDs and optical drives wouldn't otherwise use it as they have their own lights on the front.
     
  9. Xiachunyi

    Xiachunyi What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,404
    Likes Received:
    0
    I'll get cracking on it.

    Program name will probably be "cd_drive" with two arguments.
    (1) Which letter designation
    (2) Open/Close

    Return value, if I can, will be TRUE/FALSE for if a CD is in the drive or not when the cd-drive closes.
     
  10. Firehed

    Firehed Why not? I own a domain to match.

    Joined:
    15 Feb 2004
    Posts:
    12,574
    Likes Received:
    16
    Yeah, that would be awesome!! Thanks so much! :thumb: :thumb: :thumb: :clap: :D

    Something to the extent of this?
    run-> cd_drive.exe d open
     
  11. crimandevil

    crimandevil What's a Dremel?

    Joined:
    30 Jun 2004
    Posts:
    100
    Likes Received:
    0
    I've been trying to find something like this for a while! I can wait for it Xiachunyi! :D
     
  12. Xiachunyi

    Xiachunyi What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,404
    Likes Received:
    0
    I typed the program up and tested it as fast as I can so here it is.

    The website will give instructions to you on how to use it. I will add the result return later if I have time, indolence at the moment :D , any questions you have I'll be on hand to answer.

    Source code is included if you don't trust the binary.
    (1)Compile as a C++ file under console classification
    (2)Include the library mmsystem or winmm, whichever your compiler.
    (3)Compile away

    Have fun.
     
  13. FuzzyOne

    FuzzyOne

    Joined:
    19 Sep 2002
    Posts:
    1,823
    Likes Received:
    32
  14. Goreblast

    Goreblast What's a Dremel?

    Joined:
    6 Apr 2004
    Posts:
    123
    Likes Received:
    0
    Thanks guys that is so cool and so handy. :thumb:
     
  15. chalk_mark

    chalk_mark What's a Dremel?

    Joined:
    8 Aug 2004
    Posts:
    117
    Likes Received:
    0
    thanks FuzzyOne !!! I saw some jscript and vbscript code on the net but was too lazy to do anything with them. I always liked how linux handled this when mounting and unmounting drives, and now XP can share the fun!

    Helps alot since my drives button is a hassle to reach where my tower is.

    Nice one!!!!
     
  16. FuzzyOne

    FuzzyOne

    Joined:
    19 Sep 2002
    Posts:
    1,823
    Likes Received:
    32
    Got bored and built a console version too the switches are as follows

    1) cdrom open
    2) cdrom close

    simple eh and with a massive size of 22kb very handy :D

    Download Link

    [​IMG]
     
  17. Firehed

    Firehed Why not? I own a domain to match.

    Joined:
    15 Feb 2004
    Posts:
    12,574
    Likes Received:
    16
    Thank you so much man! I really appreciate it! :D :rock: :clap: :thumb:
     
  18. my58vw

    my58vw Plexi Expert

    Joined:
    22 Sep 2003
    Posts:
    1,082
    Likes Received:
    1
    I like the first program that was talked about (by Fuzzy one). Using it in divergence now.
     
  19. msb

    msb What's a Dremel?

    Joined:
    25 May 2004
    Posts:
    28
    Likes Received:
    0
  20. crimandevil

    crimandevil What's a Dremel?

    Joined:
    30 Jun 2004
    Posts:
    100
    Likes Received:
    0
    Thanks guys! You don't know how much I appreciate it! :clap:
     

Share This Page