annotate resources/network/network_readme.txt @ 151:e9c9404e3d1f ClockSync

Pff partially working. No PID. When setting the audio clock on the bbb to 44098 the master and slave clock keep diverging instead of converging ...
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 22 Sep 2015 04:10:07 +0100
parents adcb57fd3d75
children e4392164b458
rev   line source
giuliomoro@28 1 Three simple c scripts can be used to test the network, in conjunction with the basic_network project:
giuliomoro@28 2 udp-client.c, udp-client-sweep.c,d udp-server.c
giuliomoro@28 3 compile them with gcc -o udp-client udp-client.c and similar
giuliomoro@28 4 They can be compiled and run from either the host or the bbb
giuliomoro@28 5
giuliomoro@28 6 usage
giuliomoro@28 7 ./udp-client 192.168.7.2 9998 #sends individual messages to the bbb on port 9998
giuliomoro@28 8 #enter desired values for frequency (and phase).
giuliomoro@28 9 123.0;0;
giuliomoro@28 10
giuliomoro@28 11 The parser is currently very stupid, so the format of the message has to be::
giuliomoro@28 12 frequencyValue;phaseValue;
giuliomoro@28 13 example:
giuliomoro@28 14 700.0;0.1;
giuliomoro@28 15
giuliomoro@28 16 ./udp-client-sweep 192.168.7.2 9998
giuliomoro@28 17 sends messages every 1ms to control the frequency of the oscillator, thus generating a sine sweep
giuliomoro@28 18
giuliomoro@28 19 ./udp-server 9999
giuliomoro@28 20 #will print the info received from BeagleRT with the following format
giuliomoro@28 21 printf("%8d;%.3f;%.3;",gCounter,gFrequency,gPhase);
giuliomoro@28 22 example:
giuliomoro@28 23 88201;700.000;0.123;
giuliomoro@28 24