소스 검색

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 5 년 전
부모
커밋
cc363d75b7
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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