Bug report: Zigbee SDK uses endpoint indices instead of IDs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bug report: Zigbee SDK uses endpoint indices instead of IDs

384件の閲覧回数
dstevens
Contributor II

The BDB functions BDB_vFbExitAsTarget and BDB_vFbExitAsTarget in the bcb_fb_target.c SDK source incorrectly treat the provided endpoint parameter as a 1-based index rather than and endpoint ID:

BDB_vFbExitAsTarget

  • Calls eZCL_WriteLocalAttributeValue, which requires an ID, not an index
  • Updates local state with: aeFBState[u8SourceEndpoint - 1] = E_FB_IDLE_STATE, which requires a 1-based index.

 

BDB_eFbTriggerAsTarget expects a 1-based index

  • Returns an error if u8Endpoint > BDB_FB_NUMBER_OF_ENDPOINTS
  • As with the previous function, it calls eZCL_WriteLocalAttributeValue which requires an ID, and then udpates aeFBState assuming a 1-based index (aeFBState[u8EndPoint - 1] = E_FB_IN_PROGRESS_STATE).

 

These bugs are hidden when endpoint IDs are contiguous and begin at 1, which is the case in the samples.

FYI, we previously reported a similar bug in the OTA code here.

SDK Version: 2.6.15

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

349件の閲覧回数
sofiaurueta
NXP Employee
NXP Employee

Hello,

 

Thank you for your feedback, let me check this internally with the responsible team.

 

Regards,

Ana Sofia.

0 件の賞賛
返信