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
1ed830cc
Commit
1ed830cc
authored
Aug 31, 2020
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上电打印 ncp mac
parent
52cb12b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
platform/zigbee/protocol/zigbee/app/framework/util/af-main-host.c
.../zigbee/protocol/zigbee/app/framework/util/af-main-host.c
+7
-0
No files found.
platform/zigbee/protocol/zigbee/app/framework/util/af-main-host.c
View file @
1ed830cc
...
@@ -434,6 +434,8 @@ void emAfResetAndInitNCP(void)
...
@@ -434,6 +434,8 @@ void emAfResetAndInitNCP(void)
"maximum outgoing transfer size"
);
"maximum outgoing transfer size"
);
}
}
// Set the manufacturing code. This is defined by ZigBee document 053874r10
// Set the manufacturing code. This is defined by ZigBee document 053874r10
// Ember's ID is 0x1002 and is the default, but this can be overridden in App Builder.
// Ember's ID is 0x1002 and is the default, but this can be overridden in App Builder.
emberSetManufacturerCode
(
EMBER_AF_MANUFACTURER_CODE
);
emberSetManufacturerCode
(
EMBER_AF_MANUFACTURER_CODE
);
...
@@ -470,6 +472,7 @@ void emAfResetAndInitNCP(void)
...
@@ -470,6 +472,7 @@ void emAfResetAndInitNCP(void)
// Set the localEui64 global
// Set the localEui64 global
ezspGetEui64
(
emLocalEui64
);
ezspGetEui64
(
emLocalEui64
);
// Initialize messageSentCallbacks table
// Initialize messageSentCallbacks table
emAfInitializeMessageSentCallbackArray
();
emAfInitializeMessageSentCallbackArray
();
}
}
...
@@ -538,6 +541,10 @@ int emberAfMain(MAIN_FUNCTION_PARAMETERS)
...
@@ -538,6 +541,10 @@ int emberAfMain(MAIN_FUNCTION_PARAMETERS)
// initialize the network co-processor (NCP)
// initialize the network co-processor (NCP)
emAfResetAndInitNCP
();
emAfResetAndInitNCP
();
printf
(
"[%s][%d]
\n
"
,
__FUNCTION__
,
__LINE__
);
printf
(
"[%s][%d]
\n
"
,
__FUNCTION__
,
__LINE__
);
EmberEUI64
eui64
;
emberAfGetEui64
(
eui64
);
emberAfCorePrintln
(
"~~~~~~~~~~~~~~~~~~~~~NCP MAC:"
);
emberAfPrintBigEndianEui64
(
eui64
);
// initialize the ZCL framework ,(plug in) ,mqtt init is here
// initialize the ZCL framework ,(plug in) ,mqtt init is here
emAfInit
();
emAfInit
();
...
...
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