Mercurial > hg > beaglert
comparison resources/network/network_readme.txt @ 28:adcb57fd3d75 bbb_network
- added a c script to have the oscillator perform a sine sweep
- added documentation for the network
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 10 May 2015 13:55:43 +0100 |
parents | |
children | e4392164b458 |
comparison
equal
deleted
inserted
replaced
27:d358d4410d01 | 28:adcb57fd3d75 |
---|---|
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 |