The company where I work wants to do a proof of concept for our new product, a force-sensing platform.
The platform contains four three-axial load cells, so we have 12 channels, which are to be digitized at 2kHz and 16bits. This gives us 2.000 dataframes per second, with 24 bytes of payload each.
Our proposed architecture is as following:
- The analog signals from the cells is acquired by a dedicated data-acquisition board;
- The digital stream is sent to the ATmega on Yún over SPI;
- The data is then relayed to the Atheros over Serial;
- Finally, the data is transmitted over UDP (or TCP).
I wonder if it is a sensible way of doing it, with the following questions:
- How would one normally use the Ethernet functionality? Can I call a function on the sketch, or do I need to put some program or script in the Linux, calling it from the sketch?
- What would be the maximum transmission speed (in bytes per second) from the ATmega side to the Linux side?
- What would be the maximum throughput of the Ethernet?
I have calculated 24 bytes * 2000 = 480 bytes per second, or a baud rate of 480 * 8 = 3840bps. Is that right?
I would appreciate any help, it could be just a link to the proper information resources.