Cowboy_Untamed icon indicating copy to clipboard operation
Cowboy_Untamed copied to clipboard

UART command codes

Open zzzorgo opened this issue 11 months ago • 1 comments

Hello @Imaginous,

I am working on a hardware project for my bike which is generally just physical controls for the bike (since the bike lacks them). But in order to complete it I need to somehow get command codes to control the desired characteristic over bluetooth. I saw several other open source projects with some of the command I need like locking, unlocking and controlling the lights. What I am missing is two things:

  1. Changing the assistance level (aka "Adaptive", "Eco", "Off" in the official app). I assume they are some kind of pressets of several motor settings but the main question is what are the values and what exact UART codes should I use to choose between them.
  2. Switching off and on the wireless charger (C4 has it).

I found several other open source projects with some commands like this one https://github.com/runerune/BroncoUnleashed/blob/master/app/src/main/java/bike/hackboy/bronco/data/Command.java but the two things I mentioned above are still missing.

I would really appreciate any help!

zzzorgo avatar Mar 24 '24 04:03 zzzorgo

I have more information, but not the latest information. I have signed a DND agreement for all ASI information and therefore I can't share it. Since I own a C1+ I don't have any hands on experience with the C4.

Just some hints:

  • Decompile the Android Cowboy app APK.
  • Search for the bac500 motor controller documentation.

Imaginous avatar Mar 24 '24 08:03 Imaginous