From 73e01782df5874208144d9aad3fa5108be08a38e Mon Sep 17 00:00:00 2001 From: lizhao Date: Wed, 10 Jun 2026 08:24:20 +0800 Subject: [PATCH] update ssvep test case --- ZeroMQClient_mock.py | 3 ++- filter_test.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ZeroMQClient_mock.py b/ZeroMQClient_mock.py index 7a6dd5b..d68cd25 100644 --- a/ZeroMQClient_mock.py +++ b/ZeroMQClient_mock.py @@ -89,7 +89,8 @@ def zero_mq_client(server_address="tcp://127.0.0.1:8099"): {"method": "train", "params": 1}, {"method": "rest", "params": 0}, {"method": "predict", "params": 1}, - {"method": "getReport", "params": 0} + {"method": "getReport", "params": 0}, + {"method": "targetFreqs", "params": [11, 12, 13]} ] # 打印消息集 diff --git a/filter_test.py b/filter_test.py index 84d43e3..b323445 100644 --- a/filter_test.py +++ b/filter_test.py @@ -26,7 +26,7 @@ plt.rcParams["axes.unicode_minus"] = False # ===================== 【1. 全局业务固定参数(核心统计规则)】 ===================== # ZMQ 服务端配置 -ZMQ_SERVER_IP = "192.168.254.102" +ZMQ_SERVER_IP = "127.0.0.1" ZMQ_SERVER_PORT = 8100 ZMQ_SOCKET_TIMEOUT = 3000 # 套接字超时(ms) POLL_TIMEOUT = 10 # Poll轮询超时(ms) @@ -56,7 +56,7 @@ EMPTY_FRAME = b"" # 仿真信号配置 TARGET_CHANNEL = 0 -SIGNAL_FREQ_LIST = [3, 10, 36] +SIGNAL_FREQ_LIST = [3, 13] SIGNAL_AMP = 1.8 NOISE_GAUSSIAN_AMP = 0.4 NOISE_POWER50_AMP = 0.3