CamiAlfa / stlink_m365_BLE

77 stars 31 forks source link

Prevent connecting from another phone #8

Open WaGi-Coding opened 2 years ago

WaGi-Coding commented 2 years ago

Hey I wonder if you could implement something to bind the scooter to a specific phone, maybe only when it's locked. Currently i or any thief could just connect with another phone to unlock the scooters locked mode, which is pretty useless then.

Maybe, if you can save some persistent data on the BLE, give us an option to enable "phone bind" or something called like that, which saves the phones mac address and only allows connections from that mac then.

Also in case you lose your phone, you make that check only when it's locked. And if it's locked but you do not have that phone anymore, that you can still unlock by disconnecting the battery entirely & give us some button combination to delete the Phone MAC/ID (for example, holding throttle & brake + pressing the button 8 times)

Would be really great if thats possible.

WaGi-Coding commented 2 years ago

Or what would even be better is the need for a user generated password. Like if you want to connect from another phone you still can, but the BLE would drop connection if any commands are sent thats not a custom command validating the password

A combination of both would be maybe smarter tho, that way you don't need to send the custom password command every time, just when you connect from a phone with another mac than the one which validated with the custom password command earlier

So it would be like:

PS: Maybe a command/instruction Blacklist(unlock, flashing) is better than a whitelist(password validate, remove pw protection) By using the custom commands for all that, i guess apps supporting CamiBLE could built up on this to make validating easier and saves the password on the phone, then the mac would not be really needed anymore, just the password.