Intermec ck1 Reference Guide
Chapter 2 — Configuring the CK1 System
CK1 SDK Programmer’s Reference Manual
27
If you want to change the default volume (for example 70) by hand, log
into the CK1 and type these commands:
into the CK1 and type these commands:
#echo “70” > /etc/config/default_buzzer
#sh /etc/config/es_set_config.sh
#sh /etc/config/es_set_config.sh
Changing the Volume by /proc
Another way to adjust the volume by hand is to log into the device and
type this command.
type this command.
#echo “a 70” > /proc/volume
This command temporarily changes the volume. The CK1 reloads the
default volume when it reboots.
default volume when it reboots.
Example Code
/////////////////////////////////////////////////////////////////
/*****************************************************************
* -------
* Purpose
* -------
* Buzzer functional sample code is based on buzzer library.
* User easily know how the library functions control buzzer.
*
* ----------------------------
* Behavior of this sample code
* ----------------------------
* Every test item controls action of buzzer according to respective function
of library.
*
* Extra Test Item:
* 't' and 'T' are to further test play sound function so they don't belong
to library.
*
* -----------------------
* How to Use this Program
* -----------------------
* According to "Buzzer Functional Test Menu"
*
*
***************************************************************************/
/////////////////////////////////////////////////////////////////
#include <eslib_buzzer.h>
//#define opt_num 9
#define NUM_cnt
/*****************************************************************
* -------
* Purpose
* -------
* Buzzer functional sample code is based on buzzer library.
* User easily know how the library functions control buzzer.
*
* ----------------------------
* Behavior of this sample code
* ----------------------------
* Every test item controls action of buzzer according to respective function
of library.
*
* Extra Test Item:
* 't' and 'T' are to further test play sound function so they don't belong
to library.
*
* -----------------------
* How to Use this Program
* -----------------------
* According to "Buzzer Functional Test Menu"
*
*
***************************************************************************/
/////////////////////////////////////////////////////////////////
#include <eslib_buzzer.h>
//#define opt_num 9
#define NUM_cnt
12
struct buzzer_param_stru {
unsigned long freq;
unsigned long length;
char volume;
}buzzer_config;
char * Str_Freq[NUM_cnt] = {"Do", "Re", "Mi", "Fa", "Sol", "La", "Si", "C+",