amnemonic / Quansheng_UV-K5_Firmware

Quansheng UV-K5 Firmware
620 stars 124 forks source link

Receive on NOAA Frequ. Tabel requires a 1050 Hz Tone to demute #63

Open RE3CON opened 11 months ago

RE3CON commented 11 months ago

To receive and open squelch on NOAA Frequency or replaced PMR or other freq. require a 1050 Hz Tone to open Squelch. You can use any online tone generator and transmit a 1050 Hz Tone for testing.

a) Is it possible to remove this requirement sending a 1050Hz tone? b) implement a 1050 Tone by push PTT and a combination of buttons (maybe use and change one DTMF Tone e.g. DTMF tone on button M or exit,...) c) replace roger beep first tone with 1050Hz //Tunas1337 #61 mod_roger_mototrbo_like.py editing Ton1 or 2 doesn't work to change Hz values. d) when two K5 on NOAA add 1050Hz at the beginning of a transmission or at the end of TX

I found this from NOAA receiver specs in relation: "The 1050 Hz tone will also demute the receiver, activate a flashing LED and cause the NWS audio" Tonegenerator: e.g.Onlinetongenerator.c o m

IK8JHL commented 10 months ago

if it may be of interest, I created a script to modify the 1750Hz tone, if you want you can insert the 1050Hz to open the NOOA channels

RE3CON commented 10 months ago

if it may be of interest, I created a script to modify the 1750Hz tone, if you want you can insert the 1050Hz to open the NOOA channels

would be great. Can you share this script please?

IK8JHL commented 10 months ago

mod_change_Tone_1750Hz.zip in your build.bat need to add also this line:

python mod_change_Tone_1750Hz.py temp\fw.dec.bin
IK8JHL commented 10 months ago

If you want, change the frequencies of the tone burst.

tone = int(1750) # change 1750 to any frequency in Hz

--------------------- do not modify below this line ---------------------------------------------------

import os,sys,struct print('Running',os.path.basename(sys.argv[0]),'mod...')

fw = bytearray(open(sys.argv[1],'rb').read())

if fw[0x29cc] == 0xd6 and fw[0x29cd] == 0x06 : print('Changing tone burst frequency to',tone,'Hz') fw[0x29cc:0x29cc+4] = struct.pack('<I',tone)

else: print('ERROR: Cant find function')

open(sys.argv[1],'wb').write(fw)

RE3CON commented 10 months ago

great just implemented to my fork, should be added here too.

IK8JHL commented 10 months ago

if you like follow my fork , I also added an increment for the ABR

marusc1 commented 10 months ago

Is it possible to remove the waiting for tone function, so the weather scanning could be used on changed frequencies? Without it changing the frequencies is useless.

jorgok commented 9 months ago

Why not just disable the NOAA 1050hz receive tone?

Lar-Sen commented 8 months ago

I disabled the need for 1050Hz toneburst while listening or scanning, for 2.01.31 version. Please check my repo.

jorgok commented 8 months ago

I have the Quansheng UV-5R plus version. I don't see any option to disable the 1050Hz tone burst!

On Mon, 16 Oct 2023 at 04:27, LarSeN @.***> wrote:

I disabled the need for 1050Hz toneburst while listening or scanning, for 2.01.31 version. Please check my repo.

— Reply to this email directly, view it on GitHub https://github.com/amnemonic/Quansheng_UV-K5_Firmware/issues/63#issuecomment-1763979391, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDCOV5ODRUHGAASZDMZJRZTX7TVXPANCNFSM6AAAAAA23TMSPU . You are receiving this because you commented.Message ID: @.***>

Lar-Sen commented 8 months ago

@jorgok Please have a look at mod_disable_1050hz_noaa.py in my repo. This effectively disables the need for 1050Hz toneburst. NOAA function then permits classic SQ opening, and NOAA background scanning just works like a normal scanner.

Anyway you may want to assign a different tone to each of PTT+F2 and "longpress" F1 methods : mod_change_burst_tones.py is what you need (edit toneptt and toneside variables)