From 174ad46a8c2589352b0aacd5c628a2f50cb831b9 Mon Sep 17 00:00:00 2001 From: Schrolli Date: Tue, 30 Jun 2015 13:53:06 +0200 Subject: [PATCH] collect testdata for the testmode --- boswatch.py | 4 ---- testdata/testdata.txt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 testdata/testdata.txt diff --git a/boswatch.py b/boswatch.py index 24727c9..a38746e 100755 --- a/boswatch.py +++ b/boswatch.py @@ -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 diff --git a/testdata/testdata.txt b/testdata/testdata.txt new file mode 100644 index 0000000..7349dbe --- /dev/null +++ b/testdata/testdata.txt @@ -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 \ No newline at end of file