Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hawksoft.serialPortComm-4.0.0.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file hawksoft.serialPortComm-4.0.0.tar.gz.

File metadata

  • Download URL: hawksoft.serialPortComm-4.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for hawksoft.serialPortComm-4.0.0.tar.gz
Algorithm Hash digest
SHA256 6b49df70e65744f9e309b282f9e24743ee3a228549d127a66d5a1a7c34c451fc
MD5 b7f7762e5f4ed2b69974c3d54b83eec7
BLAKE2b-256 55e9d6957a61db02625866cb87a3fd3217ea31703a0cc9ca009afd5e30297e02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page