dtrac_quansheng_uv-k6
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| dtrac_quansheng_uv-k6 [2025/05/04 23:26] – [硬件改造] BG6UD | dtrac_quansheng_uv-k6 [2025/11/28 10:51] (当前版本) – [Protocol for UV-K6] BG6UD | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== 使用泉盛UV-K6定制固件 ====== | + | ====== 使用泉盛UV-K5/K6定制固件 ====== |
| 这是我特意送给大家五五节的节日礼物,DTrac APP 新增了对泉盛UV-K5/ | 这是我特意送给大家五五节的节日礼物,DTrac APP 新增了对泉盛UV-K5/ | ||
| ===== 实现功能 ===== | ===== 实现功能 ===== | ||
| - | 仅需使用APP连接对讲机,实时自动同步以下卫星通联参数: | + | 仅需使用APP连接对讲机,抛弃繁琐一个手机全搞定,业余卫星通联操作更智能,实现以下功能: |
| - | * 卫星多普勒频率; | + | * 自动获取位置; |
| - | * 通联模式参数; | + | * 自动更新星历; |
| - | * 发射亚音参数; | + | * 成熟算法预测; |
| + | * 实时同步卫星多普勒频率; | ||
| + | * 实时同步通联模式参数; | ||
| + | * 实时同步发射亚音参数; | ||
| + | * 卫星入境时自动开启监听,离境后自动关闭监听; | ||
| 注:由于泉盛UV-K5/ | 注:由于泉盛UV-K5/ | ||
| ===== 硬件改造 ===== | ===== 硬件改造 ===== | ||
| 行 13: | 行 17: | ||
| 泉盛UV-K5/ | 泉盛UV-K5/ | ||
| - | {{ :dtrac_quansheng_uv-k6_diy.png? | + | {{:2141577663.jpg? |
| + | |||
| + | 推荐使用3.3V的蓝牙模块,如HC-04,操作步骤: | ||
| + | {{:hc-04.png? | ||
| - | 推荐使用3.3V的蓝牙模块,操作步骤: | ||
| * 修改蓝牙模块名称如:UV-K6; | * 修改蓝牙模块名称如:UV-K6; | ||
| * 修改波特率为38400; | * 修改波特率为38400; | ||
| * 拆机(自行搜索网上教程); | * 拆机(自行搜索网上教程); | ||
| - | * 然后根据蓝牙模块的引脚定义参考上图位置接线 | + | * 然后根据蓝牙模块的引脚定义参考下图位置接线 |
| * TXD 接 RXD | * TXD 接 RXD | ||
| * RXD 接 TXD | * RXD 接 TXD | ||
| 行 25: | 行 31: | ||
| * GND 接 GND | * GND 接 GND | ||
| * 用热缩管将模块包裹,放在合适位置即可。 | * 用热缩管将模块包裹,放在合适位置即可。 | ||
| + | |||
| + | {{: | ||
| ===== 定制固件 ===== | ===== 定制固件 ===== | ||
| - | 定制的固件在egzumer最新固件上轻微修改,完整保留了原功能。 | + | 定制的固件在egzumer最新固件上轻微修改,完整保留了原功能。注: [[https:// |
| ===== 刷机方法 ===== | ===== 刷机方法 ===== | ||
| - | 刷机方法简介:长按PTT键开机,使用泉盛官方自带的固件更新软件更新即可。 | + | 刷机方法简介:线刷和蓝牙无线刷机的方法都是一样的,长按PTT键开机,使用泉盛官方自带的固件更新软件,选择正确的端口,连接电台,选择固件,点击更新即可。固件升级详细操作步骤请见官方升级固件程序和说明文档。 |
| + | {{ :: | ||
| ===== 下载地址 ===== | ===== 下载地址 ===== | ||
| - | 固件下载地址: {{ :firmware.packed.bin |}} | + | 固件下载地址: {{ :quansheng_uvk6_firmware_for_dtrac.bin |}} |
| + | |||
| + | ===== 对讲机设置 ===== | ||
| + | |||
| + | 将RxMode设置为MAIN ONLY,并使用VFO频率待机模式。 | ||
| + | |||
| + | {{: | ||
| ===== APP设置 ===== | ===== APP设置 ===== | ||
| - | {{ : | + | 电台类型选择“QUANSHENG UV-K6”,然后用蓝牙方式连接对讲机。 |
| - | ===== 对讲机设置 ===== | + | {{: |
| - | 调到59号菜单,将RxMode设置为MAIN ONLY。 | ||
| ===== 演示视频 ===== | ===== 演示视频 ===== | ||
| - | {{ : | + | {{: |
| + | |||
| + | ===== 隐藏校准菜单 ===== | ||
| + | 进入固件隐藏校准菜单的方法如下:先按住“PTT”键和“按钮1”,然后打开对讲机,接着松开所有按键,即可进入隐藏菜单。进入后,找到与电池校准相关的选项,如“BatCal”,即可进行电压校准等操作。 | ||
| + | |||
| + | ===== 相关协议 ===== | ||
| + | |||
| + | ==== Protocol for UV-K5/K6 ==== | ||
| + | |||
| + | The programming protocol used by this software has been reverse engineered | ||
| + | by observing communications between the radio and the original programming | ||
| + | software. It is not a variation of the typical Baofeng-like protocol. | ||
| + | |||
| + | |||
| + | The format of the datagram sent to the radio is: | ||
| + | |||
| + | 0xAB 0xCD len 0x00 <data bytes> <2 bytes CRC> 0xDC 0xBA | ||
| + | |||
| + | The length is the length of the data bytes. | ||
| + | |||
| + | The data is protected by a typical CRC-16 xmodem algorithm. | ||
| + | The data bytes and the CRC are obfuscated by xor-in it with an 8-byte | ||
| + | sequence. | ||
| + | |||
| + | Fortunately the EEPROM data contains a lot of 0xFF and 0x00 bytes, so the XOR | ||
| + | sequence is easy to find by observing the traffic. | ||
| + | |||
| + | |||
| + | The datagram sent from the radio is the same, but the CRC field is set to | ||
| + | 0xFFFF. This shows that the CRC is not for data integrity, but for further | ||
| + | obfuscation (same as the XOR). | ||
| + | |||
| + | |||
| + | I intend to publish a further description of the protocol, and the EEPROM | ||
| + | contents, meanwhile the sources can be used as documentation. | ||
| + | |||
| + | ==== Data for DTrac APP ==== | ||
| + | |||
| + | === for DTrac app CTCSS_CODE === | ||
| + | |||
| + | typedef struct { | ||
| + | Header_t Header; | ||
| + | uint8_t CTCSS_CODE; | ||
| + | } CMD_9999_t; | ||
| + | |||
| + | === for DTrac app downFreq === | ||
| + | |||
| + | typedef struct { | ||
| + | Header_t Header; | ||
| + | uint32_t DownFrequency; | ||
| + | } CMD_8888_t; | ||
| + | |||
| + | === for DTrac app upFreq === | ||
| + | |||
| + | typedef struct { | ||
| + | Header_t Header; | ||
| + | uint32_t UpFrequency; | ||
| + | } CMD_7777_t; | ||
| + | |||
| + | === for DTrac app mode === | ||
| + | |||
| + | typedef struct { | ||
| + | Header_t Header; | ||
| + | char Mode; | ||
| + | } CMD_6666_t; | ||
| + | |||
| + | === for DTrac app MonitorStatus === | ||
| + | |||
| + | typedef struct { | ||
| + | Header_t Header; | ||
| + | char MonitorStatus; | ||
| + | } CMD_5555_t; | ||
dtrac_quansheng_uv-k6.1746372390.txt.gz · 最后更改: 2025/05/04 23:26 由 BG6UD
