mpf.platforms.fast.fast_serial_communicator
¶
Fast serial communicator.
-
class
mpf.platforms.fast.fast_serial_communicator.
FastSerialCommunicator
(platform, port, baud)¶ Handles the serial communication to the FAST platform.
Initialise communicator.
Parameters: - platform (mpf.platforms.fast.fast.HardwarePlatform) – the fast hardware platform
- port – serial port
- baud – baud rate
-
query_fast_io_boards
()¶ Query the NET processor to see if any FAST IO boards are connected.
If so, queries the IO boards to log them and make sure they’re the proper firmware version.
-
readuntil
(separator, min_chars: int = 0)¶ Read until separator.
Parameters: - separator – Read until this separator byte.
- min_chars – Minimum message length before separator
-
send
(msg)¶ Send a message to the remote processor over the serial connection.
Parameters: msg – String of the message you want to send. THe <CR> character will be added automatically.
-
stop
()¶ Stop and shut down this serial connection.