DYJ-V2

蓝牙调试面板

{{ isConnected ? '已连接' : '未连接' }}
{{ deviceInfo.deviceName }} ({{ deviceInfo.version || 'Unknown' }})

命令列表

基础命令

{{ cmd.name }}
{{ cmd.description }}

录音控制

{{ cmd.name }}
{{ cmd.description }}

文件管理

{{ cmd.name }}
{{ cmd.description }}

上传管理

{{ cmd.name }}
{{ cmd.description }}

WiFi管理

{{ cmd.name }}
{{ cmd.description }}

认证管理

{{ cmd.name }}
{{ cmd.description }}

系统配置

{{ cmd.name }}
{{ cmd.description }}

测试操作

{{ cmd.name }}
{{ cmd.description }}

{{ selectedCommand.name }}

{{ selectedCommand.description }}

{{ paramError }}
请选择一个命令

当前文件

正在上传 进行中
{{ fileUploadStatus.currentFile.name }}
{{ formatFileSize(fileUploadStatus.currentFile.bytesUploaded) }} / {{ formatFileSize(fileUploadStatus.currentFile.totalBytes) }} {{ Math.round(fileUploadStatus.currentFile.progress * 10) / 10 }}%
状态: {{ fileUploadStatus.isUploading ? '上传中' : '未上传' }} | 块数: {{ fileBlockCounter }} | 时间: {{ fileReceiveStartTime ? Math.round((Date.now() - fileReceiveStartTime) / 1000) + 's' : '0s' }}
当前文件
{{ currentFile.name }} 完成
{{ formatFileSize(currentFile.size) }}
{{ currentFile.uploadTime }}
暂无文件
使用文件上传命令开始传输
蓝牙UART协议会自动通知特征值变化,无需手动刷新

蓝牙特征值信息 ({{ characteristicsInfo.tx?.uuid ? '已连接' : '未连接' }})

{{ characteristicsInfo.notificationsEnabled ? '通知已启用' : '通知未启用' }}
TX特征值 (发送) 写入
{{ characteristicsInfo.tx?.uuid || '未发现' }}
属性: {{ formatProperties(characteristicsInfo.tx?.properties) }}
RX特征值 (接收) {{ characteristicsInfo.notificationsEnabled ? '通知已启用' : '通知未启用' }}
{{ characteristicsInfo.rx?.uuid || '未发现' }}
属性: {{ formatProperties(characteristicsInfo.rx?.properties) }}
设备未连接
连接设备后将自动显示特征值信息
TX: {{ characteristicsInfo.tx?.uuid ? '已发现' : '未发现' }} | RX: {{ characteristicsInfo.rx?.uuid ? '已发现' : '未发现' }} | 通知: {{ characteristicsInfo.notificationsEnabled ? '已启用' : '未启用' }}
设备未连接

最新响应数据

数据类型: {{ latestResponse.command }} 时间: {{ latestResponse.timestamp }}
设备主动发送
原始数据:
{{ latestResponse.raw }}
解析数据:
{{ JSON.stringify(latestResponse.data, null, 2) }}
JSON解析错误
{{ latestResponse.parseError }}
原始JSON数据:
{{ latestResponse.data.rawJson }}
{{ JSON.stringify(latestResponse.data, null, 2) }}
{{ latestResponse.parseSuccess ? 'JSON格式' : latestResponse.parseError ? 'JSON错误' : '文本格式' }}
监听设备数据中...
设备可随时主动发送数据
设备未连接

通信日志

实时数据监听 (设备可主动发送数据)
正在监听设备数据,无需发送命令
特征值详情:
TX UUID: {{ characteristicsInfo.tx?.uuid || '未发现' }}
RX UUID: {{ characteristicsInfo.rx?.uuid || '未发现' }}
MTU: {{ characteristicsInfo.mtu || 23 }} 字节
分片大小: {{ characteristicsInfo.maxChunkSize || 20 }} 字节
MTU协商: {{ characteristicsInfo.mtuNegotiated ? '已完成' : '未完成' }}
接收次数: {{ characteristicsInfo.receiveCount || 0 }}
最后接收: {{ characteristicsInfo.lastReceiveTime ? characteristicsInfo.lastReceiveTime.toLocaleTimeString() : '无' }}
总特征值: {{ characteristicsInfo.allCharacteristics?.length || 0 }}个
{{ log.type === 'send' ? '发送' : log.type === 'receive' ? '接收' : '错误' }} {{ log.timestamp }}
{{ log.data }}