Skip to content

Poll sensor-board sensors over SPI-CAN-I2C cascade #12

Description

@ivogeorg

Description

The simple connection of the sensors to Qwiic HAT on the RPi 4 is now quite a bit more complicated. We have the following architecture (EPS not shown):

Use case

The data travels over 3 different serial buses, two of them networks (CAN and I2C) and one a master-slave (SPI).

Design notes

  1. On the top of the software stack is the FlightExecutive Python code, in particular the DataSource class with its methods poll and check (and, possibly, discover).
  2. At the CM4 (master) - MCP2510 (slave) SPI interface, the CM4 has to poll for data from the CAN bus, including the sensors served by other CAN nodes (sensors board, EPS). There needs to be a simple protocol for acquiring the data the CM4 is polling for.
  3. The MCP2510 and the PIC18F47Q84 are communicating over CAN. They need to have a simple protocol for transferring telemetry and making it available for the CM4.

Metadata

Metadata

Labels

requirementsBasic required functionality (not enhancement)

Type

No type

Fields

No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions