Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 8 of 8) sorted by relevance

/edtt-latest/src/components/
Dbasic_commands.py538 packet = transport.recv(idx, len(cmd), to);
540 if ( len(cmd) != len(packet) ):
541 …"echo test failed: Response too short (Expected %i bytes got %i bytes)" % (len(cmd), len(packet)));
543 RespCmd, RespLen = struct.unpack('<HH', packet[:4]);
551 if ( packet[4:] != message ):
552 raise Exception("echo test failed: Message content corrupted (%s)" % packet[4:]);
554 return packet[4:];
572 packet = transport.recv(idx, 5, to);
574 if ( 5 != len(packet) ):
575 …("Inquire command failed: Response too short (Expected %i bytes got %i bytes)" % (5, len(packet)));
[all …]
Ddump.py62 recheck_time, packet_size, packet, *_ = line.split(',')
75 packet = bytearray(int(v, 16) for v in packet.split())
77 …urn self.Tx._make((self.idx, start_time, phy_address, center_freq, modulation, memoryview(packet)))
88 payload_end, rx_time_stamp, status, RSSI, packet_size, packet, *_ = line.split(',')
114 packet = bytearray(int(v, 16) for v in packet.split())
117 memoryview(packet)))
301 for packet in aux_ptr_packets:
302 if aux_ptr_matches(packet.payload['AuxPtr'], packet.ts, ts, channel_num, phy):
303 superiorPackets += [packet]
455 def __get_packet(self, direction, idx, ts, aa, channel_num, phy, packet): argument
[all …]
Dbtsnoop.py136 def send_event_sock(self, packet, data, eventLen): argument
137 self.sock.send(packet[8:10])
142 def send_event_file(self, packet, data, eventLen): argument
143 self.file.write(packet[8:10])
148 def send_event(self, idx, packet, data): argument
150 RespCmd, RespLen, time, event, eventLen = struct.unpack('<HHIBB', packet[:10]);
154 self.send_event_file(packet, data, eventLen)
156 self.send_event_sock(packet, data, eventLen)
204 def send_monitor_iso_rx(self, idx, handle, dataLen, packet): argument
210 self.file.write(packet)
[all …]
Dutils.py155 def calcBLECRC(crc_init, packet): argument
156 return BLECRCUpdate(rev_24(crc_init), packet)
Dedttt_bsim.py299 packet = b""
302 packet += segment
318 return packet
/edtt-latest/src/tests/
Dll_verification.py778 for packet in packets.fetch(packet_filter=('ADV_IND')):
779 if packet.channel_num == chNumToScan:
781 success = success and packet.header.ChSel == 1
782 success = success and len(packet.payload.AdvData) == len(round.AdvData)
784 success = success and packet.payload.AdvData[i] == round.AdvData[i]
869 for packet in packets.fetch(packet_filter=('ADV_EXT_IND')):
870 success = success and packet.payload['AdvMode'] == 0b00
871 success = success and 'AuxPtr' in packet.payload
872 success = success and 'ADI' in packet.payload
873 success = success and packet.payload['ADI'].SID == Sid
[all …]
Dtest_utils.py909 def get_packet_air_time(packet): argument
911 …return math.ceil(((2 if packet.phy == '2M' else 1) + 4 + 2 + len(packet) + 3)*8/(2 if packet.phy =…
/edtt-latest/docs/
DEDTT_framework_Babblesim.md113 …ll usuallly want to use the `-dump_imm` command line argument when using packet inspection; Otherw…
119 * `ts`: The start timestamp of the packet (in microseconds)
123 * `data`: The raw data of the packet (excluding header)
124 * `type`: The type of packet, for example `'ADV_IND'` or `'CONNECT_IND'`
125 * `header`: The header of the packet - a named tuple containing `pdu_type`, `ch_sel`, `tx_add`, `rx…
126 * `payload`: The decoded payload of the packet. Content depends on the type of packet; It will gene…
134 …l iterate through all packets matching the provided filter in the order of oldest packet to newest.
143 for packet in packets.fetch(packet_filter=('AUX_ADV_IND')):
144 # Do something with packet
145 print(packet)