comparison resources/network/network_readme.txt @ 34:46d87f680da5 matrix_gpio

Merged bbb_network and the so-called "matrix_gpio" branches
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 11 May 2015 19:50:48 +0100
parents adcb57fd3d75
children e4392164b458
comparison
equal deleted inserted replaced
33:83baffda5786 34:46d87f680da5
1 Three simple c scripts can be used to test the network, in conjunction with the basic_network project:
2 udp-client.c, udp-client-sweep.c,d udp-server.c
3 compile them with gcc -o udp-client udp-client.c and similar
4 They can be compiled and run from either the host or the bbb
5
6 usage
7 ./udp-client 192.168.7.2 9998 #sends individual messages to the bbb on port 9998
8 #enter desired values for frequency (and phase).
9 123.0;0;
10
11 The parser is currently very stupid, so the format of the message has to be::
12 frequencyValue;phaseValue;
13 example:
14 700.0;0.1;
15
16 ./udp-client-sweep 192.168.7.2 9998
17 sends messages every 1ms to control the frequency of the oscillator, thus generating a sine sweep
18
19 ./udp-server 9999
20 #will print the info received from BeagleRT with the following format
21 printf("%8d;%.3f;%.3;",gCounter,gFrequency,gPhase);
22 example:
23 88201;700.000;0.123;
24