Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2002 14:01:54 -0800 (PST)
From:      Buzz Slye <buzz@gaia.arc.nasa.gov>
To:        freebsd-firewire@freebsd.org
Subject:   Howto send inquiry orb
Message-ID:  <Pine.GSO.4.44.0211121359250.1154-200000@mono.arc.nasa.gov>

next in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-851401618-1037138514=:1154
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

I am trying to run a Kodak camera from the firewire with the attached program.
(I am currently debugging the packet sending using an Oxford disk).
The attached progam is attempting to send a command orb inquiry to the
device.

da4 at sbp0 bus 0 target 0 lun 0
da4: <Oxford S (null) 0000> Fixed Simplified Direct Access SCSI-4 device
sbp0:0:0 XPT_GET_TRAN_SETTINGS:.
sbp0:0:0 XPT_PATH_INQ:.
da4: 50.000MB/s transfers
da4: 28615MB (58605120 512 byte sectors: 255H 63S/T 3648C)

After the login, running the program, the response I get is:

fw_rcv: unknown response tcode=2 src=0xffc1 tl=20 rt=1 data=0x84516ce3
try ad-hoc work around!!
no use...

Apparently, the response destination does not agree with the original source.

Questions.

    What to use for ---.mode.wreqb.src ?

    What about dest_lo ?

    Is wreqb the correct mode ?

    Where does the response go ?

Thanx,

        Robert Slye   MS 242-4
        NASA/Ames Research Center
        Moffett Field, CA 94035

        buzz@gaia.arc.nasa.gov



---559023410-851401618-1037138514=:1154
Content-Type: TEXT/plain; name="test.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.44.0211121401540.1154@mono.arc.nasa.gov>
Content-Description: 
Content-Disposition: attachment; filename="test.c"

LyoNCiAqICRJZCBGaXJld2lyZSB0ZXN0IHByb2dyYW0gLSByZXMgIDEwLzMw
LzAyDQogKi8NCi8qIEtvZGFrICovDQovKiAjZGVmaW5lICBERVZJQ0VfRVVJ
X0hJIDB4MDBlMDI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pb2N0
bChmZCwgRldfQVNZUkVRLCBhc3lyZXEpIDwgMCkNCgkJZXJyKDEsICJDYW4n
dCBleGVjIGlvY3RsIik7DQoNCglwcmludGYoIiAgRlcgcmVzcG9uc2U6XG4i
KTsNCglwcmludGYoIiAgJTA4eCwgJTA4eCwgJTA4eCwgJTA4eCwgJTA4eCwg
JTA4eFxuIiwNCgkgICAgYnVmWzBdLCBidWZbMV0sIGJ1ZlsyXSwgYnVmWzNd
LCBidWZbNF0sIGJ1Zls1XSk7DQoJcHJpbnRmKCIgICUwOHgsICUwOHgsICUw
OHgsICUwOHgsICUwOHgsICUwOHhcbiIsDQoJICAgIGJ1Zls2XSwgYnVmWzdd
LCBidWZbOF0sIGJ1Zls5XSwgYnVmWzEwXSwgYnVmWzExXSk7DQoNCgljbG9z
ZShmZCk7DQoJZnJlZShhc3lyZXEpOw0KCXJldHVybiAwOw0KfQ0K
---559023410-851401618-1037138514=:1154--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-firewire" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.44.0211121359250.1154-200000>