I
Intermouse
I have recently purchased an aspi wrapper control for vb.
I haven't had much experience with hex and memory addresses and that's my
problem.
The piece of code that baffles me is:
With ASPI1
.HostAdapter = 0
.SCSIID = 4
.CDBSize = 10 'LINE 1
.CDB = Chr$(&H5A) & Chr$(0) & Chr$(0) & Chr$(0) & Chr$(0) & Chr$(0) &
Chr$(0) & Chr$(0) & Chr$(0) & Chr$(0) 'LINE 2
.Execute
End With
Print "SENSE BUFFER: " & ASPI1.SenseBuffer
The first line sends a command of 10 bytes I know. What is CHR$ doing. I
know that it returns the ascii char for the character, but how does that fit
in with the command descriptor block. How does the translation work.
The second line specifies the length of the command that is going to be
sent. I know that.
Anyhow i have pasted the scsi2 spec for a 10 byte command here:
http://www.intermouse.net/aspimodeselect10.htm
for reference.
So,
I need to figure out how to translate the scsi2 commands into the wrapper
function. Line 1.
If anyone knows what I am rambling about, I would very much appreciate some
help.
Mucho thanko.
Mark
I haven't had much experience with hex and memory addresses and that's my
problem.
The piece of code that baffles me is:
With ASPI1
.HostAdapter = 0
.SCSIID = 4
.CDBSize = 10 'LINE 1
.CDB = Chr$(&H5A) & Chr$(0) & Chr$(0) & Chr$(0) & Chr$(0) & Chr$(0) &
Chr$(0) & Chr$(0) & Chr$(0) & Chr$(0) 'LINE 2
.Execute
End With
Print "SENSE BUFFER: " & ASPI1.SenseBuffer
The first line sends a command of 10 bytes I know. What is CHR$ doing. I
know that it returns the ascii char for the character, but how does that fit
in with the command descriptor block. How does the translation work.
The second line specifies the length of the command that is going to be
sent. I know that.
Anyhow i have pasted the scsi2 spec for a 10 byte command here:
http://www.intermouse.net/aspimodeselect10.htm
for reference.
So,
I need to figure out how to translate the scsi2 commands into the wrapper
function. Line 1.
If anyone knows what I am rambling about, I would very much appreciate some
help.
Mucho thanko.
Mark