This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC2530DK:在ZNP和ZAP上放置应用程序对象...

Guru**** 2540720 points
Other Parts Discussed in Thread: Z-STACK

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/580389/cc2530dk-putting-application-objects-on-both-znp-and-zap

部件号:CC2530DK

尊敬的各位:

 

我是否可以修改Z-Stack中提供的ZNP程序,以便在将一些应用程序对象放入ZNP的同时将其放入ZAP中?

 

pTaskEventHandlerFn中的类似内容:

 

//此表中的顺序必须与下面osalInitTask中的任务初始化调用相同。

const pTaskEventHandlerFn taskArr[]={

znpEventLoop,

macEventLoop,

Nwk_event_loop,

#if (ZG_build_RTR_type)

gp_event_loop,

#endif

APS_event_loop,

#IF已定义( ZigBee_Fragmentation )

APSF_ProcessEvent,

#endif

ZDEapp_event_loop,

#IF已定义( ZigBee_FREQ_Agility )||已定义( ZigBee_PANID_Conflict )

ZDNwkMgr_event_loop,

#endif

Defined ( inter_pan )

#stubaps_ProcessEvent,

#endif//

已添加功能以包括TouchLink_initiator

BTL_启动器()

TouchLinkInitiator_event_loop,

#endif

//添加以包括TouchLink目标功能

#if defined ( BDB_TL_TARGET )

TouchLinkTarget_event_loop,

#endif

bdb_event_loop,

SAI_ProcessEvent,

#if defined ( ZCL_KEY_establish )

zclKE_ProcessEvent,

#endif

Hal_ProcessEvent,

#if defined ( MT_SYS_JAMMER_Feature )

jammerEventLoop ,

#endif

zclSampleLight_event_loop,//这是放入ZNP的应用程序对象

}; 

 

非常感谢。

此致,

Barry

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好,Barry,

    假设您的设备具有足够的资源,您肯定可以将另一个任务添加到OSAL事件循环中。 我们有一个关于如何将另一个端点添加到应用程序的示例的Wiki,在这里,它显示了如何添加另一个OSAL任务:

    processors.wiki.ti.com/.../Multi-endpoint_device_implementation
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    是的,您可以这样做。 但是,您应该注意,您的任务不会阻止其他人并影响ZNP的工作。