vedderb / bldc

The VESC motor control firmware
2.25k stars 1.38k forks source link

Calibike autolock #776

Open rafeh1 opened 4 weeks ago

rafeh1 commented 4 weeks ago

I created bldc with autolock. After 3 minutes of nonuse bldc locks and needs user cell phone to unlock the original worked but i cant test since I am unable to build vesc_tool

Added auto lock function to vesc. This function is run from command line of terminal This allows user to lock and unlock bike using cell phone. It also has autolock function which if enabled The vesc will autolock after 5 minutes of no use. The default password is Calibike The terminal commands are

  1. ul [<enable/disable>]

    example: "ul Calibike enable" enables the auto lock function "ul Calibike" unlocks bike

  2. sp

    example:

    "sp Cali1234"

    this will switch password to Cali1234

  3. lk

    this locks the system example "lk"

    The code is in password.c and password.h