Project

General

Profile

Actions

Bug #5275

closed

Improper treatment of unknown fields for Alinco DJ-G7

Added by Mathias Weyland about 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
10/24/2017
Due date:
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
Alinco DJ-7G EG
Platform:
Windows
Debug Log:
I read the instructions above:

Description

First reported in #4355 but this is a separate bug.

The memory map of a channel for the DJ-G7 has two unknown fields, one of 3 bytes and one of 12 bytes -- see the DJG7EG_MEM_FORMAT struct. They are currently just skipped. Apparently, an empty channel has each and every byte set to 0xff. If chirp is used to set a channel that was previously empty, the fields are filled with data entered by the user but the unknown fields remain 0xff since they are being skipped.

That appears to work just fine with the radio, but the official Alinco software doesn't like it when a non-empty channel has 0xff in those unknown fields. It produces an error and bars the user from reading the radio.

Steps to fix:

  1. Try to figure out what those fields are or at least find the content written for non-empty channels by the Alinco software- I believe this is 0x00.
  2. Modify the code to explicitly write 0xff and 0x00(?) respectively when writing empty and non-empty channels.
  3. Add a fix to the code where we change the content from 0xff to 0x00 if a channel is found to be non-empty.

The last step is to make such radios readable by the Alinco software again.


Files

Alinco_DJ-G7EG_20171024.img (106 KB) Alinco_DJ-G7EG_20171024.img Image demonstrating the issue, kindly provided by E. van Puffelen (see #4355) Mathias Weyland, 10/24/2017 11:15 AM
Alinco_DJ-G7EG_20171024.img (106 KB) Alinco_DJ-G7EG_20171024.img Emiel v, 10/25/2017 04:38 PM
chirp_bugfix_5275_v1.patch (4.47 KB) chirp_bugfix_5275_v1.patch Initial patch to address this Mathias Weyland, 10/26/2017 10:28 AM
chirp_bugfix_5275_v2.patch (5.24 KB) chirp_bugfix_5275_v2.patch Revisited v2 patch for this bug Mathias Weyland, 11/03/2017 02:28 AM
chirp_bugfix_5275_v3.patch (3.82 KB) chirp_bugfix_5275_v3.patch Mathias Weyland, 02/18/2018 03:52 PM

Related issues 1 (0 open1 closed)

Related to Bug #4355: Failed to read from Alinco DJ-G7ClosedMathias Weyland01/01/2017

Actions
Actions

Also available in: Atom PDF