Page 1 of 1
关于tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug的kconfig问题
Posted: 2023年 Oct 8日 11:10
by dav1d
我对tuya_app.config存在配置问题,我无法找到,如按键1 RX1 低电平有效和继电器指示灯1 ADC 低电平有效 等信息,
我希望等到帮助!我把我找的信息一标记,但不确定是否正确,麻烦技术帮我确认,谢谢!
这是硬件配置信息
电量统计
计量芯片 贝岭bl0937
采样电阻 1(毫欧姆(mΩ))
电量统计(CF) P7 当前配置版本V1.0.5
电压电流检测 P6 最新版本V1.0.8
电流电压切换脚 P24 高电平有效
工作电压 220v
过流点 20000 (毫安(mA))
过压点 0(伏特)
欠压点 0(伏特)
配网设置
复位长按秒数 5 (秒(s))
首次配网触发方式 长按配网3min超时有防误触
网络指示灯 P8 低电平有效
网络指示灯复用 不复用
未联网网络指示灯状态 亮
已联网网络指示灯状态 灭
ffc设置
遥控器功能选择 不支持遥控器控制
通道一
单插按键类型 电平触发
按键1 RX1 低电平有效
单插继电器类型 电保持继电器
继电器1 P26 高电平有效
继电器指示灯1 ADC 低电平有效
通道默认上电状态 断电记忆
这是我的tuya_app.config代码如下:
Code: Select all
# CONFIG_TY_CATEGORY_TP_LIGHT is not set
CONFIG_TY_CATEGORY_TP_ELE=y
# CONFIG_TY_CATEGORY_TP_COMM_PROT is not set
# CONFIG_TY_CATEGORY_TP_SENSOR is not set
# CONFIG_TY_CATEGORY_TP_LOCK is not set
# CONFIG_TY_CATEGORY_TP_APPLIANCE is not set
# CONFIG_TY_CATEGORY_TP_REMOTE is not set
CONFIG_ENABLE_TY_SOC_DEV=y
CONFIG_TY_FIRMWARE_KEY="keykespntekm3dsj"
# CONFIG_ENABLE_TY_FIRMWARE_OEM is not set
# CONFIG_ENABLE_TY_MATTER is not set
CONFIG_TY_PRODUCT_ID="3y7vno9hmmxnkeqe"
CONFIG_TY_NET_CFG_TIME=3
CONFIG_TY_WIFI_CFG_MTHD=2
CONFIG_TY_WIFI_START_MODE=3
CONFIG_ENABLE_MF_TEST_STATUS=y
CONFIG_ENABLE_PRODUCT_TEST_SCAN_WIFI=y
# CONFIG_ENABLE_PRODUCT_TEST_MF is not set
# CONFIG_ENABLE_TY_INFORM_OTA_REQ is not set
CONFIG_ENABLE_TY_PROD_INIT_NORMAL_PROCESS=y
#
# TuyaOS elec application configuration
#
CONFIG_ENABLE_ELEC_CHILD_LOCK=y
CONFIG_ELEC_CHILD_LOCK_DPID=41
CONFIG_ELEC_CHILD_LOCK_AUTO_LOCK_ENABLE=y
CONFIG_ELEC_CHILD_LOCK_AUTO_LOCK_TIME_MS=5000
#
# elec channel configuration
#
CONFIG_ELEC_CHANNEL_POWER_ON_MODE=0
CONFIG_ELEC_CHANNEL_POWER_ON_DPID=38
CONFIG_ELEC_CHANNEL_NUM=1
CONFIG_ENABLE_ELEC_CHANNEL_1=y
CONFIG_ELEC_CHANNEL_1_SWITCH_DPID=1
CONFIG_ELEC_CHANNEL_1_RELAY_NAME="relay_1"
CONFIG_ELEC_CHANNEL_1_RELAY_TYPE=0
CONFIG_ELEC_CHANNEL_1_RELAY_PIN=6 //电流电压检测
CONFIG_ELEC_CHANNEL_1_RELAY_PIN_MODE=4
CONFIG_ELEC_CHANNEL_1_RELAY_LEVEL=1
# CONFIG_ENABLE_ELEC_CHANNEL_1_LED is not set
# end of elec channel configuration
#
# elec button configuration
#
CONFIG_ELEC_BUTTON_NUM=1
CONFIG_ENABLE_ELEC_BUTTON_0=y
CONFIG_ELEC_BUTTON_0_NAME="button_0"
CONFIG_ELEC_BUTTON_0_PIN=26 //继电器P26
CONFIG_ELEC_BUTTON_0_ACTIVE_LEVEL=0
CONFIG_ELEC_BUTTON_0_DEBOUNCE_MS=50
CONFIG_ELEC_BUTTON_0_LONG_START_MS=3000
CONFIG_ELEC_BUTTON_0_LONG_KEEP_MS=1000
CONFIG_ELEC_BUTTON_0_REPEAT_COUNT=4
CONFIG_ELEC_BUTTON_0_REPEAT_MS=500
CONFIG_ELEC_BUTTON_0_SINGLE_CLICK=1
CONFIG_ELEC_BUTTON_0_DOUBLE_CLICK=0
CONFIG_ELEC_BUTTON_0_LONG_PRESS=10
CONFIG_ELEC_BUTTON_0_REPEAT_CLICK=11
# end of elec button configuration
#
# elec led indicate configuration
#
CONFIG_ENABLE_ELEC_NET_INDICATOR_MUX_MODE=y
CONFIG_ELEC_NET_LED_NAME="net_led"
CONFIG_ELEC_NET_LED_PIN=8 //网络指示灯
CONFIG_ELEC_NET_LED_LEVEL=1
CONFIG_ELEC_NET_LED_PIN_MODE=4
CONFIG_ELEC_NET_LED_AP_FLASH_MS=1500
CONFIG_ELEC_NET_LED_EZ_FLASH_MS=250
CONFIG_ENABLE_POWER_INDICATOR=y
CONFIG_ELEC_LIGHT_MODE_DPID=40
CONFIG_ELEC_LIGHT_MODE=0
CONFIG_ELEC_POWER_LED_NAME="pow_led"
# end of elec led indicate configuration
CONFIG_ENERGY_MONITOR_ENABLE=y
CONFIG_ENABLE_ENERGY_OVERCHARGE=y
CONFIG_ENERGY_METER_OVERCHARGE_DPID=39
CONFIG_OVERCHARGE_POWER_THRESHOLD=3
CONFIG_OVERCHARGE_DURATION_MINS=40
CONFIG_ENABLE_ENERGY_FAULT=y
CONFIG_ENERGY_METER_FAULT_DPID=26
CONFIG_ENERGY_METER_FAULT_OVER_CURRENT=0
CONFIG_ENERGY_METER_FAULT_OVER_VOLTAGE=0
CONFIG_ENERGY_METER_FAULT_LESS_VOLTAGE=0
CONFIG_PRODUCT_TEST_ENERGY_MONITOR=y
#
# elec factory production test configuration
#
CONFIG_ENERGY_MONITOR_CAL_ERR_PERCENT=50
CONFIG_ENERGY_MONITOR_CAL_VOLTAGE=2200
CONFIG_ENERGY_MONITOR_CAL_CURRENT=392
CONFIG_ENERGY_MONITOR_CAL_POWER=864
CONFIG_ENERGY_MONITOR_SAMPLE_RESISTOR=1
CONFIG_ENERGY_MONITOR_NAME="energy_monitor"
#
# energy monitor chip configuration
#
# CONFIG_ENERGY_MONITOR_CHIP_HLW8012 is not set
# CONFIG_ENERGY_MONITOR_CHIP_HLW8032 is not set
CONFIG_ENERGY_MONITOR_CHIP_BL0937=y //贝岭bl0937
# CONFIG_ENERGY_MONITOR_CHIP_BL0942 is not set
CONFIG_ENERGY_MONITOR_TIMER_ID=0
CONFIG_ENERGY_MONITOR_SEL_PIN=20
CONFIG_ENERGY_MONITOR_SEL_LEVEL=1
CONFIG_ENERGY_MONITOR_CF1_PIN=8
CONFIG_ENERGY_MONITOR_CF_PIN=7//电量统计
# end of energy monitor chip configuration
CONFIG_ENERGY_MONITOR_ADD_ELE_DPID=17
CONFIG_ENERGY_MONITOR_CUR_CURRENT_DPID=18
CONFIG_ENERGY_MONITOR_CUR_POWER_DPID=19
CONFIG_ENERGY_MONITOR_CUR_VOLTAGE_DPID=20
CONFIG_ENERGY_MONITOR_TEST_RESULT_DPID=21
CONFIG_ENERGY_MONITOR_COE_VOLTAGE_DPID=22
CONFIG_ENERGY_MONITOR_COE_CURRENT_DPID=23
CONFIG_ENERGY_MONITOR_COE_POWER_DPID=24
CONFIG_ENERGY_MONITOR_COE_ENERGY_DPID=25
#
# elec timer configuration
#
CONFIG_ENABLE_ELEC_DELAY_OFF_TIMER=y
CONFIG_ELEC_DELAY_OFF_DPID=44
CONFIG_ENABLE_ELEC_CYCLE_TIMER=y
CONFIG_ELEC_CYCLE_TIMER_DPID=42
CONFIG_ENABLE_ELEC_RANDOM_TIMER=y
CONFIG_ELEC_RANDOM_TIMER_DPID=43
CONFIG_ENABLE_ELEC_COUNTDOWN_TIMER=y
CONFIG_ELEC_COUNTDOWN_TIMER_NUM=1
CONFIG_ELEC_COUNTDOWN_TM_1_DPID=9
# end of elec timer configuration
# end of TuyaOS elec application configuration
Re: 关于tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug的kconfig问题
Posted: 2023年 Oct 8日 11:29
by yangjie
你现在这个问题应该是不清楚 RX1 等特殊引脚号,你看下下面这个图是不是可以解决你的问题。
Re: 关于tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug的kconfig问题
Posted: 2023年 Oct 8日 11:33
by yangjie
按键或者LED的有效状态时通过 xx_LEVEL_xx 来配置的。
以网络等为例:
Code: Select all
CONFIG_ELEC_NET_LED_PIN=8 //网络指示灯
CONFIG_ELEC_NET_LED_LEVEL=1
这个的配置的意思为,网络灯为 P8,高有效(P8 输出高电平的时候点亮网络灯)
如果你在使用 menuconfig 配置过程中遇到问题,可以先选中不清楚的配置项,然后输入 ? 号,就会有相关提示弹出。
Re: 关于tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug的kconfig问题
Posted: 2023年 Oct 8日 15:07
by dav1d
你好,根据你建议,我通过帮助找到脚位,想技术人员帮我确认下是否正确?
计量芯片 贝岭bl0937 CONFIG_ENERGY_MONITOR_CHIP_BL0937=y
采样电阻 1(毫欧姆(mΩ)) 需要配置吗?
电量统计(CF) P7 CONFIG_ENERGY_MONITOR_CF_PIN=7
电压电流检测 P6 没找到?不知道是哪里?麻烦告诉我 谢谢
电流电压切换脚 P24 高电平有效 CONFIG_ENERGY_MONITOR_SEL_PIN=24 CONFIG_ENERGY_MONITOR_SEL_LEVEL=1
工作电压 220v 需要配置吗?
过流点 20000 (毫安(mA)) 需要配置吗?
过压点 0(伏特) 需要配置吗?
欠压点 0(伏特) 需要配置吗?
配网设置
复位长按秒数 5 (秒(s)) CONFIG_ELEC_BUTTON_0_LONG_START_MS=5000
首次配网触发方式 长按配网3min超时有防误触 不知道是哪里?麻烦告诉我 谢谢
网络指示灯 P8 低电平有效 CONFIG_ELEC_NET_LED_PIN=8 CONFIG_ELEC_NET_LED_LEVEL=0
网络指示灯复用 不复用 需要配置吗?
未联网网络指示灯状态 亮 需要配置吗?
已联网网络指示灯状态 灭 需要配置吗?
ffc设置
遥控器功能选择 不支持遥控器控制
通道一
单插按键类型 电平触发
按键1 RX1(P10)低电平有效 CONFIG_ELEC_BUTTON_0_PIN=10 CONFIG_ELEC_BUTTON_0_ACTIVE_LEVEL=0
单插继电器类型 电保持继电器 CONFIG_ELEC_CHANNEL_1_RELAY_LEVEL=1
继电器1 P26 高电平有效
CONFIG_ELEC_CHANNEL_1_RELAY_PIN=26
CONFIG_ELEC_CHANNEL_1_RELAY_PIN_MODE=4
CONFIG_ELEC_CHANNEL_1_RELAY_LEVEL=1
继电器指示灯1 ADC 低电平有效
通道默认上电状态 断电记忆
CONFIG_ENABLE_ELEC_CHANNEL_1_LED=y
CONFIG_ELEC_CHANNEL_1_LED_NAME="led_1"
CONFIG_ELEC_CHANNEL_1_LED_PIN=23
CONFIG_ELEC_CHANNEL_1_LED_MODE=4
CONFIG_ELEC_CHANNEL_1_LED_LEVEL=1
完整代码
Code: Select all
# CONFIG_TY_CATEGORY_TP_LIGHT is not set
CONFIG_TY_CATEGORY_TP_ELE=y
# CONFIG_TY_CATEGORY_TP_COMM_PROT is not set
# CONFIG_TY_CATEGORY_TP_SENSOR is not set
# CONFIG_TY_CATEGORY_TP_LOCK is not set
# CONFIG_TY_CATEGORY_TP_APPLIANCE is not set
# CONFIG_TY_CATEGORY_TP_REMOTE is not set
CONFIG_ENABLE_TY_SOC_DEV=y
CONFIG_TY_FIRMWARE_KEY="keykespntekm3dsj"
# CONFIG_ENABLE_TY_FIRMWARE_OEM is not set
# CONFIG_ENABLE_TY_MATTER is not set
CONFIG_TY_PRODUCT_ID="3y7vno9hmmxnkeqe"
CONFIG_TY_NET_CFG_TIME=3
CONFIG_TY_WIFI_CFG_MTHD=2
CONFIG_TY_WIFI_START_MODE=3
CONFIG_ENABLE_MF_TEST_STATUS=y
CONFIG_ENABLE_PRODUCT_TEST_SCAN_WIFI=y
# CONFIG_ENABLE_PRODUCT_TEST_MF is not set
# CONFIG_ENABLE_TY_INFORM_OTA_REQ is not set
CONFIG_ENABLE_TY_PROD_INIT_NORMAL_PROCESS=y
#
# TuyaOS elec application configuration
#
CONFIG_ENABLE_ELEC_CHILD_LOCK=y
CONFIG_ELEC_CHILD_LOCK_DPID=41
CONFIG_ELEC_CHILD_LOCK_AUTO_LOCK_ENABLE=y
CONFIG_ELEC_CHILD_LOCK_AUTO_LOCK_TIME_MS=5000
#
# elec channel configuration
#
CONFIG_ELEC_CHANNEL_POWER_ON_MODE=0
CONFIG_ELEC_CHANNEL_POWER_ON_DPID=38
CONFIG_ELEC_CHANNEL_NUM=1
CONFIG_ENABLE_ELEC_CHANNEL_1=y
CONFIG_ELEC_CHANNEL_1_SWITCH_DPID=1
CONFIG_ELEC_CHANNEL_1_RELAY_NAME="relay_1"
CONFIG_ELEC_CHANNEL_1_RELAY_TYPE=0
CONFIG_ELEC_CHANNEL_1_RELAY_PIN=26
CONFIG_ELEC_CHANNEL_1_RELAY_PIN_MODE=4
CONFIG_ELEC_CHANNEL_1_RELAY_LEVEL=1
CONFIG_ENABLE_ELEC_CHANNEL_1_LED=y
CONFIG_ELEC_CHANNEL_1_LED_NAME="led_1"
CONFIG_ELEC_CHANNEL_1_LED_PIN=23
CONFIG_ELEC_CHANNEL_1_LED_MODE=4
CONFIG_ELEC_CHANNEL_1_LED_LEVEL=1
# end of elec channel configuration
#
# elec button configuration
#
CONFIG_ELEC_BUTTON_NUM=1
CONFIG_ENABLE_ELEC_BUTTON_0=y
CONFIG_ELEC_BUTTON_0_NAME="button_0"
CONFIG_ELEC_BUTTON_0_PIN=10
CONFIG_ELEC_BUTTON_0_ACTIVE_LEVEL=0
CONFIG_ELEC_BUTTON_0_DEBOUNCE_MS=50
CONFIG_ELEC_BUTTON_0_LONG_START_MS=5000
CONFIG_ELEC_BUTTON_0_LONG_KEEP_MS=1000
CONFIG_ELEC_BUTTON_0_REPEAT_COUNT=4
CONFIG_ELEC_BUTTON_0_REPEAT_MS=500
CONFIG_ELEC_BUTTON_0_SINGLE_CLICK=1
CONFIG_ELEC_BUTTON_0_DOUBLE_CLICK=0
CONFIG_ELEC_BUTTON_0_LONG_PRESS=10
CONFIG_ELEC_BUTTON_0_REPEAT_CLICK=11
# end of elec button configuration
#
# elec led indicate configuration
#
CONFIG_ENABLE_ELEC_NET_INDICATOR_MUX_MODE=y
CONFIG_ELEC_NET_LED_NAME="net_led"
CONFIG_ELEC_NET_LED_PIN=8
CONFIG_ELEC_NET_LED_LEVEL=0
CONFIG_ELEC_NET_LED_PIN_MODE=4
CONFIG_ELEC_NET_LED_AP_FLASH_MS=1500
CONFIG_ELEC_NET_LED_EZ_FLASH_MS=250
CONFIG_ENABLE_POWER_INDICATOR=y
CONFIG_ELEC_LIGHT_MODE_DPID=40
CONFIG_ELEC_LIGHT_MODE=0
CONFIG_ELEC_POWER_LED_NAME="pow_led"
# end of elec led indicate configuration
CONFIG_ENERGY_MONITOR_ENABLE=y
CONFIG_ENABLE_ENERGY_OVERCHARGE=y
CONFIG_ENERGY_METER_OVERCHARGE_DPID=39
CONFIG_OVERCHARGE_POWER_THRESHOLD=3
CONFIG_OVERCHARGE_DURATION_MINS=40
CONFIG_ENABLE_ENERGY_FAULT=y
CONFIG_ENERGY_METER_FAULT_DPID=26
CONFIG_ENERGY_METER_FAULT_OVER_CURRENT=0
CONFIG_ENERGY_METER_FAULT_OVER_VOLTAGE=0
CONFIG_ENERGY_METER_FAULT_LESS_VOLTAGE=0
CONFIG_PRODUCT_TEST_ENERGY_MONITOR=y
#
# elec factory production test configuration
#
CONFIG_ENERGY_MONITOR_CAL_ERR_PERCENT=50
CONFIG_ENERGY_MONITOR_CAL_VOLTAGE=2200
CONFIG_ENERGY_MONITOR_CAL_CURRENT=392
CONFIG_ENERGY_MONITOR_CAL_POWER=864
CONFIG_ENERGY_MONITOR_SAMPLE_RESISTOR=1
CONFIG_ENERGY_MONITOR_NAME="energy_monitor"
#
# energy monitor chip configuration
#
# CONFIG_ENERGY_MONITOR_CHIP_HLW8012 is not set
# CONFIG_ENERGY_MONITOR_CHIP_HLW8032 is not set
CONFIG_ENERGY_MONITOR_CHIP_BL0937=y
# CONFIG_ENERGY_MONITOR_CHIP_BL0942 is not set
CONFIG_ENERGY_MONITOR_TIMER_ID=0
CONFIG_ENERGY_MONITOR_SEL_PIN=24
CONFIG_ENERGY_MONITOR_SEL_LEVEL=1
CONFIG_ENERGY_MONITOR_CF1_PIN=8
CONFIG_ENERGY_MONITOR_CF_PIN=7
# end of energy monitor chip configuration
CONFIG_ENERGY_MONITOR_ADD_ELE_DPID=17
CONFIG_ENERGY_MONITOR_CUR_CURRENT_DPID=18
CONFIG_ENERGY_MONITOR_CUR_POWER_DPID=19
CONFIG_ENERGY_MONITOR_CUR_VOLTAGE_DPID=20
CONFIG_ENERGY_MONITOR_TEST_RESULT_DPID=21
CONFIG_ENERGY_MONITOR_COE_VOLTAGE_DPID=22
CONFIG_ENERGY_MONITOR_COE_CURRENT_DPID=23
CONFIG_ENERGY_MONITOR_COE_POWER_DPID=24
CONFIG_ENERGY_MONITOR_COE_ENERGY_DPID=25
#
# elec timer configuration
#
CONFIG_ENABLE_ELEC_DELAY_OFF_TIMER=y
CONFIG_ELEC_DELAY_OFF_DPID=44
CONFIG_ENABLE_ELEC_CYCLE_TIMER=y
CONFIG_ELEC_CYCLE_TIMER_DPID=42
CONFIG_ENABLE_ELEC_RANDOM_TIMER=y
CONFIG_ELEC_RANDOM_TIMER_DPID=43
CONFIG_ENABLE_ELEC_COUNTDOWN_TIMER=y
CONFIG_ELEC_COUNTDOWN_TIMER_NUM=1
CONFIG_ELEC_COUNTDOWN_TM_1_DPID=9
# end of elec timer configuration
# end of TuyaOS elec application configuration
Re: 关于tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug的kconfig问题
Posted: 2023年 Oct 8日 15:40
by yangjie
关于计量产测,可以查看这篇文章:https://developer.tuya.com/cn/docs/iot/ ... iu5skyksp6
这里需要注意的是,你需要通过 menuconfig 进行图形化配置,不要通过手动修改 tuya_app.config 的方式进行修改,因为许多配置项是有依赖关系的,手动修改很容易出现问题。menuconfig 图形化配置方式为:先对要配置的工程进行编译(例如:./build_app.sh apps/tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug 1.0.0) -> 输入
make app_menuconfig 命令即可开始图形化配置
Re: 关于tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug的kconfig问题
Posted: 2023年 Oct 8日 16:13
by dav1d
关于menuconfig 进行图形化配置问题
我是通过/home/david/Documents/tuya/Projects/BK7231N_TuyaOS-3.3.4/software/TuyaOS -> 输入
make app_menuconfig 命令开始图形化配置
但我无法通过/home/david/Documents/tuya/Projects/BK7231N_TuyaOS-3.3.4/software/TuyaOS/apps/tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug -> 输入
make app_menuconfig 会出现
make: *** No rule to make target 'app_menuconfig'. Stop.
通过make app_menuconfig会修改目录下这个文件,这样操作是否存在问题
/home/david/Documents/tuya/Projects/BK7231N_TuyaOS-3.3.4/software/TuyaOS/apps/tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug/build/tuya_app.config
Re: 关于tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug的kconfig问题
Posted: 2023年 Oct 8日 16:19
by yangjie
dav1d 2023年 Oct 8日 16:13
关于menuconfig 进行图形化配置问题
我是通过/home/david/Documents/tuya/Projects/BK7231N_TuyaOS-3.3.4/software/TuyaOS -> 输入
make app_menuconfig 命令开始图形化配置
但我无法通过/home/david/Documents/tuya/Projects/BK7231N_TuyaOS-3.3.4/software/TuyaOS/apps/tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug -> 输入
make app_menuconfig 会出现
make: *** No rule to make target 'app_menuconfig'. Stop.
通过make app_menuconfig会修改目录下这个文件,这样操作是否存在问题
/home/david/Documents/tuya/Projects/BK7231N_TuyaOS-3.3.4/software/TuyaOS/apps/tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug/build/tuya_app.config
但我无法通过/home/david/Documents/tuya/Projects/BK7231N_TuyaOS-3.3.4/software/TuyaOS/apps/tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug -> 输入
make app_menuconfig 会出现
make: *** No rule to make target 'app_menuconfig'. Stop.
这个问题可能是因为编译的应用名称不对导致的。
如果输入 make app_menuconfig 会出现图形化配置,则无需关心上面的那个问题。
通过make app_menuconfig会修改 tuya_app.config 文件,这样操作是正常的。可以通过 menuconfig 进行修改 tuya_app.config 文件,不可以手动直接修改 tuya_app.config 文件。
Re: 关于tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug的kconfig问题
Posted: 2023年 Oct 9日 14:53
by dav1d
关于app_menuconfig中,以下名称对什么有影响,我使用默认值是否可以?
CONFIG_ELEC_CHANNEL_1_LED_NAME="led_1"
CONFIG_ELEC_BUTTON_0_NAME="button_0"
CONFIG_ELEC_NET_LED_NAME="net_led"
CONFIG_ELEC_POWER_LED_NAME="pow_led"
CONFIG_ENERGY_MONITOR_NAME="energy_monitor"
Re: 关于tuyaos_wf_bk7231n_elp-tuyaos_wf_bk7231n_elp_plug的kconfig问题
Posted: 2023年 Oct 9日 14:57
by yangjie
dav1d 2023年 Oct 9日 14:53
关于app_menuconfig中,以下名称对什么有影响,我使用默认值是否可以?
CONFIG_ELEC_CHANNEL_1_LED_NAME="led_1"
CONFIG_ELEC_BUTTON_0_NAME="button_0"
CONFIG_ELEC_NET_LED_NAME="net_led"
CONFIG_ELEC_POWER_LED_NAME="pow_led"
CONFIG_ENERGY_MONITOR_NAME="energy_monitor"
只是一个驱动名字,用来关联注册的硬件和应用的,使用默认值即可