OSDN Git Service

RootCanal: Support LE 4.1 advertising
authorMyles Watson <mylesgw@google.com>
Mon, 2 Sep 2019 22:54:08 +0000 (15:54 -0700)
committerMyles Watson <mylesgw@google.com>
Tue, 3 Sep 2019 17:03:07 +0000 (17:03 +0000)
commit99aea892f9ce64d1ec9836dd9a2b7d0b70e147bd
treea7fd602da25c3af268c4755da24d033af67005ae
parent48cc9c9e90e913d9b326a9687afc9d03a17608c0
RootCanal: Support LE 4.1 advertising

Bug: 139080884
Test: Start and stop advertising with root_canal desktop

Window #1:
$ ./root_canal

Window #2:
$ python test_channel.py 6401
 $ add_device_to_phy 1 2
 $ add sniffer 00:00:00:00:00:00
 $ add_device_to_phy 2 2

Window #3:
  # Connect a new HCI device
$ python3 simple_stack.py 6402
  # Set the Random address to 1 2 3 4 5 6
 $ send 01 05 20 06 01 02 03 04 05 06
  # Enable BLE advertising
 $ send 01 0A 20 01 01
  # Disable BLE advertising
 $ send 01 0A 20 01 00 
  # Configure advertising (interval 0x06-0x50, random address, peer 01:02:03:04:05:06)
 $ send 01 06 20 0F 06 00 50 00 00 01 00 01 02 03 04 05 06 07 00

Change-Id: I5922d88792803847822e5d56aa57a49140c8363f
vendor_libs/test_vendor_lib/include/hci/op_code.h
vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.cc
vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.h
vendor_libs/test_vendor_lib/model/controller/link_layer_controller.cc
vendor_libs/test_vendor_lib/model/controller/link_layer_controller.h
vendor_libs/test_vendor_lib/model/devices/device_properties.h
vendor_libs/test_vendor_lib/model/devices/h4_packetizer.cc
vendor_libs/test_vendor_lib/model/devices/hci_socket_device.cc
vendor_libs/test_vendor_lib/scripts/simple_stack.py