1 |
5 |
sonicwave |
|
2 |
|
|
uTosNet commandline utility, readme.txt
|
3 |
|
|
|
4 |
|
|
Simon Falsig
|
5 |
|
|
University of Southern Denmark
|
6 |
|
|
Copyright 2010
|
7 |
|
|
|
8 |
|
|
This file is part of the uTosnet commandline utility
|
9 |
|
|
|
10 |
|
|
The uTosnet commandline utility is free software: you can redistribute it
|
11 |
|
|
and/or modify it under the terms of the GNU Lesser General Public License as
|
12 |
|
|
published by the Free Software Foundation, either version 3 of the License,
|
13 |
|
|
or (at your option) any later version.
|
14 |
|
|
|
15 |
|
|
The uTosnet commandline utility is distributed in the hope that it will be
|
16 |
|
|
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
|
18 |
|
|
General Public License for more details.
|
19 |
|
|
|
20 |
|
|
You should have received a copy of the GNU Lesser General Public License
|
21 |
|
|
along with the uTosnet commandline utility. If not, see
|
22 |
|
|
.
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
******************************************
|
26 |
|
|
* Description
|
27 |
|
|
******************************************
|
28 |
|
|
The uTosNet commandline utility is meant for use with the Ethernet/SPI
|
29 |
|
|
version of uTosNet. It provides a simple interface for reading and writing
|
30 |
|
|
data from and to the shared memory block inside the FPGA.
|
31 |
|
|
|
32 |
|
|
******************************************
|
33 |
|
|
* Building
|
34 |
|
|
******************************************
|
35 |
|
|
The uTosNet commandline utility uses the Qt framework (http://qt.nokia.com/)
|
36 |
|
|
for crossplatform socket functionality. A working installation of Qt is thus
|
37 |
|
|
necessary.
|
38 |
|
|
Otherwise the utility itself is rather simple, and should work with most
|
39 |
|
|
compilers.
|
40 |
|
|
|
41 |
|
|
Run:
|
42 |
|
|
qmake uTosNet_cmd.pro
|
43 |
|
|
make release
|
44 |
|
|
|
45 |
|
|
******************************************
|
46 |
|
|
* Usage
|
47 |
|
|
******************************************
|
48 |
|
|
utosnet_cmd host {W|R} address [data]
|
49 |
|
|
|
50 |
|
|
host The IP address of the host to connect to
|
51 |
|
|
W Perform a write operation
|
52 |
|
|
R Perform a read operation
|
53 |
|
|
address The shared memory address to access
|
54 |
|
|
data The data to write (only required when performing a write)
|
55 |
|
|
|
56 |
|
|
******************************************
|
57 |
|
|
* End of file
|
58 |
|
|
******************************************
|