
Diagnostic SpaceWire Interface
EtherSpaceLink family User Manual
printf ("Starting ... \n");
strncpy (filename, argv[2], sizeof(filename));
pthread_create ( &th_rx, NULL, read_packets, 0 );
pthread_create ( &th_tx, NULL, send_packets, 0 );
while ( running )
{ sleep (1);
}
EtherSpaceLink_close ( DSI_unit );
return 0;
}
Wh
en
r
un
,
t
h
i
s p
r
o
gr
a
m
d
i
sp
l
ays:
./c-api-example2-dsi 192.168.3.42 100MB
Connecting to 192.168.3.42 ... OK
4Links Limited DSI-RG40x/8 v1.9 (8 ports)
Serial number A260 at 00-50-C2-21-21-04
Starting ...
data received on port 2
Transmitter finished
Receiver finished:
100000000 bytes written in 10.066000 secs = 9934432.758950 bytes/sec
F
o
r
a c
on
s
i
d
e
r
a
bl
y
mo
r
e exten
s
i
ve ex
a
m
p
le
,
s
ee
SpW.c
wh
i
ch
i
s
i
n
c
lu
d
e
d
i
n t
h
e
s
o
f
t
wa
r
e bun
d
le
w
i
t
h
y
ou
r
4
L
i
n
ks p
r
o
d
u
c
t.
4Links Limited
www.4Links.co.uk
[email protected]
page 61 of 130
T +44 1908 642001; F +44 1908 363463
Milton Keynes MK3 6EB, UK
Suite EU2, Bletchley Park