I'm looking for information about a possibility doing parallel reading of a range of gpios on the Edison Compute Module. I have to design a PCB with several Edison module in parallel and I want to test if this is possible to perform such operation and compare its bandwidth versus the standard SPI communication. I already have used the mraa lib to interface Edison with an MCP2515 trough SPI, but I didn't find any information about "how to setup a pseudo parallel port gpios-based" within this library. Maybe system calls can achieve that.
In advance, thanks for any answers/tips/suggestions!
I've never tried to do something like this but you can try multithreading. Multithreading will allow you to run several processes at the same time and some users in the community have used it successfully.
Take a look at:
http://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm C++ Multithreading
When looking for libraries to interface your Edison to MCP2515, make sure you look for libraries that don't contain AVR dependencies or Atmel Marcos.
We found this library that might work https://github.com/coryjfowler/MCP_CAN_lib coryjfowler/MCP_CAN_lib · GitHub , we compiled it in the Arduino IDE and it compiled correctly but you'd have to try it with your device to see if it works.
Let us know your results.