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
Copy file name to clipboardExpand all lines: docs/ESP32_AT_Factory_Parameter_Bin.md
+73-12Lines changed: 73 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
# Overview
2
-
There are some differences between different development boards, and different countries also have different restrictions on RF. So we need a table to manage these differences.
2
+
In order to adapt the AT firmware to different requirements, for example, different development board, different country code, different RF restriction, we make a table to configure those parameters.
3
3
4
-
## Factory param type
5
-
The factory param type is shown in the following table:
4
+
5
+
## Factory param type
6
+
7
+
The origin table is [`components/customized_partitions/raw_data/factory_param/factory_param_type.csv`](components/customized_partitions/raw_data/factory_param/factory_param_type.csv), and the factory parameter type is as the following table:
6
8
7
9
| param_name | offset | type | size |
8
10
| ------------- | ------ | ------- | ---- |
9
-
| module_name | -1 | String | 0 |
11
+
| module_name |-1 | String | 0 |
10
12
| magic_flag | 0 | integer | 2 |
11
13
| version | 2 | integer | 1 |
12
14
| module_id | 3 | integer | 1 |
@@ -24,7 +26,7 @@ The factory param type is shown in the following table:
24
26
- the version of factory param mangement
25
27
26
28
- module_id
27
-
- the index of development boards
29
+
- the index of development boards, it MUST be unique.
28
30
- 1 - WROOM32
29
31
- 2 - WROVER32
30
32
- 3 - PICO-D4
@@ -46,24 +48,83 @@ The factory param type is shown in the following table:
46
48
- uart baudrate
47
49
48
50
- uart\_tx_pin
49
-
- tx pin
51
+
-uart tx pin
50
52
51
53
- uart\_rx_pin
52
-
- rx pin
54
+
-uart rx pin
53
55
54
56
- uart\_ctx_pin
55
-
- ctx pin
57
+
-uart ctx pin
56
58
57
59
- uart\_rts_pin
58
-
- rts pin
60
+
-uart rts pin
59
61
60
-
## Factory param data
62
+
## Factory param data
63
+
64
+
The origin table is [`components/customized_partitions/raw_data/factory_param/factory_param_data.csv`](components/customized_partitions/raw_data/factory_param/factory_param_data.csv), and the information each row contains is about one module. The factory parameter data is as the following table:
Save the factory param date for each development boards in a table, it was organized as bellow:
76
+
if you want to add a module named as "MY_MODULE", of which country code is JP, and Wi-Fi channel is from 1 to 14, the table should be as the following one:
If you want to add more parameter, for example, add a string "20181225" as the date, you need to add the type of date in the `factory_param_type.csv`, as the following table.
101
+
102
+
| param_name | offset | type | size |
103
+
| ------------- | ------ | ------- | ---- |
104
+
| module_name | - | String | 0 |
105
+
| magic_flag | 0 | integer | 2 |
106
+
| version | 2 | integer | 1 |
107
+
| module_id | 3 | integer | 1 |
108
+
| tx_max_power | 4 | integer | 1 |
109
+
| start_channel | 6 | integer | 1 |
110
+
| channel_num | 7 | integer | 1 |
111
+
| country_code | 8 | String | 4 |
112
+
| uart_baudrate | 12 | integer | 4 |
113
+
| uart_tx_pin | 16 | integer | 1 |
114
+
| uart_rx_pin | 17 | integer | 1 |
115
+
| uart_ctx_pin | 18 | integer | 1 |
116
+
| uart_rts_pin | 19 | integer | 1 |
117
+
| date | 20 | String | 8 |
118
+
119
+
Edit `factory_param_data.csv` with reference to
120
+
[Add customized module](#Add_Customized_Module), and add the date into the last column, as the following table,
0 commit comments