expliot.plugins.serial.baudscan

Support for detecting the baud rate of a device.

Module Contents

Classes

BaudScan

Test the available baud rate of a device.

class expliot.plugins.serial.baudscan.BaudScan

Bases: expliot.core.tests.test.Test

Test the available baud rate of a device.

Output Format: [

{

“baud”: 9600, “ascii_percent”: 70.0, “received_data”: “ð0bar”, “ascii_data”: “0bar”, “status”: “Data received”, # or “No data received” if nothing is received “exception”: None, # or “Error message” in case an exception occurred during

# serial communication, in which case the other information # may be empty or incomplete

}, # … More than one entry based on no. of baud rates scanned.

]

check_baud(baud)

Scan a serial connection for ASCII data with a given baud rate.

Parameters

baud – The baud rate to use for the serial connection

Returns

Percentage of ASCII characters present in the received data

execute()

Execute the test.