md380tools icon indicating copy to clipboard operation
md380tools copied to clipboard

Change Channel power down the GPS on MD380G .

Open virtualrobotix opened this issue 7 years ago • 4 comments

Dear Developer, i'm testing the MD380G Radio and found some iusse on it . Some i solved changing the GPS antenna , but other is not simple to solve because my opinion is that on GPS there isn't the backup battery . So the other iusse in the software is that when you change the channel and going on channel not properly configurated for gps the gps is power down and when you switch to other channel with gps the gps restart in cold condition so need a lot of time to retake a correct gps lock. I try to check in the firmware where is manage the switch on and switch off of gps but i don't found the part of code where the power of gps is controlled ... So i love coding in .c if you can help to understand more about the code architecture i can produce and test a patch and commit it to the git . Best Roberto Navoni

virtualrobotix avatar Mar 16 '17 08:03 virtualrobotix

Howdy Roberto,

Our C code consists only of patches to Tytera's closed source binaries, and we haven't reverse engineered much of the GPS yet.

Do you know which pin from the STM32 controls the GPS power? If so, we can search the stock firmware for functions that use that pin, and patch them to change the behavior.

-Travis

travisgoodspeed avatar Mar 16 '17 15:03 travisgoodspeed

I'll check during the week what's the pin ... so i thought that the .c code wasn't fully complete because i don't found a lot of code :) Great Job guys 🥇

virtualrobotix avatar Mar 16 '17 20:03 virtualrobotix

Hi Roberto

have you found what PIN controls the GPS power state? I own TYT MD-390G (essentially same to yours but cover).

Thanks a lot Jiri

ok2it avatar May 23 '17 06:05 ok2it

GPS power is controlled with PC12 (Pin 80).

There is a NPN + PNP transistor pair switching the GPS power supply, so a high logic level should power up the GPS module.

md390g gps switching

ghost avatar Jun 28 '17 20:06 ghost