communication between arduino and SBC

Hello everyone.

I have two micro-controllers

  1. single board computer
  2. arduino uno

I would like to make the SBC do the heavy job and sending the results “light data type “ to the arduino while the arduino send only “ light data types “ to SBC

How to do that ?
Than you in advance.

Post the specifications of the SBC --

  1. Can it communicate with PC?

  2. Does it posses a COM Port?

  3. Does it posses USB Port?

  4. Does it posses SPI Port?

  5. Does it posses I2C/TWI Bus?

  6. Does it posses a VGA Port?

What does “light data type” mean? How many bytes to send, receive at a time?

GolamMostafa:
Post the specifications of the SBC –

it’s just like a magic wand ,it has the following specs form the store i got it :

  • Samsung Exynos5422 Cortex™-A15 2Ghz and Cortex™-A7 Octa core CPUs
  • Mali-T628 MP6(OpenGL ES 3.1/2.0/1.1 and OpenCL 1.2 Full profile)
  • 2Gbyte LPDDR3 RAM PoP stacked
  • eMMC5.0 HS400 Flash Storage
  • 2 x USB 3.0 Host, 1 x USB 2.0 Host
  • Gigabit Ethernet port
  • HDMI 1.4a for display
  • Size : 83 x 58 x 20 mm approx.(excluding cooler)
  • Power: 5V/4A input
  • Linux Kernel 4.14 LTS
  • 40 GPIO including (SPI,I2C)

groundFungus:
What does "light data type" mean? How many bytes to send, receive at a time?

primitive data types the basic types of data. byte, short, int, long, float, double, boolean, char. (light )
reference data types arrays , Strings ( not really light ) !

Then you should have complete Operating, Programming, and Forum Platform for your SBC where Arduino may work simply as a Slave via SPI/I2C Bus.

GolamMostafa:
Then you should have complete Operating, Programming, and Forum Platform for your SBC where Arduino may work simply as a Slave via SPI/I2C Bus.

ok , any useful links because i didn't try this before !

thanks

Plug the Uno into a USB host port on the SBC and you have a serial connection running at 115200 between the boards. No worries about logic level voltage differences. JSON is one way to serialize different data types and data structures (arrays and structs/objects). Or define your own protocol.

When hooking up an Uno to a board running the Linux usually the goal is to allow a program running on the Linux system to read/write the Uno GPIOs. If so, search for firmata which is one commonly used solution.