Exploring receiving function scripts

The receiver function outlined in the Sunstream repo (sunstream/recv_functions at main · uw-midsun/sunstream (github.com) fetches data directly from the CAN bus into CAN messages.

Each individual CAN message contains several fields holding data in bytes including magic # (1 byte), timestamp (8 bytes), CAN id (4 bytes), CAN data length (1 byte), CAN data (8 bytes).

To receive this data in Python to later export to a database, we need to define a callback function (taking in a dictionary for each CAN message holding the fields) in the sunstream_recv.py file. A placeholder callback function is already defined in the file under the name of dump_test.