PDU Header 有16bits,其中包含 PDU Type(4bits)+ RFU(1bit)+ ChSel(1bit) +TxAdd(1bit) +RxAdd(1bit)+ Length(8bits),请问我在哪里可以修改这些字段;
非常感谢!!!
Viki Shi:
PDU Header的格式是spec规定的
The PDU Type field of the advertising channel PDU that is contained in the header indicates the PDU types。
The TxAdd and RxAdd fields of the advertising channel PDU that are contained in the header contain information specific to the PDU type defined for eachadvertising channel PDU separately. If the TxAdd or RxAdd fields are not defined as used in a given PDU then they shall be considered Reserved forFuture Use.
The Length field of the advertising channel PDU header indicates the payload field length in octets. The valid range of the Length field shall be 6 to 37 octets.
The Payload fields in the advertising channel PDUs are specific to the PDU Type and are defined in Section 2.3.1 through Section 2.3.3. The PDU Typesmarked as Reserved shall not be sent and shall be ignored upon receipt.
Alvin Chen:
该字段为客户不可以修改部分。
PDU type会根据你调用不同的API底层自动产生。
user5955268:
回复 Alvin Chen:
The Length field of the advertising channel PDU header indicates the payload field length in octets. The valid range of the Length field shall be 6 to 37 octets.那这个Len(8bits)是否可以修改??
Alvin Chen:
回复 user5955268:
不需要修改,在你设定广播数据,会自动填充:在CORE SPEC 5.0及以上版本 可以设置为255.
Each PDU shall only appear on those PHYs indicated with a bullet ‘●’ and on the Advertising Channel shown in Table 2.3. The ChSel, TxAdd and RxAdd fields of the advertising channel PDU that are contained in the header contain information specific to the PDU typedefined for each advertising channel PDU separately. If the ChSel, TxAdd or RxAdd fields are not defined as used in a given PDU then they shall be considered Reserved for Future Use. The Length field of the advertising channel PDU header indicates the payload field length in octets. The valid range of the Length field shall be 1 to 255 octets.