Quick Details

Property Value
Program Name agent_temp
Agent Name temp
File agent_temp.cpp
Hardware ADT7311 Temperature Sensor


The temperature sensor agent (aka agent_temp) is an agent that handles operations with the temperature sensors.

There are two different ways that the temperature sensors are hooked up. Some sensors are connected to the BeagleBone SPI headers through the PC104 headers, and the others must be accessed through the PyCubed agent. The temperature sensor agent handles temperature collection for both cases.

Sensor Names

Below is a table showing which sensor names correspond to which physical devices.

Sensor Name ID Number Physical Device PC104 Header Pin
temp_eps 0 EPS Temperature Sensor (ADT7311) TODO
temp_obc 1 BeagleBone Temperature Sensor (ADT7311) TODO
temp_raspi 2 Raspberry Pi Temperature Sensor (ADT7311) TODO
temp_battery 3 Battery Temperature Sensor (ADT7311) N/A
temp_pycubed 4 PyCubed Temperature Sensor (BMX160) N/A


Usage: sensor

Description: Returns the status of a given sensor.

The argument name corresponds to the name of the temperature sensor.

Usage: list

Description: Lists all available temperature sensors.



Device Property Storage Type COSMOS Name
Temperature Sensor
(PDU Board)
UTC double or Time device_tsen_utc_000
Temperature (K) float device_tsen_temp_000
Voltage (V) float device_tsen_volt_000
Temperature Sensor
(OBC Board)
UTC double or Time device_tsen_utc_001
Temperature (K) float device_tsen_temp_001
Voltage (V) float device_tsen_volt_001
Temperature Sensor
(Payload Board)
UTC double or Time device_tsen_utc_002
Temperature (K) float device_tsen_temp_002
Voltage (V) float device_tsen_volt_002
Temperature Sensor
(Battery Board)
UTC double or Time device_tsen_utc_003
Temperature (K) float device_tsen_temp_003
Voltage (V) float device_tsen_volt_003
Temperature Sensor
(PyCubed Board)
UTC double or Time device_tsen_utc_004
Temperature (K) float device_tsen_temp_004
Voltage (V) float device_tsen_volt_004

Block Diagram

Below is a software diagram demonstrating the behavior of this agent Agent block diagram