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 » Thu Mar 02, 2023 9:51 am

VK3KYY wrote:
Wed Mar 01, 2023 8:36 pm
Do you have access to the build toolchain for the C7000 MCU which is used in many new radios. I think the CPU core in this chip is the Chinese CSky design, but there are many versions of this core.
GCC now supports some CSky processors, but possibly does not support the processor core used in the C7000
Reference to the public HR-C7000 User Manualhttps://www.connectsystems.com/products ... nt%201.pdf, and the HR-C7000 Chip User Manualhttps://www.connectsystems.com/products ... nt%202.pdf.

HR-C7000 is a SOC solution that integrates C-SKY CK803S MCU inside of it, C-SKY is now a legacy product of Alibaba's sub-company called T-Head, they are more focused on RISC-V products now.

CK803S is supported by gcc for specifing "-march=ck803 -mcpu=ck803s" refer to https://gcc.gnu.org/onlinedocs/gcc/C-SKY-Options.html
But maybe you need to build the toolchain by yourself refer to https://github.com/c-sky/toolchain-build
VK3KYY wrote:
Wed Mar 01, 2023 8:36 pm
I also tried to use Ghidra to analyse the GD-73 firmware, which uses the C7000, but selecting CSky as the processor did not produce valid decompilation
I am sorry that I don't know too much information about Ghidra C-SKY-related topics

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 » Thu Mar 02, 2023 9:52 am

VK3KYY wrote:
Wed Mar 01, 2023 10:46 pm
Try this experimental CPS

https://opengd77.com/downloads/CPS/Late ... .02.01.exe
I will check it later, thanks for your quick response!

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 » Thu Mar 02, 2023 10:18 am

VK3KYY wrote:
Wed Mar 01, 2023 10:49 pm
See https://www.youtube.com/watch?v=ScoVslqV5eY video I made a long time ago, buy it shows the UV380 PCB

Design of PCB is a lot different

I'm surprised that the baofeng radio works at all.

The PCB looks similar to the TYT MD-760 aka Radioddity GD-77, or the old Baofeng DM-1801, but I think the DM-1801 CPU is on the other side of the PCB, whereas this looks almost identical to the TYT MD-760
Yes, I think they are all based on the same "Reference Schematic Design", and then some of them changed some components for cost/supply-chain reasons, then the PCB layout was redesigned case by case.
VK3KYY wrote:
Wed Mar 01, 2023 10:49 pm
OpenRTx has some details of baofeng "md1702"

https://github.com/OpenRTX/OpenRTX/tree/md1702

But I think the model number is incorrect becuase MDxxxx is TYT DMxxxx is Baofeng code

Also RadioTool does not support a Baofeng 1702, so perhaps the data in OpenRTX is 1701/1802 ??

I compared the hw_config.h files in OpenRTx for 1702 and UV380 and they are identical except the 1702 does not have definitions for the rotary control

Does your radio have rotary control , like the UV380


Does the keypad work at all ??

Possibly the pin mapping on the CPU for the keypad is different
There must be a mistake in the naming, Baofeng is using DMxxxx code, I have no idea about this branch, thanks for your information, I will check it on my DM1702 when I have time recently.

VK3KYY
Posts: 7592
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 » Thu Mar 02, 2023 10:22 am

Re: Reference schematic

Because the layout of the PCB of the 1701 is completely different to the MD380UV, probably Baofeng would change change the pin connections from the CPU to make routing of the PCB easier

Some interfaces like the display (FSMC) and also the SPI and I2C can not be changed because there is not much flexibility in the configuation of the internal perhipherals in the MCU

But virually all pins can be configured as GPIO, so probably there was some change to the mapping of the keypad pins and possibly to other controls


Does the radio transmit and receive on VHF and UHF in both FM and DMR modes ?

Is it only the keypad which does not function correctly ?

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 » Thu Mar 02, 2023 10:57 am

BTW, When will the openMDUV380 source code be available to public?
Except porting to new Radio support, I hope I can contribute to this great project for CJK(Chinese,Japanese,Korean) full character multi-language display support, and colorful UI enhancement, and someother enhancements.
If you don't want too much "useless" changes added to your project, I can create another project based on your work if you hope so.
And because of my work, I have a lot of experiences on Chinese stm32 replacement MCUs which are using more and more new Radios.

S58SMS
Posts: 153
Joined: Mon Dec 20, 2021 8:00 am

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

Post by S58SMS » Thu Mar 02, 2023 11:47 am

If I buy 1701, any possibilites to start testing opengd on it? I would like to test and help you.

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 » Thu Mar 02, 2023 8:33 pm

After a few days' research, Here is the keypad pinmap of DM1701/DM1802, as a comparison, I also put MDUV380 on it.
Image
Last edited by BD4VOW on Fri Mar 03, 2023 6:17 am, edited 1 time in total.

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 » Thu Mar 02, 2023 8:37 pm

P1 & P2 key can be used like LEFT & RIGHT on MD760, on the DM-1802 which using exactly the same PCB, the UP & DOWN key looks more confortable.
Image

VK3KYY
Posts: 7592
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 » Thu Mar 02, 2023 8:42 pm

Thanks

I will need to make another build variant with different key map, possibly the way the rows and columns are strobed would also need to be changed



BTW.
Did you try the new CPS EXE?

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 » Thu Mar 02, 2023 9:01 pm

VK3KYY wrote:
Thu Mar 02, 2023 8:42 pm
BTW.
Did you try the new CPS EXE?
I have not tried yet, I will test it at weekend. I guess there must be no problem, If you didn't forget to change the the output Encrypted file header text following " OutSecurityBin" from "MD-9600" to "DM1701"

Post Reply