Re: [web-bluetooth] [Use Case] Bluetooth bike locks

It's a bad use case. I guess from the business point of view it's better to make every bike to have an own internet connection using a IoT tariff plans bought wholesale.

Since we already have and use internet, from the security point of view it's better to send the unlock request through internet from the company to a bike.

Here is the better use case

1 A user opens wa webpage
2 the webpage downloads the coordinates of all the bikes and their bluetooth mac addresses.
3 the list of macs is passed to WebBluetooth . WebBluetooth is asked to generate an event when any device with such mac goes in/out of range.
4 When an event fired, the bikes on the map is highlighted, eventListeners on `click` event are added.
5 When a user taps on a bike, it starts flashing and making sound, allowing the user to locate it.
 Ble is used here to reduce internet traffic, make the function free and deter abuse by requiring the one doing that to be close to the bike.
The further steps are irrelevant to WebBluetooth:
6 A user activates in the UI a renting period.
7 The service sends the command to unlock to the bike via Internet, and starts to count money. The command to unlock a bike must contain the maximum time it to be unlocked calculated from the balance.
8 An unlocked bike sends heartbeats to the server periodically. If there is no heartbeats for an unlocked bike the server marks a bike as `probably stolen`. This state is lifted on a heartbeat or an unlock request.
9 When a balance updates the server sends a bike a message updating the maximum time it may be in an unlocked state.
10 When a user stopped to use a bike, he locks it stopping the money counter.

-- 
GitHub Notification of comment by KOLANICH
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/380#issuecomment-343395863 using your GitHub account

Received on Friday, 10 November 2017 07:31:08 UTC