amnemonic / Quansheng_UV-K5_Firmware

Quansheng UV-K5 Firmware
698 stars 131 forks source link

Customize TX DISABLE #16

Closed arturmaciag closed 1 year ago

arturmaciag commented 1 year ago

Is it possible to customize TX disable on any frequency ranges? Currently, mod_enable_tx_50to850 unlocks all bands.

amnemonic commented 1 year ago

Hello @arturmaciag, just pushed new commit with mod: mod_disable_tx_completely.py It is tested and works as you described. I have to work on mod which disables all ranges except for example PMR446 though.

arturmaciag commented 1 year ago

Thank you @amnemonic for your commitment. I am interested in blocking the TX of only one band (AirBand).

BTW: I don't see any bit pattern masking in enable or disable TX (register address 0x180E). How do you know which bits to set?

amnemonic commented 1 year ago

Thank for kind words. That is not bit pattern, it is ARM cpu instruction to return from function with False in register r0 informing in this way that this frequency is not allowed for TX and 0x180E happens to be the best place to decide where to jump in the code to get desired return value.

arturmaciag commented 1 year ago

Thank you for your AirBand Tx Disable feature! Good job! I have the last question in TX disable issue: how to unlock TX lower than 50MHz? @Tunas1337 has a mod to unlock 18 to 1300MHz. Your mod kitchen allows unlocking 50 to 850 MHz.

Tunas1337 commented 1 year ago

It's the same thing, really. Also, @fagci was the one who made that mod. I'll see if I can make it so that you can customize the TX range, but it would take time.

arturmaciag commented 1 year ago

Thank you!

RE3CON commented 1 year ago

mod_enable_tx_50to850.py enable tx from 50 to 600MHz instead of 850MHz ??? by changing bit at address to 5de0