fgorina / 9bmetrics Goto Github PK
View Code? Open in Web Editor NEWAn EUC management and telemetry application
License: Other
An EUC management and telemetry application
License: Other
Ninebot One A1/S2 is not founded, because uses another Service UUID (FEE7) and characteristics:
This is no problem, but no getted headers (SN, etc.).
May be have choice get all firmware data for debug?
KingSong 16B FW 1.27: the crurent is signed. The highest weight bit is used to set the current sign.
This lead today to incorrect current, then power, then energy.
On KS/Gotway wrong calculating total distance.
130 real km = 376045570.0 in app.
let totalDistance = Double( (Int(buffer[6]) * 256 + Int(buffer[7]))*65536 + (Int(buffer[8]) * 256 + Int(buffer[9])))
Tests:
On my tests KS14 rides 137km (by official app metrics).
Value of buffer:
buffer[6] = 2
buffer[7] = 0
buffer[8] = 106
buffer[9] = 22
Gotway MSuper V3 rides 8.4km
Value of buffer:
buffer[6] = 64
buffer[7] = 0
buffer[8] = 28
buffer[9] = 32
Nice source! You can add changing Serial Number?
Tip: If you have Ninebot One E and change Serial Number on "N1OP...", max speed will be ~30 km/h
On Gotway (exclude MCM4) wrong calculating temperature. Tested on ACM, MSuper V3, Monster.
219 value app ≈ 20 °C
Hi!
With V3.0 in KingSongAdapter.swift you divide a second time the current by 100:
current = fabs(current / 100.0) // I have problems with sign in some wheels
Any thoughts?
I checked "One Fun Bool". You know what function it performs?
Changing max speed is not working. Ninebot One E on 1.3.5 limiting max speed on ~22 km/h. I set max speed on 30 km/h via 9Metrics (TestMode), reset Ninebot One, but it's not works - limit also ~22 km/h :(
How about changing the pin code?
Need add method for On/Off limit speed mode, and On/Off lock mode.
I did complete methods for getting values:
func limitMode() -> Bool? {
let v = data[BLENinebot.kvFlags].value
if v == -1{
return nil
}
return (v == 9 || v == 11)
}
func lockMode() -> Bool? {
let v = data[BLENinebot.kvFlags].value
if v == -1{
return nil
}
return (v == 10 || v == 11)
}
And need include kvFlags in listaOpFast array
About values kvFlags:
8 - normal,
9 - limited,
10 - locked,
11 - limited & locked
Project doesnt work with newer version of xcode, and trying to upgrade to swift 4 or 5 breaks the code.
Im not that familiar with iOS development to make a fix and a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.