Skip to content

Commit 636a0f9

Browse files
committed
Update documentation to advise users to maintain configuration backups.
1 parent 26a398c commit 636a0f9

3 files changed

Lines changed: 81 additions & 57 deletions

File tree

docs/Cli.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Command Line Interface (CLI)
2+
3+
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.
66+
67+
Re-apply any new defaults as desired.
68+
69+

docs/Configuration.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# Configuration
22

3-
43
Cleanflight is configured primarilty using the Cleanflight Configurator GUI.
54

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,
76
be it a USB virtual serial port, physical hardware UART port or a softserial port.
87

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+
910
The GUI cannot currently configure all aspects of the system, the CLI must be used to enable or configure
1011
some features and settings.
1112

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+
1415

1516
## GUI
1617

@@ -21,18 +22,14 @@ can be used to interact with the CLI.
2122

2223
[Cleanflight Configurator on Chrome store](https://chrome.google.com/webstore/detail/cleanflight-configurator/enacoimjcgeinfnnnpajinjgmkahmfgb)
2324

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.
2426

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+
2530

2631
## CLI
2732

2833
Cleanflight can also be configured by a command line interface.
2934

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.

docs/Installation.md

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,6 @@ See the board specific flashing instructions.
1212

1313
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.
1414

15-
## Backup process
15+
## Backup/Restore process
1616

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

Comments
 (0)