Skip to main content

Charger Protocol

Probing and Connection

ChannelFromToMeaning
360CCUChargerACS,hello,CHARGER - Probe for a control system.
360ChargerCCUACS,welcome,device,information[...] - Controller reports existence.
360CCUChargerACS,interface,CHARGER - Request an interface.
360ChargerCCUACS,interface,channel - Provide communication channel (large random negative number).
360CCUChargerACS,refuse,reason - CCU may refuse the connection.
Once connected, the charger and CCU communicate exclusively on the specified channel.

Initialization Messages

Sent by CCU after connection:
ChannelMessageMeaning
channelACS,powertype:ELUnit uses electrical power. Required for charging.
channelACS,maxcharge:maxchargeUnit’s maximum charge capacity in ticks.
Requested by Charger after connection:
ChannelMessageMeaning
channelACS,chargersummary:Request information about the unit’s current charge state.
Reply Format: power,chargepct,tickstofull

Normal Charging Sequence

ChannelFromToMeaning
channelCCUChargerACS,charging:1 - Indicates charging started.
channelChargerCCUACS,chargeseconds:n - Provides n ticks of charge.
channelCCUChargerACS,chargeticks:ticks - CCU reports charge level changes.
channelCCUChargerACS,charging:0 - Indicates charging ended.

Additional Messages (Sent by CCU Anytime)

ChannelMessageMeaning
channelACS,dump:key,stringDebugging info for a specific script in the charger.
channelACS,unitdisconnect:nAllow (n=1) or prevent (n=0) unit disconnection while charging.
channelACS,power:nUnit power ON (n=1) or OFF (n=0).
channelACS,stopcharge:Signals the charger to stop charging.
channelACS,travel:nAllow (n=1) or prevent (n=0) the unit from moving.

Disconnect Sequence

ChannelFromToMeaning
channelCCUChargerACS,disconnect: - Tell CCU to disconnect.
channelCCUChargerACS,goodbye: - Indicates CCU is disconnecting.
360ChargerCCUACS,goodbye: - Sent by charger if CCU resets (losing channel info).