Project

General

Profile

Actions

New Model #2671

open

Wouxun KG-UV9D

Added by James Freetage almost 9 years ago. Updated about 3 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
06/25/2015
Due date:
% Done:

0%

Estimated time:
Equipment Loan/Gift Offered:
Yes
I read the instructions above:

Description

Any chance of support for this new radio? I have one, am a little hesitant about shipping it from Hawaii, is there some way I can download the information and send it to you?

Thanks,

73
James
W8JVF


Files

write-clean.txt.bz2 (14.9 KB) write-clean.txt.bz2 Write log cleaned from most of the NOISY data (see #2861 for original log) Pavel Milanes, 01/08/2016 01:37 PM
read-clean.txt.bz2 (15.4 KB) read-clean.txt.bz2 Read log cleaned from most of the NOISY data (see #2861 for original log) Pavel Milanes, 01/08/2016 01:37 PM
download.txt (239 KB) download.txt Jerzy Trzeciak, 01/15/2016 11:02 AM
upload.txt (189 KB) upload.txt Jerzy Trzeciak, 01/15/2016 11:02 AM
KG-UV9D-Protocol.pdf (25.7 KB) KG-UV9D-Protocol.pdf Fred Munden, 06/09/2016 10:29 AM
KG-UV9D-Read.txt (348 KB) KG-UV9D-Read.txt Fred Munden, 06/09/2016 10:29 AM
KG-UV9D-Write.txt (254 KB) KG-UV9D-Write.txt Fred Munden, 06/09/2016 10:29 AM
KG-UV9D-0x0137-Record.txt (1.78 KB) KG-UV9D-0x0137-Record.txt Fred Munden, 06/09/2016 10:29 AM

Related issues

Related to New Model #2861: Wouxun KG-UV9DRejected09/18/2015

Actions
Has duplicate New Model #5069: Wouxun KG-UV9DClosed08/15/2017

Actions
Has duplicate New Model #8269: wouxun kg-uv9 Closed09/22/2020

Actions
Actions #1

Updated by James Freetage almost 9 years ago

Also, I am willing to "beta test" any software for the KG-UV9D.

Actions #2

Updated by Matt Hankosky over 8 years ago

i Have a KG-UV9D that i can loan. Would love it on CHIRP.

Actions #3

Updated by Pavel Milanes over 8 years ago

  • Chirp Version changed from 0.4.0 to daily
  • Equipment Loan/Gift Offered changed from No to Yes

This is the starting thread for this radio, so all later "new models request" about this radio was rejected and make note on this thread.

Dupe Issue #2861 has a download/upload logs, so it's closed & linked to this post.

I have taken a look into the logs in post #2861 and I can do the driver, but acquiring this radio in Cuba is impossible. Remote testing is a possibility but a really hard/slow one.

I will do it but need a radio on hand.

73, CO7WT.

Actions #4

Updated by Pavel Milanes over 8 years ago

I'm working on define the comm properties of this radio, but the logs on the issue are #2861 are not from the portmon tool and it's hard to clean it to get a clean comm protocol picture.

Can anyone try to get a download / upload logs with portmon [[[https://technet.microsoft.com/en-us/sysinternals/portmon.aspx]]] and post it here?

Remember portmon work just under 32bit Window OS

This is to get an download/upload script as a starting point to another developer who want to follow the development with a radio.

Cheers.

Actions #5

Updated by Pavel Milanes over 8 years ago

Some regular expression magic do the trick.

It's good to refresh the old tools that some times get a ton of dust in the brain section "Important but rarely used"

Attached are the two logs cleaned, I will be making a download script based on this.

I don't have a radio at hand so it may contains some bugs.

Owners of the Wouxun KG-UV9D wanted here to test the script.

73

Actions #6

Updated by James Freetage over 8 years ago

Tell me what I need to do. I'll help, but I haven't done any of this before.

Actions #7

Updated by Pavel Milanes over 8 years ago

Hi James,

Users can contribute to the development of new models in various ways, posting logs, testing new drivers and borrowing equipment.

At this stage the logs are fine to determine the comm details, another log will not hurt so here comes the instructions:

Go to Sysinternals at Microsoft and download the portmon tool [[https://technet.microsoft.com/en-us/sysinternals/portmon.aspx
]] into any 32bit Windws PC.

Extract and start portmon, start capture. (magnify glass icon)

Connect interface and cable to you radio, start the default software for it.

Start a download with the default software (reading data) of the radio, you will see activity on portmon; at the end use the save utility of portmon to save the log to a file, name it download.txt

Clear the log in portmon.

Repeat this step but uploading (writing data) the data you just downloaded, in portmon save the log to a file named upload.txt

Post the acquired logs to this thread.

If you don't have a 32 bit machine at hand (portmon only runs on 32bit) download any freeware/try-period serial monitor/sniffer software.

In the last weekend I was playing with the logs of this radios, comparing and testing... it has some similar comm procedures with the KG-UV8D, but have a few differences and the checksum, seems like using a different algorithm; also the data in the read commands has no logic using KG-UV8D paradigm or other simple communications

It seems that this radio's comm procedures will be a tough one to break.

Actions #8

Updated by Jerzy Trzeciak over 8 years ago

  • File Read_1.LOG added

Hi
I have an KG-UV9d and I did "read" and "write" data with default software.

Actions #9

Updated by Jerzy Trzeciak over 8 years ago

  • File Write_1.LOG added
Actions #10

Updated by Pavel Milanes about 8 years ago

  • Start date deleted (06/25/2015)

Hi Jerzy and others,

Sorry, I forgot to mention a simple detail for portmon: you have to set a few non default options to get a full detailed logs.

Go to portmon, Options menu, be sure to tick (enable) this options

  • Show Hex
  • Show time column
  • Show time

Then yet in the Options menu select the one named "Max Output Bytes" and set it to 256

That will make portmon record in very detail all the activity of the up/down process...

Sorry for the inconvenience, can you repeat the process whit this options and upload new logs?

73

Actions #11

Updated by Jerzy Trzeciak about 8 years ago

  • File download.txt added
  • File upload.txt added

OK Pavel
That are my new logs. I am sorry my English.
Jurek

Actions #12

Updated by Pavel Milanes about 8 years ago

  • File deleted (Read_1.LOG)
Actions #13

Updated by Pavel Milanes about 8 years ago

  • File deleted (Write_1.LOG)
Actions #14

Updated by Pavel Milanes about 8 years ago

  • Start date set to 06/25/2015

Jerzy please check your files, both logs are the same: the upload log.

I need a download log, I see some interesting pattern in the upload log, I will look it more closely on the weekend.

Also I updated the start date, that I deleted by mistake, sorry.

Actions #15

Updated by Jerzy Trzeciak about 8 years ago

I am sorry my mistake.
Please delete it, with mistake.

They are my new logs, different.
Jurek

Actions #16

Updated by Pavel Milanes about 8 years ago

  • File deleted (download.txt)
Actions #17

Updated by Pavel Milanes about 8 years ago

  • File deleted (upload.txt)
Actions #18

Updated by Pavel Milanes about 8 years ago

Little progress on this, but more knowledge acquired.

This weekend I build a windows & linux compatible script from the kg-uv8D driver base, and run it against the data you gently provided, but no joy.

Lessons learned:

  • The comm protocol is "almost" the same. (there is no logic yet on the address bytes)
  • The ident of this radio has not the explicit name of the radio on it.
  • The ident has some variations from byte 28 until end.
  • The checksum algorithm for this radio is unknown.

This last is the rock on the way, until we manage to know what checksum algorithm are they using we are stuck on this.

I will keep investigating this issue but any help is welcomed.

Cheers from Pavel, CO7WT.

Actions #19

Updated by Pavel Milanes about 8 years ago

I had confirmed one of my fears: data communication in encoded/encrypted, as Ron Wellsted comment in #1489 about the Wouxun KG-UV950...

Until this issue is resolved (very unlikely without the help of Wouxun itself) this driver development is stuck.

73

Actions #20

Updated by Fred Munden almost 8 years ago

I have been looking at Wouxum KG-UV9D memory map. I started with kguv8d.py. It turns out there is little in common between the memory maps. Below are a few details. I have included what should be the most simplest cases, functions that are ON/OFF. Seems like that should result in single bit toggle or a single byte change. Instead there are multiple bytes in the record that are changed. I used KG-UV9D Commander version 1.02 to toggle ON/OFF functions then read the radio with a script that wrote out a binary file with record headers. I have not yet looked at VFO/Memories. Comments are welcomed.

Attachments:
comport capture of write/read of KG-UV9D Commander
table of record at offset 0x0137 that has several ON/OFF items

Actions #21

Updated by Rafael Jaeger over 7 years ago

Hi all,
I've been using CHIRP for a while but haven't contributed before. I got my hands on a Wouxun KV-UV9D this summer in Europe (I live in Arizona). Assuming I can use the RTDI cable I use for programming my Baofeng UV-82HPs, I'd be happy to help develop the driver. As it is, the radio is great for monitoring ATC, and is overall an excellent unit, but without the ability to program it, I default to using my Baofengs for actual communications.

I've read through the history here and have a basic idea of where things stand, but it's my first time at this. If anyone can help me understand what would be needed to move this process forward I'll do what I can.
73,
-Rafael KG7YWU

Actions #22

Updated by Carsten Schaudel over 7 years ago

Well,
it seems the issue is to find the method with which the checksum of the communication is calculated - which is different to older wouxun models.

I figured out one thing so far:
It seems the upper nibble of the checksum is always identical to the upper nibble of the last databyte.

The lower nibble is even for messages TO the radio, and odd for messages FROM the radio.

That's as far as I got.

Maybe someone else has some ideas .....

Actions #23

Updated by Carsten Schaudel over 7 years ago

update:
my statement on "even" and "odd" seems wrong, so the calculation of the lower nibble is open ....

Actions #24

Updated by Rafael Jaeger about 7 years ago

I don't run Windows – any serial sniffer tools I can use on OS X or Debian?

Actions #25

Updated by Rafael Jaeger about 7 years ago

I found one! http://www.w7ay.net/site/Applications/Serial%20Tools/index.html. Now to figure out how to get some useful data out of it.

Actions #26

Updated by Bernhard Hailer almost 4 years ago

  • Status changed from New to Feedback
  • Target version set to chirp-legacy

Any progress on this radio?

Actions

Also available in: Atom PDF