diff --git a/protocol.md b/protocol.md index 56f2165..9a0a31d 100644 --- a/protocol.md +++ b/protocol.md @@ -89,17 +89,17 @@ Two wire UART 115200 8n1 | 18 | 10 | bNewSN[], dAuth | - | + | + | All | 18 bResult - | Program serial number | | 50 | any | bDevName[] | + | + | - | - | All | Set device name | | 52 | ? | ? | - | - | + | 01 30 wStatus | All | Refresh status | -| 54 | ? | ? | - | - | + | - | All | ? | -| 55 | ? | ? | - | - | + | 55 30 {regs 30-35} | All | ? | +| 54 | ? | ? | - | - | + | All | - | ? | +| 55 | ? | ? | - | - | + | All | 55 30 {regs 30-35} | ? | | 57 | any | wValue | - | - | + | ? | All | write reg 21 | -| 57 | any | dAuth0, dAuth1, dReg69 | - | + | - | - | All | ? | -| 58 | ? | ? | - | - | + | ? | All | Factory reset | -| 58 | any | dAuth0, dAuth1, wUnused | - | + | - | - | All | Factory reset (total) | -| 59 | ? | ? | - | + | - | ? | All | ? | -| 5A | 'N' | 'S' | - | + | - | - | All | User reset (pin and settings) | -| 5C | any | dAuth, dValue, wUnused | - | + | - | - | All | write regs 29-30 | +| 57 | any | dAuth0, dAuth1, dReg69 | - | + | - | All | - | ? | +| 58 | ? | ? | - | - | + | All | ? | Factory reset | +| 58 | any | dAuth0, dAuth1, wUnused | - | + | - | All | - | Factory reset (total) | +| 59 | ? | ? | - | + | - | All | ? | ? | +| 5A | 'N' | 'S' | - | + | - | All | - | User reset (pin and settings) | +| 5C | any | dAuth, dValue, wUnused | - | + | - | All | - | write regs 29-30 | | 61 | ofs | bReadLen, bHeadDataLen, bHeadData[bHeadDataLen] | - | + | - | All | 01 ofs data[] | Read regs, update head inputs | -| 64 | any | bDataLen, bThrottle, bBrake, wUnkn [, wBLEFwVersion] | - | + | - | ? | All | Update head inputs | -| 64 | any | bDataLen, bFlags, bBattLevelBars, bHeadlightLevel, bBeeps | + | - | - | ? | M365 | Update head outputs | -| 64 | any | bDataLen, bFlags, bBattLevelBars, bHeadlightLevel, bBeeps, bSpeed, bErrorCode | + | - | - | ? | Ninebot, M365 Pro | Update head outputs | -| 65 | any | bDataLen, bThrottle, bBrake, wUnkn [, wBLEFwVersion] | - | + | - | ? | All | Update head inputs | +| 64 | any | bDataLen, bThrottle, bBrake, wUnkn [, wBLEFwVersion] | - | + | - | All | ? | Update head inputs | +| 64 | any | bDataLen, bFlags, bBattLevelBars, bHeadlightLevel, bBeeps | + | - | - | M365 | ? | Update head outputs | +| 64 | any | bDataLen, bFlags, bBattLevelBars, bHeadlightLevel, bBeeps, bSpeed, bErrorCode | + | - | - | Ninebot, M365 Pro | ? | Update head outputs | +| 65 | any | bDataLen, bThrottle, bBrake, wUnkn [, wBLEFwVersion] | - | + | - | All | ? | Update head inputs |