Skip to content

Instantly share code, notes, and snippets.

@ccrome
ccrome / eb_tester_digital_load.txt
Created February 6, 2018 21:52
Reverse engineering a cheapo digital load
The digital load is found here:
https://www.aliexpress.com/item/35W-computer-software-online-USB-tester-USB-Discharging-Load-QC2-0-3-0-MTK-PE-Trigger/32707276028.html?spm=a2g0s.9042311.0.0.K9VDeF
It uses a binary protocol over the UART for control and data returned. I used the free version of "Device Monitoring Studio"
to view the data sent and received from the UART.
So far, I have decoded the commands to get the digital load to do things, except for how to compute the checksum byte.
Here's what there is so far:
------------------------------------------
@ccrome
ccrome / main.ino
Created January 25, 2018 05:43
How to run esp32 code on both cores
#include "FreeRTOS.h"
#define LED1 14
#define LED2 22
TaskHandle_t Task1;
TaskHandle_t Task2;
void codeForTask1(void *parameter)
{
while(1)