mode (Hub mode)

Each port can be placed into one of four modes by using the mode command.

Syntax: (see Command structure)
Copy
mode m [p] [cp]
Parameter Description
m A valid mode character
p The port number
cp The charging profile
Response: (see 'Response structure)
Copy
>> 
mode parameters for Universal Firmware
Parameter Description

Value

Charge

The port is readied for charging a device, and can detect if a device is attached or detached. If a device is attached, the charger profiles enabled for that port are tried one by one. Then the device is charged using the profile that yielded the highest current. During the above, the port is disconnected from the host USB bus.

c
Sync

The port is attached to the host USB bus via a USB hub. The device may draw charging current from VBUS depending on the device capabilities.

s
Biased

Port is detected but no charging or syncing will take place.

b
Off Power to the port is removed. No charging occurs. No device attach or detach detection is possible. o
mode parameters for PDSync and TS3-C10 Firmware
Parameter Description

Value

Sync

The device can charge whilst communicating with the host connected to the hub.

c
Off Power (VBUS) to the port is removed. No charging occurs. No device attach or detach detection is possible. o
The port parameter

[p], is optional. It can be used to specify the port number. If left blank, all ports are affected by the command.

The charging profile parameter

[cp] is optional but can only be used when putting a single port into charge mode. If specified then that port will directly enter charge mode using the chosen profile.

Profile parameter Description
0 Intelligent charging algorithm which will select a profile 1-6
1 2.1A (Apple and others with short detection time)
2 BC1.2 Standard (This covers the majority of Android phones and other devices)
3 Samsung
4 2.1A (Apple and others with long detection time)
5 1.0A (Typically used by Apple)
6 2.4A (Typically used by Apple)
Examples

To turn off all ports:

Copy
mode o >>

To put just port 2 in charge mode:

Copy
mode c 2 >>

To put just port 4 in charge mode using profile 1:

Copy
mode c 4 1 >>