246 lines
5.3 KiB
Plaintext
246 lines
5.3 KiB
Plaintext
menu "TQ Controller Config"
|
|
|
|
config TQ_WIFI_SSID
|
|
string "Wi-Fi SSID"
|
|
default ""
|
|
|
|
config TQ_WIFI_PASSWORD
|
|
string "Wi-Fi Password"
|
|
default ""
|
|
|
|
config TQ_WIFI_MAXIMUM_RETRY
|
|
int "Wi-Fi Maximum Retry"
|
|
default 10
|
|
|
|
config TQ_WIFI_CONNECT_TIMEOUT_MS
|
|
int "Wi-Fi connect timeout (ms)"
|
|
range 3000 60000
|
|
default 15000
|
|
|
|
config TQ_LIFECYCLE_START_RETRY_COUNT
|
|
int "Lifecycle start retry count"
|
|
range 0 5
|
|
default 2
|
|
|
|
config TQ_LIFECYCLE_RETRY_BACKOFF_MS
|
|
int "Lifecycle retry base backoff (ms)"
|
|
range 100 10000
|
|
default 800
|
|
|
|
config TQ_HTTP_PORT
|
|
int "REST HTTP Port"
|
|
default 80
|
|
|
|
config TQ_REST_PRINTER_CONNECT_TIMEOUT_MS
|
|
int "REST printer connect timeout default (ms)"
|
|
range 1000 60000
|
|
default 15000
|
|
|
|
config TQ_REST_LABEL_TIMEOUT_MS
|
|
int "REST label/offset timeout default (ms)"
|
|
range 500 30000
|
|
default 5000
|
|
|
|
config TQ_REST_OTA_STEP_TIMEOUT_MS
|
|
int "REST OTA step timeout default (ms)"
|
|
range 500 60000
|
|
default 5000
|
|
|
|
config TQ_PRINTER_CONTROL_LOCK_TIMEOUT_MS
|
|
int "Printer control lane lock timeout (ms)"
|
|
range 100 5000
|
|
default 1000
|
|
|
|
config TQ_PRINTER_WORKER_QUEUE_WAIT_MS
|
|
int "Printer worker queue poll wait (ms)"
|
|
range 50 2000
|
|
default 250
|
|
|
|
config TQ_PRINTER_QUEUE_RETRY_DELAY_MS
|
|
int "Printer queue retry delay (ms)"
|
|
range 5 500
|
|
default 20
|
|
|
|
config TQ_PRINTER_STATUS_POLL_INTERVAL_MS
|
|
int "Printer status poll interval (ms)"
|
|
range 1000 30000
|
|
default 5000
|
|
|
|
config TQ_PRINTER_STOP_TIMEOUT_MS
|
|
int "Printer protocol stop timeout (ms)"
|
|
range 1000 30000
|
|
default 8000
|
|
|
|
config TQ_API_KEY
|
|
string "REST API Key (optional, empty means disabled)"
|
|
default ""
|
|
|
|
config TQ_Z_IMAGE_API_KEY
|
|
string "Z-Image API Key for DashScope HTTP (optional, fallback to Voice API key)"
|
|
default "sk-7a50eca6856d4afb968ac3bf512f6d1b"
|
|
|
|
config TQ_Z_IMAGE_API_ENDPOINT
|
|
string "Z-Image HTTP endpoint"
|
|
default "https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation"
|
|
|
|
config TQ_Z_IMAGE_MODEL
|
|
string "Z-Image model"
|
|
default "z-image-turbo"
|
|
|
|
config TQ_Z_IMAGE_DEFAULT_SIZE
|
|
string "Z-Image default output size"
|
|
default "512*768"
|
|
|
|
config TQ_Z_IMAGE_TIMEOUT_MS
|
|
int "Z-Image generation timeout (ms)"
|
|
range 5000 180000
|
|
default 45000
|
|
|
|
config TQ_Z_IMAGE_DOWNLOAD_TIMEOUT_MS
|
|
int "Z-Image image download timeout (ms)"
|
|
range 2000 120000
|
|
default 15000
|
|
|
|
config TQ_Z_IMAGE_MAX_RESPONSE_BYTES
|
|
int "Z-Image max response body bytes"
|
|
range 1024 262144
|
|
default 65536
|
|
|
|
config TQ_Z_IMAGE_MAX_PNG_BYTES
|
|
int "Z-Image max downloaded PNG bytes"
|
|
range 65536 8388608
|
|
default 4194304
|
|
|
|
config TQ_Z_IMAGE_HTTP_BUFFER_BYTES
|
|
int "Z-Image HTTP client buffer bytes"
|
|
range 4096 32768
|
|
default 16384
|
|
|
|
config TQ_Z_IMAGE_HTTP_READ_CHUNK_BYTES
|
|
int "Z-Image HTTP stream read chunk bytes"
|
|
range 4096 32768
|
|
default 16384
|
|
|
|
config TQ_Z_IMAGE_COEX_PREFER_WIFI_DURING_DOWNLOAD
|
|
bool "Prefer Wi-Fi RF during image download"
|
|
default y
|
|
|
|
config TQ_VOICE_API_KEY
|
|
string "Voice API Key for DashScope WebSocket (optional)"
|
|
default "sk-7a50eca6856d4afb968ac3bf512f6d1b"
|
|
|
|
config TQ_VOICE_WS_URI
|
|
string "Voice WebSocket URI"
|
|
default "wss://dashscope.aliyuncs.com/api-ws/v1/inference"
|
|
|
|
config TQ_VOICE_WORKSPACE_ID
|
|
string "Voice workspace_id"
|
|
default "llm-igyrxzdvbwja5gyt"
|
|
|
|
config TQ_VOICE_APP_ID
|
|
string "Voice app_id"
|
|
default "106a67b690db4686a5d6b40d119653fa"
|
|
|
|
config TQ_VOICE_USER_ID
|
|
string "Voice client user_id"
|
|
default "esp32-user"
|
|
|
|
config TQ_VOICE_DEVICE_UUID
|
|
string "Voice client device uuid (optional)"
|
|
default ""
|
|
|
|
config TQ_VOICE_TTS_VOICE
|
|
string "Voice TTS voice (optional)"
|
|
default "longling_v3"
|
|
|
|
config TQ_VOICE_SAMPLE_RATE
|
|
int "Voice sample rate"
|
|
range 8000 48000
|
|
default 16000
|
|
|
|
config TQ_VOICE_OPUS_FRAME_MS
|
|
int "Voice raw-opus frame size (ms)"
|
|
range 10 120
|
|
default 100
|
|
|
|
config TQ_VOICE_OPUS_BITRATE_KBPS
|
|
int "Voice raw-opus bitrate (kbps)"
|
|
range 6 128
|
|
default 32
|
|
|
|
config TQ_VOICE_HEARTBEAT_SEC
|
|
int "Voice heartbeat interval seconds"
|
|
range 10 55
|
|
default 50
|
|
|
|
config TQ_VOICE_I2C_PORT
|
|
int "Voice I2C port"
|
|
range 0 1
|
|
default 1
|
|
|
|
config TQ_VOICE_I2C_SDA_PIN
|
|
int "Voice I2C SDA GPIO"
|
|
range 0 48
|
|
default 4
|
|
|
|
config TQ_VOICE_I2C_SCL_PIN
|
|
int "Voice I2C SCL GPIO"
|
|
range 0 48
|
|
default 5
|
|
|
|
config TQ_VOICE_CODEC_ADDR
|
|
int "ES8311 I2C address"
|
|
range 1 126
|
|
default 48
|
|
|
|
config TQ_VOICE_I2S_PORT
|
|
int "Voice I2S port"
|
|
range 0 1
|
|
default 0
|
|
|
|
config TQ_VOICE_I2S_MCLK_PIN
|
|
int "Voice I2S MCLK GPIO"
|
|
range -1 48
|
|
default 39
|
|
|
|
config TQ_VOICE_I2S_BCLK_PIN
|
|
int "Voice I2S BCLK GPIO"
|
|
range 0 48
|
|
default 40
|
|
|
|
config TQ_VOICE_I2S_WS_PIN
|
|
int "Voice I2S WS GPIO"
|
|
range 0 48
|
|
default 41
|
|
|
|
config TQ_VOICE_I2S_DOUT_PIN
|
|
int "Voice I2S DOUT GPIO"
|
|
range 0 48
|
|
default 38
|
|
|
|
config TQ_VOICE_I2S_DIN_PIN
|
|
int "Voice I2S DIN GPIO"
|
|
range 0 48
|
|
default 42
|
|
|
|
config TQ_VOICE_CODEC_PA_PIN
|
|
int "ES8311 PA control GPIO"
|
|
range -1 48
|
|
default 48
|
|
|
|
config TQ_VOICE_CODEC_PA_PIN_REVERSED
|
|
bool "ES8311 PA enable level is active-low"
|
|
default n
|
|
|
|
config TQ_VOICE_CODEC_OUT_VOL
|
|
int "ES8311 output volume (0-100)"
|
|
range 0 100
|
|
default 70
|
|
|
|
config TQ_VOICE_CODEC_MIC_GAIN_DB
|
|
int "ES8311 mic gain dB"
|
|
range 0 42
|
|
default 24
|
|
|
|
endmenu
|