Added file for 485 fuzz test

This commit is contained in:
mj
2021-12-22 18:49:26 +01:00
parent 76c3716f5d
commit c9e2e8068f
+14
View 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