You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cleanflight has a command line interface (CLI) that can be used to change settings and configure the FC.
4
+
5
+
## Accessing the CLI.
6
+
7
+
The CLI can be accessed via the GUI tool or via a terminal emulator connected to the CLI serial port.
8
+
9
+
1. Connect your terminal emulator to the CLI serial port (which, by default, is the same as the MSP serial port)
10
+
2. Use the baudrate specified by cli_baudrate (115200 by default).
11
+
3. Send a `#` character.
12
+
13
+
To save your settings type in 'save', saving will reboot the flight controller.
14
+
15
+
To exit the CLI without saving power off the flight controller or type in 'exit'.
16
+
17
+
To see a list of other commands type in 'help' and press return.
18
+
19
+
To dump your configuration (including the current profile), use the 'dump' command.
20
+
21
+
See the other documentation sections for details of the cli commands and settings that are available.
22
+
23
+
## Backup via CLI
24
+
25
+
Disconnect main power, connect to cli via USB/FTDI.
26
+
27
+
dump using cli
28
+
29
+
`rate profile 0`
30
+
`profile 0`
31
+
`dump`
32
+
33
+
dump profiles using cli if you use them
34
+
35
+
`profile 1`
36
+
`dump profile`
37
+
38
+
`profile 2`
39
+
`dump profile`
40
+
41
+
dump rate profiles using cli if you use them
42
+
43
+
`rate profile 1`
44
+
`dump rates`
45
+
46
+
`rate profile 2`
47
+
`dump rates`
48
+
49
+
copy screen output to a file and save it.
50
+
51
+
## Restore via CLI.
52
+
53
+
Use the cli `defaults` command first.
54
+
55
+
When restoring from a backup it is a good idea to do a dump of the latest defaults so you know what has changed - if you do this each time a firmware release is created youwill be able to see the cli changes between firmware versions. For instance, in December 2014 the default GPS navigation PIDs changed. If you blindly restore your backup you would not benefit from these new defaults.
56
+
57
+
Use the CLI and send all the output from the saved from the backup commands.
58
+
59
+
Do not send the file too fast, if you do the FC might not be able to keep up when using USART adapters (including built in ones) since there is no hardware serial flow control.
60
+
61
+
You may find you have to copy/paste a few lines at a time.
62
+
63
+
Repeat the backup process again!
64
+
65
+
Compare the two backups to make sure you are happy with your restored settings.
Cleanflight is configured primarilty using the Cleanflight Configurator GUI.
5
4
6
-
Both the command line interface and gui are accessible by connecting to a serial port on the target,
5
+
Both the command line interface and GUI are accessible by connecting to a serial port on the target,
7
6
be it a USB virtual serial port, physical hardware UART port or a softserial port.
8
7
8
+
See the Serial section for more information and see the Board specific sections for details of the serial ports available on the board you are using.
9
+
9
10
The GUI cannot currently configure all aspects of the system, the CLI must be used to enable or configure
10
11
some features and settings.
11
12
12
-
See the Serial section for more information.
13
-
See the Board specific sections for details of the serial ports available on the board you are using.
13
+
__Due to ongoing development, the fact that the GUI cannot yet backup all your settings and automatic chrome updates of the GUI app it is highly advisable to backup your settings (using the CLI) so that when a new version of the configurator or firmware is released you can re-apply your settings.__
14
+
14
15
15
16
## GUI
16
17
@@ -21,18 +22,14 @@ can be used to interact with the CLI.
21
22
22
23
[Cleanflight Configurator on Chrome store](https://chrome.google.com/webstore/detail/cleanflight-configurator/enacoimjcgeinfnnnpajinjgmkahmfgb)
23
24
25
+
If you cannot use the latest version of the GUI to access the FC due to firmware compatibility issues you can still access the FC via the CLI to backup your settings, or you can install an old version of the configurator.
24
26
27
+
Old versions of the configurator can be downloaded from the configurator releases page: https://github.com/cleanflight/cleanflight-configurator/releases
28
+
See the README file that comes with the configurator for installation instructions.
29
+
25
30
26
31
## CLI
27
32
28
33
Cleanflight can also be configured by a command line interface.
29
34
30
-
The CLI can be accessed via the GUI tool or by sending a single '#' character to the main serial port.
31
-
32
-
To exit the CLI without saving power off the flight controller or type in 'exit'.
33
-
34
-
To see a list of commands type in 'help' and press return.
35
-
36
-
To dump your configuration (including the current profile), use the 'dump' command.
37
-
38
-
See the other documentation sections for details of the cli commands and settings that are available.
35
+
See the CLI section of the documentation for more details.
Copy file name to clipboardExpand all lines: docs/Installation.md
+2-44Lines changed: 2 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,48 +12,6 @@ See the board specific flashing instructions.
12
12
13
13
When upgrading be sure to backup / dump your existing settings. Some firmware releases are not backwards compatible and default settings are restored when the FC detects an out of date configuration.
14
14
15
-
## Backup process
15
+
## Backup/Restore process
16
16
17
-
disconnect main power, connect to cli via USB/FTDI.
18
-
19
-
dump using cli
20
-
21
-
`rate profile 0`
22
-
`profile 0`
23
-
`dump`
24
-
25
-
dump profiles using cli if you use them
26
-
27
-
`profile 1`
28
-
`dump profile`
29
-
30
-
`profile 2`
31
-
`dump profile`
32
-
33
-
dump rate profiles using cli if you use them
34
-
35
-
`rate profile 1`
36
-
`dump rates`
37
-
38
-
`rate profile 2`
39
-
`dump rates`
40
-
41
-
copy screen output to a file and save it.
42
-
43
-
## Restore process
44
-
45
-
Use the cli `defaults` command first.
46
-
47
-
When restoring from a backup it is a good idea to do a dump of the latest defaults so you know what has changed - if you do this each time a firmware release is created youwill be able to see the cli changes between firmware versions. For instance, in December 2014 the default GPS navigation PIDs changed. If you blindly restore your backup you would not benefit from these new defaults.
48
-
49
-
Use the CLI and send all the output from the saved from the backup commands.
50
-
51
-
Do not send the file too fast, if you do the FC might not be able to keep up when using USART adapters (including built in ones) since there is no hardware serial flow control.
52
-
53
-
You may find you have to copy/paste a few lines at a time.
54
-
55
-
Repeat the backup process again!
56
-
57
-
Compare the two backups to make sure you are happy with your restored settings.
58
-
59
-
Re-apply any new defaults as desired.
17
+
See the CLI section of the docs for details on how to backup and restore your configuration via the CLI.
0 commit comments