Python Sample

The Python Sample (comwriteread.py) is a communication program that shows the basic usage of pySerial.

To use this sample, installation of pySerial is required.
By the single sample, setting parameters, sending and receiving data can be performed.

For the installation destination, please refer to [Sample Programs] - [Folder structure].

 

■ Appearance

 

■ Usage

- The data entered from the keyboard is sent and the received data is displayed on the screen.

- Any communication parameter can be set.

- The initial values of communication parameters are as follows.

  Baud rate             : 9600
 Data length           : 8
 Stop Bit              : 1
 Parity check          : None
 Communication system  : Full Duplex
 Flow Control          : None

- Up to 50 characters can be received at one time.
  If it is less than 50 characters, it will time out in 1 second and be displayed.