View Full Version : Programming without ASPI?
hijacker
16th January 2003, 14:26
I made a nice little tool to show all sort of informations about CD or DVD device. It uses ASPI drivers to comunnicate with the drive...
You can see it here (http://hijacker.firmware-flash.com/discinfo).
Does anyone here knows how to comunnicate under windows with the ATAPI/SCSI drive directly without the need of ASPI? I think it has something to do with DMA or something like that.
Thanks.
alexnoe
16th January 2003, 19:22
You would have to do low level programming, writing commands directly to the IDE port. You must have a CPL of 0 for that, and this write a driver.
This will probably not work on any VIA chipset.
About ASPI: I need to learn ASPI programming...could you point me to a tutorial?
hijacker
16th January 2003, 19:31
OK. I found how to programm low level... Looks very difficult but I hope I manage to work on it...
ASPI programming? The core sources gave my friend to me. But for the SCSI command you can find the docs in www.t10.org.
alexnoe
16th January 2003, 20:02
I know T10...their documents are references for people who already know the basics...
hijacker
16th January 2003, 20:24
Check this:
http://www.hochfeiler.it/alvise/ASPI_0.HTM
If you want to skip the whole ASPI thing and move straight to direct programming download source files of this little program:
http://members.aol.com/plscsi/
I have sucessfully compiled it under C++ Builder 6.0 and allready examing them to see how exaclty do you communicate with the devices when using only windows functions...
Very interesting stuff... Oh... Also check diffrent source files you find on doom9 page under sources... Extremly interesting!
SirDavidGuy
17th January 2003, 02:47
I was asking spath about this a while ago, and he sent me to:
http://cdrlabs.com/articles/index.php?articleid=3 and
http://cdrlabs.com/articles/index.php?articleid=4
However, what about using IOCTL calls? Anyone know anything about how to use them properly for reading SCSI/ATAPI drive data?
alexnoe
17th January 2003, 07:22
@SDG: This looks fine!
hijacker
17th January 2003, 07:56
Originally posted by SirDavidGuy
However, what about using IOCTL calls? Anyone know anything about how to use them properly for reading SCSI/ATAPI drive data? [/B]
Yes. I've put the link allready:
http://members.aol.com/plscsi/
Some guy made a program that uses IOCTL calls. Source code is avaible for DOS, Windows and Linux. You need two extra .h files that author can't publish. I found some parts of it on the internet and I joined them together. They are attached.
Got it successfully compiled under C++ Builder 6.0 Enterprise.
Edit: Removed Attatchment if the author cant distribute these files i doubt we should. - DaveEL
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.