Skip to content

Instantly share code, notes, and snippets.

@sunapi386
Last active April 13, 2017 19:48
Show Gist options
  • Select an option

  • Save sunapi386/4419f12e421ec0db0562d3087025cb62 to your computer and use it in GitHub Desktop.

Select an option

Save sunapi386/4419f12e421ec0db0562d3087025cb62 to your computer and use it in GitHub Desktop.
cambrionix
>> help
mode <m> [p] Set mode <m> for port [p] or all ports
mode c p f Set charge mode for port p using profile f if attached
state [p] Show state for port [p] or all ports
system Show hardware and firmware information
health Show voltages, temperature, error & boot flag
cef Clear error flags
sef <flag> Set error flag. One of: 5UV 5OV 12UV 12OV OT
crf Clear rebooted flag
limits Show voltage & temperature limits
list_profiles List all profiles on system
en_profile <i> <1|0> Enable (1) or disable (0) profile <i>
set_profiles <p> [l] Set profiles <l> associated with port <p>
get_profiles <p> List profiles associated with port <p>
logc <s> Report mA for each port every <s> seconds
loge <s> Report events and state for all ports every <s> seconds
l Live view
beep [ms] Make console beep for [ms] milliseconds
cls Clear this screen
reboot [watchdog] Reboot (optionally by using watchdog timeout)
id Show id string
bd Show board description
serial_speed Enable increase of serial speed
set_delays Set various internal delays
host [auto|manual|charge|off] Show if USB host is present, and set mode change
NOTES:
[p] is port number. Range 1..15. Omit for 'all'
<m> is port mode: c=Charge, s=Sync, o=Off, b=Biassed
<l> is a list of profile IDs. Blank to use all profiles.
<i> is a single profile ID.
Parameters: Optional are shown in [ ]. Compulsory in < >.
Tab key re-runs previous command. Cursor-up recalls last command.
EXAMPLES:
mode c 5 Set port 5 to charge mode
mode o Turn off all ports
state 5 Reveal state of port 5
state Reveal state of all ports
>> system
cambrionix PP15S 15 Port USB Charge+Sync
Hardware: PP15S
Firmware: 1.68
Compiled: Feb 14 2017 17:30:26
Group: -
Panel ID: Absent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment