replace print with algo_log

This commit is contained in:
2026-06-10 16:04:02 +08:00
parent 43adc6fb42
commit ba4ae92647
7 changed files with 33 additions and 33 deletions

View File

@@ -2,6 +2,7 @@
import ast
import numpy as np
import threading
import zmq
import json
import queue
from typing import Dict
@@ -13,17 +14,14 @@ from Zmq.filterProcess import FilterRingBuffer
from PubLibrary.InifileHelper import IniRead
from logs.log import algo_log
import zmq
zmqServer_host = str(IniRead('system', 'zmqServer_host', '127.0.0.1'))
class zmqServer(threading.Thread):
def __init__(self, host='0.0.0.0', cmd_port=8099, data_port=8100, device_info=None):
threading.Thread.__init__(self)
self.device_info = device_info
self.host = host
# test_host = "192.168.254.102"
# self.host = test_host
self.host = zmqServer_host
self.cmd_port = cmd_port # 命令交互端口收JSON命令 + 返JSON结果
self.data_port = data_port # 数据交互端口:收二进制原始脑电 + 返二进制滤波结果