A coworker and I are working on a project together where he sends me messages over UART to my 328P and I do easy hardware things like turn on an LED. We only have like four options so it seemed easy enough to just send an ascii character for each of the options and if else to get the right response.
this works well enough for our current project but in an effort to learn new things I was trying to search for a way to handle more than four options efficiently. I think my problem is that I've been searching for a "Micro to PC communication protocol." Understandably this gets me things like UART and CAN.
If someone could explain another way to handle messages back and forth that would be great, I'd really like a more appropriate search term or resource to learn various ways to encode and decode messages between the micro and computer.
Thanks for any help