Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
1,924 Views

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

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
Highlighted
13 Views

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

Highlighted
Employee
13 Views

Hello hexuyangguang,

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

Peter.

0 Kudos
Novice
13 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

0 Kudos
Highlighted
Novice
13 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!

0 Kudos
Highlighted
Employee
13 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.

0 Kudos