USB Tester Pinout and Protocol
Serial Output
{ “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}
A: - This consists of three parts. Max, Min, and Avg of current during the sample period. V: - Consists of max, min and avg voltage readings during the sample periodTotal miliamp hour measured since last boot or reset by command or button. Total miliwatt hour measured since last boot or reset by command or button. Shunt voltage (in mV) drop across the sense resistor which is used internally to calculate current. 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. 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.Current time in milliseconds since power up or reset.
JSON Serial Command ProtocolSerial BAUD rate is 115200Send R:XXXX - X is time in miliseconds
- Returns new set rate (Min is 150ms) Send S:X - X is screen number 1-5
- Returns new screenSend Z: - Resets all data
- Returns ‘OK’ upon resetSend W:XXXX - X is current in miliamps
- Returns new threshold for LEDSend V: - Returns current firmware version Stop sending event based serial packetsStart mA threshold serial packets. Threshold is set using W:XXXX commandSend serial packet on current percent changeOutput currently saved settings in EEPROMLoad saved settings from EEPROM to running configSave settings to EEPROMTurn off updating display and clear. Good for long term logging.Turn on updating display