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.

link key和网络密钥的问题

Other Parts Discussed in Thread: Z-STACK

请问一下大家那个link key是固定的{0x5a,0x69,...}.

1而网络密钥又分预埋密钥和分发密钥两种。而这那种分发密钥也是固定不变的吗。那还怎么起到加密的作用呢

#if defined ( DEFAULT_KEY )
CONFIG_ITEM uint8 defaultKey[SEC_KEY_LEN] = DEFAULT_KEY;
#else
CONST uint8 defaultKey[SEC_KEY_LEN] =
{
#if defined ( APP_TP ) || defined ( APP_TP2 )
  // Key for ZigBee Conformance Testing
  0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb,
  0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa
#else
  // Key for In-House Testing
  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
#endif
};
2上面的#if defined之后的是不是就是预埋密钥,#else之后的就是分发密钥。
3那如果是这样的话分发密钥和默认密钥好像没什么区别
4// Key for ZigBee Conformance Testing这和
  // Key for In-House Testing这两个分别又是什么意思呢