Provides a thread which send and receive bytes from serial port.
Project description
hawksoft.serialPortComm package
Provides a thread which send and receive bytes from serial port. The main thread can communicate with thread by send and receive fucntion.
Installation:
pip install hawksoft.serialPortComm
usage:
from hawksoft import comm
comm.start('COM1',9600)
...
frames = comm.receive()
for abyte in frames:
...deal with abute
...
comm.send(b'\x01\x02')
...
comm.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for hawksoft.serialPortComm-4.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b49df70e65744f9e309b282f9e24743ee3a228549d127a66d5a1a7c34c451fc |
|
MD5 | b7f7762e5f4ed2b69974c3d54b83eec7 |
|
BLAKE2b-256 | 55e9d6957a61db02625866cb87a3fd3217ea31703a0cc9ca009afd5e30297e02 |