EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: jjoonathan on October 16, 2022, 12:30:26 am

Title: Instek GPP4323 Beep Volume: Can it be decreased?
Post by: jjoonathan on October 16, 2022, 12:30:26 am
I love this power supply but wow is the beeper loud. Is there an easy way to turn off the beeper (or make it quieter) while still resetting the supply settings on startup? Or do I have to take it apart?
Title: Re: Instek GPP4323 Beep Volume: Can it be decreased?
Post by: jjoonathan on October 16, 2022, 01:29:40 am
Yes, yes it can be. I made a service to sit on my server, wait for the GPP-4323 to appear, and kill the beeper.

They really should have made this an option but w/e.

Code: [Select]
sudo pip install ping3
cat | sudo tee /opt/gpp4323-beep-off.py >/dev/null <<HACK
gpp_address = 'gpp-4323.lan'

import ping3, socket, time
was_visible = False
while True:
    is_visible = bool(ping3.ping(gpp_address,timeout=.5))
    if not was_visible and is_visible:
        print(f"A wild GPP-4323 appeared.", flush=True)
        mission_accomplished = False
        attempt = 1
        while not mission_accomplished:
            try:
                with socket.create_connection((gpp_address,1026),timeout=.5/6) as s:
                    print("Beeper killed. Mission accomplished.", flush=True)
                    s.send(b':SYST:BEEP:STAT 0\nLOCAL\n')
                    mission_accomplished = True
            except:
                pass
            attempt += 1
            if attempt >= 10:
                print("We'll get 'em next time.")
                break
    if was_visible and not is_visible:
        print("Poof.", flush=True)
    if is_visible: # Didn't hit ping timeout, so manually rate limit here.
        time.sleep(0.5)
    was_visible = is_visible
HACK

cat | sudo tee /etc/systemd/system/gpp4323-beep-off.service >/dev/null <<THEPLANET
[Unit]
Description=Whenever GPP4323 appears, silence the beeper.
After=multi-user.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/python3 /opt/gpp4323-beep-off.py

[Install]
WantedBy=multi-user.target
THEPLANET

sudo systemctl daemon-reload
sudo systemctl enable gpp4323-beep-off
sudo systemctl start gpp4323-beep-off
sudo journalctl -fu gpp4323-beep-off




EDIT: bugfix
EDIT2: perffix
Title: Re: Instek GPP4323 Beep Volume: Can it be decreased?
Post by: Kean on October 16, 2022, 06:25:26 pm
 :-DD

Nice!
Title: Re: Instek GPP4323 Beep Volume: Can it be decreased?
Post by: nomead on October 17, 2022, 01:46:43 pm
So you have some dual socket Xeon server running just to keep the PSU quiet.  :-+

In my Quick 861DW hot air station i just stuffed the beeper with some blu tack.
Not much use for a Python script here.
Title: Re: Instek GPP4323 Beep Volume: Can it be decreased?
Post by: Otso on October 18, 2022, 07:58:40 pm
System -> Setting -> Beeper -> Off

System -> Power On -> Last

That doesn't do the trick for you? It does for me.
Title: Re: Instek GPP4323 Beep Volume: Can it be decreased?
Post by: jjoonathan on October 18, 2022, 09:15:11 pm
That turns off the beeper, but it does not reset the supply settings on startup. For almost all settings, I want a clean slate on startup -- except for the beeper, which I want to STFU. The problem with the existing settings is that I can't have both at once. Now I can :)

Quote
dual socket Xeon server
Think bigger. Every time I turn on my power supply, lights flicker across the Eastern Seaboard of the United States. Peaker plants fire up, AWS datacenter quick response teams get paged, and operations centers around the world hold their breath as they wait to find out if the world's infrastructure can cope with the majesty of my python script.
Title: Re: Instek GPP4323 Beep Volume: Can it be decreased?
Post by: Otso on October 18, 2022, 10:09:29 pm
Gotcha. I missed the "while still resetting the supply settings on startup" in your original post. Personally I want to continue where I left off, so for me it's perfect. But nice that you found a working solution!
Title: Re: Instek GPP4323 Beep Volume: Can it be decreased?
Post by: Pr Utser on October 16, 2023, 10:26:21 pm
You can tweak the beeper loudness with GPP firmware mod 1v01: firmware-mod-for-gwinstek-gpp-series-lab-bench-power-supply (https://www.eevblog.com/forum/projects/firmware-mod-for-gwinstek-gpp-series-lab-bench-power-supply)