12. cc_uart

12.1. Communication Channel Via Uart

module

cc_uart

synopsis

Uart communication channel

class pykiso.lib.connectors.cc_uart.CCUart(serialPort, baudrate=9600, **kwargs)[source]

UART implementation of the coordination channel.

Constructor.

Parameters

processing – if multiprocessing object is used.

_cc_close()[source]

Close the channel.

_cc_open()[source]

Open the channel.

_cc_receive(timeout=1e-05)[source]

How to receive something from the channel.

Parameters
  • timeout – Time to wait in second for a message to be received

  • kwargs – named arguments

Returns

dictionary containing the received bytes if successful, otherwise None

_cc_send(msg)[source]

Sends the message on the channel.

Parameters
  • msg – Message to send out

  • kwargs – named arguments

exception pykiso.lib.connectors.cc_uart.IncompleteCCMsgError(value)[source]