Products
Technology
SMS solutions
PBX systems
Databases
Robotics
Building robot hardware
Building electronics
Building robot software
Introduction/Protocols
Architecture
How to develop a devhandler
Line protocol
DeviceHandlers
Oz433Mhz Transceiver
OzAnalogJoystickController
OzBatteryController
OzBuzzerController
Example
OzButtonController
OzDCMotorControllerL298N
OzDHTController
OzDoorphoneController
OzEEPROMManager
OzGyroControllerMPU6050
OzIDManager
OzLCDController
OzNfcController
OzOpticalGateController
OzRegisterController
OzRGBLedController
OzRotaryController
OzServoController
OzStepCounter
OzStepperMotorMultiController
OzSwitchController
OzTemperatureController
OzTimer
OzUltraSonicController
Examples
Bootloader
Company


Oz Buzzer Controller

This protocol controls a buzzer connected to the microcontroller.

How to build a test circuit with a buzzer and an arduino mega?
Arduino codes are included.

I. "Welcome" event

Example

 c=welcome&id=A47vvH&type=OzBuzzerController&pos=2&t=2

Parameters

Parameter Type Range Functionality
c String "welcome" Identifies the welcome message.
type String "OzBuzzerController" Determines the type of the device.
id String 6 characters (numbers, uppercase and lowercase characters) The ID of the device which is chosen by the microcontroller.
pos Byte 0-255 Determines the position of the device on the list of the ID manager of the microcontroller. Please make sure there are no devices on the same position on the same microcontroller!
t Byte 0-255 Counts the number of events and responses sent combined. Counts from 0 to 255 then from 0 again.



II. Command from .Net

"Set Buzz" command

This command orders the buzzer to make a sound with a frequency and duration given in the parameters.

Example

c=setbuzz&freq=300&length=1000&t=0&id=A47vvH

Parameters

Parameter Type Range Functionality
c String "setbuzz" Identifies the command.
freq Ushort 0-65535 Frequency of the sound.
length Ushort 0-65535 Duration given in millisec.
t Byte 0-255 Counts the number of commands sent. Counts from 0 to 255 then from 0 again.
id String 6 characters (numbers, uppercase and lowercase characters) Identifies the device. The ID is never changed during communication.

Response

c=setbuzz_resp&id=A47vvH&freq=300&length=1000&t=3

Parameters

Parameter Type Range Functionality
c String "setbuzz_resp" Identifies the response.
freq Ushort 0-65535 Frequency of the sound.
length Ushort 0-65535 Duration given in millisec.
t Byte 0-255 Counts the number of events and responses sent combined. Counts from 0 to 255 then from 0 again.
id String 6 characters (numbers, uppercase and lowercase characters) Identifies the device. The ID is never changed during communication.



III. Event from the device

None



Copyright © 2000- - Ozeki Informatics Ltd. | info@ozeki.hu | Tel: +36 52 532 731
Home > Technology > Robotics > Building robot software > Introduction/Protocols > DeviceHandlers > OzBuzzerController
Page: 1573