#ifndef _DEV_DESC_H_ #define _DEV_DESC_H_ #include "app_config.h" #ifdef CONFIG_VIDEO_720P #define VIDEO_TYPE "\"1\"" #else #define VIDEO_TYPE "\"0\"" #endif #define DEV_DESC_HEAD "{\"app_list\": {"\ "\"match_android_ver\": "\ "[\"1.0\",\"2.0\"],"\ "\"match_ios_ver\": "\ "[\"1.0\",\"2.0\"]}," //WL80前视只有7VGA #define FORW_SPT DEV_DESC_HEAD\ "\"forward_support\": ["\ VIDEO_TYPE\ "]," //WL80后视只有VGA #define BIHD_SPT FORW_SPT\ "\"behind_support\": ["\ "\"0\""\ "]," //WL80前视录像只有VGA #define FORW_REC_SPT BIHD_SPT\ "\"forward_record_support\": ["\ VIDEO_TYPE\ "]," //WL80后视录像只有VGA #define BIHD_REC_SPT FORW_REC_SPT\ "\"behind_record_support\": ["\ "\"0\""\ "]," //WL80 RTSP前视 #define RTSP_FSPT BIHD_REC_SPT\ "\"rtsp_forward_support\": ["\ VIDEO_TYPE\ "]," //WL80 RTSP后视只有VGA #define RTSP_HSPT RTSP_FSPT\ "\"rtsp_behind_support\": ["\ "\"0\""\ "]," #define DEV_TYPE RTSP_HSPT\ "\"device_type\": \"1\"," //实时流传输协议配置 #ifdef CONFIG_NET_UDP_ENABLE #define NET_TYPE DEV_TYPE\ "\"net_type\": \"1\"," #else #define NET_TYPE DEV_TYPE\ "\"net_type\": \"0\"," #endif //实时流类型配置 #ifdef CONFIG_NET_JPEG #define PKG_TYPE NET_TYPE\ "\"rts_type\": \"0\"," #else #define PKG_TYPE NET_TYPE\ "\"rts_type\": \"1\"," #endif //产品名称配置 #define PROD_TYPE PKG_TYPE\ "\"product_type\": \"AC79x_wifi_camera\"," //投屏 #ifdef CONFIG_NET_SCR #define NET_SCR PROD_TYPE\ "\"support_projection\":\"1\"," #else #define NET_SCR PROD_TYPE\ "\"support_projection\":\"0\"," #endif #if (CONFIG_DOUBLE_BANK_ENABLE == 0) #define OTA_TYPE NET_SCR\ "\"ota_type\": \"1\","\ "\"ota_step\": \"0\"," #else #define OTA_TYPE NET_SCR\ "\"ota_type\": \"0\","\ "\"ota_step\": \"0\"," #endif #define DEV_DESC_STRING OTA_TYPE\ "\"firmware_version\": \"1.0.1\","\ "\"match_app_type\": \"DVRunning 2\","\ "\"uuid\": \"xxxxxx\"}" /***************************http_虚拟文件注册**********************************/ #define DEV_DESC_PATH "mnt/spiflash/res/dev_desc.txt" #define DEV_DESC_CONTENT DEV_DESC_STRING #endif