🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.periphs.cdr
Article #134

Help! - CDR programming problems

#134
From: Michael Pitt
Date: Thu, 16 Jan 2003 06:16
37 lines
2687 bytes
Hi everyone,

Sorry about the cross posting but this query does not seem to fall into the
same category as most of the posts (how do I get EZCD to ...)

I am developing a Win32 program to record to CD in real time using TAO. The
main problem is there seems to be no documentation around describing the
sequence of commands to use. I have read the SCSI MMC standard (in all it's
versions) pretty much from front to back and I think I have a reasonable
idea of what to do but am still having a lot of problems.

I am using both a Ricoh MP7040A (old, slow...) and a Yamaha CRW-F1 (new,
fast!!!) and getting different behaviour from each.
Essentially the commands I am using are:

MODE_SENSE/MODE_SELECT to set the Write Parameters page (a minefield in
itself) for TAO, CD-DA, etc...
(WRITE)
SYNCHRONIZE_CACHE
CLOSE_TRACK_SESSION to close the track
CLOSE_TRACK_SESSION to close the session

Then Eject the disk (using IOCTL_STORAGE_EJECT_MEDIA)
Incidentally, I am using the NT native SCSI interface under XP using
SCSI_PASS_THROUGH rather than ASPI.

The results are:
RICOH - seems to all work OK but then does not eject the disc and is
completely unresponsive (have to power down)
YAMAHA - can't even get the MODE_SELECT command to work - Error: 1117 The
request could not be performed because of an I/O device error.

If anyone is able to either help me or point to where I might get some help
I would be very grateful.

Cheers,
Michael Pitt
Technical Details
Message-ID: <3e264e27$0$21720$afc38c87@news.optusnet.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!HSNX.atgi.net!gestalt.direcpc.com!telocity-west!DIRECTV!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!spool01.syd.optusnet.com.au!spool.optusnet.com.au!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f3c1,f79cbfdcb248877b,start
X-Google-Attributes: gid10f3c1,public
X-Google-Thread: 100a73,f79cbfdcb248877b,start
X-Google-Attributes: gid100a73,public
X-Google-Thread: 1024b8,f79cbfdcb248877b,start
X-Google-Attributes: gid1024b8,public
X-Google-ArrivalTime: 2003-01-15 22:20:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!HSNX.atgi.net!gestalt.direcpc.com!telocity-west!DIRECTV!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!spool01.syd.optusnet.com.au!spool.optusnet.com.au!not-for-mail
From: "Michael Pitt" <michaelp@nospam.almitek.com.au>
Newsgroups: alt.comp.periphs.cdr,aus.computers.cdrom,comp.publish.cdrom.software
Subject: Help! - CDR programming problems
Date: Thu, 16 Jan 2003 17:16:08 +1100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Lines: 41
Message-ID: <3e264e27$0$21720$afc38c87@news.optusnet.com.au>
NNTP-Posting-Host: 210.49.82.77
X-Trace: 1042697767  21720 210.49.82.77