Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Telin_Zigbee_SDK
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
Telin_Zigbee_SDK
Commits
d9011729
Commit
d9011729
authored
Jun 13, 2022
by
hanxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
telin_zigbee_sdk-1.1.1
parent
b1dbfcb7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
17 deletions
+14
-17
tl_zigbee_sdk/apps/3LightPanelDemo/3LightPanelDemo_endpoint_config.h
...dk/apps/3LightPanelDemo/3LightPanelDemo_endpoint_config.h
+2
-2
tl_zigbee_sdk/apps/3LightPanelDemo/ikk-config.h
tl_zigbee_sdk/apps/3LightPanelDemo/ikk-config.h
+2
-2
tl_zigbee_sdk/apps/3LightPanelDemo/user.c
tl_zigbee_sdk/apps/3LightPanelDemo/user.c
+2
-2
tl_zigbee_sdk/apps/common/00ikonke_app/general/ikk-debug.h
tl_zigbee_sdk/apps/common/00ikonke_app/general/ikk-debug.h
+1
-1
tl_zigbee_sdk/apps/common/00ikonke_app/general/ikk-opt-tunnel.c
...bee_sdk/apps/common/00ikonke_app/general/ikk-opt-tunnel.c
+7
-10
No files found.
tl_zigbee_sdk/apps/3LightPanelDemo/3LightPanelDemo_endpoint_config.h
View file @
d9011729
...
...
@@ -8,8 +8,8 @@
*/
//#define SINGLE_LIGHT_PANEL
//#define DUAL_LIGHT_PANEL
#define THREE_LIGHT_PANEL
//
#define FOUR_LIGHT_PANEL
//
#define THREE_LIGHT_PANEL
#define FOUR_LIGHT_PANEL
#ifdef SINGLE_LIGHT_PANEL
#define SUPPORT_MAX_EP 6
...
...
tl_zigbee_sdk/apps/3LightPanelDemo/ikk-config.h
View file @
d9011729
...
...
@@ -4,8 +4,8 @@
#include "types.h"
//#define SINGLE_LIGHT_PANEL
//#define DUAL_LIGHT_PANEL
#define THREE_LIGHT_PANEL
//
#define FOUR_LIGHT_PANEL
//
#define THREE_LIGHT_PANEL
#define FOUR_LIGHT_PANEL
#ifdef SINGLE_LIGHT_PANEL
/*Dsp: product model id */
#define PRODUCT_MODEL "KK-LP-D81X"
...
...
tl_zigbee_sdk/apps/3LightPanelDemo/user.c
View file @
d9011729
...
...
@@ -17,8 +17,8 @@
//#define SINGLE_LIGHT_PANEL
//#define DUAL_LIGHT_PANEL
#define THREE_LIGHT_PANEL
//
#define FOUR_LIGHT_PANEL
//
#define THREE_LIGHT_PANEL
#define FOUR_LIGHT_PANEL
#ifdef SINGLE_LIGHT_PANEL
#define g_ucRelayTotalNum 1
...
...
tl_zigbee_sdk/apps/common/00ikonke_app/general/ikk-debug.h
View file @
d9011729
...
...
@@ -2,7 +2,7 @@
#define __IKONKE_MODULE_DEBUG_H______________________________
#define IKONKE_DEBUG_LOG_ENABLE (
1
) // ENABLE
#define IKONKE_DEBUG_LOG_ENABLE (
0
) // ENABLE
#define PROMPT_DSR ""
...
...
tl_zigbee_sdk/apps/common/00ikonke_app/general/ikk-opt-tunnel.c
View file @
d9011729
...
...
@@ -535,25 +535,22 @@ bool kOptTunnelTrytoWriteInstallCode(void)
OPTTUNEL_TOKEN_ST
sOptunnel_Token_temp
;
flash_read
(
TOKEN_USER_LOCATION
,
USER_SIZE
,(
uint8_t
*
)
&
sOptunnel_Token_temp
);
if
(
All_Same_Data
((
uint8_t
*
)
&
sOptunnel_Token_temp
.
install_code
.
install_code_data
,
0xff
,
16
)){
uint8_t
installcode_buffer
[
16
]
=
{
0x30
,
0x30
,
0x30
,
0x30
,
0x30
,
0x30
,
0x30
,
0x30
};
uint8_t
length
=
16
;
addrExt_t
long_address
;
zb_getLocalExtAddr
(
long_address
);
SWAP_EUI64
((
uint8_t
*
)
long_address
);
//ȡ
uint8_t
mac_address
[
8
]
=
{
0
};
for
(
uint8_t
i
=
4
;
i
<
8
;
i
++
){
//0-7
mac_address
[
2
*
i
-
8
]
=
long_address
[
i
]
>>
4
;
mac_address
[
2
*
i
-
7
]
=
long_address
[
i
]
&
0x0f
;
uint8_t
mac_address
[
16
]
=
{
0
};
for
(
uint8_t
i
=
0
;
i
<
8
;
i
++
){
//0-15
mac_address
[
2
*
i
]
=
long_address
[
i
]
>>
4
;
mac_address
[
2
*
i
+
1
]
=
long_address
[
i
]
&
0x0f
;
}
iKonkeAfSelfPrint
(
"!!!MAC_address:
\r\n
"
);
iKonkeAfSelfPrintBuffer
(
mac_address
,
8
);
iKonkeAfSelfPrintBuffer
(
mac_address
,
16
);
for
(
uint8_t
i
=
0
;
i
<
8
;
i
++
)
for
(
uint8_t
i
=
0
;
i
<
15
;
i
++
)
mac_address
[
i
]
=
HexToASCII
(
mac_address
[
i
]);
memcpy
(
&
installcode_buffer
[
8
],
&
mac_address
[
0
],
8
);
INSTALL_CODE_TOKEN_SET
(
installcode_buffer
,
length
);
INSTALL_CODE_TOKEN_SET
(
mac_address
,
16
);
}
}
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