这是一段关于lorawan 1.0.3
规范的文本:
923 6.1.2 Application identifier (AppEUI)
924 The AppEUI is a global application ID in IEEE EUI64 address space that uniquely identifies
925 the entity able to process the JoinReq frame.
926 The AppEUI is stored in the end-device before the activation procedure is executed.
而且相关的1.1 规格:
1317 6.1.1.1 JoinEUI
1318 The JoinEUI is a global application ID in IEEE EUI64 address space that uniquely identifies
1319 the Join Server that is able to assist in the processing of the Join procedure and the session
1320 keys derivation.
1321 For OTAA devices, the JoinEUI MUST be stored in the end-device before the Join
1322 procedure is executed. The JoinEUI is not required for ABP only end-devices
请注意,在1.0.3和1.1之间,AppEui的名称已更改为JoinEui。
v1.0.3的密钥派生方案如下:
![LoRaWAN1.0 key derivation scheme](https://istack.dev59.com/fpk2O.webp)
以下是v1.1的密钥派生方案:
![Figure 49 : LoRaWAN1.1 key derivation scheme](https://istack.dev59.com/aUNcA.webp)
因此,回答您的问题:
AppEui(JoinEui)用于派生会话密钥并将您的节点标识给网络服务器。它与DevEui一起标识您的节点。应用程序服务器使用MQTT订阅由网络服务器生成的数据流,这在TTN中通过此模式完成:
<AppID>/devices/<DevID>/<up/down>
。下行数据包基于网关进行处理。网络服务器知道哪些网关接收了上行数据,
选择一个网关来传输下行数据。如果我们看看thethingsnetwork,你就能看到他们是如何确定哪些密钥属于哪个应用程序的。您将每个节点的AppEui和DevEui链接到应用程序上,系统将推断哪些数据包属于哪个应用程序。
加密方案在1.0.3和1.1之间发生了变化,如上面的图像所示。但对于仅使用库或API的最终用户来说,这并不重要。
AppEui被分配在一组空间中,就像MAC地址和USB PID和VID号码一样。The Things Network的地址空间以
70B3D57ED
开头。但是,如果您已经获得了自己的AppEui,则可以设置自己的AppEui。有一个按钮可以自定义AppEui字段,并允许您进行设置。