How to react to incoming UART Messages?
Posted: Thu Jan 30, 2014 11:12 pm
Hi,
i need some help - i want to do following:
I have serial connection to a PC and I want to send commands from PC to the Board.
A command from the PC could be "comm_setRelais1" or what ever.
My idea was, to send escape sing in front and after each command, so that i can parse the string with chibi easyly.
But it is not so easy as I thought.
I have no idea, wich Driver Routine I should use - how do the different receive methods behave?
Does uartStartReceive capture ALL received signs? What happens if buffer is full? Do I have to manualy empty it?
I couldn't find any good example or explanation on the UART Driver for such things - is there a part in the Docu I have missed?
Best regards
Stomper
i need some help - i want to do following:
I have serial connection to a PC and I want to send commands from PC to the Board.
A command from the PC could be "comm_setRelais1" or what ever.
My idea was, to send escape sing in front and after each command, so that i can parse the string with chibi easyly.
But it is not so easy as I thought.
I have no idea, wich Driver Routine I should use - how do the different receive methods behave?
Does uartStartReceive capture ALL received signs? What happens if buffer is full? Do I have to manualy empty it?
I couldn't find any good example or explanation on the UART Driver for such things - is there a part in the Docu I have missed?
Best regards
Stomper