Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
Z3dev-AllToOneFanPanel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
limm
Z3dev-AllToOneFanPanel
Commits
deb06860
Commit
deb06860
authored
Jan 04, 2021
by
limm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v1.3
parent
f4a8fe0b
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
114 additions
and
82 deletions
+114
-82
Code/KKAllToOneFloorHeatingMG21SDK665/.cproject
Code/KKAllToOneFloorHeatingMG21SDK665/.cproject
+3
-3
Code/KKAllToOneFloorHeatingMG21SDK665/00ikonke-app/driver/ikk-uart.c
...oOneFloorHeatingMG21SDK665/00ikonke-app/driver/ikk-uart.c
+1
-1
Code/KKAllToOneFloorHeatingMG21SDK665/00ikonke-app/general/ikk-opt-tunnel.c
...orHeatingMG21SDK665/00ikonke-app/general/ikk-opt-tunnel.c
+4
-3
Code/KKAllToOneFloorHeatingMG21SDK665/00ikonke-app/ikk-user.c
.../KKAllToOneFloorHeatingMG21SDK665/00ikonke-app/ikk-user.c
+9
-5
Code/KKAllToOneFloorHeatingMG21SDK665/KKFan_Control_MG21SDK665.isc
...lToOneFloorHeatingMG21SDK665/KKFan_Control_MG21SDK665.isc
+5
-5
Code/KKAllToOneFloorHeatingMG21SDK665/kkAllInOneFloorHeatingMG21SDK665V1-postbuild.py
...G21SDK665/kkAllInOneFloorHeatingMG21SDK665V1-postbuild.py
+2
-2
Code/KKAllToOneFloorHeatingMG21SDK665/kkAllInOneFloorHeatingMG21SDK665V1.h
...oorHeatingMG21SDK665/kkAllInOneFloorHeatingMG21SDK665V1.h
+1
-1
Code/KKAllToOneFloorHeatingMG21SDK665/kkAllInOneFloorHeatingMG21SDK665V1_endpoint_config.h
...K665/kkAllInOneFloorHeatingMG21SDK665V1_endpoint_config.h
+1
-1
Code/KKAllToOneFloorHeatingMG21SDK665/kkAllInOneFloorHeatingMG21SDK665V1_endpoint_config.h.bak
.../kkAllInOneFloorHeatingMG21SDK665V1_endpoint_config.h.bak
+12
-2
Code/海顿-多合一新风面板/APP/AllToOneThernmostatPannel.uvgui.11730
Code/海顿-多合一新风面板/APP/AllToOneThernmostatPannel.uvgui.11730
+0
-0
Code/海顿-多合一新风面板/APP/User/inc/BL55072A.h
Code/海顿-多合一新风面板/APP/User/inc/BL55072A.h
+2
-1
Code/海顿-多合一新风面板/APP/User/inc/display_common.h
Code/海顿-多合一新风面板/APP/User/inc/display_common.h
+5
-2
Code/海顿-多合一新风面板/APP/User/src/BL55072A.c
Code/海顿-多合一新风面板/APP/User/src/BL55072A.c
+17
-2
Code/海顿-多合一新风面板/APP/User/src/Key.c
Code/海顿-多合一新风面板/APP/User/src/Key.c
+24
-28
Code/海顿-多合一新风面板/APP/User/src/control_comm.c
Code/海顿-多合一新风面板/APP/User/src/control_comm.c
+26
-26
Code/海顿-多合一新风面板/APP/User/src/display_common.c
Code/海顿-多合一新风面板/APP/User/src/display_common.c
+0
-0
Code/海顿-多合一新风面板/APP/User/src/hardware_init.c
Code/海顿-多合一新风面板/APP/User/src/hardware_init.c
+2
-0
No files found.
Code/KKAllToOneFloorHeatingMG21SDK665/.cproject
View file @
deb06860
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Code/KKAllToOneFloorHeatingMG21SDK665/00ikonke-app/driver/ikk-uart.c
View file @
deb06860
...
@@ -262,7 +262,7 @@ void ikkUartRecvLoopCheck(UMsgNodeSt *pNode, int waitto_ms )
...
@@ -262,7 +262,7 @@ void ikkUartRecvLoopCheck(UMsgNodeSt *pNode, int waitto_ms )
{
{
if
(
emberSerialReadAvailable
(
g_uManagerInsc
.
port
))
{
if
(
emberSerialReadAvailable
(
g_uManagerInsc
.
port
))
{
while
(
emberSerialReadByte
(
g_uManagerInsc
.
port
,
&
data
)
==
EMBER_SUCCESS
)
{
while
(
emberSerialReadByte
(
g_uManagerInsc
.
port
,
&
data
)
==
EMBER_SUCCESS
)
{
//
iKonkeAfSelfPrint(">>>>>>1111Recv Data %x\r\n", data);
iKonkeAfSelfPrint
(
">>>>>>1111Recv Data %x
\r\n
"
,
data
);
currentTime
=
halCommonGetInt64uMillisecondTick
();
currentTime
=
halCommonGetInt64uMillisecondTick
();
//add by maozj 20200602
//add by maozj 20200602
//When the data header is detected, fix the problem that the data is too long to verify successfully
//When the data header is detected, fix the problem that the data is too long to verify successfully
...
...
Code/KKAllToOneFloorHeatingMG21SDK665/00ikonke-app/general/ikk-opt-tunnel.c
View file @
deb06860
...
@@ -269,7 +269,7 @@ static kk_err_t kOptTunnelCommonReportSend(uint16_t attribute_id, uint8_t conten
...
@@ -269,7 +269,7 @@ static kk_err_t kOptTunnelCommonReportSend(uint16_t attribute_id, uint8_t conten
emAfApsFrameEndpointSetup
(
1
,
1
);
emAfApsFrameEndpointSetup
(
1
,
1
);
EmberAfStatus
status
=
emberAfSendUnicast
(
EMBER_OUTGOING_DIRECT
,
0
,
&
globalApsFrame
,
appZclBufferLen
,
appZclBuffer
);
EmberAfStatus
status
=
emberAfSendUnicast
(
EMBER_OUTGOING_DIRECT
,
0
,
&
globalApsFrame
,
appZclBufferLen
,
appZclBuffer
);
iKonkeAfSelfPrint
(
"######OPT SEND Attr(0x%2x) Time(%
d
)
\r\n
"
,
attribute_id
,
halCommonGetInt64uMillisecondTick
());
iKonkeAfSelfPrint
(
"######OPT SEND Attr(0x%2x) Time(%
llu
)
\r\n
"
,
attribute_id
,
halCommonGetInt64uMillisecondTick
());
cliBufferPrint
();
cliBufferPrint
();
return
((
status
==
EMBER_ZCL_STATUS_SUCCESS
)
?
KET_OK
:
KET_ERR_UNKNOW
);
return
((
status
==
EMBER_ZCL_STATUS_SUCCESS
)
?
KET_OK
:
KET_ERR_UNKNOW
);
}
}
...
@@ -356,9 +356,10 @@ kk_err_t kOptTunnelCommonReport(uint16_t attribute_id )
...
@@ -356,9 +356,10 @@ kk_err_t kOptTunnelCommonReport(uint16_t attribute_id )
void
kOptTunnelMtoRRDelayRspEventHandler
(
void
)
void
kOptTunnelMtoRRDelayRspEventHandler
(
void
)
{
{
emberEventControlSetInactive
(
kOptTunnelMtoRRDelayRspEventControl
);
emberEventControlSetInactive
(
kOptTunnelMtoRRDelayRspEventControl
);
iKonkeAfSelfPrint
(
"####### MtoO report time(%
d
)
\r\n
"
,
halCommonGetInt64uMillisecondTick
());
iKonkeAfSelfPrint
(
"####### MtoO report time(%
llu
)
\r\n
"
,
halCommonGetInt64uMillisecondTick
());
//Prevent interference when reading CMEI Or ISN Or installation code, resulting in error report
//Prevent interference when reading CMEI Or ISN Or installation code, resulting in error report
kOptTunnelCommonReport
(
ECA_OPTDATA
);
kOptTunnelCommonReport
(
ECA_OPTDATA
);
emberEventControlSetInactive
(
kOptTunnelMtoRRDelayRspEventControl
);
}
}
/* DESP: private protocol command response process.
/* DESP: private protocol command response process.
...
@@ -840,7 +841,7 @@ static kk_err_t kOptTunnelCommonWriteAttributeSend(uint16_t attribute_id, uint8_
...
@@ -840,7 +841,7 @@ static kk_err_t kOptTunnelCommonWriteAttributeSend(uint16_t attribute_id, uint8_
emAfApsFrameEndpointSetup
(
1
,
1
);
emAfApsFrameEndpointSetup
(
1
,
1
);
EmberAfStatus
status
=
emberAfSendUnicast
(
EMBER_OUTGOING_DIRECT
,
0
,
&
globalApsFrame
,
appZclBufferLen
,
appZclBuffer
);
EmberAfStatus
status
=
emberAfSendUnicast
(
EMBER_OUTGOING_DIRECT
,
0
,
&
globalApsFrame
,
appZclBufferLen
,
appZclBuffer
);
iKonkeAfSelfPrint
(
"######OPT SEND Attr(0x%2x) Time(%d)
\r\n
"
,
attribute_id
,
halCommonGetInt64uMillisecondTick
());
iKonkeAfSelfPrint
(
"######OPT SEND Attr(0x%2x) Time(%d
\llu
)
\r\n
"
,
attribute_id
,
halCommonGetInt64uMillisecondTick
());
cliBufferPrint
();
cliBufferPrint
();
return
((
status
==
EMBER_ZCL_STATUS_SUCCESS
)
?
KET_OK
:
KET_ERR_UNKNOW
);
return
((
status
==
EMBER_ZCL_STATUS_SUCCESS
)
?
KET_OK
:
KET_ERR_UNKNOW
);
}
}
...
...
Code/KKAllToOneFloorHeatingMG21SDK665/00ikonke-app/ikk-user.c
View file @
deb06860
...
@@ -34,7 +34,7 @@ static uint8_t g_u8MessageSeqRecord = 0XFF;
...
@@ -34,7 +34,7 @@ static uint8_t g_u8MessageSeqRecord = 0XFF;
#define HEART_RAND_MAX_NUM (300 * 1000)
#define HEART_RAND_MAX_NUM (300 * 1000)
#define MIN_JOINED_NWK_DELAY_TIME_MS (7 * 1000) //重新上电后最短时间,用于判断是否随机延时10~40S上报心跳和CMEI和ISN
#define MIN_JOINED_NWK_DELAY_TIME_MS (7 * 1000) //重新上电后最短时间,用于判断是否随机延时10~40S上报心跳和CMEI和ISN
#define BOOT_DONE_TIME_MS (
2 * 100
0)
#define BOOT_DONE_TIME_MS (
1
0)
#if HEART_DEBUG
#if HEART_DEBUG
#define HEARTBEAT_TIME_MS (1 * 60 * 1000)
#define HEARTBEAT_TIME_MS (1 * 60 * 1000)
...
@@ -135,7 +135,7 @@ SensorStatusSt g_stSensorStatusBuffer = {
...
@@ -135,7 +135,7 @@ SensorStatusSt g_stSensorStatusBuffer = {
};
};
extern
uint8_t
generatedDefaults
[];
extern
uint8_t
generatedDefaults
[];
#define Software_Version 0x1
2
#define Software_Version 0x1
4
#define Hardware_Version 0x10
#define Hardware_Version 0x10
#define MODEID_AIR_MEIDI 0x03008611 //美的线控器
#define MODEID_AIR_MEIDI 0x03008611 //美的线控器
...
@@ -143,7 +143,6 @@ extern uint8_t generatedDefaults[];
...
@@ -143,7 +143,6 @@ extern uint8_t generatedDefaults[];
#define MODEID_ELECTRIC_FLOOR_HEATING 0x03008603 //电地暖
#define MODEID_ELECTRIC_FLOOR_HEATING 0x03008603 //电地暖
#define MODEID_FAN_CONTROL_PANNEL 0x03008601 //风机盘管
#define MODEID_FAN_CONTROL_PANNEL 0x03008601 //风机盘管
extern
BIND_Info_Store
Bind_Addr_Table
;
extern
BIND_Info_Store
Bind_Addr_Table
;
void
Rewrite_Modeid
(
uint8_t
*
modeid
,
uint8_t
software
,
uint8_t
hardware
)
void
Rewrite_Modeid
(
uint8_t
*
modeid
,
uint8_t
software
,
uint8_t
hardware
)
{
{
...
@@ -746,6 +745,7 @@ bool kZclClusterReportChangeCallback(uint8_t endpoint, EmberAfClusterId clusterI
...
@@ -746,6 +745,7 @@ bool kZclClusterReportChangeCallback(uint8_t endpoint, EmberAfClusterId clusterI
//属性延时上报事件,可根据不同的属性延时上报自定义修改
//属性延时上报事件,可根据不同的属性延时上报自定义修改
void
kOnOffDelayReportAttrEventHandler
(
void
)
void
kOnOffDelayReportAttrEventHandler
(
void
)
{
{
iKonkeAfSelfPrint
(
"##############kOnOffDelayReportAttrEventHandler
\r\n
"
);
emberEventControlSetInactive
(
kOnOffDelayReportAttrEventControl
);
emberEventControlSetInactive
(
kOnOffDelayReportAttrEventControl
);
kZclClusterSetPermitReportInfo
(
g_sDevice_Info
.
Device_Type
,
ZCL_ON_OFF_CLUSTER_ID
,
true
,
false
,
true
,
false
);
kZclClusterSetPermitReportInfo
(
g_sDevice_Info
.
Device_Type
,
ZCL_ON_OFF_CLUSTER_ID
,
true
,
false
,
true
,
false
);
kOptTunnelReportingPlagiarizeOriginal
(
g_sDevice_Info
.
Device_Type
,
ZCL_ON_OFF_CLUSTER_ID
,
ZCL_ON_OFF_ATTRIBUTE_ID
,
CLUSTER_MASK_SERVER
);
kOptTunnelReportingPlagiarizeOriginal
(
g_sDevice_Info
.
Device_Type
,
ZCL_ON_OFF_CLUSTER_ID
,
ZCL_ON_OFF_ATTRIBUTE_ID
,
CLUSTER_MASK_SERVER
);
...
@@ -759,6 +759,7 @@ void kSystemModeDelayReportAttrEventHandler(void)
...
@@ -759,6 +759,7 @@ void kSystemModeDelayReportAttrEventHandler(void)
void
kTargetTemperDelayReportAttrEventHandler
(
void
)
void
kTargetTemperDelayReportAttrEventHandler
(
void
)
{
{
iKonkeAfSelfPrint
(
"##############kTargetTemperDelayReportAttrEventHandler
\r\n
"
);
emberEventControlSetInactive
(
kTargetTemperDelayReportAttrEventControl
);
emberEventControlSetInactive
(
kTargetTemperDelayReportAttrEventControl
);
kZclClusterSetPermitReportInfo
(
g_sDevice_Info
.
Device_Type
,
ZCL_THERMOSTAT_CLUSTER_ID
,
true
,
false
,
true
,
false
);
kZclClusterSetPermitReportInfo
(
g_sDevice_Info
.
Device_Type
,
ZCL_THERMOSTAT_CLUSTER_ID
,
true
,
false
,
true
,
false
);
kOptTunnelReportingPlagiarizeOriginal
(
g_sDevice_Info
.
Device_Type
,
ZCL_THERMOSTAT_CLUSTER_ID
,
ZCL_OCCUPIED_HEATING_SETPOINT_ATTRIBUTE_ID
,
CLUSTER_MASK_SERVER
);
kOptTunnelReportingPlagiarizeOriginal
(
g_sDevice_Info
.
Device_Type
,
ZCL_THERMOSTAT_CLUSTER_ID
,
ZCL_OCCUPIED_HEATING_SETPOINT_ATTRIBUTE_ID
,
CLUSTER_MASK_SERVER
);
...
@@ -1107,7 +1108,7 @@ void kkSystemSetUpEventHandler(void )
...
@@ -1107,7 +1108,7 @@ void kkSystemSetUpEventHandler(void )
{
{
emberEventControlSetInactive
(
kkSystemSetUpEventControl
);
emberEventControlSetInactive
(
kkSystemSetUpEventControl
);
//static bool relayStatusBuffer[] = {false, false, false, false};
//static bool relayStatusBuffer[] = {false, false, false, false};
iKonkeAfSelfPrint
(
"####### kkSystemSetUpEventHandler
\r\n
"
);
switch
(
g_u8SystemSetupStatus
)
switch
(
g_u8SystemSetupStatus
)
{
{
...
@@ -1325,7 +1326,10 @@ void Process_Device_TypeCallback(uint8_t device_type,uint8_t device_subtype)
...
@@ -1325,7 +1326,10 @@ void Process_Device_TypeCallback(uint8_t device_type,uint8_t device_subtype)
{
{
case
Device_Type_Air_Condition
:
case
Device_Type_Air_Condition
:
{
{
modeid
=
MODEID_AIR_MEIDI
;
if
(
device_subtype
==
0
)
modeid
=
MODEID_AIR_MEIDI
;
else
if
(
device_subtype
==
1
)
modeid
=
MODEID_FAN_CONTROL_PANNEL
;
}
}
break
;
break
;
case
Device_Type_Floor_Heating
:
case
Device_Type_Floor_Heating
:
...
...
Code/KKAllToOneFloorHeatingMG21SDK665/KKFan_Control_MG21SDK665.isc
View file @
deb06860
...
@@ -165,7 +165,7 @@ beginAttrList:REPORTABLE
...
@@ -165,7 +165,7 @@ beginAttrList:REPORTABLE
cl:0xFCC0, at:0x100C, di:server, mf:0x0000
cl:0xFCC0, at:0x100C, di:server, mf:0x0000
endAttrList:REPORTABLE
endAttrList:REPORTABLE
beginAttributeDefaults
beginAttributeDefaults
cl:0x0000, at:0x0001, di:server, mf:0x0000 => 0x1
1
cl:0x0000, at:0x0001, di:server, mf:0x0000 => 0x1
4
cl:0x0000, at:0x0003, di:server, mf:0x0000 => 0x10
cl:0x0000, at:0x0003, di:server, mf:0x0000 => 0x10
cl:0x0000, at:0x0004, di:server, mf:0x0000 => Konke
cl:0x0000, at:0x0004, di:server, mf:0x0000 => Konke
cl:0x0000, at:0x0005, di:server, mf:0x0000 => 3AFE101003008611
cl:0x0000, at:0x0005, di:server, mf:0x0000 => 3AFE101003008611
...
@@ -794,11 +794,8 @@ AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]
...
@@ -794,11 +794,8 @@ AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_STORAGE_START,425984
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_STORAGE_START,425984
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_STORAGE_END,778240
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_OTA_STORAGE_SIMPLE_EEPROM_STORAGE_END,778240
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NETWORK_STEERING_SCAN_DURATION,3
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NETWORK_STEERING_SCAN_DURATION,3
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_APS_UNICAST_MESSAGE_COUNT,64
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_BROADCAST_TABLE_SIZE,64
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_END_DEVICE_POLL_TIMEOUT,Minutes-64
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_END_DEVICE_POLL_TIMEOUT,Minutes-64
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_MAX_END_DEVICE_CHILDREN,32
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_MAX_END_DEVICE_CHILDREN,32
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_PACKET_BUFFER_COUNT,200
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_NEIGHBOR_TABLE_SIZE,26
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_NEIGHBOR_TABLE_SIZE,26
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NETWORK_STEERING_CHANNEL_MASK,0x02108000
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NETWORK_STEERING_CHANNEL_MASK,0x02108000
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NVM3_FLASH_PAGES,8
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NVM3_FLASH_PAGES,8
...
@@ -808,4 +805,7 @@ AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]
...
@@ -808,4 +805,7 @@ AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NVM3_MAX_OBJECT_SIZE,254
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NVM3_MAX_OBJECT_SIZE,254
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_REPORTING_TABLE_SIZE,62
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_REPORTING_TABLE_SIZE,62
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NVM3_CACHE_SIZE,335
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_NVM3_CACHE_SIZE,335
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_FIRMWARE_VERSION,0x12
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_PACKET_BUFFER_COUNT,200
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_APS_UNICAST_MESSAGE_COUNT,64
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_BROADCAST_TABLE_SIZE,64
AppPluginOption(efr32~family[M]~series[2]~device_configuration[1]~performance[A]~radio[020]~flash[768K]~temp[I]~package[M]~pins[32]~!module+iar):EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_FIRMWARE_VERSION,0x14
Code/KKAllToOneFloorHeatingMG21SDK665/kkAllInOneFloorHeatingMG21SDK665V1-postbuild.py
View file @
deb06860
...
@@ -90,14 +90,14 @@ def GBL():
...
@@ -90,14 +90,14 @@ def GBL():
def
OTA
():
def
OTA
():
if
not
'"
%
PROJECT_DIR
%
\
..
\\
..
\\
..
\\
..
\\
..
\\
..
\\
SiliconLabs
\\
SimplicityStudio
\\
v4
\\
developer
\\
sdks
\\
gecko_sdk_suite
\\
v2.6
\\
protocol
\\
zigbee
\\
tool
\\
image-builder
\\
image-builder-windows.exe" --create "
%
TARGET_BPATH
%
.ota" --version 0x1
2
--manuf-id 0x1268 --image-type 17061 --tag-id 0x0000 --tag-file "
%
TARGET_BPATH
%
.gbl" --string "EBL kkAllInOneFloorHeatingMG21SDK665V1"'
:
if
not
'"
%
PROJECT_DIR
%
\
..
\\
..
\\
..
\\
..
\\
..
\\
..
\\
SiliconLabs
\\
SimplicityStudio
\\
v4
\\
developer
\\
sdks
\\
gecko_sdk_suite
\\
v2.6
\\
protocol
\\
zigbee
\\
tool
\\
image-builder
\\
image-builder-windows.exe" --create "
%
TARGET_BPATH
%
.ota" --version 0x1
4
--manuf-id 0x1268 --image-type 17061 --tag-id 0x0000 --tag-file "
%
TARGET_BPATH
%
.gbl" --string "EBL kkAllInOneFloorHeatingMG21SDK665V1"'
:
sys
.
exit
(
0
)
sys
.
exit
(
0
)
print
(
" "
)
print
(
" "
)
print
(
"This creates a ZigBee OTA file if the OTA Client Policy Plugin has been enabled."
)
print
(
"This creates a ZigBee OTA file if the OTA Client Policy Plugin has been enabled."
)
print
(
"It uses the parameters defined there. "
)
print
(
"It uses the parameters defined there. "
)
print
(
" "
)
print
(
" "
)
# wine needed by postbuild script under studio for mac/linux
# wine needed by postbuild script under studio for mac/linux
IMAGE_BUILDER
=
'"
%
PROJECT_DIR
%
\
..
\\
..
\\
..
\\
..
\\
..
\\
..
\\
SiliconLabs
\\
SimplicityStudio
\\
v4
\\
developer
\\
sdks
\\
gecko_sdk_suite
\\
v2.6
\\
protocol
\\
zigbee
\\
tool
\\
image-builder
\\
image-builder-windows.exe" --create "
%
TARGET_BPATH
%
.ota" --version 0x1
2
--manuf-id 0x1268 --image-type 17061 --tag-id 0x0000 --tag-file "
%
TARGET_BPATH
%
.gbl" --string "EBL kkAllInOneFloorHeatingMG21SDK665V1"'
.
replace
(
"
\t
"
,
"
\\
t"
)
IMAGE_BUILDER
=
'"
%
PROJECT_DIR
%
\
..
\\
..
\\
..
\\
..
\\
..
\\
..
\\
SiliconLabs
\\
SimplicityStudio
\\
v4
\\
developer
\\
sdks
\\
gecko_sdk_suite
\\
v2.6
\\
protocol
\\
zigbee
\\
tool
\\
image-builder
\\
image-builder-windows.exe" --create "
%
TARGET_BPATH
%
.ota" --version 0x1
4
--manuf-id 0x1268 --image-type 17061 --tag-id 0x0000 --tag-file "
%
TARGET_BPATH
%
.gbl" --string "EBL kkAllInOneFloorHeatingMG21SDK665V1"'
.
replace
(
"
\t
"
,
"
\\
t"
)
WINE_CMD
=
WINE
.
replace
(
"cmd /C "
,
""
)
if
not
"echo"
in
IMAGE_BUILDER
else
WINE
WINE_CMD
=
WINE
.
replace
(
"cmd /C "
,
""
)
if
not
"echo"
in
IMAGE_BUILDER
else
WINE
OTA_COMMAND
=
WINE_CMD
+
IMAGE_BUILDER
OTA_COMMAND
=
WINE_CMD
+
IMAGE_BUILDER
OTA_COMMAND
=
OTA_COMMAND
.
replace
(
"
%
PROJECT_DIR
%
"
,
PROJECT_DIR
)
OTA_COMMAND
=
OTA_COMMAND
.
replace
(
"
%
PROJECT_DIR
%
"
,
PROJECT_DIR
)
...
...
Code/KKAllToOneFloorHeatingMG21SDK665/kkAllInOneFloorHeatingMG21SDK665V1.h
View file @
deb06860
...
@@ -369,7 +369,7 @@
...
@@ -369,7 +369,7 @@
#define CUSTOMER_APPLICATION_VERSION EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_FIRMWARE_VERSION
#define CUSTOMER_APPLICATION_VERSION EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_FIRMWARE_VERSION
// User options for plugin OTA Bootload Cluster Client Policy
// User options for plugin OTA Bootload Cluster Client Policy
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_IMAGE_TYPE_ID 17061
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_IMAGE_TYPE_ID 17061
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_FIRMWARE_VERSION
18
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_FIRMWARE_VERSION
20
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_HARDWARE_VERSION 16
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_HARDWARE_VERSION 16
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_EBL_VERIFICATION
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_EBL_VERIFICATION
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_DELETE_FAILED_DOWNLOADS
#define EMBER_AF_PLUGIN_OTA_CLIENT_POLICY_DELETE_FAILED_DOWNLOADS
...
...
Code/KKAllToOneFloorHeatingMG21SDK665/kkAllInOneFloorHeatingMG21SDK665V1_endpoint_config.h
View file @
deb06860
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
// Generated attributes
// Generated attributes
#define GENERATED_ATTRIBUTES { \
#define GENERATED_ATTRIBUTES { \
{ 0x0000, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x01 } },
/* 0 / Basic / ZCL version*/
\
{ 0x0000, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x01 } },
/* 0 / Basic / ZCL version*/
\
{ 0x0001, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x1
1
} },
/* 1 / Basic / application version*/
\
{ 0x0001, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x1
4
} },
/* 1 / Basic / application version*/
\
{ 0x0002, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x01 } },
/* 2 / Basic / stack version*/
\
{ 0x0002, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x01 } },
/* 2 / Basic / stack version*/
\
{ 0x0003, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x10 } },
/* 3 / Basic / hardware version*/
\
{ 0x0003, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x10 } },
/* 3 / Basic / hardware version*/
\
{ 0x0004, ZCL_CHAR_STRING_ATTRIBUTE_TYPE, 33, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)&(generatedDefaults[0]) } },
/* 4 / Basic / manufacturer name*/
\
{ 0x0004, ZCL_CHAR_STRING_ATTRIBUTE_TYPE, 33, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)&(generatedDefaults[0]) } },
/* 4 / Basic / manufacturer name*/
\
...
...
Code/KKAllToOneFloorHeatingMG21SDK665/kkAllInOneFloorHeatingMG21SDK665V1_endpoint_config.h.bak
View file @
deb06860
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
// Generated attributes
// Generated attributes
#define GENERATED_ATTRIBUTES { \
#define GENERATED_ATTRIBUTES { \
{ 0x0000, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x01 } }, /* 0 / Basic / ZCL version*/\
{ 0x0000, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x01 } }, /* 0 / Basic / ZCL version*/\
{ 0x0001, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x1
1
} }, /* 1 / Basic / application version*/\
{ 0x0001, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x1
3
} }, /* 1 / Basic / application version*/\
{ 0x0002, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x01 } }, /* 2 / Basic / stack version*/\
{ 0x0002, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x01 } }, /* 2 / Basic / stack version*/\
{ 0x0003, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x10 } }, /* 3 / Basic / hardware version*/\
{ 0x0003, ZCL_INT8U_ATTRIBUTE_TYPE, 1, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)0x10 } }, /* 3 / Basic / hardware version*/\
{ 0x0004, ZCL_CHAR_STRING_ATTRIBUTE_TYPE, 33, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)&(generatedDefaults[0]) } }, /* 4 / Basic / manufacturer name*/\
{ 0x0004, ZCL_CHAR_STRING_ATTRIBUTE_TYPE, 33, (ATTRIBUTE_MASK_SINGLETON), { (uint8_t*)&(generatedDefaults[0]) } }, /* 4 / Basic / manufacturer name*/\
...
@@ -206,12 +206,14 @@ const EmberAfGenericClusterFunction emberAfFuncArrayFanControlClusterServer[] =
...
@@ -206,12 +206,14 @@ const EmberAfGenericClusterFunction emberAfFuncArrayFanControlClusterServer[] =
#define EMBER_AF_GENERATED_PLUGIN_INIT_FUNCTION_DECLARATIONS \
#define EMBER_AF_GENERATED_PLUGIN_INIT_FUNCTION_DECLARATIONS \
void emberAfPluginEepromInitCallback(void); \
void emberAfPluginEepromInitCallback(void); \
void emberAfPluginGreenPowerClientInitCallback(void); \
void emberAfPluginReportingInitCallback(void); \
void emberAfPluginReportingInitCallback(void); \
void emberAfPluginCountersInitCallback(void); \
void emberAfPluginCountersInitCallback(void); \
#define EMBER_AF_GENERATED_PLUGIN_INIT_FUNCTION_CALLS \
#define EMBER_AF_GENERATED_PLUGIN_INIT_FUNCTION_CALLS \
emberAfPluginEepromInitCallback(); \
emberAfPluginEepromInitCallback(); \
emberAfPluginGreenPowerClientInitCallback(); \
emberAfPluginReportingInitCallback(); \
emberAfPluginReportingInitCallback(); \
emberAfPluginCountersInitCallback(); \
emberAfPluginCountersInitCallback(); \
...
@@ -225,12 +227,14 @@ const EmberAfGenericClusterFunction emberAfFuncArrayFanControlClusterServer[] =
...
@@ -225,12 +227,14 @@ const EmberAfGenericClusterFunction emberAfFuncArrayFanControlClusterServer[] =
#define EMBER_AF_GENERATED_PLUGIN_STACK_STATUS_FUNCTION_DECLARATIONS \
#define EMBER_AF_GENERATED_PLUGIN_STACK_STATUS_FUNCTION_DECLARATIONS \
void emberAfPluginGreenPowerClientStackStatusCallback(EmberStatus status); \
void emberAfPluginReportingStackStatusCallback(EmberStatus status); \
void emberAfPluginReportingStackStatusCallback(EmberStatus status); \
void emberAfPluginOtaClientStackStatusCallback(EmberStatus status); \
void emberAfPluginOtaClientStackStatusCallback(EmberStatus status); \
void emberAfPluginNetworkSteeringStackStatusCallback(EmberStatus status); \
void emberAfPluginNetworkSteeringStackStatusCallback(EmberStatus status); \
#define EMBER_AF_GENERATED_PLUGIN_STACK_STATUS_FUNCTION_CALLS \
#define EMBER_AF_GENERATED_PLUGIN_STACK_STATUS_FUNCTION_CALLS \
emberAfPluginGreenPowerClientStackStatusCallback(status); \
emberAfPluginReportingStackStatusCallback(status); \
emberAfPluginReportingStackStatusCallback(status); \
emberAfPluginOtaClientStackStatusCallback(status); \
emberAfPluginOtaClientStackStatusCallback(status); \
emberAfPluginNetworkSteeringStackStatusCallback(status); \
emberAfPluginNetworkSteeringStackStatusCallback(status); \
...
@@ -271,11 +275,17 @@ const EmberAfGenericClusterFunction emberAfFuncArrayFanControlClusterServer[] =
...
@@ -271,11 +275,17 @@ const EmberAfGenericClusterFunction emberAfFuncArrayFanControlClusterServer[] =
{ 0x0019, 0x01, COMMAND_MASK_OUTGOING_CLIENT }, /* Over the Air Bootloading / QueryNextImageRequest */ \
{ 0x0019, 0x01, COMMAND_MASK_OUTGOING_CLIENT }, /* Over the Air Bootloading / QueryNextImageRequest */ \
{ 0x0019, 0x03, COMMAND_MASK_OUTGOING_CLIENT }, /* Over the Air Bootloading / ImageBlockRequest */ \
{ 0x0019, 0x03, COMMAND_MASK_OUTGOING_CLIENT }, /* Over the Air Bootloading / ImageBlockRequest */ \
{ 0x0019, 0x06, COMMAND_MASK_OUTGOING_CLIENT }, /* Over the Air Bootloading / UpgradeEndRequest */ \
{ 0x0019, 0x06, COMMAND_MASK_OUTGOING_CLIENT }, /* Over the Air Bootloading / UpgradeEndRequest */ \
{ 0x0021, 0x00, COMMAND_MASK_INCOMING_CLIENT }, /* Green Power / GpNotificationResponse */ \
{ 0x0021, 0x01, COMMAND_MASK_INCOMING_CLIENT }, /* Green Power / GpPairing */ \
{ 0x0021, 0x02, COMMAND_MASK_INCOMING_CLIENT }, /* Green Power / GpProxyCommissioningMode */ \
{ 0x0021, 0x06, COMMAND_MASK_INCOMING_CLIENT }, /* Green Power / GpResponse */ \
{ 0x0021, 0x0A, COMMAND_MASK_INCOMING_CLIENT }, /* Green Power / GpSinkTableResponse */ \
{ 0x0021, 0x0B, COMMAND_MASK_INCOMING_CLIENT }, /* Green Power / GpProxyTableRequest */ \
{ 0x0201, 0x00, COMMAND_MASK_OUTGOING_SERVER }, /* Thermostat / CurrentWeeklySchedule */ \
{ 0x0201, 0x00, COMMAND_MASK_OUTGOING_SERVER }, /* Thermostat / CurrentWeeklySchedule */ \
{ 0x0201, 0x00, COMMAND_MASK_INCOMING_SERVER }, /* Thermostat / SetpointRaiseLower */ \
{ 0x0201, 0x00, COMMAND_MASK_INCOMING_SERVER }, /* Thermostat / SetpointRaiseLower */ \
{ 0x0201, 0x01, COMMAND_MASK_OUTGOING_SERVER }, /* Thermostat / RelayStatusLog */ \
{ 0x0201, 0x01, COMMAND_MASK_OUTGOING_SERVER }, /* Thermostat / RelayStatusLog */ \
}
}
#define EMBER_AF_GENERATED_COMMAND_COUNT (
36
)
#define EMBER_AF_GENERATED_COMMAND_COUNT (
42
)
// Command manufacturer codes
// Command manufacturer codes
#define GENERATED_COMMAND_MANUFACTURER_CODES { \
#define GENERATED_COMMAND_MANUFACTURER_CODES { \
...
...
Code/海顿-多合一新风面板/APP/AllToOneThernmostatPannel.uvgui.11730
View file @
deb06860
This diff is collapsed.
Click to expand it.
Code/海顿-多合一新风面板/APP/User/inc/BL55072A.h
View file @
deb06860
...
@@ -91,6 +91,7 @@ typedef enum{
...
@@ -91,6 +91,7 @@ typedef enum{
#define DisplayCharr 0x30 // r
#define DisplayCharr 0x30 // r
#define DisplayCharL 0x51
#define DisplayCharL 0x51
#define DisplayCharo 0x33
#define DisplayCharo 0x33
#define DisplayCharBelowZero 0x20
...
@@ -109,7 +110,7 @@ typedef enum{
...
@@ -109,7 +110,7 @@ typedef enum{
typedef
struct
Lcd_Display_Status
typedef
struct
Lcd_Display_Status
{
{
u8
LCD_place
;
// 需要点亮部分位置,LCDDisplayInvalidParameter/0XFF为无效值
u8
LCD_place
;
// 需要点亮部分位置,LCDDisplayInvalidParameter/0XFF为无效值
u
16
LCD_code_data
;
// 参数--当前只有温度部分需要使用此参数 范围( NULL - ShowCharNumLitd ),超出此 范围无效,LCDDisplayInvalidParameter/0XFFFF为无效值
s
16
LCD_code_data
;
// 参数--当前只有温度部分需要使用此参数 范围( NULL - ShowCharNumLitd ),超出此 范围无效,LCDDisplayInvalidParameter/0XFFFF为无效值
u8
LCD_state
;
// 亮、灭、闪,双闪LCDDisplayInvalidParameter/0XFF为无效值,不包括数码管1、2、3、4、5、6
u8
LCD_state
;
// 亮、灭、闪,双闪LCDDisplayInvalidParameter/0XFF为无效值,不包括数码管1、2、3、4、5、6
u16
LCD_display_timer
;
// 闪烁间隔时间,单位10ms,LCDDisplayInvalidParameter/0XFFFF/NULL为无效值
u16
LCD_display_timer
;
// 闪烁间隔时间,单位10ms,LCDDisplayInvalidParameter/0XFFFF/NULL为无效值
u16
LCD_display_count
;
// 部分液晶只需要闪烁几次,一个跳变为一次,LCDDisplayInvalidParameter /0xFFFF为无效值,不使用填充无效值
u16
LCD_display_count
;
// 部分液晶只需要闪烁几次,一个跳变为一次,LCDDisplayInvalidParameter /0xFFFF为无效值,不使用填充无效值
...
...
Code/海顿-多合一新风面板/APP/User/inc/display_common.h
View file @
deb06860
...
@@ -45,7 +45,7 @@ typedef struct
...
@@ -45,7 +45,7 @@ typedef struct
u16
set_temperature
;
//设置温度
u16
set_temperature
;
//设置温度
s8
correct_temperature
;
//温度校准值
s8
correct_temperature
;
//温度校准值
u8
system_type
;
//系统类型
u8
system_type
;
//系统类型
u8
operation_mode
;
//
运行模式
u8
operation_mode
;
//
风机盘管模式,默认0,冷热单管
u8
wind_speed
;
//风速 0 关 1 低 2 中 3 高,4 开,5,自动 ,6 智能 7,中低,8 中高 ,9 超高 默认自动
u8
wind_speed
;
//风速 0 关 1 低 2 中 3 高,4 开,5,自动 ,6 智能 7,中低,8 中高 ,9 超高 默认自动
u8
lock_flage
;
//儿童锁显示图标
u8
lock_flage
;
//儿童锁显示图标
u8
air_cond_type
;
//空调类型 1.风机盘管 2,线控器
u8
air_cond_type
;
//空调类型 1.风机盘管 2,线控器
...
@@ -162,7 +162,7 @@ u8 kNetIndicatorIsBlinking(void);
...
@@ -162,7 +162,7 @@ u8 kNetIndicatorIsBlinking(void);
void
kNetIndicatorOptTrigger
(
uint8_t
id
,
uint32_t
duration_on_ms
,
uint32_t
duration_off_ms
,
uint32_t
times
,
u8
start
,
u8
end
);
void
kNetIndicatorOptTrigger
(
uint8_t
id
,
uint32_t
duration_on_ms
,
uint32_t
duration_off_ms
,
uint32_t
times
,
u8
start
,
u8
end
);
void
kLedModuleActionDetectCallback
(
void
);
void
kLedModuleActionDetectCallback
(
void
);
void
display_set_temp
(
u8
display_mode
,
int
temp_value
,
u8
ararm_f
);
void
display_set_temp
(
u8
display_mode
,
s16
temp_value
,
u8
ararm_f
);
void
display_system_mode
(
u8
heat
,
u8
dry
,
u8
cold
,
u8
air
,
u8
sleep
,
u8
manufture
,
u8
Auto
,
u8
Roll
);
void
display_system_mode
(
u8
heat
,
u8
dry
,
u8
cold
,
u8
air
,
u8
sleep
,
u8
manufture
,
u8
Auto
,
u8
Roll
);
void
display_wind_speed
(
u8
wind_speed
,
u8
support_type
);
void
display_wind_speed
(
u8
wind_speed
,
u8
support_type
);
void
display_wind_direct
(
u8
low
,
u8
mediu
,
u8
high
);
void
display_wind_direct
(
u8
low
,
u8
mediu
,
u8
high
);
...
@@ -180,6 +180,9 @@ u8 IsLocalConfigMode(void);
...
@@ -180,6 +180,9 @@ u8 IsLocalConfigMode(void);
u8
kAllLedIsBlinking
(
void
);
u8
kAllLedIsBlinking
(
void
);
void
Display_Up_Contend
(
u8
device_type
);
void
Display_Up_Contend
(
u8
device_type
);
void
Setup_Mode_Handle
(
void
);
void
Setup_Mode_Handle
(
void
);
void
Display_Current_Temper
(
s16
temper
);
void
Reset_Flash_Time_10s
(
void
);
#define Operation_LED(X) Operate_Led_Button(Oled_Display_Info.screen_page,X)
#define Operation_LED(X) Operate_Led_Button(Oled_Display_Info.screen_page,X)
#define Reload_Save_Time() do{ sBacklight.blacklight_flag = 1;\
#define Reload_Save_Time() do{ sBacklight.blacklight_flag = 1;\
...
...
Code/海顿-多合一新风面板/APP/User/src/BL55072A.c
View file @
deb06860
...
@@ -8,7 +8,7 @@ u8 g_u8slaver_addr ;
...
@@ -8,7 +8,7 @@ u8 g_u8slaver_addr ;
u8
Display_Num
[]
=
{
DisplayChar0
,
DisplayChar1
,
DisplayChar2
,
DisplayChar3
,
DisplayChar4
,
DisplayChar5
,
\
u8
Display_Num
[]
=
{
DisplayChar0
,
DisplayChar1
,
DisplayChar2
,
DisplayChar3
,
DisplayChar4
,
DisplayChar5
,
\
DisplayChar6
,
DisplayChar7
,
DisplayChar8
,
DisplayChar9
,
DisplayCharA
,
DisplayCharB
,
\
DisplayChar6
,
DisplayChar7
,
DisplayChar8
,
DisplayChar9
,
DisplayCharA
,
DisplayCharB
,
\
0XFF
,
0XFF
,
DisplayCharE
,
DisplayCharF
,
DisplayChar
4
,
DisplayCharr
,
DisplayCharL
,
DisplayCharo
};
0XFF
,
0XFF
,
DisplayCharE
,
DisplayCharF
,
DisplayChar
BelowZero
,
DisplayCharr
,
DisplayCharL
,
DisplayCharo
};
...
@@ -669,6 +669,7 @@ void LcdControlSetting(u8 uADD, u8 uNumber )
...
@@ -669,6 +669,7 @@ void LcdControlSetting(u8 uADD, u8 uNumber )
void
DelayPowerOffControlSetting
(
s16
time
)
void
DelayPowerOffControlSetting
(
s16
time
)
{
{
u8
temp
=
0
;
u8
temp
=
0
;
u16
data
=
0
;
if
(
time
==
0x7fff
)
//show null
if
(
time
==
0x7fff
)
//show null
{
{
BL55072A_DisplayGeneral
(
BL55072A_SEG1
,
0x07
,
0
);
BL55072A_DisplayGeneral
(
BL55072A_SEG1
,
0x07
,
0
);
...
@@ -682,7 +683,7 @@ void DelayPowerOffControlSetting(s16 time)
...
@@ -682,7 +683,7 @@ void DelayPowerOffControlSetting(s16 time)
BL55072A_DisplayGeneral
(
BL55072A_SEG5
,
0x07
,
0
);
BL55072A_DisplayGeneral
(
BL55072A_SEG5
,
0x07
,
0
);
BL55072A_DisplayGeneral
(
BL55072A_SEG6
,
0x0F
,
0
);
BL55072A_DisplayGeneral
(
BL55072A_SEG6
,
0x0F
,
0
);
}
}
else
{
else
if
(
time
>=
0
)
{
temp
=
time
/
100
;
temp
=
time
/
100
;
LcdControlSetting
(
BL55072A_SEG1
,
temp
);
LcdControlSetting
(
BL55072A_SEG1
,
temp
);
...
@@ -694,6 +695,20 @@ void DelayPowerOffControlSetting(s16 time)
...
@@ -694,6 +695,20 @@ void DelayPowerOffControlSetting(s16 time)
temp
=
time
%
10
;
temp
=
time
%
10
;
LcdControlSetting
(
BL55072A_SEG5
,
temp
);
LcdControlSetting
(
BL55072A_SEG5
,
temp
);
}
}
else
{
//显示‘-’号
BL55072A_DisplayGeneral
(
BL55072A_SEG1
,
0x07
,
0x02
);
BL55072A_DisplayGeneral
(
BL55072A_SEG2
,
0x0F
,
0x00
);
data
=
65536
-
time
;
temp
=
(
(
data
/
10
)
%
10
);
LcdControlSetting
(
BL55072A_SEG3
,
temp
);
LcdControlP1
(
1
);
temp
=
(
data
%
10
);
LcdControlSetting
(
BL55072A_SEG5
,
temp
);
}
}
}
u8
DelayPowerOffGetStat
(
void
)
u8
DelayPowerOffGetStat
(
void
)
{
{
...
...
Code/海顿-多合一新风面板/APP/User/src/Key.c
View file @
deb06860
...
@@ -386,12 +386,10 @@ static void LED_BEEP_Feedback(u8 key_id)
...
@@ -386,12 +386,10 @@ static void LED_BEEP_Feedback(u8 key_id)
||
((
Oled_Display_Info
.
screen_page
==
3
)
&&
(
Oled_Display_Info
.
FAN_Device
.
no_disturb_mode
==
0
)
)
)
||
((
Oled_Display_Info
.
screen_page
==
3
)
&&
(
Oled_Display_Info
.
FAN_Device
.
no_disturb_mode
==
0
)
)
)
Spake_Start
();
Spake_Start
();
if
(
Oled_Display_Info
.
net_work_flage
==
IN_LINE
)
if
(
Oled_Display_Info
.
net_work_flage
==
OUT_LINE
){
{
kNetIndicatorOptTrigger
(
key_id
,
200
,
200
,
1
,
0
,
1
);
}
else
{
kNetIndicatorOptTrigger
(
key_id
,
200
,
200
,
3
,
0
,
1
);
kNetIndicatorOptTrigger
(
key_id
,
200
,
200
,
3
,
0
,
1
);
}
else
{
kNetIndicatorOptTrigger
(
key_id
,
200
,
200
,
1
,
0
,
1
);
}
}
}
}
void
KeyProcess_Handler_Callbacks
(
u8
key_id
,
u8
KeyPressEvent
)
void
KeyProcess_Handler_Callbacks
(
u8
key_id
,
u8
KeyPressEvent
)
...
@@ -571,17 +569,7 @@ void Delay_OFF_Rel_Display(u8 stop_flash,u8 delay_timer,u8 dispaly_data,u8 H_cha
...
@@ -571,17 +569,7 @@ void Delay_OFF_Rel_Display(u8 stop_flash,u8 delay_timer,u8 dispaly_data,u8 H_cha
}
}
if
(
H_char
)
{
//显示H图标
LCDShowTemp_state_t
.
LCD_place
=
H_CHAR_DISPLAY
;
LCDShowTemp_state_t
.
LCD_state
=
ON
;
}
else
{
LCDShowTemp_state_t
.
LCD_place
=
H_CHAR_DISPLAY
;
LCDShowTemp_state_t
.
LCD_state
=
OFF
;
}
LcdShowCTR
(
LCDShowTemp_state_t
);
if
(
bell_char
){
if
(
bell_char
){
//显示闹钟
//显示闹钟
LCDShowTemp_state_t
.
LCD_place
=
SETTING_TIMER_DISPLAY
;
LCDShowTemp_state_t
.
LCD_place
=
SETTING_TIMER_DISPLAY
;
...
@@ -731,7 +719,7 @@ static void KEY1_Botton_Process_Handler(u8 KeyPressEvent)
...
@@ -731,7 +719,7 @@ static void KEY1_Botton_Process_Handler(u8 KeyPressEvent)
{
{
Oled_Display_Info
.
Air_Device
.
power_off_flage
=
1
;
Oled_Display_Info
.
Air_Device
.
power_off_flage
=
1
;
Reset_DelayOFF_timer
(
AIR_CONDITION
);
Reset_DelayOFF_timer
(
AIR_CONDITION
);
Delay_OFF_Rel_Display
(
1
,
1
,
Oled_Display_Info
.
Air_Device
.
power_off_time
,
1
,
1
,
1
);
Delay_OFF_Rel_Display
(
1
,
1
,
Oled_Display_Info
.
Air_Device
.
power_off_time
,
1
,
1
,
0
);
}
}
else
else
{
{
...
@@ -793,7 +781,7 @@ static void KEY1_Botton_Process_Handler(u8 KeyPressEvent)
...
@@ -793,7 +781,7 @@ static void KEY1_Botton_Process_Handler(u8 KeyPressEvent)
{
{
Oled_Display_Info
.
FLOOR_Device
.
power_off_flage
=
1
;
Oled_Display_Info
.
FLOOR_Device
.
power_off_flage
=
1
;
Reset_DelayOFF_timer
(
FLOOR_HEATING
);
Reset_DelayOFF_timer
(
FLOOR_HEATING
);
Delay_OFF_Rel_Display
(
1
,
1
,
Oled_Display_Info
.
FLOOR_Device
.
power_off_time
,
1
,
1
,
1
);
Delay_OFF_Rel_Display
(
1
,
1
,
Oled_Display_Info
.
FLOOR_Device
.
power_off_time
,
1
,
1
,
0
);
}
}
else
else
{
{
...
@@ -846,7 +834,7 @@ static void KEY1_Botton_Process_Handler(u8 KeyPressEvent)
...
@@ -846,7 +834,7 @@ static void KEY1_Botton_Process_Handler(u8 KeyPressEvent)
{
{
Oled_Display_Info
.
FAN_Device
.
power_off_flage
=
1
;
Oled_Display_Info
.
FAN_Device
.
power_off_flage
=
1
;
Reset_DelayOFF_timer
(
FAN
);
Reset_DelayOFF_timer
(
FAN
);
Delay_OFF_Rel_Display
(
1
,
1
,
Oled_Display_Info
.
FAN_Device
.
power_off_time
,
1
,
1
,
1
);
Delay_OFF_Rel_Display
(
1
,
1
,
Oled_Display_Info
.
FAN_Device
.
power_off_time
,
1
,
1
,
0
);
}
}
else
else
{
{
...
@@ -1217,7 +1205,8 @@ static void KEY5_Botton_Process_Handler(u8 KeyPressEvent)
...
@@ -1217,7 +1205,8 @@ static void KEY5_Botton_Process_Handler(u8 KeyPressEvent)
{
{
next_speed
=
Get_NextOne_By_Current_Speed_Level
(
1
,
Oled_Display_Info
.
Air_Device
.
wind_speed
,
0
);
next_speed
=
Get_NextOne_By_Current_Speed_Level
(
1
,
Oled_Display_Info
.
Air_Device
.
wind_speed
,
0
);
display_wind_speed
(
next_speed
,
0
);
display_wind_speed
(
next_speed
,
0
);
Reset_Flash_Time_10s
();
delay_confirm_fan_speed_control
(
1
);
Oled_Display_Info
.
Air_Device
.
wind_speed
=
next_speed
;
Oled_Display_Info
.
Air_Device
.
wind_speed
=
next_speed
;
#if (DEV_TYPE == 0) &&(DEVICE_TYPE_AIR_CONDITION ==1)
#if (DEV_TYPE == 0) &&(DEVICE_TYPE_AIR_CONDITION ==1)
delay_control_fan_speed_start
();
delay_control_fan_speed_start
();
...
@@ -1441,6 +1430,8 @@ static void KEY6_Botton_Process_Handler(u8 KeyPressEvent)
...
@@ -1441,6 +1430,8 @@ static void KEY6_Botton_Process_Handler(u8 KeyPressEvent)
{
{
next_speed
=
Get_NextOne_By_Current_Speed_Level
(
0
,
Oled_Display_Info
.
Air_Device
.
wind_speed
,
0
);
next_speed
=
Get_NextOne_By_Current_Speed_Level
(
0
,
Oled_Display_Info
.
Air_Device
.
wind_speed
,
0
);
display_wind_speed
(
next_speed
,
0
);
display_wind_speed
(
next_speed
,
0
);
Reset_Flash_Time_10s
();
delay_confirm_fan_speed_control
(
1
);
Oled_Display_Info
.
Air_Device
.
wind_speed
=
next_speed
;
Oled_Display_Info
.
Air_Device
.
wind_speed
=
next_speed
;
#if (DEV_TYPE == 0) &&(DEVICE_TYPE_AIR_CONDITION ==1)
#if (DEV_TYPE == 0) &&(DEVICE_TYPE_AIR_CONDITION ==1)
delay_control_fan_speed_start
();
delay_control_fan_speed_start
();
...
@@ -1893,25 +1884,29 @@ void Tap_Init(void)
...
@@ -1893,25 +1884,29 @@ void Tap_Init(void)
Relay_Action
(
0x01
,
0x00
);
//继电器断开
Relay_Action
(
0x01
,
0x00
);
//继电器断开
}
}
}
}
Tap_Status_Scan_Task_Start
();
}
}
#elif DEVICE_TYPE_FAN
#elif DEVICE_TYPE_FAN
Fan_Speed_Control
(
Oled_Display_Info
.
FAN_Device
.
wind_speed
);
//默认打开
if
(
Oled_Display_Info
.
FAN_Device
.
on_off
==
1
)
{
if
((
Oled_Display_Info
.
FAN_Device
.
on_off
==
1
)
&&
(
Oled_Display_Info
.
aging_test_flag
!=
1
))
//开机状态且没处于15min-4h老化期间
Fan_Speed_Control
(
Oled_Display_Info
.
FAN_Device
.
wind_speed
);
//默认打开
{
Fan_PassbyONOFF_By_Mode_Trans
(
Oled_Display_Info
.
FAN_Device
.
system_type
,
1
);
if
((
Oled_Display_Info
.
FAN_Device
.
on_off
==
1
)
&&
(
Oled_Display_Info
.
aging_test_flag
!=
1
))
//开机状态且没处于15min-4h老化期间
Fan_Speed_Control
(
Oled_Display_Info
.
FAN_Device
.
wind_speed
);
{
Fan_PassbyONOFF_By_Mode_Trans
(
Oled_Display_Info
.
FAN_Device
.
system_type
,
1
);
Fan_Speed_Control
(
Oled_Display_Info
.
FAN_Device
.
wind_speed
);
}
}
}
#endif
#endif
}
}
/******************************************
/******************************************
//新风模式切换,打开关闭旁通模式
//新风模式切换,打开关闭旁通模式
*******************************************/
*******************************************/
void
Fan_PassbyONOFF_By_Mode_Trans
(
u8
system_mdoe
,
u8
reset_count_time
)
void
Fan_PassbyONOFF_By_Mode_Trans
(
u8
system_mdoe
,
u8
reset_count_time
)
{
{
#if DEVICE_TYPE_FAN
if
(
system_mdoe
==
SYSTEM_MODE_MANUAL
)
if
(
system_mdoe
==
SYSTEM_MODE_MANUAL
)
{
{
Relay_Action
(
0x08
,
0x00
);
Relay_Action
(
0x08
,
0x00
);
...
@@ -1928,6 +1923,7 @@ void Fan_PassbyONOFF_By_Mode_Trans(u8 system_mdoe,u8 reset_count_time)
...
@@ -1928,6 +1923,7 @@ void Fan_PassbyONOFF_By_Mode_Trans(u8 system_mdoe,u8 reset_count_time)
auto_time
=
0
;
auto_time
=
0
;
auto_type
=
0
;
auto_type
=
0
;
}
}
#endif
}
}
/******************************************
/******************************************
//新风风速切换
//新风风速切换
...
...
Code/海顿-多合一新风面板/APP/User/src/control_comm.c
View file @
deb06860
...
@@ -16,7 +16,7 @@ u16 wind_open_time = 330 ; //3ms
...
@@ -16,7 +16,7 @@ u16 wind_open_time = 330 ; //3ms
u16
temp_open_time
=
200
;
//4ms
u16
temp_open_time
=
200
;
//4ms
u
8
wind_close_time
=
250
;
//4ms
u
16
wind_close_time
=
250
;
//4ms
u16
temp_close_time
=
250
;
//5ms
u16
temp_close_time
=
250
;
//5ms
...
@@ -300,6 +300,7 @@ void shtc3_sensor_measure_loop(void)
...
@@ -300,6 +300,7 @@ void shtc3_sensor_measure_loop(void)
}
}
state_change_report
(
OPCODE_GENERAL_REPORT_STATUS
,
1
);
state_change_report
(
OPCODE_GENERAL_REPORT_STATUS
,
1
);
}
}
abnormal_times
=
0
;
temp_new_data
=
tmep_data
;
temp_new_data
=
tmep_data
;
...
@@ -758,42 +759,42 @@ static void record_dev_used_time(void)
...
@@ -758,42 +759,42 @@ static void record_dev_used_time(void)
***********************************************************************/
***********************************************************************/
#define Spake_Continue_Time_ms 100
#define Spake_Continue_Time_ms 100
#define Spake_Interval_Time_ms 300
#define Spake_Interval_Time_ms 300
static
u8
Spake_Flag
=
0
;
static
u8
Spake_Flag
=
0
;
static
u16
Spake_Count
=
0
;
static
u8
LED_FLASH_Flag
=
0
;
static
u8
LED_FLASH_Flag
=
0
;
static
void
spake_control_loop
(
void
)
static
void
spake_control_loop
(
void
)
{
{
}
}
static
void
Spake_Control
(
void
)
static
void
Spake_Control
(
void
)
{
{
static
u16
i
=
0
;
if
(
Spake_Flag
)
if
(
Spake_Flag
)
{
{
i
++
;
Spake_Count
++
;
if
(
Oled_Display_Info
.
net_work_flage
==
IN
_LINE
)
if
(
Oled_Display_Info
.
net_work_flage
!=
OUT
_LINE
)
{
{
if
(
i
==
1
)
if
(
Spake_Count
==
1
)
{
{
PWM_ConfigOutputChannel
(
PWM
,
0
,
1000
,
70
);
PWM_ConfigOutputChannel
(
PWM
,
0
,
1000
,
70
);
//printf("##111spake_control_loop i = %d,ON\n",i);
//printf("##111spake_control_loop i = %d,ON\n",i);
}
}
if
(
i
==
Spake_Continue_Time_ms
)
if
(
Spake_Count
==
Spake_Continue_Time_ms
)
{
{
PWM_ConfigOutputChannel
(
PWM
,
0
,
1000
,
0
);
PWM_ConfigOutputChannel
(
PWM
,
0
,
1000
,
0
);
i
=
0
;
Spake_Count
=
0
;
Spake_Flag
=
0
;
Spake_Flag
=
0
;
}
}
}
}
else
{
else
{
if
((
i
==
1
)
||
(
i
==
(
Spake_Continue_Time_ms
+
Spake_Interval_Time_ms
)
))
if
((
Spake_Count
==
1
)
||
(
Spake_Count
==
(
Spake_Continue_Time_ms
+
Spake_Interval_Time_ms
)
))
{
{
PWM_ConfigOutputChannel
(
PWM
,
0
,
1000
,
70
);
PWM_ConfigOutputChannel
(
PWM
,
0
,
1000
,
70
);
}
}
if
((
i
==
(
2
*
Spake_Continue_Time_ms
+
Spake_Interval_Time_ms
)
)
||
(
i
==
Spake_Continue_Time_ms
)
)
if
((
Spake_Count
==
(
2
*
Spake_Continue_Time_ms
+
Spake_Interval_Time_ms
)
)
||
(
Spake_Count
==
Spake_Continue_Time_ms
)
)
{
{
PWM_ConfigOutputChannel
(
PWM
,
0
,
1000
,
0
);
PWM_ConfigOutputChannel
(
PWM
,
0
,
1000
,
0
);
if
(
i
==
2
*
Spake_Continue_Time_ms
+
Spake_Interval_Time_ms
)
if
(
Spake_Count
==
2
*
Spake_Continue_Time_ms
+
Spake_Interval_Time_ms
)
{
{
i
=
0
;
Spake_Count
=
0
;
Spake_Flag
=
0
;
Spake_Flag
=
0
;
}
}
...
@@ -801,22 +802,22 @@ static void Spake_Control(void)
...
@@ -801,22 +802,22 @@ static void Spake_Control(void)
}
}
}
}
}
}
static
u16
led_count
=
0
;
static
void
LED_Flash_Control
(
void
)
static
void
LED_Flash_Control
(
void
)
{
{
static
u16
i
=
0
;
if
(
LED_FLASH_Flag
)
if
(
LED_FLASH_Flag
)
{
{
i
++
;
led_count
++
;
if
((
i
==
1
)
||
(
i
==
400
)
||
(
i
==
800
))
if
((
led_count
==
1
)
||
(
led_count
==
400
)
||
(
led_count
==
800
))
{
{
LED3
=
0
;
LED3
=
0
;
}
}
if
((
i
==
200
)
||
(
i
==
600
)
||
(
i
==
1000
))
if
((
led_count
==
200
)
||
(
led_count
==
600
)
||
(
led_count
==
1000
))
{
{
LED3
=
1
;
LED3
=
1
;
if
(
i
==
1000
)
if
(
led_count
==
1000
)
{
{
i
=
0
;
led_count
=
0
;
LED_FLASH_Flag
=
0
;
LED_FLASH_Flag
=
0
;
}
}
}
}
...
@@ -825,6 +826,7 @@ static void LED_Flash_Control(void)
...
@@ -825,6 +826,7 @@ static void LED_Flash_Control(void)
void
ChildLockLedFlash
(
void
)
void
ChildLockLedFlash
(
void
)
{
{
LED_FLASH_Flag
=
1
;
LED_FLASH_Flag
=
1
;
led_count
=
0
;
}
}
extern
void
delay_confirm_system_mode
(
void
);
extern
void
delay_confirm_system_mode
(
void
);
void
delay_confirm_system_control
(
u8
start
)
void
delay_confirm_system_control
(
u8
start
)
...
@@ -878,9 +880,7 @@ void setup_handler(void)
...
@@ -878,9 +880,7 @@ void setup_handler(void)
//未老化完成,则进入老化阶段
//未老化完成,则进入老化阶段
if
(
Oled_Display_Info
.
aging_test_flag
==
0
)
if
(
Oled_Display_Info
.
aging_test_flag
==
0
)
aging_test_start
();
aging_test_start
();
temp_init
();
//上电显示
//上电显示
Detect_Human_Dispaly
();
Detect_Human_Dispaly
();
}
}
...
@@ -1118,7 +1118,7 @@ static void delay_300ms_report_task(void)
...
@@ -1118,7 +1118,7 @@ static void delay_300ms_report_task(void)
{
{
delay_300ms_report_stop
();
delay_300ms_report_stop
();
proximity_triagger_report
();
//单板产测上报
proximity_triagger_report
();
//单板产测上报
if
(
Oled_Display_Info
.
net_work_flage
==
IN
_LINE
)
if
(
Oled_Display_Info
.
net_work_flage
!=
OUT
_LINE
)
proximity_triagger_report_zigbee
();
//整机产测上报
proximity_triagger_report_zigbee
();
//整机产测上报
//printf("start report proximity_triagger event\r\n");
//printf("start report proximity_triagger event\r\n");
...
@@ -1144,8 +1144,8 @@ static void task_exit_aging_test(void)
...
@@ -1144,8 +1144,8 @@ static void task_exit_aging_test(void)
void
Spake_Start
(
void
)
void
Spake_Start
(
void
)
{
{
//task_comps[3].task_switch = SWITCH_ON;
Spake_Flag
=
1
;
Spake_Flag
=
1
;
Spake_Count
=
0
;
}
}
void
Ararm_Init
(
void
)
void
Ararm_Init
(
void
)
...
@@ -1603,7 +1603,7 @@ void zero_check_init(void)
...
@@ -1603,7 +1603,7 @@ void zero_check_init(void)
#if DEVICE_TYPE_FLOOR_HEATING
#if DEVICE_TYPE_FLOOR_HEATING
wind_open_time
=
330
;
wind_open_time
=
330
;
wind_close_time
=
25
0
;
wind_close_time
=
50
0
;
#elif DEVICE_TYPE_FAN
#elif DEVICE_TYPE_FAN
...
@@ -1891,8 +1891,8 @@ void transparent_data_analyze(PROTOCOL_DEAL recv_data)
...
@@ -1891,8 +1891,8 @@ void transparent_data_analyze(PROTOCOL_DEAL recv_data)
case
_OPCODE_QUERY_NET_STATE
:
//网络状态查询
case
_OPCODE_QUERY_NET_STATE
:
//网络状态查询
{
{
if
(
(
kNetIndicatorIsBlinking
()
)
&&
(((
recv_data
.
ARG
[
1
]
==
IN
_LINE
)
&&
(
Oled_Display_Info
.
net_work_flage
==
OUT_LINE
)
)
||
if
(
(
kNetIndicatorIsBlinking
()
)
&&
(((
recv_data
.
ARG
[
1
]
!=
OUT
_LINE
)
&&
(
Oled_Display_Info
.
net_work_flage
==
OUT_LINE
)
)
||
((
recv_data
.
ARG
[
1
]
==
OUT_LINE
)
&&
(
Oled_Display_Info
.
net_work_flage
==
IN
_LINE
)
)))
//是否在闪烁
((
recv_data
.
ARG
[
1
]
==
OUT_LINE
)
&&
(
Oled_Display_Info
.
net_work_flage
!=
OUT
_LINE
)
)))
//是否在闪烁
{
{
memset
(
arg_data
,
0
,
sizeof
(
arg_data
));
memset
(
arg_data
,
0
,
sizeof
(
arg_data
));
network_state_machine
(
recv_data
.
ARG
[
1
]);
network_state_machine
(
recv_data
.
ARG
[
1
]);
...
...
Code/海顿-多合一新风面板/APP/User/src/display_common.c
View file @
deb06860
This diff is collapsed.
Click to expand it.
Code/海顿-多合一新风面板/APP/User/src/hardware_init.c
View file @
deb06860
...
@@ -308,6 +308,7 @@ void hardware_init(void)
...
@@ -308,6 +308,7 @@ void hardware_init(void)
Setup_Task_Start
();
Setup_Task_Start
();
//fmc test
//fmc test
recover_current_state
();
recover_current_state
();
#if DEVICE_TYPE_FAN
#if DEVICE_TYPE_FAN
if
(
Oled_Display_Info
.
aging_test_flag
==
2
)
if
(
Oled_Display_Info
.
aging_test_flag
==
2
)
{
{
...
@@ -321,6 +322,7 @@ void hardware_init(void)
...
@@ -321,6 +322,7 @@ void hardware_init(void)
#endif
#endif
GPIO_init
();
GPIO_init
();
temp_init
();
#if (DEVICE_TYPE_FLOOR_HEATING || DEVICE_TYPE_FAN)
#if (DEVICE_TYPE_FLOOR_HEATING || DEVICE_TYPE_FAN)
Tap_Init
();
Tap_Init
();
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment