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
OzAnalogSensor
OzBatteryController
OzBuzzerController
OzButtonController
OzDCMotorControllerL298N
OzDHTController
OzDoorphoneController
OzEEPROMManager
OzGyroControllerMPU6050
OzIDManager
OzLCDController
OzNfcController
OzOpticalGateController
OzRegisterController
OzRGBLedController
OzRotaryController
OzServoController
OzStepCounter
OzStepperMotorMultiController
OzSwitchController
OzTemperatureController
OzTimer
OzUltrasonicController
Examples
Bootloader
Company


Oz Battery Controller

We will develop in the future

With this devicehandler you can set up and get information about the battery.

I. "Welcome" event

Example

c=welcome&id=IqlZci&type=OzBatteryController&pos=2&t=2

Parameters

Parameter Type Range Functionality
c String "welcome" Identifies the welcome message.
id String 6 characters (numbers, uppercase and lowercase characters) The ID of the device which is chosen by the microcontroller.
type String "OzBatteryController" Determines the type of the device.
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. Commands from .Net

"Config" command

This command configures the BatteryManager device.

Example

c=config&type=li-ion&maxcurrent=8.00&...&t=0&id=IqlZci

Parameters

Parameter Type Range Functionality
c String "config" Identifies the command.
type string li-ion / acid The type of the battery.
maxcurrent float 0-500 (amper) The maximum current (amper) the BatteryManager device can handle.
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

It responds directly after the configuration is complete. It has the same parameters as it's command.

c=config_resp&type=li-ion&maxcurrent=8.00&...&id=IqlZci&t=3

III. Events from the device

"BatteryDetails" event

This event is sent out in every minute. It contains actual details of the battery.

c=batterydetails&...&id=IqlZci&t=10

Parameters

Parameter Type Range Functionality
c String "batterydetails" Identifies the event.
t Byte 0-255 Counts the number events and responses sent combined. Counts from 0 to 255 then from 0 again.
id String 6 characters (numbers, uppercase and lowercase characters) The ID of the device which is chosen by the microcontroller.



"ShutDown" event

This event is sent if the microcontroller orders a full system shutdown:

  • When the battery is very low (1%).
c=shutdown&id=IqlZci&t=11

Parameters

Parameter Type Range Functionality
c String "shutdown" Identifies the event.
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) The ID of the device which is chosen by the microcontroller.



Arduino Code

SOON...


Dependencies

  • OzekiIDManager


  • Necessary Libaries for OzekiBatteryManager.h :

    Copyright © 2000- - Ozeki Informatics Ltd. | info@ozeki.hu | Tel: +36 1 371 0150
    Home > Technology > Robotics > Building robot software > Introduction/Protocols > DeviceHandlers > OzBatteryController
    Page: 1571