Explorar el Código

rfid fare reading progress

* rate limit to 1.5s instead of 3s
* allow for format_debug_message.py to take in file instead of command line string
* added '\0' suffix for rfid messages to ipc_server
abe hace 5 años
padre
commit
cc363d75b7
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      busunit-PIU/scripts/rfid_filter
  2. 1 1
      busunit-PIU/scripts/rfid_manager

+ 1 - 1
busunit-PIU/scripts/rfid_filter

@@ -57,7 +57,7 @@ import re
 import sys
 import time
 
-rate_limit_ms = 3000.0
+rate_limit_ms = 1500.0
 
 def convert_tagid(s):
   binstr = ""

+ 1 - 1
busunit-PIU/scripts/rfid_manager

@@ -29,7 +29,7 @@ d=$BASEDIR/bin
 stdbuf -eL -oL $d/proxmark3 /dev/ttyACM0 -l proxmark3-lf-hid-read.lua | \
   stdbuf -eL -oL tee -a /tmp/rfid_raw.log | \
   $d/rfid_filter | \
-  xargs -n1 -I{} bash -c " $d/format_debug_msg.py TOKEN_RFID '{}' | $d/debug_client -s " | \
+  xargs -n1 -I{} bash -c " $d/format_debug_msg.py TOKEN_RFID -i <( echo -e -n '{}\0' ) | $d/debug_client -s " | \
   tee -a /tmp/rfid.log