Welcome! Log In Create A New Profile

Advanced

NSA320: how to control onboard buzzer ?

Posted by shivahoj 
NSA320: how to control onboard buzzer ?
August 03, 2015 10:32AM
Hello,
i want to control the onboard buzzer of a nsa320 , maybe by echoing stuff into a file under /sys/class/whatever.
the purpose is to have an audible feedback in the event of a major malfunction(like overtemperature , fan failure, smartctl etc.)

By googling "nsa320 buzzer", i found in this post

http://lxr.free-electrons.com/source/arch/arm/boot/dts/kirkwood-nsa320.dts

on line 110 that there is a compatibility issue between driver and hardware.
Does this apply to the current latest kernel too?

if not, what do i have to echo to which file to switch on/off the beeper?


Dirk
Re: NSA320: how to control onboard buzzer ?
August 03, 2015 03:24PM
Dirk,

Try this to see if you can turn it on and off:
/bin/echo 44 > /sys/class/gpio/export
/bin/echo "out" > /sys/class/gpio/gpio44/direction
/bin/echo 1 > /sys/class/gpio/gpio44/value
/bin/echo 0 > /sys/class/gpio/gpio44/value

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA320: how to control onboard buzzer ?
January 03, 2022 02:19PM
Hello.

Any update about this?

I do

/bin/echo 1 > /sys/class/gpio/gpio44/value
/bin/echo 0 > /sys/class/gpio/gpio44/value

and I can ear the buzzer connecting and disconnecting (a little click in the buzzer) but "beep" command doesn't works

Thanks
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: