Good software protocol to communicate between arduino and raspberry PI ?

Thread Starter

meowsoft

Joined Feb 27, 2021
666
Distributed software is a good idea in cases where you really need it, otherwise it is best to stick with the simplest protocal that will do the job.

You have half a dozen people who want to help you but you provide no detail. Do you actually have an application in mind or are you just trying out aun idea?

Please stop deleting your replies. If this thread does not calm down it may be closed.
Ok... I will later explain that with more clear description also with picture
 

Picbuster

Joined Dec 2, 2013
1,059
There are numerous software protocols for computer to computer communication that have been developed over the last 50 years. Some are simple and straightforward while others are incredibly complex. You might want to start with something simple and straightforward as opposed to complex, especially if you don't have any specific requirements. Speaking of requirements, I guess you forgot to mention any.
Yes,
But you have to follow the osi model.
Hardware medium: metal, air or glass is the first step.
Next step protocol ( how to handle the medium rs232 serial sync rs485 rs422 coax tcp/
next how to handle the data.
Assume a simple system copper wire rs232 async communication.
data as block.

send [header][action string] [ascii string [ terminator] [checksum].
receiver respond nak ( wrong checksum) ak (checksum ok)
action could be read, write or a command like reset change address

checksum polynomial or make it simple just add the ascii values modulo one or two bytes
Last one is not advisable.
the header could carry an address ( when using multiple devices depending on medium used)

It's simple and easy to programm.

Picbuster
 
Top