![DAP Technology 1394 Operation Manual Download Page 188](http://html.mh-extra.com/html/dap-technology/1394/1394_operation-manual_509853188.webp)
Scriptor
188
Copyright © DapTechnology B.V., 2005-2019 - All Rights Reserved., 5/20/2019
11.6.2. SimConfRom
When running this script, all reads of the Analyzer configuration Rom will be catched and a corresponding
value from a quadlet file will be returned. This quadlet file was created by using the Memory R/W function
of the Commander of the Analyzer. The configuration Rom of a desktop computer (with FireWire card)
was read and stored to a quadlet file. As a result, when running this script and connecting the Analyzer to
a computer, the computer reads the configuration Rom of the Analyzer and will think that another
computer was connected (which actually is the Analyzer) and it probably will display some message that a
network connection has been added because in the simulated configuration Rom defines support for IP.
11.6.2.1. How to use it
This script waits for asynchronous packets and checks if they are configuration-rom read requests. If so, it
checks for a specific address range and when valid it reads the data from a file and sends the file contents
as its response. In addition it also sends information, like how many reads have occured, to the control
panel, which displays these values in a nice graphical way.The script is shown in the picture below.
To see the script in action, carry out the following steps:
1.
Make sure the Analyzer is only connected to the computer by its USB cable
2.
Upload and start the script
3.
Select the "Control Panel" to see the scripts output
4.
Connect the Analyzer to the computer by using a FireWire cable
5.
The Control Panel should now show some activity
6.
Possibly the connected computer indicates that a new network connection is available
void
main ()
entry
#define
RESPCODE_COMPLETE 0
#define
RESPCODE_ADDR_ERROR 7
#define
RESPCODE_TYPE_ERROR 6
#define
TCODE_READREQ 4
int
b
int
cnt =
0
, cnt_addr_errors =
0
, cnt_type_errors =
0
int
req = newPacket (
100
)
int
resp = newPacket (
100
)
setPacketHeaderSize ( resp,
4
)
setPacketHeaderQuadlet ( resp,
0
,
0
)
setPacketHeaderQuadlet ( resp,
1
,
0
)
setPacketHeaderQuadlet ( resp,
2
,
0
)
setPacketHeaderField ( resp,
0
,
24
,
4
,
6
)
setControlValue (
1
,
0
)
setControlValue (
2
,
0
)
setControlValue (
3
,
0
)
setControlValue (
10
,
0
)
while
true
int
requestor, node, label
int
tcode = recvAsyncPacket ( req, -
1
, -
1
,
1
,
0
)
getPacketHeaderFields
( req, requestor, node, label )
requestor
=
getPacketHeaderField
(
req,
1
,
0
,
16
)
node
=
getPacketHeaderField
(
req,
0
,
0
,
16
)
label
=
getPacketHeaderField
(
req,
0
,
16
,
6
)
setPacketHeaderFields
( resp, node, requestor, label )
setPacketHeaderField
(
resp,
1
,
0
,
16
, node
)
setPacketHeaderField
(
resp,
0
,
0
,
16
, requestor
)
setPacketHeaderField
(
resp,
0
,
16
,
6
, label
)
Summary of Contents for 1394
Page 1: ...1394 Analyzer Operation Manual Hardware and Software Guide Doc DT PRO134MAN700E ...
Page 11: ...1394AnalyzerOperationManual 11 456 The SCSI2 Connector 457 The SUBD connector ...
Page 187: ...Scriptor 187 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...
Page 199: ...Scriptor 199 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...
Page 363: ...FormatEditor 363 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...