Skip to content
/ 9BotONE Public

research tool to read/write data from/to a Ninebot ONE A1/S2

Notifications You must be signed in to change notification settings

M4GNV5/9BotONE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

9BotONE

This repository contains some scripts and tools for communicating with my Ninebot ONE S2. It could work with other scooters too but might need some adjustment.

Ressources

The following docs helped me a lot when fiddling with the bluetooth protocol. Some of these are actually related to other similar scooters like the Ninebot ES2 or the Xiaomi M365.

9BotONE.py

Python script which connects to a ninebot and can read/write/dump registers. It runs using pygatt using BlueZ (Linux bluetooth stack).

# change the mac address in the file

python 9BotONE.py read <offset> <length>
python 9BotONE.py write <offset> <hex bytes...>
python 9BotONE.py dump <file>

Web tool

I initially wrote a javascript implementation of the ninebot tool for the keyfob, but it turns out the bluetooth API of the puckjs is the same as the (experimental) WebBluetooth API. So with a few extra lines i was able to read/write registers from the webbrowser.

You can try it yourself here: https://m4gnus.de/ninebot/src/

Keyfob

Having to take out my phone, disable mobile internet (so the app doesn't send my data to the "cloud"), enable bluetooth, open the app and finally click lock took too long, so i created a key fob using a puckjs which locks my scooter by simply clicking one button. Click the image for a demo video: