AVS Firmware JSON Configuration

Last Updated on : 2024-06-21 03:27:08download

As the Alexa Voice Service (AVS) products have a lot of configurable information, JSON configurations are added to the firmware to match different needs.

The steps for setting parameters are as follows:

adb shell
nvram set .......
nvram commit
reboot -f

The specific configuration items and format of the firmware are shown in the following table:

Configuration item Configuration format Function
UUID
 nvram set UUID tuyac2e7a966378e9f9c
Set device authorization code UUID
Authkey
nvram set AUTHKEY WJ30AQfmOLWYnjGG32rBHM44RYrvIyyL 
Set authorization code Authkey
PRODUCT_KEY
nvram set PRODUCT_KEY keyrqahskuvgn8cr 
Set the firmware Key configuration item, the same as the product PID on the Tuya Developer Platform.
ZIGBEE_ENABLE
nvram set ZIGBEE_ENABLE 0 
Confirm whether to integrate Zigbee gateway function.
  • 0: no. Default value.
  • 1: yes.
AVS_PID
nvram set AVS_PID smart_mirror 
Set Amazon’s product ID. You can get it on the Amazon platform, and the default is Tuya_module_RK3308.
Note: You can apply for AVSPID in the Amazon backend.
MCU_UART_SPEED
nvram set MCU_UART_SPEED 9600 
Set your MCU connection baud rate. The default is 115200.
FIRM_TYPE
nvram set FIRM_TYPE MCU 
Set device firmware type.
  • MCU: User serial port can be used for communication.
  • (default) SoC: The user serial port is not open for communication.
avs_gateway_addr
nvram set avs_gateway_addr https://alexa.na.gateway.devices.a2z.com 
Select AVS service communication gateway address
  • https://alexa.na.gateway.devices.a2z.com, which means Canada, Mexico, the United States and other North American countries. Default value.
  • https://alexa.eu. gateway.devices.a2z.com, which means Austria, France, Germany, India, Italy, Spain, and United Kingdom.
  • https://alexa.fe.gateway.devices.a2z.com, which means Australia, Japan, and New Zealand.
Note: When setting the gateway address configuration information, if it is not in the above country list, you can use the North American country address by default.
wakeup_luanuge
nvram set wakeup_luanuge english_us 
Select wakeup word language:
  • (default) english_us
  • portuguese_br
  • english_au
  • french_ca
  • french_fr
  • german_de
  • english_uk
  • english_in
  • spanish_es
  • spanish_mx
  • italian_it
  • japanese_jp
Note: english_uk is not supported temporarily.
respond_lanuage
nvram set respond_lanuage english_us 
Select device response language:
  • (default) english_au
  • english_ca
  • english_in
  • english_uk
  • english_us
  • french_fr
  • german_de
  • hindi_in
  • italian_it
  • japanese_jp
  • portuguese_br
  • spanish_es
  • spanish_mx
  • spanish_us
Note: spanish_mx is not currently supported.
ble_name
nvram set ble_name HanSong 
Set the search name of the Bluetooth speaker function. The default is speaker_avs Speaker + last four digits of the Mac address.
GST_MAX_VOLUME
nvram set GST_MAX_VOLUME 100 
Set the maximum volume of the device. The effective range is 0-100, and the default is 100.
led_brightness
nvram set led_brightness 128 
Set the maximum brightness of the device indicator, the effective range is 0-255, and the default is 128.
persist.run.debug
nvram set persist.run.debug 1
Set the firmware type before the device network is activated, and the default user serial port is closed after the device is activated.
  • 1: The debug serial port is open.
  • 0: The debug serial port is closed.
Note: Before the device is configured, the debug serial port is in the open state. The debug serial port is automatically closed after the device is successfully connected to the network.