Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MFoll
Novice
1,486 Views

Parallel read on Edison gpios possible?

Hello all!

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!

3 Replies
Sergio_A_Intel
Employee
62 Views

Hi,

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

Sergio

FWand1
Beginner
62 Views

Hi asknt,

I'm looking for an IO lib to interface my Edison with a MCP2515. Could you help me to find it? Just pointing a link with it to me.

Thank you in advance.

Cheers.

Sergio_A_Intel
Employee
62 Views

Hi,

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.

Sergio

Reply