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

Active member
Likes
37
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

Active member
Likes
37
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

Well-known member
Likes
46
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
570
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

Well-known member
Likes
46
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.
 

restarted

Member
Likes
14
Location
California
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
Do you know where to attach the OBD? I found the red square 6 pin OBD to black connector plug. But it looks like there’s only two female black plugs underneath the charging station. One for the throttle and the other for the control switch. My code reader isn’t turning on when I use either of those slots.
 

drehwurm68

Active member
Likes
37
Location
Austria
Do you know where to attach the obd

You'll find the plug on the right side under the plastics just above the battery on the frame. Remove the two front bolts on the right shroud and you should be able to bend it away just enough to connect the adapter cable without having to remove the whole plastic/seat assembly.

Michael
 

restarted

Member
Likes
14
Location
California
You'll find the plug on the right side under the plastics just above the battery on the frame. Remove the two front bolts on the right shroud and you should be able to bend it away just enough to connect the adapter cable without having to remove the whole plastic/seat assembly.

Michael
Ok I think I found the right plug. It looks like it might go to the rear brake foot lever?

I connected it to my OBDII code reader via an adapter and got nothing. Tried it both while charging and just on. Code reader doesn’t turn on

My reader needs 8-18V DC it would seem. So maybe this wire wasn’t providing that much voltage? Don’t have my volt meter to test the wire’s voltage.

My code reader only turns on when plugged into a running vehicle

IMG_7070.PNG
 

drehwurm68

Active member
Likes
37
Location
Austria
I connected it to my OBDII code reader via an adapter and got nothing. Tried it both while charging and just on. Code reader doesn’t turn on
Interesting, do you know what firmware you currently have? I wanted to make some pictures for you and plugged in the same setup which has worked fine last time and got - NOTHING! Basically all the OBD dongles have some LEDs to show the current status and after turning on the bike it showed no power to the dongle this time - only thing different to last time is the updated firmware on several modules including the VCU (1.2.8). So I can only assume that Stark disabled the OBD port or did something to the power supply on that line - is it really used for the rear bake switch as well?

Michael
 
Top Bottom