Go to file
mmode ad8797f57a Fixed some errors in the controller related to the temperature sensor component. 2021-09-24 21:18:38 +02:00
.settings Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later. 2021-09-10 17:08:38 +02:00
_bin/linux/debug Fixed some errors in the controller related to the temperature sensor component. 2021-09-24 21:18:38 +02:00
_dep/linux/debug Code has been cleaned and documented. The saving of data to datapool in the InterpreteDeviceReply has been fixed. 2021-09-24 14:19:27 +02:00
_obj/linux/debug Fixed some errors in the controller related to the temperature sensor component. 2021-09-24 21:18:38 +02:00
bsp_linux Fixed some errors in the controller related to the temperature sensor component. 2021-09-24 21:18:38 +02:00
fsfw Fixed some errors in the controller related to the temperature sensor component. 2021-09-24 21:18:38 +02:00
mission Fixed some errors in the controller related to the temperature sensor component. 2021-09-24 21:18:38 +02:00
.cproject Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later. 2021-09-10 17:08:38 +02:00
.project Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later. 2021-09-10 17:08:38 +02:00
Makefile mission and config folders added , make file is added 2021-06-21 13:42:47 +02:00
README.md Device Handler has been modified in both the Communication Interface and in DH object. The ScanForReply and InterpreteForReply are fixed. The reading and printing of data is correct. It is still needed to fix the save in datapool and do documentation of the code. 2021-09-23 21:48:32 +02:00
unlockRealtime mission and config folders added , make file is added 2021-06-21 13:42:47 +02:00

README.md

testArduino

This repository contains the example of the device handler for the Arduino managing the temperaure, environmental and accelerometer sensors. It is employed the fsfw with the release 0.01. The code has the obejective of reading the serial data output of the Arduino (in SPC format) and saving them in global data pool. The data will be then exploited by the termal controller.

RUN

In order to run the code it is necessary to connect the computer to the Arduino through USB interface. Before building and running the code, the serial port should be open through the terminal.

In my case the name of my port is: /dev/ttyACM0

The command to open the serial port in the terminal is: sudo chmod a+rw /dev/ttyACM0

In conclusion it is firstly necessary to know the name of the computer serial port. This name should be substituted in line 52 of mission/DeviceHandler/ArduinoComIF.cpp as: int serial_port = open("WRITE_SERIAL_PORT_NAME", O_RDWR); Finally the command described here above must be inserted in the terminal.

RMK! ==> Now the port should be just renamed with the correct name in the code, there is no need anymore of write the open command in the terminal.