Extracting SOC metrics?

restarted

Member
Likes
14
Location
California
Has anyone figured out how to extract the state of charge from the bike?

I briefly tried using a bluetooth sniffer app on my phone but couldn't find anything useful.

I store my bike in a storage space and trigger the bike to charge via a WiFi outlet plug. It would be ideal to also know the SOC remotely somehow
 

drehwurm68

Member
Likes
23
Location
Austria
On the EX you can retrieve the SOC and other data via OBDII. There seem to be remote OBDII solutions on the market, but I don't now how pricey they are. Probably the cheapest way to have a phone there which you can control remotely and which connects to a cheap ODB dongle. Maybe even control the Stark phone remotely and install the scanner app there.

Michael
 

drehwurm68

Member
Likes
23
Location
Austria
Probably thinking too complicated. Just use an Android remote screen app like AirDroid or SureMDM. You know the Stark phone is on when charging and you obviously have access to the WiFi there. Just make sure the Stark phone is connected and the remote access app is running when leaving the bike.

Michael
 

brongle

Member
Likes
5
Location
WA
For the EX it's possible, I believe the MX should be similar but I don't have one (or access to the app for it) so I can't say! For the EX you just need to pair with the per-vin pin code and then (in BLE terms) subscribe to notifications for the characteristics you want to read. If you just try to read from them you will get nothing (their VCU has a weird/incorrect BLE implementation I guess). I ended up making my own EX-specific iOS/Android app for viewing all the "engineering" data they provide over Bluetooth, from battery soc/voltage/cells to inverter and motor temperatures. I really wish they'd improve the stock app to show some of this stuff (or at least have warnings for when you approach temperature cut-offs/etc) as its pretty critical for more intense riding.


For battery state of charge you'd want `00006000-5374-6172-4b20-467574757265` for the BLE service and `00006004-5374-6172-4b20-467574757265` for the characteristic. First two bytes are state of charge, next two are state of health (not seen it change on my EX), and finally two bytes for the DC bus voltage off the battery.
 

Beagle

Well-known member
Likes
473
Location
France
For the EX it's possible, I believe the MX should be similar but I don't have one (or access to the app for it) so I can't say! For the EX you just need to pair with the per-vin pin code and then (in BLE terms) subscribe to notifications for the characteristics you want to read. If you just try to read from them you will get nothing (their VCU has a weird/incorrect BLE implementation I guess). I ended up making my own EX-specific iOS/Android app for viewing all the "engineering" data they provide over Bluetooth, from battery soc/voltage/cells to inverter and motor temperatures. I really wish they'd improve the stock app to show some of this stuff (or at least have warnings for when you approach temperature cut-offs/etc) as its pretty critical for more intense riding.


For battery state of charge you'd want `00006000-5374-6172-4b20-467574757265` for the BLE service and `00006004-5374-6172-4b20-467574757265` for the characteristic. First two bytes are state of charge, next two are state of health (not seen it change on my EX), and finally two bytes for the DC bus voltage off the battery.
Congratulations, you are a certified electronic wizard!

Any idea what the motor sensors indicate? As for the VCU, current must be in mA right? Don't tell me there's 300 A going to the fan?
 

brongle

Member
Likes
5
Location
WA
Congratulations, you are a certified electronic wizard!

Any idea what the motor sensors indicate? As for the VCU, current must be in mA right? Don't tell me there's 300 A going to the fan?
Thanks, was relatively easy to reverse engineer the Stark EX App and go from there. The units in that older version are a bit all over the place (was still figuring out whats what), the fan/pump amperage is off by 100 there. Main thing the motor sensors give are temps and current for ID/IQ (field orientated control stuff, I believe this shows phase-amps and field weakening but would need someone smarter to chime in). This is what the app uses to draw the little HP used/regen graph on the dash.

Bravo!

Does the app work on the stark phone?
Do you release more information?

B.
It should work on any iOS/Android device that has Bluetooth, although I have found that the connection is way more reliable and consistent on iOS than with Android or the Stark phone. I plan to release it in the future but still some work and polish to be done.
 
Top Bottom