USB Tester Pinout and Protocol

Updated: All Leave a Comment

[cs_content][cs_element_section _id=”1″][cs_element_row _id=”2″][cs_element_column _id=”3″][cs_element_image _id=”4″][/cs_element_column][/cs_element_row][cs_element_row _id=”10″][cs_element_column _id=”11″][cs_element_image _id=”12″][/cs_element_column][/cs_element_row][/cs_element_section][cs_section parallax=”false” separator_top_type=”none” separator_top_height=”50px” separator_top_angle_point=”50″ separator_bottom_type=”none” separator_bottom_height=”50px” separator_bottom_angle_point=”50″ style=”margin: 0px;padding: 45px 0px;”][cs_row inner_container=”true” marginless_columns=”false” style=”margin: 0px auto;padding: 0px;”][cs_column fade=”false” fade_animation=”in” fade_animation_offset=”45px” fade_duration=”750″ type=”1/1″ style=”padding: 0px;”][x_custom_headline level=”h2″ looks_like=”h3″ accent=”false”]Serial Output[/x_custom_headline][/cs_column][/cs_row][cs_row inner_container=”true” marginless_columns=”false” style=”margin: 0px auto;padding: 0px;”][cs_column fade=”false” fade_animation=”in” fade_animation_offset=”45px” fade_duration=”750″ type=”1/1″ style=”padding: 0px;”][cs_text]{ “a”:{ “max”:1.20, “min”:0.70, “avg”:0.95}, “v”:{ “max”:5.00, “min”:5.00, “avg”:5.00}, “mah”:0.01, “mwh”:0.04, “shunt”:0.07, “dp”:1.06, “dm”:1.08, “ram”:1420, “time”:24200}[/cs_text][/cs_column][/cs_row][cs_row inner_container=”true” marginless_columns=”false” style=”margin: 0px auto;padding: 0px;”][cs_column fade=”false” fade_animation=”in” fade_animation_offset=”45px” fade_duration=”750″ type=”1/1″ style=”padding: 0px;”][x_line style=”border-top-width: 1px;”][/cs_column][/cs_row][cs_row inner_container=”true” marginless_columns=”false” style=”margin: 0px auto;padding: 0px;”][cs_column fade=”false” fade_animation=”in” fade_animation_offset=”45px” fade_duration=”750″ type=”1/1″ style=”padding: 0px;”][x_feature_list][x_feature_box title=”Ampere” title_color=”” text_color=”” graphic=”numbers” graphic_size=”60px” graphic_shape=”circle” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″]A: – This consists of three parts. Max, Min, and Avg of current during the sample period. [/x_feature_box][x_feature_box title=”Voltage” title_color=”” text_color=”” graphic=”numbers” graphic_size=”60px” graphic_shape=”circle” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″]V: – Consists of max, min and avg voltage readings during the sample period[/x_feature_box][x_feature_box title=”mAh” title_color=”” text_color=”” graphic=”numbers” graphic_size=”60px” graphic_shape=”circle” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″]Total miliamp hour measured since last boot or reset by command or button. [/x_feature_box][x_feature_box title=”mWh” title_color=”” text_color=”” graphic=”numbers” graphic_size=”60px” graphic_shape=”circle” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″]Total miliwatt hour measured since last boot or reset by command or button. [/x_feature_box][x_feature_box title=”Shunt” title_color=”” text_color=”” graphic=”numbers” graphic_size=”60px” graphic_shape=”circle” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″]Shunt voltage (in mV) drop across the sense resistor which is used internally to calculate current. [/x_feature_box][x_feature_box title=”D+ / D-” title_color=”” text_color=”” graphic=”numbers” graphic_size=”60px” graphic_shape=”circle” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″]This is the voltage reading of the USB differential data lines D+ and D-. Could be used to figure out charge modes for various devices. [/x_feature_box][x_feature_box title=”Free RAM” title_color=”” text_color=”” graphic=”numbers” graphic_size=”60px” graphic_shape=”circle” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″]Shows the current amount of free SRAM available in the microcontroller. Mostly for debugging but could be useful for anyone wanting to customize the firmware. In FW2.3+ this is disabled.[/x_feature_box][x_feature_box title=”*Runtime” title_color=”” text_color=”” graphic=”numbers” graphic_size=”60px” graphic_shape=”rounded” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″]Current time in milliseconds since power up or reset.[/x_feature_box][/x_feature_list][/cs_column][/cs_row][/cs_section][cs_section parallax=”false” separator_top_type=”none” separator_top_height=”50px” separator_top_angle_point=”50″ separator_bottom_type=”none” separator_bottom_height=”50px” separator_bottom_angle_point=”50″ style=”margin: 0px;padding: 45px 0px;”][cs_row inner_container=”true” marginless_columns=”false” style=”margin: 0px auto;padding: 0px;”][cs_column fade=”false” fade_animation=”in” fade_animation_offset=”45px” fade_duration=”750″ type=”1/1″ style=”padding: 0px;”][x_custom_headline level=”h2″ looks_like=”h3″ accent=”false”]JSON Serial Command Protocol[/x_custom_headline][x_feature_list][x_feature_box title=”BAUD Rate” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”square” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”motorcycle”]Serial BAUD rate is 115200[/x_feature_box][x_feature_box title=”R:XXXX – Serial Output Rate” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”rounded” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”bar-chart-o”]Send R:XXXX – X is time in miliseconds
– Returns new set rate (Min is 150ms)
[/x_feature_box][x_feature_box title=”S:X – Set Screen” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”circle” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”tablet”]Send S:X – X is screen number 1-5
– Returns new screen[/x_feature_box][x_feature_box title=”Z: – Reset” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”circle” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”rotate-right”]Send Z: – Resets all data
– Returns ‘OK’ upon reset[/x_feature_box][x_feature_box title=”W:XXXX – LED Threshold” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”square” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”exclamation”]Send W:XXXX – X is current in miliamps
– Returns new threshold for LED[/x_feature_box][x_feature_box title=”V: – Verison” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”square” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”github-alt”]Send V: – Returns current firmware version
[/x_feature_box][x_feature_box title=”*E:0 – Disable Events” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”hexagon” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”times-circle-o”]Stop sending event based serial packets[/x_feature_box][x_feature_box title=”*E:1 – Set mA Threshold Event” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”hexagon” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”paper-plane-o”]Start mA threshold serial packets. Threshold is set using W:XXXX command[/x_feature_box][x_feature_box title=”*P:XXX – Set Percent Changed Tr igger” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”hexagon” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”percent”]Send serial packet on current percent change[/x_feature_box][x_feature_box title=”*C:0 – Output Saved Settings” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”badge” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”usb”]Output currently saved settings in EEPROM[/x_feature_box][x_feature_box title=”*C:1 – Load Saved Settings” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”badge” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”upload”]Load saved settings from EEPROM to running config[/x_feature_box][x_feature_box title=”*C:2 – Save Settings” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”badge” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”floppy-o”]Save settings to EEPROM[/x_feature_box][x_feature_box title=”*D:0 – Disable Display” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”rounded” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”tablet”]Turn off updating display and clear. Good for long term logging.[/x_feature_box][x_feature_box title=”*D:1 Enable Display” title_color=”” text_color=”” graphic=”icon” graphic_size=”60px” graphic_shape=”rounded” graphic_color=”#ffffff” graphic_bg_color=”#2ecc71″ align_h=”left” align_v=”top” side_graphic_spacing=”20px” max_width=”none” child=”true” connector_width=”1px” connector_style=”dashed” connector_color=”#272727″ graphic_icon=”tablet”]Turn on updating display[/x_feature_box][/x_feature_list][cs_text]

*Note: Items with an * are only in firmware version 2.3+

[/cs_text][/cs_column][/cs_row][/cs_section][/cs_content]

Leave a Reply