Skip to content

Commit 22d919e

Browse files
committed
Merge branch 'feature/perfected_readme' into 'master'
perfected 1906 readme file See merge request adf/esp-adf-internal!574
2 parents f183281 + 39b6ed3 commit 22d919e

7 files changed

+111
-26
lines changed

examples/korvo_du1906/README.md

+111-26
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,119 @@ This example is will run on boards marked with green checkbox. Please remember t
2323
| ESP32-Du1906 | ![alt text](../../docs/_static/esp32-korvo-du1906-v1.1-small.jpg "ESP32-Korvo-DUL1906") | <img src="../../docs/_static/ESP32.svg" height="85" alt="ESP32"> | ![alt text](../../docs/_static/yes-button.png "Compatible") |
2424
| ESP32-S2-Kaluga-1 Kit | ![alt text](../../docs/_static/esp32-s2-kaluga-1-kit-small.png "ESP32-S2-Kaluga-1 Kit") | <img src="../../docs/_static/ESP32-S2.svg" height="100" alt="ESP32-S2"> | ![alt text](../../docs/_static/no-button.png "Compatible") |
2525

26-
## Configure the project
27-
Please refer to [Get Started](https://docs.espressif.com/projects/esp-adf/en/latest/get-started/index.html#get-started) for toolchain setup.
26+
## Setup software environment
27+
28+
Please refer to [Get Started](https://docs.espressif.com/projects/esp-adf/en/latest/get-started/index.html#get-started).
29+
30+
## Authentication code
31+
32+
Please refer to [度家 AIOT 快速入门](https://cloud.baidu.com/doc/SHC/s/wk7bl9g8i) and apply for factory code (fc), product Key (pk), access key (ak) and secret key (sk) that should be then saved in `profiles/profile.bin`
33+
34+
## Jumpstart the example
35+
No need to compile the project, just use the firmware in this example.
36+
37+
The firmware downloading flash address refer to follow table.
38+
39+
Flash address | Bin Path
40+
---|---
41+
0x1000 | bootloader.bin
42+
0x8000 | partitions.bin
43+
0x10000 | app.bin
44+
0x542000 | dsp_v1.4.0.C.bin
45+
0x7c2000 | profile.bin
46+
0x7c3000 | audio_tone.bin
47+
48+
### Download firmware
49+
50+
#### Linux operating system
51+
52+
Run the command below:
53+
```bash
54+
python $ADF_PATH/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 \
55+
--port PORT --baud 921600 \
56+
--before default_reset \
57+
--after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect \
58+
0x1000 ./firmware/bootloader.bin \
59+
0x8000 ./firmware/partitions.bin \
60+
0x10000 ./firmware/app.bin \
61+
0x542000 ./firmware/dsp_v1.4.0.C.bin \
62+
0x7c2000 ./profiles/profile.bin \
63+
0x7c3000 ./tone/audio_tone.bin
64+
```
65+
#### Windows operating system
66+
67+
- **step 1:** [Download the firmware download tool](https://www.espressif.com/sites/default/files/tools/flash_download_tool_v3.8.5_0.zip) and unzip the compressed package, then run the executable file with ".exe" suffix.
68+
- **step 2:** Choose download mode (Developer Mode)
69+
70+
<img src="./docs/pictures/tool_choose_mode.jpg" height="320" width="480" alt="Tool choose mode">
71+
72+
- **step 3:** Choose chip (ESP32)
73+
74+
<img src="./docs/pictures/tool_choose_chip.jpg" height="640" width="480" alt="Tool choose chip">
75+
76+
- **step 4:** open firmware directory (`$ADF_PATH/example/korvo_du1906/firmware`) and fill in the address according to the above flash address table.
77+
78+
<img src="./docs/pictures/tool_download.png" height="640" width="480" alt="Tool download">
79+
80+
**Note: The tone bin is in `$ADF_PATH/example/korvo_du1906/tone/audio_tone.bin` and profile.bin is in `$ADF_PATH/example/korvo_du1906/profile/profile.bin`**
81+
82+
- **step 5:** Click `START` button on the graphical interface to download the firmware
83+
84+
After download firmware, press `[RST]` button, and then there will be some logs print on the serial port.
85+
86+
### Network configuration
87+
88+
- **step 1:** Download and install Blufi app on cell phone, [App for Andriod](https://github.com/EspressifApp/EspBlufiForAndroid/releases), [App for IOS](https://github.com/EspressifApp/EspBlufiForiOS/releases)
89+
- **step 2:** Open bluetooth and open blufi app on mobilephone, scan the device.
90+
- **step 3:** Press `[FUNC]` button on device for 4s, the device will enter wifi-setting mode, and play a tone music "请点击确认开始配网".
91+
- **step 4:** Fresh the scan list, there will be a device named "BLUFI_DEVICE", click it and choose `[连接]` on phone.
92+
93+
<img src="./docs/pictures/blufi_connect.png" height="640" width="480" alt="Blufi connect">
94+
95+
- **step 5:** After connect to device, click `[配网]`, input wifi ssid and password that to connect.
96+
- **step 6:** Click `[确认]`, the device will acquire the wifi information and connect to network. If conenct to wifi successfully, the app will receive a string "hello world" and the device will play a tone music "网络连接成功".
97+
98+
<img src="./docs/pictures/blufi_config.png" height="640" width="480" alt="Blufi configuration">
99+
100+
**Note: If configurate fails, check the above process and try again. Be careful and patient!**
101+
102+
### Features experience
103+
104+
**Note that, please make sure that there is a speaker inserts to the board at least.**
105+
106+
#### Voice interaction
107+
108+
After configurate wifi information and connect to network, you can start a conversation with a voice wake-up word "xiaodu xiaodu", such as below supported command:
109+
- "小度小度" "在呢" "讲个笑话"
110+
- "小度小度" "在呢" "上海天气怎么样?"
111+
- "小度小度" "在呢" "播放一首歌"
112+
- "小度小度" "在呢" "百度百科乐鑫信息科技"
113+
114+
If you need more instructions, you can define them in the background of Baidu.
115+
116+
#### bluetooth music
117+
118+
Press `[MUTE]` button for 3-5s enter BT mode, open bluetooth on your phone and connect to device named "ESP_BT_COEX_DEV", and then you can play bt music on the device.
119+
120+
#### Buttons usage
121+
Name of Button | Short press | Long press
122+
:-:|:-:|:-:
123+
VOL + | Volume up | NA
124+
VOL - | Volume down| NA
125+
MUTE | Enter mute mode |Enter/Exit BT mode
126+
FUNC | NA |Setting Wi-Fi
127+
128+
## Build and flash
129+
130+
After the experience, it's time to build the example now! you can also add some features by yourself and then build it.
28131

29132
### Apply patch
133+
30134
For now, we need to apply an IDF patch.
31135
```bash
32136
cd $IDF_PATH
33137
git apply $ADF_PATH/idf_patches/idf_v3.3_freertos.patch
34138
```
35-
### Authentication code
36-
37-
Please refer to [度家 AIOT 快速入门](https://cloud.baidu.com/doc/SHC/s/wk7bl9g8i) and apply for factory code (fc), product Key (pk), access key (ak) and secret key (sk) that should be then saved in `profiles/profile.bin`
38139

39140
### Menuconfig
40141

@@ -44,9 +145,8 @@ Select the default sdkconfig for build
44145
cp sdkconfig.defaults sdkconfig
45146
```
46147

47-
## Build and Flash
48-
49148
### Build
149+
50150
You can use `GNU make` or `cmake` to build the project.
51151
If you are using make:
52152
```bash
@@ -63,6 +163,7 @@ idf.py fullclean
63163
idf.py menuconfig
64164
idf.py build
65165
```
166+
66167
### Downloading
67168

68169
Download application with make
@@ -87,27 +188,11 @@ python $ADF_PATH/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 \
87188
0x7c3000 ./tone/audio_tone.bin
88189
```
89190

90-
The firmware downloading flash address refer to follow table.
91-
92-
Flash address | Bin Path
93-
---|---
94-
0x1000 | bootloader.bin
95-
0x8000 | partitions.bin
96-
0x10000 | app.bin
97-
0x542000 | dsp_v1.4.0.C.bin
98-
0x7c2000 | profile.bin
99-
0x7c3000 | audio_tone.bin
191+
The firmware downloading flash address refer to above table in jumpstart part.
100192

101-
## Usage
102-
- Name of BT device is `ESP_BT_COEX_DEV`
193+
### Usage
103194

104-
### Keys
105-
Name of Key | Short press | Long press
106-
---|---|---
107-
Vol + | Volume up | NA
108-
Vol - | Volume down| NA
109-
Mute | NA |Enter/Exit BT mode
110-
Func | NA |Setting Wi-Fi
195+
Please refer to jumpstart part.
111196

112197
### Upgrade function
113198

Binary file not shown.
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)