Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9882 Discussions

How to achieve the communication between the MCU and the Host?

遇遇
Novice
2,105 Views

Dear friends,

I want to send some datas from the MCU to the Host cpu,

According to the document, https://software.intel.com/en-us/node/557355 https://software.intel.com/en-us/node/557355

I found the APIs:host_send() and host_receive(),so i download the program

which contains the host_send() API.But what should i do to receive the datas

sent by the MCU? Is there any API in MRAA i could use or someother ways?

Thank you!

5 Replies
Matthias_H_Intel
Employee
194 Views

isn't it just coming in via /dev/tty??? serial?

遇遇
Novice
194 Views

Hello,mhahn,

Thank you for the replay,I learned that Every host_send call from the MCU will trigger an interrupt to host CPU.

Is it a serial interrupt ? Could you explain something in details?

I am not familar with this part!

Thank you!

@Intel_Peter

Pedro_M_Intel
Employee
194 Views

Hello hexuyangguang,

I believe mhahn is right, you should be able to receive the data sent by the MCU on /dev/ttymcu0.

Peter.

遇遇
Novice
194 Views

Hello,Peter,

I want to send data from the MCU to the Host CPU in high speed,and I saw there is a way called Shared Memory in the below:

Could it be achieved in this way? if so,How?Is the any document refer to ?

Thank you!

Pedro_M_Intel
Employee
194 Views

As you can see in https://software.intel.com/en-us/node/557354# Communicating_between_the_host_and_the_MCU Using the MCU SDK and API: Code examples | Intel® Developer Zone, the MCU communicates with the CPU by running the script found under the 'Communicating between the host and the MCU' section. And in fact a few lines bellow the script you can find the instructions on how to read the data sent by the MCU.

Regarding shared memory, a thread on how it works can be found in .

Peter.

Reply