-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
70 lines (47 loc) · 2.95 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**********************************************************************
0. GENERAL
***********************************************************************/
- All the header files all located in folder header_files
- This are the libraries that I've written:
- upd_communication.h to establish client-server UDP communication
- uart_communication.h to establish UART communication with lisa
- data_decode.h to translate packages coming from lisa to structs and encode server messages to lisa format
- analyze.h to analyze the incoming packages on the server (frequency, latency)
- circular_buffer.h to use a circular buffer for logging
- log.h to log data on beaglebone and to log errors
See header files for more detailed documentation!
- All libraries have error handling
- The folder contains 4 programs:
/**********************************************************************
1. BEAGLE BONE SOFTWARE FOR THE PLANE
***********************************************************************/
- software that establishes communication between lisa and server
- one thread for receiving data on UART and sending it to server using UDP
- one thread for receiving UDP data from server and sending it to lisa using UART
- one thread to log data coming from lisa
- one thread to log data coming from server
--> For compiling and running: sh runBeagle.sh
/**********************************************************************
2. BEAGLE BONE SOFTWARE FOR THE WINDSENSOR
***********************************************************************/
- software that receives data from the windsensor and send it to the server
- On the UART port the package is received in NMEA ASCII format
- This ASCII data is first translated to a real structure with real data formats like double
- After that the package is translated to the default pacakge format that is used by the decoder (sender id, message id, checksums, timestamp, ...)
- Finally the package is sent to the server using UDP
--> For compiling and running: sh runWind.sh
/**********************************************************************
3. SERVER SOFTWARE
***********************************************************************/
- software that acts like a test server.
- one thread for sending servo commands to beaglebone/lisa using UDP
- one thread to receive UDP data coming from beaglebone
- decodes data coming from the beaglebone
- analyzes the packages coming from beaglebone: Calculating latency and frequency of sending
After 20 seconds retreiving data the results will be printed to the screen and dumped to a file
--> For compiling and running: sh runServer.sh
/**********************************************************************
4. READ LOG SOFTWARE
***********************************************************************/
- sofware to read the data that is logged on the SD card on the beaglebone
--> For compiling and running: sh runReadLog.sh