Do UART require data structure/format for serial communication?

Jean-Michel Pichavant jeanmichel at sequans.com
Mon Apr 11 13:57:00 CEST 2011


VGNU Linux wrote:
> Hi All,
> I have two chips one understands Python and the other embedded C.I 
> have connected both chips using UART serial communication channel, 
> however I have no idea how data communication must be achieved between 
> this 2 chips. As for example send using C chip string "Hello Python" 
> which python chip easily understands and replies back a string "Hi C". 
> I am pretty new to embedded systems can anybody help me understand 
> data communication using UART.
> Thank in advance.
>
> VGNU
have a look at http://pyserial.sourceforge.net/

Most of the time, people write a CLI running on the chip. Commands 
(strings) are sent to the CLI through the UART, the interpreter then 
calls the appropriate function.


JM



More information about the Python-list mailing list