Port this firmware to Md380 and others...

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

Re: Port this firmware to Md380 and others...

Post by VK3KYY » Thu Feb 20, 2020 2:20 am

4I1RAC wrote:
Thu Feb 20, 2020 2:07 am
Retevis RT8, Retevis RT3, TYT MD-380 and MD390 all still use C5000.

The newer MD-UV380 and MD-UV390 use C6000.

There's also the MD-2017 which is essentially the same as the Retevis RT82, which I believe also use the C6000 chip.

Maybe it would be easier to port there?
I doubt there is much difference between the C5000 and C6000.

The C6000 has FM processing abilities, which the C5000 may not have, but they are not used by the GD-77 and we have no documentation on how to use the FM facilities.

The GD-73 uses a C7000, but that is completely different as it seems to contain a CPU inside the DMR chip hence the GD-73 does not have a separate CPU chip.


What RF chip does these other radios use. I thought perhaps the MD-380 used the same RF chip as the GD-77, i.e the AT1846S, but perhaps it doesn't

User avatar
DU2XXR
Posts: 191
Joined: Thu Nov 28, 2019 5:25 am
Location: Philippines
Contact:

Re: Port this firmware to Md380 and others...

Post by DU2XXR » Thu Feb 20, 2020 2:34 am

I recall that the MD-UV390 does utilize the same RF chip. I'll do some research on the MD380.

User avatar
DU2XXR
Posts: 191
Joined: Thu Nov 28, 2019 5:25 am
Location: Philippines
Contact:

Re: Port this firmware to Md380 and others...

Post by DU2XXR » Thu Feb 20, 2020 2:39 am

VK3KYY wrote:
Thu Feb 20, 2020 2:20 am
4I1RAC wrote:
Thu Feb 20, 2020 2:07 am
Retevis RT8, Retevis RT3, TYT MD-380 and MD390 all still use C5000.

The newer MD-UV380 and MD-UV390 use C6000.

There's also the MD-2017 which is essentially the same as the Retevis RT82, which I believe also use the C6000 chip.

Maybe it would be easier to port there?
I doubt there is much difference between the C5000 and C6000.

The C6000 has FM processing abilities, which the C5000 may not have, but they are not used by the GD-77 and we have no documentation on how to use the FM facilities.

The GD-73 uses a C7000, but that is completely different as it seems to contain a CPU inside the DMR chip hence the GD-73 does not have a separate CPU chip.


What RF chip does these other radios use. I thought perhaps the MD-380 used the same RF chip as the GD-77, i.e the AT1846S, but perhaps it doesn't
Would this help?

https://www.qsl.net/kb9mwr/projects/dv/ ... 0MD380.pdf

User avatar
DU2XXR
Posts: 191
Joined: Thu Nov 28, 2019 5:25 am
Location: Philippines
Contact:

Re: Port this firmware to Md380 and others...

Post by DU2XXR » Thu Feb 20, 2020 2:42 am

The MD2017 does use the AT1846. I believe the dualband MD-UV380 and 390 might also do so, since they are contemporaries of the MD2017.

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

Re: Port this firmware to Md380 and others...

Post by VK3KYY » Thu Feb 20, 2020 2:47 am

4I1RAC wrote:
Thu Feb 20, 2020 2:42 am
The MD2017 does use the AT1846. I believe the dualband MD-UV380 and 390 might also do so, since they are contemporaries of the MD2017.

OK. Well, those would be easier to port to.

User avatar
DU2XXR
Posts: 191
Joined: Thu Nov 28, 2019 5:25 am
Location: Philippines
Contact:

Re: Port this firmware to Md380 and others...

Post by DU2XXR » Thu Feb 20, 2020 2:51 am

VK3KYY wrote:
Thu Feb 20, 2020 2:47 am
4I1RAC wrote:
Thu Feb 20, 2020 2:42 am
The MD2017 does use the AT1846. I believe the dualband MD-UV380 and 390 might also do so, since they are contemporaries of the MD2017.

OK. Well, those would be easier to port to.
I don't have the coding skills, but you have my support elsewhere (documentation, testing, etc).

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

Re: Port this firmware to Md380 and others...

Post by VK3KYY » Thu Feb 20, 2020 11:39 am

FYI

I opened my Baofeng DM-1801 this evening to try to find out the connections between the CPU and the LED's and the audio amp etc etc etc

One thing which is different between the GD-77 and the Baofeng, is that it does not use the same audio amplifier.
It uses a TDA2822 instead of a LM4951

The TD2822 does not have an "enable" pin, so they seem to be using a transistor to turn the power to the TDA2822 on and off.

Most other things seem very similar, but the PCB layout is a lot different with the MCU (CPU) on the back of the PCB, hence the pins they use on the MCU to connect to the LED's and the amp control and audio switches are different :-(

I think I found the LED connections and possibly the audio amp enable and the audio switch control pins, but I'm not 100% confident.

I'll probably try building a custom version and see if I can get the FM to work, which will prove whether I got the pins right so far !

User avatar
EB3AM
Posts: 204
Joined: Fri Jan 24, 2020 1:40 pm
Location: Catalonia, not Spain
Contact:

Re: Port this firmware to Md380 and others...

Post by EB3AM » Thu Feb 20, 2020 11:43 am

VK3KYY wrote:
Thu Feb 20, 2020 11:39 am
FYI

I opened my Baofeng DM-1801 this evening to try to find out the connections between the CPU and the LED's and the audio amp etc etc etc

One thing which is different between the GD-77 and the Baofeng, is that it does not use the same audio amplifier.
It uses a TDA2822 instead of a LM4951

The TD2822 does not have an "enable" pin, so they seem to be using a transistor to turn the power to the TDA2822 on and off.

Most other things seem very similar, but the PCB layout is a lot different with the MCU (CPU) on the back of the PCB, hence the pins they use on the MCU to connect to the LED's and the amp control and audio switches are different :-(

I think I found the LED connections and possibly the audio amp enable and the audio switch control pins, but I'm not 100% confident.

I'll probably try building a custom version and see if I can get the FM to work, which will prove whether I got the pins right so far !
Please Clark, get some rest! 8-)

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

Re: Port this firmware to Md380 and others...

Post by VK3KYY » Mon Feb 24, 2020 5:37 am

I've updated the build system and code, so that it will support multiple hardware platforms (radios), as long as they use the MK22 MCU

https://github.com/rogerclarkmelbourne/ ... ree/dm1801

For the STM32 based radio's we'll need a completely different build environment, which I don't have time for at the moment

This branch of the code does NOT have a functioning version of the OpenGD77 firmware for the DM-1801, it just sets things up so that the code can be changed to support the DM-1801

i.e You can now build for DM-1801 and it should output a firmware file that is compatible to be uploaded to a DM-1801

The only thing I have managed to modify so far in the code, is the green and red LEDs, so that the green LED is now turning on when the squelch is open, which is correct. There is still no FM signal audible but its a small bit of progress.

TA2ISO
Posts: 19
Joined: Sun Feb 16, 2020 1:41 pm
Location: Istanbul

Re: Port this firmware to Md380 and others...

Post by TA2ISO » Sat Feb 29, 2020 9:40 pm

Is there any chance for porting OpenGD77 to RT3S in the future ? I mean hardware wise, which radio would be the next possible candidate in terms of compatibility ? Thank you.

Post Reply