Imaginous / Cowboy_Untamed

An Android app to lift the speed limit of your Cowboy Bike.
187 stars 58 forks source link

Unlock Bike when unplug/replug the battery #8

Closed CBGTI closed 2 years ago

CBGTI commented 2 years ago

Apparently, with Cowboy V3, it's possible to Unlock the bike without using the phone : You just have to unplug and re-plug the battery within 5sec. It's a very useful function. By default, it's unavailable on V1 and V2. Is it possible ton implement it in your App for all the version of the Bike ?

Thanks for your hard work!

Imaginous commented 2 years ago

Unfortunately this option is not available in the firmware of the C1+.

I don't know if it can be enabled on the V2.

Which model bike do you have?

CBGTI commented 2 years ago

Ok. I have a V2. If you need a tester, I can test the function. ;-)

Imaginous commented 2 years ago

If you have a V2 you can try the following:

  1. Open Cowboy Untamed
  2. Connect to your bike
  3. Go to the Show expert functions menu
  4. Click GO
  5. Select 0010: Cowboy PCB on the first row
  6. Select 0039: Manual Unlock Time on the second row
  7. Press READ, and note the RAW and Value value.
    If you get a value of 0 then it's disabled.
    If you get an error message it's not supported.
    If you get another value it's enabled.
  8. If it's 0 without an error enter RAW 20. (You have to remove and re-insert the battery within 20 seconds to unlock the bike).
  9. Press WRITE (you don't need to press FLASH on the main screen).

Now it should be enabled if it's supported on a V2. Set the RAW value back to 0 to disable it.

Screenshot_1635347035

CBGTI commented 2 years ago

The value I have is 45363 seconds (without error)... But It don't work. Despite this very high value, can I test 20sec? messages_0

Imaginous commented 2 years ago

You can test 20, but if it still doesn't work please write back 45363 to that register.

diogodh commented 2 years ago

Following here because i would also like to have it on my C2

CBGTI commented 2 years ago

I tried but it's impossible for me to change the value. If I write "20" in the RAW column, it don't work and return at the original value (45363) at the next time I READ the value (despite of the message "Value written" and "send: 0x0A1000270001020014D3B8"). Evidently, I respected exactly you process and I don't have any error message.

CBGTI commented 2 years ago

Here's a screenshot. messages_1

Imaginous commented 2 years ago

I'm afraid the register is different, or also not present in the firmware.

I will try to sniff the code of the original app. But I guess it's also not available on the C2.

All tbe bikes use different firmwares.

CBGTI commented 2 years ago

Ok ok... Bad news. :-/ But thanks a lot for your hard work and your responsiveness.

Imaginous commented 2 years ago

I did some research on the new Cowboy V3.0.0 app. I found the following: MANUAL_UNLOCK_27(27)

It seems like it has been moved to a different address 27 (int).

If you have a V2/V3 you can try the following:

  1. Open Cowboy Untamed
  2. Connect to your bike
  3. Go to the Show expert functions menu
  4. Click GO
  5. Select 0010: Cowboy PCB on the first row
  6. Select ????: Custom address (int) on the second row
  7. Enter 27 in the Addr field
  8. Press READ, and note the RAW and Value value.
    If you get a value of 0 then it's disabled.
    If you get an error message it's not supported.
    If you get another value it's enabled.
  9. If it's 0 without an error enter RAW 20. (You have to remove and re-insert the battery within 20 seconds to unlock the bike).
  10. Press WRITE (you don't need to press FLASH on the main screen).

Now it should be enabled if it's supported on a V2. Set the RAW value back to 0 to disable it.

salzheld commented 2 years ago

Just checked that here with my Cowboy2. IT WORK'S. You are fantastic.

diogodh commented 2 years ago

Just checked that here with my Cowboy2. IT WORK'S. You are fantastic.

That sounds horrible for cowboy brand that states it is a firmware incompatibility. It looses trust on the consumers. Will you implement that in an app easy toggle dev?

CBGTI commented 2 years ago

Amazing! Good job! :-) Thanks a Lot !

Imaginous commented 2 years ago

I will upload a new version next week with the corrections in the app.

Enjoy the feature.