I'm using an ATSAME70Q21 MCU to record 32 channels of analogue data (via SPI ADCs) and 32 channels of digital data (via GPIO). My embedded device has an iMX6-based CoM (Toradex Apalis), which runs Embedded Linux and provides an OpenGL GUI, touch interface, USB connectivity, etc. Before implementing the MCU approach, I was collecting the data from the Embedded Linux SoM directly, and saving it to a SQLite DB.
How can I save the data to the CoM SQLite DB directly from the MCU? Would an RPC approach be sensible? If not, would a socket-based TCP/IP approach be sensible? In terms of hardware, I'm leaning towards utilising a direct ethernet connection between the MCU and CoM, but could use UART instead if that's more appropriate. Assume the highest bitrate is 5Mbps.