void BaseBandSniffer::ReceiveLinkLayerPacket(model::packets::LinkLayerPacketView packet,
Phy::Type /*type*/, int8_t /*rssi*/) { auto packet_type = packet.GetType(); auto address = packet.GetSourceAddress();
// Bluetooth Core, Vol2, Part B, 1.2, Figure 1.5
uint32_t lap = address.data()[0] | (address.data()[1] << 8) | (address.data()[2] << 16);
uint8_t uap = address.data()[3];
uint16_t nap = address.data()[4] | (address.data()[5] << 8);
// http://www.whiterocker.com/bt/LINKTYPE_BLUETOOTH_BREDR_BB.html
uint16_t flags = /* BT Packet Header and BR or EDR Payload are de-whitened */ 0x0001 | /* BR or EDR Payload is decrypted */ 0x0008 | /* Reference LAP is valid and led to this packet being captured */ 0x0010 | /* BR or EDR Payload is present and follows this field */ 0x0020 | /* Reference UAP field is valid for HEC and CRC checking */ 0x0080 | /* CRC portion of the BR or EDR Payload was checked */ 0x0400 | /* CRC portion of the BR or EDR Payload passed its check */ 0x0800;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.