mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 21:11:12 +00:00
feat: 将新威电池测试系统驱动与配置文件并入 workstation_dev_YB2 (#92)
* feat: 新威电池测试系统驱动与注册文件 * feat: bring neware driver & battery.json into workstation_dev_YB2
This commit is contained in:
29
unilabos/devices/battery/battery.json
Normal file
29
unilabos/devices/battery/battery.json
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"id": "NEWARE_BATTERY_TEST_SYSTEM",
|
||||||
|
"name": "Neware Battery Test System",
|
||||||
|
"parent": null,
|
||||||
|
"type": "device",
|
||||||
|
"class": "neware_battery_test_system",
|
||||||
|
"position": {
|
||||||
|
"x": 620.6111111111111,
|
||||||
|
"y": 171,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"ip": "127.0.0.1",
|
||||||
|
"port": 502,
|
||||||
|
"machine_id": 1,
|
||||||
|
"devtype": "27",
|
||||||
|
"timeout": 20,
|
||||||
|
"size_x": 500.0,
|
||||||
|
"size_y": 500.0,
|
||||||
|
"size_z": 2000.0
|
||||||
|
},
|
||||||
|
"data": {},
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"links": []
|
||||||
|
}
|
||||||
1042
unilabos/devices/battery/neware_battery_test_system.py
Normal file
1042
unilabos/devices/battery/neware_battery_test_system.py
Normal file
File diff suppressed because it is too large
Load Diff
344
unilabos/registry/devices/neware_battery_test_system.yaml
Normal file
344
unilabos/registry/devices/neware_battery_test_system.yaml
Normal file
@@ -0,0 +1,344 @@
|
|||||||
|
neware_battery_test_system:
|
||||||
|
category:
|
||||||
|
- neware_battery_test_system
|
||||||
|
class:
|
||||||
|
action_value_mappings:
|
||||||
|
auto-post_init:
|
||||||
|
feedback: {}
|
||||||
|
goal: {}
|
||||||
|
goal_default:
|
||||||
|
ros_node: null
|
||||||
|
handles: {}
|
||||||
|
result: {}
|
||||||
|
schema:
|
||||||
|
description: ''
|
||||||
|
properties:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
properties:
|
||||||
|
ros_node:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- ros_node
|
||||||
|
type: object
|
||||||
|
result: {}
|
||||||
|
required:
|
||||||
|
- goal
|
||||||
|
title: post_init参数
|
||||||
|
type: object
|
||||||
|
type: UniLabJsonCommand
|
||||||
|
auto-print_status_summary:
|
||||||
|
feedback: {}
|
||||||
|
goal: {}
|
||||||
|
goal_default: {}
|
||||||
|
handles: {}
|
||||||
|
result: {}
|
||||||
|
schema:
|
||||||
|
description: ''
|
||||||
|
properties:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
properties: {}
|
||||||
|
required: []
|
||||||
|
type: object
|
||||||
|
result: {}
|
||||||
|
required:
|
||||||
|
- goal
|
||||||
|
title: print_status_summary参数
|
||||||
|
type: object
|
||||||
|
type: UniLabJsonCommand
|
||||||
|
auto-test_connection:
|
||||||
|
feedback: {}
|
||||||
|
goal: {}
|
||||||
|
goal_default: {}
|
||||||
|
handles: {}
|
||||||
|
result: {}
|
||||||
|
schema:
|
||||||
|
description: ''
|
||||||
|
properties:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
properties: {}
|
||||||
|
required: []
|
||||||
|
type: object
|
||||||
|
result: {}
|
||||||
|
required:
|
||||||
|
- goal
|
||||||
|
title: test_connection参数
|
||||||
|
type: object
|
||||||
|
type: UniLabJsonCommand
|
||||||
|
export_status_json:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
filepath: filepath
|
||||||
|
goal_default:
|
||||||
|
filepath: bts_status.json
|
||||||
|
handles: {}
|
||||||
|
result:
|
||||||
|
return_info: return_info
|
||||||
|
success: success
|
||||||
|
schema:
|
||||||
|
description: 导出当前状态数据到JSON文件
|
||||||
|
properties:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
properties:
|
||||||
|
filepath:
|
||||||
|
default: bts_status.json
|
||||||
|
description: 输出JSON文件路径
|
||||||
|
type: string
|
||||||
|
required: []
|
||||||
|
type: object
|
||||||
|
result:
|
||||||
|
properties:
|
||||||
|
return_info:
|
||||||
|
description: 导出操作结果信息
|
||||||
|
type: string
|
||||||
|
success:
|
||||||
|
description: 导出是否成功
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- return_info
|
||||||
|
- success
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- goal
|
||||||
|
type: object
|
||||||
|
type: UniLabJsonCommand
|
||||||
|
get_device_summary:
|
||||||
|
feedback: {}
|
||||||
|
goal: {}
|
||||||
|
goal_default: {}
|
||||||
|
handles: {}
|
||||||
|
result:
|
||||||
|
return_info: return_info
|
||||||
|
success: success
|
||||||
|
schema:
|
||||||
|
description: 获取设备级别的摘要统计信息
|
||||||
|
properties:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
properties: {}
|
||||||
|
required: []
|
||||||
|
type: object
|
||||||
|
result:
|
||||||
|
properties:
|
||||||
|
return_info:
|
||||||
|
description: 设备摘要信息JSON格式
|
||||||
|
type: string
|
||||||
|
success:
|
||||||
|
description: 查询是否成功
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- return_info
|
||||||
|
- success
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- goal
|
||||||
|
type: object
|
||||||
|
type: UniLabJsonCommand
|
||||||
|
get_plate_status:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
plate_num: plate_num
|
||||||
|
goal_default:
|
||||||
|
plate_num: 1
|
||||||
|
handles: {}
|
||||||
|
result:
|
||||||
|
return_info: return_info
|
||||||
|
success: success
|
||||||
|
schema:
|
||||||
|
description: 获取指定盘(1或2)的电池状态信息
|
||||||
|
properties:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
properties:
|
||||||
|
plate_num:
|
||||||
|
description: 盘号 (1 或 2)
|
||||||
|
maximum: 2
|
||||||
|
minimum: 1
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- plate_num
|
||||||
|
type: object
|
||||||
|
result:
|
||||||
|
properties:
|
||||||
|
return_info:
|
||||||
|
description: 盘状态信息JSON格式
|
||||||
|
type: string
|
||||||
|
success:
|
||||||
|
description: 查询是否成功
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- return_info
|
||||||
|
- success
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- goal
|
||||||
|
type: object
|
||||||
|
type: UniLabJsonCommand
|
||||||
|
print_status_summary_action:
|
||||||
|
feedback: {}
|
||||||
|
goal: {}
|
||||||
|
goal_default: {}
|
||||||
|
handles: {}
|
||||||
|
result:
|
||||||
|
return_info: return_info
|
||||||
|
success: success
|
||||||
|
schema:
|
||||||
|
description: 打印通道状态摘要信息到控制台
|
||||||
|
properties:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
properties: {}
|
||||||
|
required: []
|
||||||
|
type: object
|
||||||
|
result:
|
||||||
|
properties:
|
||||||
|
return_info:
|
||||||
|
description: 打印操作结果信息
|
||||||
|
type: string
|
||||||
|
success:
|
||||||
|
description: 打印是否成功
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- return_info
|
||||||
|
- success
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- goal
|
||||||
|
type: object
|
||||||
|
type: UniLabJsonCommand
|
||||||
|
query_plate_action:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
string: plate_id
|
||||||
|
goal_default:
|
||||||
|
string: ''
|
||||||
|
handles: {}
|
||||||
|
result: {}
|
||||||
|
schema:
|
||||||
|
description: ''
|
||||||
|
properties:
|
||||||
|
feedback:
|
||||||
|
properties: {}
|
||||||
|
required: []
|
||||||
|
title: StrSingleInput_Feedback
|
||||||
|
type: object
|
||||||
|
goal:
|
||||||
|
properties:
|
||||||
|
string:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- string
|
||||||
|
title: StrSingleInput_Goal
|
||||||
|
type: object
|
||||||
|
result:
|
||||||
|
properties:
|
||||||
|
return_info:
|
||||||
|
type: string
|
||||||
|
success:
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- return_info
|
||||||
|
- success
|
||||||
|
title: StrSingleInput_Result
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- goal
|
||||||
|
title: StrSingleInput
|
||||||
|
type: object
|
||||||
|
type: StrSingleInput
|
||||||
|
test_connection_action:
|
||||||
|
feedback: {}
|
||||||
|
goal: {}
|
||||||
|
goal_default: {}
|
||||||
|
handles: {}
|
||||||
|
result:
|
||||||
|
return_info: return_info
|
||||||
|
success: success
|
||||||
|
schema:
|
||||||
|
description: 测试与电池测试系统的TCP连接
|
||||||
|
properties:
|
||||||
|
feedback: {}
|
||||||
|
goal:
|
||||||
|
properties: {}
|
||||||
|
required: []
|
||||||
|
type: object
|
||||||
|
result:
|
||||||
|
properties:
|
||||||
|
return_info:
|
||||||
|
description: 连接测试结果信息
|
||||||
|
type: string
|
||||||
|
success:
|
||||||
|
description: 连接测试是否成功
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- return_info
|
||||||
|
- success
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- goal
|
||||||
|
type: object
|
||||||
|
type: UniLabJsonCommand
|
||||||
|
module: unilabos.devices.battery.neware_battery_test_system:NewareBatteryTestSystem
|
||||||
|
status_types:
|
||||||
|
channel_status: dict
|
||||||
|
connection_info: dict
|
||||||
|
device_summary: dict
|
||||||
|
plate_status: dict
|
||||||
|
status: str
|
||||||
|
total_channels: int
|
||||||
|
type: python
|
||||||
|
config_info: []
|
||||||
|
description: 新威电池测试系统驱动,支持720个通道的电池测试状态监控和数据导出。通过TCP通信实现远程控制,包含完整的物料管理系统,支持2盘电池的状态映射和监控。
|
||||||
|
handles: []
|
||||||
|
icon: ''
|
||||||
|
init_param_schema:
|
||||||
|
config:
|
||||||
|
properties:
|
||||||
|
devtype:
|
||||||
|
type: string
|
||||||
|
ip:
|
||||||
|
type: string
|
||||||
|
machine_id:
|
||||||
|
default: 1
|
||||||
|
type: integer
|
||||||
|
port:
|
||||||
|
type: integer
|
||||||
|
size_x:
|
||||||
|
default: 500.0
|
||||||
|
type: number
|
||||||
|
size_y:
|
||||||
|
default: 500.0
|
||||||
|
type: number
|
||||||
|
size_z:
|
||||||
|
default: 2000.0
|
||||||
|
type: number
|
||||||
|
timeout:
|
||||||
|
type: integer
|
||||||
|
required: []
|
||||||
|
type: object
|
||||||
|
data:
|
||||||
|
properties:
|
||||||
|
channel_status:
|
||||||
|
type: object
|
||||||
|
connection_info:
|
||||||
|
type: object
|
||||||
|
device_summary:
|
||||||
|
type: object
|
||||||
|
plate_status:
|
||||||
|
type: object
|
||||||
|
status:
|
||||||
|
type: string
|
||||||
|
total_channels:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- channel_status
|
||||||
|
- connection_info
|
||||||
|
- total_channels
|
||||||
|
- plate_status
|
||||||
|
- device_summary
|
||||||
|
type: object
|
||||||
|
version: 1.0.0
|
||||||
Reference in New Issue
Block a user