Skip to content

42: Buzzer Control ​

Control the buzzer. Either pass duration and frequency, Or all fields without frequency.

Payload ​

FieldNameDescriptionTypeUnit
1DurationDuration of buzzer in millisecondsuint16
2Sound TypeA predefined sound type
Possible values:
  • 0: Solid
  • 1: Siren
  • 2: Beep Beep
  • 3: Ambulance
  • 4: FireTruck
  • 5: Positive1
  • 6: SlowBeep
  • 7: Alarm
uint8
3IntensityIntensity of buzzer. [0-2]. Work as frequency control for buzzer types (moving towards and away from resonance).uint8
4Run CountNumber of times to run the buzzeruint8
5FrequencyFrequency of buzzer of KHz.(if frequency is sent, only duration and frequency parameters will be inside the message)float32

Examples ​

0.5KHz for 20ms
Protocol
03
3
Length
2700
27 bytes
Type
4200
42 (Buzzer Control)
Header Count
0100
1
Header Types
01
1
Message ID
0414000000
14
Payload Count
0200
2
Payload Types
0105
1, 5
Duration
022000
20
Frequency
0400000063
0.5
Checksum
251238
61179
Siren sound for 2 seconds
Protocol
03
3
Length
2700
27 bytes
Type
4200
42 (Buzzer Control)
Header Count
0100
1
Header Types
01
1
Message ID
0449000000
49
Payload Count
0300
3
Payload Types
010203
1, 2, 3
Duration
0220807
2000
Sound Type
0101
1 (Siren)
Intensity
0101
1
Checksum
226126
32482

Code ​

For convenience, the following constants can be used to reference this message type.