ACS Protocol

Charger Protocol

Probing and Connection

Chan

From CCU to Charger

Chan

From Charger to CCU

Meaning

360

ACS,hello,CHARGER

Probe for a control system.

360

ACS,welcome,device,information[...]

Controller reports its existence. For a CCU, device=ccu. Other devices may report differently, but the charger ignores anything except ccu.

360

ACS,interface,CHARGER

Request an interface.

360

ACS,interface,channel

Provide the charger with a communication channel. Use a large random negative number.

360

ACS,refuse,reason

The CCU may refuse the connection.

Once connected, the charger and CCU communicate exclusively on the specified channel.


Initialization Messages

Sent by CCU After Connection (and at any time later):

Chan

From CCU to Charger

Meaning

channel

ACS,powertype:EL

Indicates the unit uses electrical power. Required for charging to proceed.

channel

ACS,maxcharge:maxcharge

Specifies the unit's maximum charge capacity in ticks.

Requested by Charger After Connection:

Chan

From Charger to CCU

Meaning

channel

ACS,chargersummary:

Request information about the unit's current charge state.

channel

Reply Format: power,chargepct,tickstofull

power: 0 = shutdown, 1 = active. chargepct: 0–100 (dead to fully charged). tickstofull: Ticks needed to fully charge.


Normal Charging Sequence

Chan

From CCU to Charger

Chan

From Charger to CCU

Meaning

channel

ACS,charging:1

Indicates charging has started. (No reply expected.)

channel

ACS,chargeseconds:n

Provides n ticks of charge. (Synonym: setcharge+:n).

channel

ACS,chargeticks:ticks

CCU reports charge level changes, including any increases.

channel

ACS,charging:0

Indicates charging has ended.


Additional Messages (Sent by CCU Anytime)

Chan

From CCU to Charger

Meaning

channel

ACS,dump:key,string

Debugging information for a specific script in the charger.

channel

ACS,unitdisconnect:n

Allows (n=1) or prevents (n=0) the unit from disconnecting while charging.

channel

ACS,power:n

Unit power on (n=1) or off (n=0).

channel

ACS,stopcharge:

Signals the charger to stop charging.

channel

ACS,travel:n

Allows (n=1) or prevents (n=0) the unit from moving.


Disconnect Sequence

Chan

From CCU to Charger

Chan

From Charger to CCU

Meaning

channel

ACS,disconnect:

Tells the CCU to disconnect. (Charger expects a goodbye response.)

channel

ACS,goodbye:

Indicates CCU is disconnecting. (May be unsolicited if CCU initiates disconnection.)

360

ACS,goodbye:

Sent by the charger if the CCU resets, losing channel information.

Last updated