collect testdata for the testmode

This commit is contained in:
Schrolli 2015-06-30 13:53:06 +02:00
parent 0199151165
commit 174ad46a8c
2 changed files with 16 additions and 4 deletions

View file

@ -332,10 +332,6 @@ try:
# Get decoded data from multimon-ng and call BOSWatch-decoder
#
while True:
# RAW Data from Multimon-NG
# ZVEI2: 25832
# FMS: 43f314170000 (9=Rotkreuz 3=Bayern 1 Ort 0x25=037FZG 7141Status 3=Einsatz Ab 0=FZG->LST2=III(mit NA,ohneSIGNAL)) CRC correct\n'
# POCSAG1200: Address: 1234567 Function: 1 Alpha: Hello World
if not args.test:
decoded = str(multimon_ng.stdout.readline()) #Get line data from multimon stdout

16
testdata/testdata.txt vendored Normal file
View file

@ -0,0 +1,16 @@
#Testdata for the BOSWatch Test Mode function
#Data in Multimon-NG Raw Format
#Data is alternately passed to the decoder to simulate an used Radio-Frequency
#POCSAG
#FMS
#ZVEI
#two different ids to check filter function
ZVEI2: 12345
ZVEI2: 56789
#in case of incomplete id
ZVEI2: 135
#in case of a double-tone for siren n-Fs are sended
ZVEI2: FFF