-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# 9-analyzer | ||
|
||
## Introduction | ||
|
||
This is a quick Node.js project developped to demonstrate how to parse communications logs extracted from the Ninebot electric scooters internal serial communication bus. | ||
|
||
## Install | ||
|
||
```bash | ||
git clone https://github.com/rascafr/9-analyzer.git | ||
|
||
cd 9-analyzer | ||
|
||
npm i | ||
``` | ||
|
||
## Run | ||
|
||
Either production or development (code monitoring, `nodemon` required) | ||
|
||
```bash | ||
# prod | ||
npm start | ||
|
||
# dev | ||
npm run dev | ||
``` | ||
|
||
## Getting new logs | ||
|
||
Use a serial-USB adapter, and use the following settings: | ||
|
||
- 115200 bd/s | ||
- 8 data bits | ||
- 1 stop bit | ||
- no parity | ||
|
||
Incoming data will be sent by the scooter on the yellow wire connected to the dashboard. | ||
|
||
Ground (OV) is the black wire. Connect both files to your serial-USB adapter on *RX* and *GND*. | ||
|
||
## Arduino | ||
|
||
Some Arduino code is present insinde of this repos, can be used to parse on the fly some of the serial commands in "realtime". |