Add files via upload

This commit is contained in:
nicsure 2024-05-30 03:16:03 +01:00 committed by GitHub
commit de5900ab8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 418 additions and 0 deletions

BIN
H3µçµ÷.zip Normal file

Binary file not shown.

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# TD-H3-Engineering
Facebook: https://www.facebook.com/groups/456942886822492
# TID Station
A application designed to replace the three apps supplied by TIDRADIO into a single app.
It also allows configuration changes to be made in real time (Live Mode) which gives some remote functionality.
TID Station is currently in Beta, it may be updated frequently and will have bugs and glitches.

View File

@ -0,0 +1,69 @@
TID Station is a multi configuration tool for the TIDRADIO TD-H3, it was designed as a single app replacement for the separate three applications supplied by TIDRADIO. The difference is that settings can be changed in real-time which gives a degree of remote control. Bear in mind however that this is limited, there is no way for real time data to go in the other direction. So it's not possible to do things such as a signal meter, RX/TX state. There is also no way to initiate TX on the PC, although you could use an external microphone.
The app has two modes of operation, Live Mode and Offline Mode.
The App starts up in Offline Mode. In this mode, there is no persistent connection to a radio. This mode is the same as a regular configuration utility. You load in a config from a radio or a file, modify it, then write it back out to rhe radio or to a file.
To enter Live Mode, select the radio's COM port next to "Live Port" on the front screen. This will place the app into Live Mode, from this point all changes you make will be instantly applied to radio in real time. Thus giving some degree of remote control ability. To return to Offline Mode, just select "Offline" from the "Live Port" setting.
When using this app in Live Mode, DO NOT adjust anything on the radio itself, doing so will desynchronize the app and radio and will lead to problems and possibly data corruption.
Top Buttons
📡 - Switches to radio configuration. This is not a GPS function, it's just an icon I selected.
📖 - Switches to the memory channel editor.
📶 - Switches to the power tuner.
📻 - Switches to FM Broadcast Tuner settings.
⚡ - Switches to the firmware flasher.
Bottom Buttons
📂 - Load configuration file (Offline mode only)
💾 - Save configuration file.
🡇 - Read configuration from radio. (Offline mode only)
🡅 - Write configuration to radio. (Offline mode only)
Radio Configuration Display
===========================
This is visible when the 📡 button is lit. The screen allows you to adjust almost all radio settings. On the right are many settings that can be adjusted by right clicking and selecting from a menu. This section also contains the Serial Port selection for Live Mode connection to the radio. By leaving the Live Port selection in "Offline" you can use the app as a standard config tool.
Each VFO is arranged as such
L N B 12.5k
NT 144.00000
NT ^ 445.00000
R S VFO-A
L = Power, click this to switch between [L]ow and [H]igh output power
N = Bandwidth, change from [N]arrow and [W]ide
B = [B]usy lock out mode
12.5k = Click to change frequency step
NT = Click to set or clear CTCSS or DCS codes for TX and RX
144.00000 = RX Frequency, this can be adjusted by typing on the keyboard, or clicking the buttons
445.00000 = TX Frequency, click this to activate split mode. You may then enter a transmit frequency
^ = Indicates the direction of the split TX frequency. Clicking this turns split mode off.
R = Click to change [R]everse mode. Swaps the TX and RX frequencies round.
S = [S]cramble mode.
VFO-A = Click to change between VFO operation and Memory Channel operation
On VFO-A there are two extra options at the top
𝄽 = Changes the roger beep sent when keying down. 𝄽=No Beep, ♪=Beep1, ♫=Beep2
🗘 = Dual Watch mode. 🗘=Dual Watch, ⛛=Dual Watch Disabled
Channel Editor Display
======================
This section allows you to edit the memory channels. Bear in mind that if in live mode, changes here will instantly be applied to the memory channels on the radio.
To edit a channel you can click on the setting you wish to change and type in the new setting. However, this is only really needed for frequencies and the channel name. For other settings, right click on the channel you want to save and select the new setting from the menu that appears. You may also select multiple channels and right click, to change multiple settings at once.
When multiple channels are selected, right clicking and entering a Frequency into the menu will populate all RX frequencies in the selected channels which increment with whatever Frequency Step is currently selected in VFO-A.
Power Tuning Display
====================
This section is basically a clone of the TIDRADIO power tuning application and does the same thing. I do not fully know how this works and I simply copied what the TIDRADIO application does.
FM Broadcast Tuner Settings
===========================
This section lets you select various settings related to the FM Tuner, you can edit all 25 channels and configure some operation modes.
Firmware Flasher
================
Works the same as the TIDRADIO firmware flasher. Follow the same procedure.

200
firmware_flash_protocol.txt Normal file
View File

@ -0,0 +1,200 @@
Serial Data
@ 115200 baud, 8 Data bits, 1 Stop Bit, No Parity
When the radio is powered on with the PTT key pressed it will continually send the same byte to the host
0xA5
This is the signal to the host that radio has been turned on in flash mode and flashing can now commence.
The host should now send the following data
A0 EE 74 71 07 74 55 55 55 55 55 55 55 55 55 55
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55
55 55 55 55
Timing is critical here, the radio will continue to send the 0xA5 bytes to the host. The host should keep reading
these bytes until it detects they've stopped being sent.
At this point the host has about 500 milliseconds to start sending the data.
First Data Packet
Packet ID Block Number CheckSum
A1 00 00 FE
Firmware Data
02 C3 CA E4 FB FD 7F 24 02 EC AD 02 76 A4 E4 F5
38 75 39 51 85 38 3A F5 37 AF 3A 05 3A 75 6A FF
Each packet should be acknowledged by the radio with a single byte
0xA3
Second Data Packet
Packet ID Block Number CheckSum
A1 00 01 6B
AD 39 12 00 8F 94 80 40 F0 85 38 3A E5 39 24 27
F5 3B E4 F5 37 AF 3A 05 3A 75 6A FF AD 3B 12 00
As you can see, the block number is not an address, it counts up for
each data packet that's sent.
This continues all the way to the end of the firmware data, at which point
the last data packet is different.
Last Data Packet
Packet ID Block Number CheckSum
A2 07 AF A1
7F 01 02 BC 59 7F 02 02 BC 59 7F 03 02 BC 59 7F
2D DF FE 22 7F 0C 02 CE 3A B2 C6 22 DF FE 22 00
The very last packet must have a Packet ID of A2. The radio will respond as usual with 0xA3
This packet should be padded with 00's at the end to make it 32 bytes.
And that completes the firmware flash process.
ComSnooper Output COM24=Radio COM12=Host
========================================
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A5 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A5 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:2) |
+--------------------------------------------------------------------+
| A5 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A5 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM12 -> COM24 (Length:36) |
+--------------------------------------------------------------------+
| A0 EE 74 71 07 74 55 55 55 55 55 55 55 55 55 55 | ··tq·tUUUUUUUUUU |
| 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 | UUUUUUUUUUUUUUUU |
| 55 55 55 55 | UUUU |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A5 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A5 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A5 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A5 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM12 -> COM24 (Length:36) |
+--------------------------------------------------------------------+
| A1 00 00 FE 02 C3 CA E4 FB FD 7F 24 02 EC AD 02 | ···········$···· |
| 76 A4 E4 F5 38 75 39 51 85 38 3A F5 37 AF 3A 05 | v···8u9Q·8:·7·:· |
| 3A 75 6A FF | :uj· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A3 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM12 -> COM24 (Length:36) |
+--------------------------------------------------------------------+
| A1 00 01 6B AD 39 12 00 8F 94 80 40 F0 85 38 3A | ···k·9·····@··8: |
| E5 39 24 27 F5 3B E4 F5 37 AF 3A 05 3A 75 6A FF | ·9$'·;··7·:·:uj· |
| AD 3B 12 00 | ·;·· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A3 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM12 -> COM24 (Length:36) |
+--------------------------------------------------------------------+
| A1 00 02 9A 8F 94 80 40 F0 12 50 06 AD 3B 05 3B | ·······@··P··;·; |
| 75 6A FF 7B FF AF 38 12 E5 F0 05 37 E5 37 C3 94 | uj·{··8····7·7·· |
| 27 40 E9 12 | '@·· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A3 | · |
+--------------------------------------------------------------------+
...
...
...
+--------------------------------------------------------------------+
| COM12 -> COM24 (Length:36) |
+--------------------------------------------------------------------+
| A1 07 AD 95 D2 B7 D2 B6 22 12 F4 23 7F 20 02 D6 | ········"··#· ·· |
| A9 E4 90 02 B0 F0 A3 F0 22 E4 FF 0F BF 05 FC 22 | ········"······" |
| 12 37 2F 02 | ·7/· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A3 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM12 -> COM24 (Length:36) |
+--------------------------------------------------------------------+
| A1 07 AE 19 DF 14 12 37 4F 02 DF 14 12 37 6A 02 | ·······7O····7j· |
| DF 14 12 37 7A 02 DF 14 20 7D 02 C2 C3 22 12 D6 | ···7z··· }···"·· |
| A9 02 F2 6E | ···n |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A3 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM12 -> COM24 (Length:36) |
+--------------------------------------------------------------------+
| A2 07 AF A1 7F 01 02 BC 59 7F 02 02 BC 59 7F 03 | ········Y····Y·· |
| 02 BC 59 7F 2D DF FE 22 7F 0C 02 CE 3A B2 C6 22 | ··Y·-··"····:··" |
| DF FE 22 00 | ··"· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM12 (Length:1) |
+--------------------------------------------------------------------+
| A3 | · |
+--------------------------------------------------------------------+

141
protocol.txt Normal file
View File

@ -0,0 +1,141 @@
Serial Communication
@ 38400 Baud, 8 Data bits, No Parity, 1 Stop Bit
To begin a read/write transaction
Host > Radio : 0x50, 0x56, 0x4F, 0x4A, 0x48, 0x5C, 0x14
Radio > Host : 0x06 (Ack)
Host > Radio : 0x02 (ID Req?)
Radio > Host : [8 Bytes] (unimportant)
Host > Radio : 0x06 (Ack)
Radio > Host : 0x06 (Ack)
data is read and written in 32 byte blocks at 32 byte boundaries
To read data
Host > Radio : 0x52 AD1 AD0 0x20
Radio > Host : 0x57 AD1 AD0 0x20 CKS [32 bytes]
To write data
Host > Radio : 0x57 AD1 AD0 0x20 CKS [32 bytes]
Radio > Host : 0x06 (Ack)
To end the transaction
Host > Radio : 0x45
Radio > Host : 0x06 (Ack)
Host > Radio : 0x02 (ID Req?)
Radio > Host : [8 Bytes]
AD0 = Least significant byte of address
AD1 = Most significant byte of address
CKS = Regular additive checksum of the 32 data bytes
ComSnooper Outputs COM13=Host COM24=Radio
-----------------------------------------
Transaction Start Sequence
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:7) |
+--------------------------------------------------------------------+
| 50 56 4F 4A 48 5C 14 | PVOJH\· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:1) |
+--------------------------------------------------------------------+
| 02 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:7) |
+--------------------------------------------------------------------+
| 50 33 31 31 38 35 FF FF | P31185·· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
Data Read
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:4) |
+--------------------------------------------------------------------+
| 52 1B 40 20 | R·@ |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:37) |
+--------------------------------------------------------------------+
| 57 1B 40 20 00 00 00 00 00 00 00 00 00 00 00 00 | ·@ ············· |
| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ··············· |
| 00 00 00 00 00 | ····· |
+--------------------------------------------------------------------+
Data Write
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:37) |
+--------------------------------------------------------------------+
| 57 06 40 20 FF FF FF FF FF FF FF FF FF FF FF FF | W·@ ············ |
| FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ················ |
| FF FF FF FF E0 | ····· |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
Transaction End Sequence
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:1) |
+--------------------------------------------------------------------+
| 45 | E |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:1) |
+--------------------------------------------------------------------+
| 06 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM13 -> COM24 (Length:1) |
+--------------------------------------------------------------------+
| 02 | · |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| COM24 -> COM13 (Length:7) |
+--------------------------------------------------------------------+
| 50 33 31 31 38 35 FF FF | P31185·· |
+--------------------------------------------------------------------+