From 80cd2027b36af5866a7a82005afc367859e73b47 Mon Sep 17 00:00:00 2001
From: tao_z <tzj0429@163.com>
Date: Sat, 18 Jun 2022 17:16:17 +0800
Subject: [PATCH] 更新DTC测试功能

---
 test.py |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/test.py b/test.py
index d5a5927..43ca161 100644
--- a/test.py
+++ b/test.py
@@ -1,5 +1,3 @@
-
-
 # # def send_msg():
 # #     meg = Message()
 # #     msg = VCI_CAN_OBJ()
@@ -12,6 +10,7 @@
 from mainwindows import *
 from multiprocessing import Process, Queue, Value, Pipe
 import datetime
+from ShifterDefine import *
 # def rece_msg(bus):
 #     msg = bus.Receive(0.1)
 #     if msg[0] is not None:
@@ -58,7 +57,6 @@
 #     print(conn.recv())
 #     conn.close()
 
-
 # if __name__ == "__main__":
 #     parent_conn, child_conn = Pipe()  # 产生两个返回对象,一个是管道这一头,一个是另一头
 #     p = Process(target=f, args=(child_conn,))
@@ -78,12 +76,10 @@
 #     )
 #     bus.send(msg)
 
-
 # # bus = open_device()
 # # while True:
 # #     send_msg(bus)
 # #     # rece_msg(bus)
-
 
 # device_type = DEVICETYPE['USBCAN-II']
 # device_index = 0
@@ -102,7 +98,6 @@
 #     data=bytearray([0x02, 0x3e, 0, 0, 0, 0, 0, 0])
 # )
 
-
 # q_rx = Queue()
 # q_tx = Queue()
 # connect = Value('i', 1)
@@ -112,7 +107,6 @@
 
 # # def start():
 
-
 # # def rece_msg():
 # #     # num = bus.GetReceiveNum(device_type, device_index, can_channel)
 # #     print(num)
@@ -120,7 +114,6 @@
 # #         # while not q_rx.empty():
 # #         print(q_rx.get())
 # #         #     time.sleep(0.1)
-
 
 # # bus.CloseDevice()
 # # start()
@@ -148,7 +141,6 @@
 #     data.append(' '.join(['{:0<2x}'.format(a) for a in list(item.data)]))
 #     return data
 
-
 # def rece_msg():
 #     # msg, num = bus.Receive(len=10)
 #     num = q_rx.qsize()
@@ -157,12 +149,10 @@
 #             # print(msg[0].arbitration_id)
 #             print(formatedata(i, q_rx.get(), True))
 
-
 # def tx_task(bus: USBCAN):
 #     while True:
 #         bus.send(msg=msg)
 #         time.sleep(0.1)
-
 
 # def rx_task(bus: USBCAN):
 #     while True:
@@ -173,7 +163,6 @@
 #                 if msg[i].arbitration_id == 0x77a:
 #                     # print(formatedata(i, msg[i], True))
 #                     print(msg[i].data)
-
 
 # if __name__ == '__main__':
 #     bus.InitAndStart()
@@ -201,7 +190,6 @@
 #         item.setText(str(data[column]))
 #         item.setFont(QFont("微软雅黑", 12, QFont.Black))  # 设置字体
 #         table.setItem(0, column, item)
-
 
 # if __name__ == '__main__':
 

--
Gitblit v1.8.0