Compiling SP140-V2.5 firmware V7.0

Anyone try compiling the firmware for the latest hand controller? i get a repository error…

Cloning into ‘C:\Users\Thomas.platformio.cache\tmp\pkg-installing-nzp372qf’…

remote: Repository not found.

fatal: repository ‘https://github.com/openppg/SINE-ESC-CAN/’ not found

VCSBaseException: VCS: Could not process command [‘git’, ‘clone’, ‘–recursive’, ‘–depth’, ‘1’, ‘https://github.com/openppg/SINE-ESC-CAN’, ‘C:\Users\Thomas\.platformio\.cache\tmp\pkg-installing-nzp372qf’]

Google AI says…: If you encounter the “GitHub repository not found” error when cloning a repository, it means Git cannot locate the repository at the provided URL or you lack the necessary permissions to access it.

It may be a permissions issue because it askes me to login to github, which is successful, but then it returns the “not found” error.

I was able to monitor the serial output with VSC and it just confirms what the handheld display already states, " No BMS"…

Warning! Ignore unknown configuration option libr_dir in section [platformio]
Warning! Ignore unknown configuration option src_folder in section [env:OpenPPG-CESP32S3-CAN-SP140]
git version 2.44.0.windows.1
Cloning into ‘C:\Users\Thomas.platformio.cache\tmp\pkg-installing-qx6hyf_8’…
remote: Repository not found.
fatal: repository ‘https://github.com/openppg/SINE-ESC-CAN/’ not found
Esp32ExceptionDecoder: disabling, exception while looking for addr2line: VCS: Could not process command [‘git’, ‘clone’, ‘–recursive’, ‘–depth’, ‘1’, ‘https://github.com/openppg/SINE-ESC-CAN’, ‘C:\Users\Thomas\.platformio\.cache\tmp\pkg-installing-qx6hyf_8’]
— Terminal on COM11 | 115200 8-N-1
— Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
— More details at Redirecting...
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
19:41:48.972 > Initializing LVGL
19:41:48.972 > LVGL initialized
19:41:48.972 > Setting up LVGL buffer
19:41:48.972 > LVGL buffer initialized
19:41:48.972 > Initializing BMS CAN…
19:41:48.972 > Error initializing BMS_CAN
19:41:48.972 > TWAI driver not installed. Proceeding with installation…
19:41:48.972 > TWAI Driver installed
19:41:48.972 > TWAI Driver started
19:41:48.972 > CAN Alerts reconfigured
19:41:48.972 > BLE device ready
19:41:48.972 > Waiting for a client connection…
19:41:48.972 > ESC State: 0 → CONNECTED
19:41:48.972 > Displaying LVGL splash screen
19:41:48.972 > Setting up main screen after splash
19:41:48.972 > Main screen loaded
19:41:48.972 > {“mj_v”:7,“mi_v”:0,“arch”:“ESP32S3”,“scr_rt”:3,“ar_tme”:0,“m_tmp”:true,“m_alt”:true,“prf”:1,“sea_p”:1013.25,“thm”:0}


i also checked the continuity of the Battery High and Low CAN bus leads in the wiring harness and they are good with no short between them.

Looks like this is a private repository

1 Like

Update: In addition to trying to do the OpenSource thing, i’ve been trying to track down a “No BMS” displayed on my hand control. Again, i plugged up the hand control via usb-c to a laptop running Visual Studio Code and monitored the debug serial data which confirmed there’s a CANBUS communication issue between my battery and hand control. I’ve been trying to catch up at work after a week and a half vacation and finally was able to get a little further with it this past weekend… i have HomeAssistant set up and used its ESPHome plugin to code an ESP32 with CANBUS to scan the Battery’s BMS/CAN connection and well… the issue ain’t the battery! My next step will be to open up the hand control and tap directly in on that board to verify the CAN signal is making it completely through the wiring harness.


Hey Larry, it looks like you’re making some progress. What’s your goal with the firmware here?

And yes the BMS library we use is private due to us having to work with the manufacturer on it directly in creating it. Originally, we were not able to make it open but I can check again.

Just for my education in general. It was the “Open” part of OpenPPG that sold me. I’ve installed these ESP32 in all sorts of places around my property: garage door opener, pool controller, light switches, 2x electric car charger power monitoring switches, horse and fish/pond feeders. I installed a 3x SolArk-12k solar power system with 3x eVault 18.5kWh batteries where all 3 batteries are networked via CANbus and all 3 inverters via MODbus to an ESP32, all controlled and monitored in HomeAssistant. If flying your aircraft is as fun as learning about the components, I’m sure ePPG will be a blast!

Finally got back home tonight and had time to check the CANbus signal to the hand controller connector and the data cleanly gets from the Battery-BMS to the pins on the controller board so whatever is wrong, it’s either in the firmware or faulty hand controller board components. Funny thing, i coincidentally used a CANbus transceiver with a Texas Instruments VP230 cousin chip for my hacking:)



I can’t honestly remember if i updated the firmware on the BMS board while installing the ANT app on my Android phone. I could see how updates in the battery could change a format and not properly shake hands with the hand controller firmware. Either that or a component/connection on the board failed. By sniffing the CANbus and comparing the bytes to the values displayed in the ANT-BMS Android-App, i know the battery and wiring harness are working properly!

Btw if you want to go the wireless/BLE route, I’ve tested this home assistant plugin and it works with the battery BMS