Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-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
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
陈伟灿
k-sdk
Commits
a6fb49f6
Commit
a6fb49f6
authored
Sep 17, 2020
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
b8f242aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
33 deletions
+2
-33
platform/zigbee/app/builder/Z3GatewayHost/yjq_ezsp.c
platform/zigbee/app/builder/Z3GatewayHost/yjq_ezsp.c
+1
-32
platform/zigbee/protocol/zigbee/app/framework/plugin/device-table/device-table.c
...l/zigbee/app/framework/plugin/device-table/device-table.c
+1
-1
No files found.
platform/zigbee/app/builder/Z3GatewayHost/yjq_ezsp.c
View file @
a6fb49f6
...
@@ -86,10 +86,7 @@ void kk_read_ncp_configuration_without_memory_allocation(void)
...
@@ -86,10 +86,7 @@ void kk_read_ncp_configuration_without_memory_allocation(void)
}
}
extern
void
kk_print_device_table
(
void
);
//extern void kk_device_table_add(EmberEUI64 mac,uint8_t epNum,uint8_t* epVal,char *productCode);
extern
void
kk_device_table_delete
(
EmberEUI64
mac
);
extern
bool
kk_device_find_by_mac11111
(
EmberEUI64
mac
);
extern
void
kk_print_network_info
(
void
);
extern
void
kk_print_network_info
(
void
);
void
kk_message_process
(
char
*
messageString
)
void
kk_message_process
(
char
*
messageString
)
...
@@ -102,35 +99,7 @@ void kk_message_process(char *messageString)
...
@@ -102,35 +99,7 @@ void kk_message_process(char *messageString)
emberAfAppPrint
(
"set txpower = 10
\r\n
"
);
emberAfAppPrint
(
"set txpower = 10
\r\n
"
);
setTxPower
(
10
);
setTxPower
(
10
);
}
}
if
(
MEMCOMPARE
(
messageString
,
"AT+123
\r\n
"
,
len
)
==
0
){
kk_print_device_table
();
}
if
(
MEMCOMPARE
(
messageString
,
"AT+KKTEST1
\r\n
"
,
len
)
==
0
){
uint8_t
ep
[
2
]
=
{
1
,
242
};
static
uint8_t
aaa
=
0x00
;
EmberEUI64
mac
=
{
0x00
,
0x11
,
0x22
,
0x33
,
0x44
,
0x55
,
0x66
,
0x77
};
mac
[
0
]
=++
aaa
;
//kk_device_table_add(mac,2,ep,"24");
}
if
(
MEMCOMPARE
(
messageString
,
"AT+456
\r\n
"
,
len
)
==
0
){
uint8_t
ep
[
2
]
=
{
1
,
242
};
static
uint8_t
aaa
=
0x01
;
EmberEUI64
mac
=
{
0x00
,
0x11
,
0x22
,
0x33
,
0x44
,
0x55
,
0x66
,
0x77
};
mac
[
0
]
=
aaa
++%
5
;
kk_device_table_delete
(
mac
);
}
if
(
MEMCOMPARE
(
messageString
,
"AT+678
\r\n
"
,
len
)
==
0
){
uint8_t
ep
[
2
]
=
{
1
,
242
};
EmberEUI64
mac
=
{
0x01
,
0x11
,
0x22
,
0x33
,
0x44
,
0x55
,
0x66
,
0x77
};
if
(
kk_device_find_by_mac11111
(
mac
)
==
true
){
emberAfAppPrint
(
" Exist!!!
\r\n
"
);
}
else
{
emberAfAppPrint
(
" not Exist!!!
\r\n
"
);
}
}
if
(
MEMCOMPARE
(
messageString
,
"AT+GETINFO
\r\n
"
,
len
)
==
0
){
if
(
MEMCOMPARE
(
messageString
,
"AT+GETINFO
\r\n
"
,
len
)
==
0
){
kk_print_network_info
();
kk_print_network_info
();
...
...
platform/zigbee/protocol/zigbee/app/framework/plugin/device-table/device-table.c
View file @
a6fb49f6
...
@@ -407,7 +407,7 @@ void emberAfPluginDeviceTableStackStatusCallback(EmberStatus status)
...
@@ -407,7 +407,7 @@ void emberAfPluginDeviceTableStackStatusCallback(EmberStatus status)
emberAfCorePrintln
(
"DeviceTable: Clear State"
);
emberAfCorePrintln
(
"DeviceTable: Clear State"
);
emberAfDeviceTableClear
();
emberAfDeviceTableClear
();
kk_device_table_clear
();
//
}
}
}
}
...
...
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