Download Print this page

Socket ScanAPI Reference Manual page 101

Advertisement

Socket ScanAPI Reference
0x0002
kSktScanSoundFrequencyHigh
0x00C8
0x0064
kSktScanSoundFrequencyLow
0x00C8
0x0064
The Get operation requires its property byte value to be set to the action the
application would like to retrieve for the sound configuration. The Get Complete
operation returns an array of bytes with the first word as the sound action followed
by two bytes of the number of tones, and then the six bytes required for each tone.
Format of the Get Complete Array:
Offset
Size
0
2 bytes
2
2 bytes
4
2 bytes
6
2 bytes
8
2 bytes
...
...
The Set operation follows the same principle with its property type set to an array,
with the first word set to the action that needs to be modified, the following two
bytes set to the number of tones that must be played when this action occurs, and
followed by six bytes for each tone.
Format of the Set Array:
Offset
Size
0
2 bytes
2
2 bytes
4
2 bytes
6
2 bytes
8
2 bytes
...
...
C/C++:
The constant definition can be found in the SktScanPropIds.h file.
Java:
The constant definition can be found in
com.SocketMobile.ScanAPI.ISktScanProperty.values.soundConfig
© 2013 Socket Mobile, Inc.
Description
Sound Action identifier
Number of tones
Tone 1 frequency
Tone 1 Duration
Tone 1 Pause
Repeat the last 6 bytes for the next tone
Description
Sound Action identifier
Number of tones
Tone 1 frequency
Tone 1 Duration
Tone 1 Pause
Repeat the last 6 bytes for the next tone
Sound
2 tones
Tone 1: frequency High
Tone 1: duration 200ms
Tone 1: pause 100ms
Tone 2: frequency Low
Tone 2: duration 200ms
Tone 2: pause 100ms
101/152

Advertisement

loading
Need help?

Need help?

Do you have a question about the ScanAPI and is the answer not in the manual?

Subscribe to Our Youtube Channel