Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

User avatar
BD4VOW
Posts: 67
Joined: Sat Feb 18, 2023 3:38 am
Location: Suzhou,China

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by BD4VOW » Sat Mar 04, 2023 9:30 am

VK3KYY wrote:
Sat Mar 04, 2023 9:13 am
Do any CPS transfer functions work.

Did you try downloading the screengrab ?
Or backup the MCU ROM ?
Backup Flash & Backup MCU ROM works.
But after Write voice prompts, I can't set it in setting menu.
Download screengrab function works, but downloaded image content is incorrect.
below image for your information:
Image
I think CPS is recognizing the DM1701 as GD77.
VK3KYY wrote:
Sat Mar 04, 2023 9:13 am
Does P1 and P2 do anything at the moment

I mapped them to Left and Right, buy at the moment there is an override so that on the Channel and VFO screens Up is converted to Right and Down is converted to Left
I tested, In Setting menu, P1 & P2 works as LEFT & RIGHT.
VK3KYY wrote:
Sat Mar 04, 2023 9:13 am
I can remove this conversion of Up and Down for the DM-1701
OK, I will test it after you done.

VK3KYY
Posts: 7473
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by VK3KYY » Sat Mar 04, 2023 9:31 am

Re: I think CPS is recognizing the DM1701 as GD77.

OK. That is possible

I will check.

VK3KYY
Posts: 7473
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by VK3KYY » Sat Mar 04, 2023 9:41 am

Try this version

downloads/DM1701/Firmware/ba293fcc67dc4 ... 723ba10318

You are correct, the firmware was not reporting a valid radio type ID to the CPS, so the CPS would not know the radio type and would probably default to treating the radio as a GD77 type

VK3KYY
Posts: 7473
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by VK3KYY » Sat Mar 04, 2023 10:10 am

This version removes some key re-mapping of Up and Down

However it is probably not the final solution and may cause problems

https://opengd77.com/downloads/DM1701/F ... 40ebead208


It also has the radio type ID fix

VK3KYY
Posts: 7473
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by VK3KYY » Sat Mar 04, 2023 10:30 am

BD4VOW wrote:
Sat Mar 04, 2023 7:36 am
Video for your information

youtu.be/hHamsSJZq5w
Thanks

I now watched the video

Hopefully when you try the latest firmware I posted, the CPS will recognise as UV380 type

Programming would not work correctly as GD77 type, because the UV380 and DM-1701 etc do not have EEPROM, and the CPS has to send commands differently to write all data to Flash memory, even though the address in memory is the same on both radios.


Re: Battery voltage

Change the

Options -> Display Options -> Battery to show voltage

Then tell me the actual voltage of the battery and the voltage which is displayed by the firmware.

At the moment the calculation from ADC value to display value is

Code: Select all

batteryVoltage = ((int)adcVal[1] / 41.4) + ((nonVolatileSettings.batteryCalibration & 0x0F) - 5);
nonVolatileSettings.batteryCalibration defaults to 5 so this value is (5 - 5) = 0, so can be ignored.

So it should be possible to calculate the ADC divider coeffecient by measuring the actual battery voltage and also the displayed voltage

Value of batteryVoltage variable is in units of 0.1V

i.e 10 = 1V

For Example, the MD-380UV battery voltage is 7.2V ADC value is 2981


BTW.

Donor official firmware only needs to be selected the first time. The CPS stores the location of the official firmware file and uses it for subsequent uploads

VK3KYY
Posts: 7473
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by VK3KYY » Sat Mar 04, 2023 10:38 am

FYI.

I can't make any more changes today as its now 21:30 local time and I'm tired

I will check the forum tomorrow morning to see if the latest firmware has fixed some problems

User avatar
BD4VOW
Posts: 67
Joined: Sat Feb 18, 2023 3:38 am
Location: Suzhou,China

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by BD4VOW » Sat Mar 04, 2023 10:54 am

VK3KYY wrote:
Sat Mar 04, 2023 10:38 am
FYI.

I can't make any more changes today as its now 21:30 local time and I'm tired

I will check the forum tomorrow morning to see if the latest firmware has fixed some problems
Thank you so much! I will start to test your latest release, good night!

User avatar
BD4VOW
Posts: 67
Joined: Sat Feb 18, 2023 3:38 am
Location: Suzhou,China

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by BD4VOW » Sat Mar 04, 2023 3:34 pm

VK3KYY wrote:
Sat Mar 04, 2023 10:30 am
Hopefully when you try the latest firmware I posted, the CPS will recognise as UV380 type

Programming would not work correctly as GD77 type, because the UV380 and DM-1701 etc do not have EEPROM, and the CPS has to send commands differently to write all data to Flash memory, even though the address in memory is the same on both radios.
Yes, after flashed the latest firmware, the codeplug read & write worked correctly!
VK3KYY wrote:
Sat Mar 04, 2023 10:30 am
Re: Battery voltage

Change the

Options -> Display Options -> Battery to show voltage

Then tell me the actual voltage of the battery and the voltage which is displayed by the firmware.
Two photoes for your information.
Image
Image

About the arrow keys & knob behaviour, I tested on last firmware build very carefully and listed the current situation below:
1. In both VFO & Zone Channel List Mode:
-->General:
------>SK3+UP: Power +
------>SK3+DOWN: Power -
------>LEFT(P1): n/a[beep]
------>RIGHT(P2): n/a[beep]
------>SK3+LEFT(P1): n/a[No beep]
------>SK3+RIGHT(P2): n/a[beep]
-->Analog Channel:
------>UP: Squelch +
------>DOWN: Squelch -
-->Digital Channel:
------>UP: RG member previous
------>DOWN: RG member next
-->In VFO:
------>KNOB:Freq step up/Freq step down
-->In Zone Channel List:
------>KNOB:ch +/ ch -
2. In Menu:
-->General:
------>UP/SK3+UP: Menu Item +
------>DOWN/SK3+DOWN: Menu Item -
------>KNOB:Menu option(value) +/Menu option(value) -
------>LEFT(P1): Menu option(value) -
------>RIGHT(P2): Menu option(value) +
------>SK3+LEFT(P1): n/a[No beep]
------>SK3+RIGHT(P2): Menu option(value) +

This is ok for me now, this radio is already a very sharp knife now!

but if you have time some day or when you receive your MD-1701 radio, I personally suggest the MD-760 style navigation maybe more comfortable and easily to handle, which the detail differences compare to upon are:
1.In both VFO & Zone Channel List Mode:
-->General:
------>SK3+LEFT(P1): Power -
------>SK3+RIGHT(P2): Power +
-->Analog Channel:
------>LEFT(P1): Squelch -
------>RIGHT(P2): Squelch +
-->Digital Channel:
------>LEFT(P1): RG member previous
------>RIGHT(P2): RG member next
-->In VFO:
------>UP&DOWN/KNOB:Freq step up/Freq step down
-->In Zone Channel List:
------>UP&DOWN/KNOB:ch +/ ch -

VK3KYY
Posts: 7473
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by VK3KYY » Sat Mar 04, 2023 7:32 pm

OK

I am glad that the radio is now usable.

Hopefully my DM-1701 will arrive soon, and then it will be much easier for me to make all the necessary changes to improve the navigation

Re:Battery

I will try to calculate the correct divider, can you also wait for a lower battery voltage e.g. perhaps 6.6V and tell me the value displayed by the firmware


BTW.

I released the latest GD77 sources yesterday

Perhaps you can experiment with adding Chinese language support to that radio, however there is not much ROM space remaining , so you should use the Japanese build because this only contains the English and Japanese texts


I do not know the normal method for storing the Chinese font on devices with limited ROM. Even the Flash memory in the GD77 may not be large enough to store all Chinese characters

Some people have replaced the GD77 Flash memory with 16Mb version, so you could perhsps modify your GD77 to increase the Flash memory.

Probably you would also need to change a lot in all the GUI files, because the sizes of Chinese characters would need to be larger
But the GUI files we use in the UV380 and MD9600 are taken from the Gd77 versions with only some small changes, so if you make a Chinese version of OpenGD77 you could use most of the code in the Dm1701 etc

VK3KYY
Posts: 7473
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Baofeng DM-1701/Baofeng DM-1802/Retevis RT-84 running latest OpenMDUV380(openGD77)

Post by VK3KYY » Sat Mar 04, 2023 8:19 pm

New version to perhaps fix the battery voltage

https://opengd77.com/downloads/DM1701/F ... a8df0ea2ea

also in the Latest folder



I averaged your two readings and used this to calculate a new battery divider coeffecient which I hope will be better

But it may still need some small changes

Post Reply