Device Debugging

DC688 USB Drive Production
Enabling ADB
- Use a
FAT32USB drive and writeFANCONN_ADB.txtto its root directory,
FANCONN_ADB.txt
The content does not matter; it only needs to exist
USB Drive Production Instructions
Custom USB Drive Production File
Use a FAT32 USB drive and write FANCONN_CMD.txt to its root directory,
Open the customization page separately https://fanconn.com/config.html
Customize the USB drive file directly
Standard Production Template
-
Note: This configuration requires firmware version1.4.0 or later -
For custom firmware, please confirm with technical support, or update to a version that supports this feature.
FANCONN_CMD.txt
# Clear the accelerometer cache
CMD_CLEAR_SENSOR_CACHE=Y
# Accelerometer 0 degrees front-facing
CMD_SET_G-SENSOR_AXIS=0
# Replace the USB drive wallpaper /Fanconn/display/wallpaper/image/default_wallpaper.png
CMD_SET_DEF_WALLPAPER=Y,1
# Install APK files from the USB drive /Fanconn/apks/
CMD_INSTALL_APKS=Y
# Battery protocol
CMD_SET_BATTERY_PROTOCOL=0
# Auto connect to WI-FI
CMD_CONNECT_WIFI=Y,WIFI,password
# Automatic OTA upgrade
CMD_LOACL_OTA_STRESS_TEST=N,1
# Force factory reset
CMD_FACTORY_REST=Y,N
# Adjust volume gain 0-124, default 74
CMD_SET_SPK_GAIN=Y,74,N
Parameter Descriptions
1. Accelerometer Direction
[Y--clear the accelerometer cache, N--do not clear]
CMD_CLEAR_SENSOR_CACHE=Y
[0--0 degrees front-facing]
CMD_SET_G-SENSOR_AXIS=0
Angle Correspondence Table
| Mounting Direction | Angle | Value |
|---|---|---|
| Front | 0 degrees | CMD_SET_G-SENSOR_AXIS=0 |
| Front | 90 degrees | CMD_SET_G-SENSOR_AXIS=1 |
| Front | 180 degrees | CMD_SET_G-SENSOR_AXIS=2 |
| Front | 270 degrees | CMD_SET_G-SENSOR_AXIS=3 |
| Back | 0 degrees | CMD_SET_G-SENSOR_AXIS=4 |
| Back | 90 degrees | CMD_SET_G-SENSOR_AXIS=5 |
| Back | 180 degrees | CMD_SET_G-SENSOR_AXIS=6 |
| Back | 270 degrees | CMD_SET_G-SENSOR_AXIS=7 |
- DC688 uses a
6-axis gyroscope (3-axis accelerometer + 3-axis angular rate); the direction settings above also apply.
2. Replacing the Wallpaper
[Y--replace the default wallpaper, N--do not replace, 0--clear the backed-up default wallpaper, 1--replace the default wallpaper]
[Path: root/Fanconn/display/wallpaper/image/default_wallpaper.png]
-
Note: Changing the wallpaper requires the exFAT format
CMD_SET_DEF_WALLPAPER=Y,1
3. Auto-installing APKs
[Y--install the apk files, N--do not install]
[Path: root/Fanconn/apks/]
CMD_INSTALL_APKS=Y
4. Battery Level Protocol
-
[
0Public protocol] -
[
1Lingyi protocol] -
[
2Changfeng protocol] -
[
3Dida protocol] -
[
-1Disable battery display]
Note: Public firmware
1.4.1 and later supportsChangfengandDidaDC688 Downloads - 02.Software / Battery Communication Protocol
CMD_SET_BATTERY_PROTOCOL=0
5. Auto-connecting to WIFI
[Connect to the specified WIFI (enable or not),(full WIFI name),(password)]
[Separate parameters with commas; make sure to use English commas]
CMD_CONNECT_WIFI=Y,WIFI,password
- OTA Upgrade
[Local OTA upgrade (enable or not),(number of OTA runs)]
[Separate parameters with commas; make sure to use English commas]
CMD_LOACL_OTA_STRESS_TEST=Y,1
7. Forced Factory Reset
[Factory reset (enable or not),(force or not)]
[Y--reset, N--do not reset]
CMD_FACTORY_REST=Y,N
8. Power Amplifier Gain Adjustment
[Speaker gain setting (enable or not),(gain),(force update)]
[Gain range 0-124, default 74]
[Force update is optional; if not set, it will not force an update]
[Separate parameters with commas; make sure to use English commas]
-
Safe gain range
50-90 , default 74 -
Do not exceed 90; excessive power may damage the power amplifier chip
CMD_SET_SPK_GAIN=Y,74,N
Notes
1. Editing Files on Windows 11 Causes Parameters to Become Invalid
-
The Windows 11
Notepadmay fail to save the configuration; the next time it is opened it still shows the unedited file -
After editing text in
Notepad, always close the file; if you do not close it, the cache will persist
