Added file for 485 fuzz test
This commit is contained in:
parent
76c3716f5d
commit
c9e2e8068f
14
tests/test_485_fuzz.py
Normal file
14
tests/test_485_fuzz.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
#
|
||||||
|
# Test: 485 fuzzer
|
||||||
|
# ----------------
|
||||||
|
# Repeatedly write random data to sensor via 485.
|
||||||
|
# After that, try to read some input registers.
|
||||||
|
# (address and baudrate is hardcoded)
|
||||||
|
#
|
||||||
|
# Return 0 if read was successful, 1 otherwise.
|
||||||
|
#
|
||||||
|
import serial
|
||||||
|
import minimalmodbus
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user