Changes

4,419 bytes added ,  12:17, 27 March 2023
Created page with "'''scsetconfig <arg1> <arg2>''' - E-Scooter's function's setup <br /> <br> '''<arg1>''':<br /> 0 - 1<sup>st</sup> instruction set <br /> 1 - 2<sup>nd</sup> instruction set <br..."
'''scsetconfig <arg1> <arg2>''' - E-Scooter's function's setup <br />
<br>
'''<arg1>''':<br />
0 - 1<sup>st</sup> instruction set <br />
1 - 2<sup>nd</sup> instruction set <br />

'''<arg2>''' - 2 bytes value where each bit controls separate parameter. <br />
{| class="wikitable"
!'''Instruction'''
!'''Bit position'''
!'''Comment'''
|-
! colspan="3" |'''1<sup>st</sup> instruction set'''
|-
|Headlight always on/off
|0x0001
|Turns headlight on or off
|-
|Headlight flash
|0x0002
|Headlight start flashing
|-
|Taillight always on/off
|0x0004
|Turns taillight on or off
|-
|Taillight flash
|0x0008
|Taillight start flashing
|-
|External battery light on/off (ES2/ES4) '''/''' Headlight icon display switch (MAX)
|0x0010
|Turns external battery light on or off (ES2/ES4) '''/''' Turns headlight icon on display on or off (MAX)
|-
|No alarm when locked
|0x0020
|Alarm wont be enabled in case of alarm
|-
|Use mph units
|0x0040
|Sets mph instead of km/h
|-
|Display unit or not
|0x0080
|Units are shown or not
|-
|Display speed or not
|0x0100
|Speed is shown or not
|-
|Panel display or not
|0x0200
|Panel display is turned on or off
|-
|Bluetooth broadcast or not
|0x0400
|When on, BT icon cannot control.

When off, BT icon can define status: flash or always
|-
|Bluetooth icon always on or off
|0x0800
|BT icon is shown or not
|-
|Bluetooth icon flash or off
|0x1000
|BT icon is flashing or not
|-
|Error icon on or off
|0x2000
|Error icon is shown or not in case of error
|-
|Temperature error icon on or off
|0x4000
|Temperature error icon is shown or not in case of error
|-
|Display battery level on or off
|0x8000
|level is shown or not
|-
! colspan="3" |'''2<sup>nd</sup> instruction set'''
|-
|Button can change mode or not
|0x0001
|Button double press will change speed modes if enabled
|-
|Display speed mode or not
|0x0002
|Mode will be displayed or not
|}
<br>
'''Example:'''<br />
<br>
'''scsetconfig 0 42944'''<br />
Binary representation of 42944 would be 1010 0111 1100 0000, where:<br />
* Units mph are on <br />
* Units are on <br />
* Speed is on <br />
* Panel display is ON <br />
* BT broadcast is ON <br />
* Error icon is ON <br />
* Battery level is ON <br />
<br>
'''How to calculate the values shown in the example above:'''<br />
<br>
'''1.''' <arg1> (0/1) is chosen depending on which parameters you would like to enable from the table. If the parameter you would like to enable is in the 1<sup>st</sup> instruction set table block, the value will be '''0'''. If the parameter you would like to enable is in the 2<sup>nd</sup> instruction set table block - the value will be '''1'''. '''The chosen parameters cannot be from both instruction tables. All parameters must be either from 1<sup>st</sup> or 2<sup>nd</sup> instruction table at the time.<br />
<br>
'''2.''' <arg2> (Value 42944 in the example) is calculated like this:<br />
*Open Window's Calculator software (or any other calculator software) in ''Programmer'' mode and select ''BIN'' (Binary) as shown in the picture below:<br />
[[Image:Calculator-software pic.png|280px]] <br />
* Decide which parameters you would like to enable. Possible value options are: <br />
**1 - ON <br />
**0 - OFF <br />
*In the example above, parameters from 1<sup>st</sup> ''instruction table'' are chosen. Those parameters are: ''Display battery level is ON; Error icon is ON; Bluetooth Broadcast is ON; Panel display is ON; Display speed is ON; Display unit is ON; Use mph units is ON.'' <br />
*When the parameters which you would like to enable are chosen, open ''Calculator'' software in ''Programmer'' mode, ''BIN'' (Binary) field again. <br />
*[[Image:Alert.png|20px|left]]<u>Starting '''from the bottom''' of the instruction table and '''moving upwards'''</u>, type the values (0/1) in the ''Calculator'' depending on if the parameter should be '''enabled''' (Value 1) or '''disabled''' (Value 0). <br />
For example, starting from the bottom of the table: <br />
- Display speed mode or not '''(OFF)''' - Value = '''0''' <br />
- Button can change mode or not '''(OFF)''' - Value = '''0''' <br />
- Display battery level on or off '''(ON)''' - Value = '''1''' <br />
... <br />
*After you finish adding 0/1 binary values to ''Calculator'', the value that will be used in '''scsetconfig''' command will be displayed in '''decimal'''. Refer to image below. <br />
[[Image:Generated-values.png|800px]]
0

edits