Thank you for your reply Mel. I'm using tshark to capture the USB traffic. I've adapted the scripts attached to the linux sniffing page into my own script that automates the reading of the radio from the Wouxun software.

When looking online and talking to people around here, they had some success just using the 816 driver for the 805....but some people after a few writes, the radio would get into a weird state. I didn't get the exact details, so we'll have to be content with "weird state". :) They were able to use the official software to get the radio functional again. Looking at the code, the 816 has 199 channels and the 805 has 128 channels....so someone probably wrote channel data into their settings. 

I was going to start with the 816 memory layout until I saw this weirdness in the captures I got, and thought I'd reach out. 

You mentioned you could look at images downloaded from chirp. Does that entail just reading from chirp using a different driver like the 816 and saving it? FYI, I've actually never used chirp or interacted with radios much....so I'm really diving into the deep end. :)

In the meantime, I'm going to create a new class for the 805 which extends from the KG816Radio class, change the memory to 128 channels, and go from there.

Thanks!
-Chris

On Sun, Mar 23, 2025 at 6:53 AM Mel Terechenok via Developers <developers@lists.chirpmyradio.com> wrote:
What program are you using to capture the trace?  Wouxun typically encodes the data transfer to and from the radio so using the factory CPS shows the encoded data.   

I have done more than 10 wouxun radio drivers and in all of them,  the per channel tones are part of the 16 bytes of memory for each channel.  In fact they have always been bytes 8 and 9 and bytes 10 and 11.   

I would have you take a look at one of the drivers already in existence for clues....the 935G or the 980P drivers would show how a typical memory map is laid out for the recent wouxun radios.   
If you have images downloaded from chirp for the 805 I can take a look.   

There is also the chance that the 805 uses a comm protocol that has not been decoded yet and it can be fooling you. The 916 and the S88 are radios that seem to use a comm protocol that is not as "predictable" as the 935G or the 980p. 


Mel

On Sat, Mar 22, 2025, 8:43 PM Chris Mildebrandt via Developers <developers@lists.chirpmyradio.com> wrote:
Hello,

I'd love some help creating a driver for the Wouxun KG-805g radio (https://chirpmyradio.com/issues/11214). I've performed captures of all the settings, they can be found here: https://github.com/mildebrandt/kg805g

Looking at the trace files, I'm a little confused about the memory layout. I changed the R-CTC setting from "off" to "67.0" on channels 3, 4, and 13. Here are the differences:

CH03: change is at the 89th position
<570010405062254650622546ffffffff95ffffff5087254650872546ffffffff95ffffff5012264650122646ffffffff95ffffff5037264650372646ffffffff95ffffff
<570010405062254650622546ffffffff95ffffff5087254650872546ffffffff95ffffff50122646501226469e02ffff95ffffff5037264650372646ffffffff95ffffff

CH04: change is at the 121st position
<570010405062254650622546ffffffff95ffffff5087254650872546ffffffff95ffffff5012264650122646ffffffff95ffffff5037264650372646ffffffff95ffffff
<570010405062254650622546ffffffff95ffffff5087254650872546ffffffff95ffffff5012264650122646ffffffff95ffffff50372646503726469e02ffff95ffffff

CH13: change is at the 25th position
<5700d0405087764650877646ffffffff95cfffff5012774650127746ffffffff95cfffff0050254600502546ffffffff95ffffff0075254600752546ffffffff95ffffff
<5700d04050877646508776469e02ffff95cfffff5012774650127746ffffffff95cfffff0050254600502546ffffffff95ffffff0075254600752546ffffffff95ffffff
 
My uninformed thought would be that I'd see the bytes change in the same position for the same setting on each channel, but they seem to be all over the place.

What does this mean for me trying to lay out the memory? Am I being fooled by the trace output...and it's being recorded out of sequence? I wouldn't think so since the ordering looks to be stable per channel.

I'll describe my setup in case there's something weird there. I have an Intel Macbook Pro with Fedora Linux installed. In Fedora, I have a qemu Windows 10 machine that's running the Wouxun software. I'm running tshark on the Linux side to capture the USB traffic.

Any pointers would be appreciated. I'm pretty far over my head, but hopefully I can help get this radio into chirp. :)

Thanks!
-Chris
_______________________________________________
Developers mailing list -- developers@lists.chirpmyradio.com
To unsubscribe send an email to developers-leave@lists.chirpmyradio.com
_______________________________________________
Developers mailing list -- developers@lists.chirpmyradio.com
To unsubscribe send an email to developers-leave@lists.chirpmyradio.com