-
-
Save swkim101/82bc694f9427f008c14e91307b3355b6 to your computer and use it in GitHub Desktop.
Reproduce CONFIG -> DISCONN by CONFIG_RSP. This gist contains three files, server (l2cap-server.c), client (14474.c), and log (btmon log)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// autogenerated by syzkaller (https://github.com/google/syzkaller) | |
#define _GNU_SOURCE | |
#include <endian.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <pthread.h> | |
#include <sched.h> | |
#include <stdarg.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/epoll.h> | |
#include <sys/ioctl.h> | |
#include <sys/mount.h> | |
#include <sys/prctl.h> | |
#include <sys/resource.h> | |
#include <sys/socket.h> | |
#include <sys/stat.h> | |
#include <sys/syscall.h> | |
#include <sys/time.h> | |
#include <sys/types.h> | |
#include <sys/uio.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
#include <linux/capability.h> | |
#include <linux/rfkill.h> | |
static bool write_file(const char* file, const char* what, ...) | |
{ | |
char buf[1024]; | |
va_list args; | |
va_start(args, what); | |
vsnprintf(buf, sizeof(buf), what, args); | |
va_end(args); | |
buf[sizeof(buf) - 1] = 0; | |
int len = strlen(buf); | |
int fd = open(file, O_WRONLY | O_CLOEXEC); | |
if (fd == -1) | |
return false; | |
if (write(fd, buf, len) != len) { | |
int err = errno; | |
close(fd); | |
errno = err; | |
return false; | |
} | |
close(fd); | |
return true; | |
} | |
#define BTPROTO_HCI 1 | |
#define ACL_LINK 1 | |
#define SCAN_PAGE 2 | |
typedef struct { | |
uint8_t b[6]; | |
} __attribute__((packed)) bdaddr_t; | |
#define HCI_COMMAND_PKT 1 | |
#define HCI_EVENT_PKT 4 | |
#define HCI_VENDOR_PKT 0xff | |
struct hci_command_hdr { | |
uint16_t opcode; | |
uint8_t plen; | |
} __attribute__((packed)); | |
struct hci_event_hdr { | |
uint8_t evt; | |
uint8_t plen; | |
} __attribute__((packed)); | |
#define HCI_EV_CONN_COMPLETE 0x03 | |
struct hci_ev_conn_complete { | |
uint8_t status; | |
uint16_t handle; | |
bdaddr_t bdaddr; | |
uint8_t link_type; | |
uint8_t encr_mode; | |
} __attribute__((packed)); | |
#define HCI_EV_CONN_REQUEST 0x04 | |
struct hci_ev_conn_request { | |
bdaddr_t bdaddr; | |
uint8_t dev_class[3]; | |
uint8_t link_type; | |
} __attribute__((packed)); | |
#define HCI_EV_REMOTE_FEATURES 0x0b | |
struct hci_ev_remote_features { | |
uint8_t status; | |
uint16_t handle; | |
uint8_t features[8]; | |
} __attribute__((packed)); | |
#define HCI_EV_CMD_COMPLETE 0x0e | |
struct hci_ev_cmd_complete { | |
uint8_t ncmd; | |
uint16_t opcode; | |
} __attribute__((packed)); | |
#define HCI_OP_WRITE_SCAN_ENABLE 0x0c1a | |
#define HCI_OP_READ_BUFFER_SIZE 0x1005 | |
struct hci_rp_read_buffer_size { | |
uint8_t status; | |
uint16_t acl_mtu; | |
uint8_t sco_mtu; | |
uint16_t acl_max_pkt; | |
uint16_t sco_max_pkt; | |
} __attribute__((packed)); | |
#define HCI_OP_READ_BD_ADDR 0x1009 | |
struct hci_rp_read_bd_addr { | |
uint8_t status; | |
bdaddr_t bdaddr; | |
} __attribute__((packed)); | |
#define HCI_EV_LE_META 0x3e | |
struct hci_ev_le_meta { | |
uint8_t subevent; | |
} __attribute__((packed)); | |
#define HCI_EV_LE_CONN_COMPLETE 0x01 | |
struct hci_ev_le_conn_complete { | |
uint8_t status; | |
uint16_t handle; | |
uint8_t role; | |
uint8_t bdaddr_type; | |
bdaddr_t bdaddr; | |
uint16_t interval; | |
uint16_t latency; | |
uint16_t supervision_timeout; | |
uint8_t clk_accurancy; | |
} __attribute__((packed)); | |
struct hci_dev_req { | |
uint16_t dev_id; | |
uint32_t dev_opt; | |
}; | |
struct vhci_vendor_pkt { | |
uint8_t type; | |
uint8_t opcode; | |
uint16_t id; | |
}; | |
#define HCIDEVUP _IOW('H', 201, int) | |
#define HCISETSCAN _IOW('H', 221, int) | |
static int vhci_fd = -1; | |
static void rfkill_unblock_all() | |
{ | |
int fd = open("/dev/rfkill", O_WRONLY); | |
if (fd < 0) | |
exit(1); | |
struct rfkill_event event = {0}; | |
event.idx = 0; | |
event.type = RFKILL_TYPE_ALL; | |
event.op = RFKILL_OP_CHANGE_ALL; | |
event.soft = 0; | |
event.hard = 0; | |
if (write(fd, &event, sizeof(event)) < 0) | |
exit(1); | |
close(fd); | |
} | |
static void hci_send_event_packet(int fd, uint8_t evt, void* data, | |
size_t data_len) | |
{ | |
struct iovec iv[3]; | |
struct hci_event_hdr hdr; | |
hdr.evt = evt; | |
hdr.plen = data_len; | |
uint8_t type = HCI_EVENT_PKT; | |
iv[0].iov_base = &type; | |
iv[0].iov_len = sizeof(type); | |
iv[1].iov_base = &hdr; | |
iv[1].iov_len = sizeof(hdr); | |
iv[2].iov_base = data; | |
iv[2].iov_len = data_len; | |
if (writev(fd, iv, sizeof(iv) / sizeof(struct iovec)) < 0) | |
exit(1); | |
} | |
static void hci_send_event_cmd_complete(int fd, uint16_t opcode, void* data, | |
size_t data_len) | |
{ | |
struct iovec iv[4]; | |
struct hci_event_hdr hdr; | |
hdr.evt = HCI_EV_CMD_COMPLETE; | |
hdr.plen = sizeof(struct hci_ev_cmd_complete) + data_len; | |
struct hci_ev_cmd_complete evt_hdr; | |
evt_hdr.ncmd = 1; | |
evt_hdr.opcode = opcode; | |
uint8_t type = HCI_EVENT_PKT; | |
iv[0].iov_base = &type; | |
iv[0].iov_len = sizeof(type); | |
iv[1].iov_base = &hdr; | |
iv[1].iov_len = sizeof(hdr); | |
iv[2].iov_base = &evt_hdr; | |
iv[2].iov_len = sizeof(evt_hdr); | |
iv[3].iov_base = data; | |
iv[3].iov_len = data_len; | |
if (writev(fd, iv, sizeof(iv) / sizeof(struct iovec)) < 0) | |
exit(1); | |
} | |
static bool process_command_pkt(int fd, char* buf, ssize_t buf_size) | |
{ | |
struct hci_command_hdr* hdr = (struct hci_command_hdr*)buf; | |
if (buf_size < (ssize_t)sizeof(struct hci_command_hdr) || | |
hdr->plen != buf_size - sizeof(struct hci_command_hdr)) | |
exit(1); | |
switch (hdr->opcode) { | |
case HCI_OP_WRITE_SCAN_ENABLE: { | |
uint8_t status = 0; | |
hci_send_event_cmd_complete(fd, hdr->opcode, &status, sizeof(status)); | |
return true; | |
} | |
case HCI_OP_READ_BD_ADDR: { | |
struct hci_rp_read_bd_addr rp = {0}; | |
rp.status = 0; | |
memset(&rp.bdaddr, 0xaa, 6); | |
hci_send_event_cmd_complete(fd, hdr->opcode, &rp, sizeof(rp)); | |
return false; | |
} | |
case HCI_OP_READ_BUFFER_SIZE: { | |
struct hci_rp_read_buffer_size rp = {0}; | |
rp.status = 0; | |
rp.acl_mtu = 1021; | |
rp.sco_mtu = 96; | |
rp.acl_max_pkt = 4; | |
rp.sco_max_pkt = 6; | |
hci_send_event_cmd_complete(fd, hdr->opcode, &rp, sizeof(rp)); | |
return false; | |
} | |
} | |
char dummy[0xf9] = {0}; | |
hci_send_event_cmd_complete(fd, hdr->opcode, dummy, sizeof(dummy)); | |
return false; | |
} | |
static void* event_thread(void* arg) | |
{ | |
while (1) { | |
char buf[1024] = {0}; | |
ssize_t buf_size = read(vhci_fd, buf, sizeof(buf)); | |
if (buf_size < 0) | |
exit(1); | |
if (buf_size > 0 && buf[0] == HCI_COMMAND_PKT) { | |
if (process_command_pkt(vhci_fd, buf + 1, buf_size - 1)) | |
break; | |
} | |
} | |
return NULL; | |
} | |
#define HCI_HANDLE_1 200 | |
#define HCI_HANDLE_2 201 | |
static void initialize_vhci() | |
{ | |
int hci_sock = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI); | |
if (hci_sock < 0) | |
exit(1); | |
vhci_fd = open("/dev/vhci", O_RDWR); | |
if (vhci_fd == -1) | |
exit(1); | |
const int kVhciFd = 202; | |
if (dup2(vhci_fd, kVhciFd) < 0) | |
exit(1); | |
close(vhci_fd); | |
vhci_fd = kVhciFd; | |
struct vhci_vendor_pkt vendor_pkt; | |
if (read(vhci_fd, &vendor_pkt, sizeof(vendor_pkt)) != sizeof(vendor_pkt)) | |
exit(1); | |
if (vendor_pkt.type != HCI_VENDOR_PKT) | |
exit(1); | |
pthread_t th; | |
if (pthread_create(&th, NULL, event_thread, NULL)) | |
exit(1); | |
int ret = ioctl(hci_sock, HCIDEVUP, vendor_pkt.id); | |
if (ret) { | |
if (errno == ERFKILL) { | |
rfkill_unblock_all(); | |
ret = ioctl(hci_sock, HCIDEVUP, vendor_pkt.id); | |
} | |
if (ret && errno != EALREADY) | |
exit(1); | |
} | |
struct hci_dev_req dr = {0}; | |
dr.dev_id = vendor_pkt.id; | |
dr.dev_opt = SCAN_PAGE; | |
if (ioctl(hci_sock, HCISETSCAN, &dr)) | |
exit(1); | |
struct hci_ev_conn_request request; | |
memset(&request, 0, sizeof(request)); | |
memset(&request.bdaddr, 0xaa, 6); | |
*(uint8_t*)&request.bdaddr.b[5] = 0x10; | |
request.link_type = ACL_LINK; | |
hci_send_event_packet(vhci_fd, HCI_EV_CONN_REQUEST, &request, | |
sizeof(request)); | |
struct hci_ev_conn_complete complete; | |
memset(&complete, 0, sizeof(complete)); | |
complete.status = 0; | |
complete.handle = HCI_HANDLE_1; | |
memset(&complete.bdaddr, 0xaa, 6); | |
*(uint8_t*)&complete.bdaddr.b[5] = 0x10; | |
complete.link_type = ACL_LINK; | |
complete.encr_mode = 0; | |
hci_send_event_packet(vhci_fd, HCI_EV_CONN_COMPLETE, &complete, | |
sizeof(complete)); | |
struct hci_ev_remote_features features; | |
memset(&features, 0, sizeof(features)); | |
features.status = 0; | |
features.handle = HCI_HANDLE_1; | |
hci_send_event_packet(vhci_fd, HCI_EV_REMOTE_FEATURES, &features, | |
sizeof(features)); | |
struct { | |
struct hci_ev_le_meta le_meta; | |
struct hci_ev_le_conn_complete le_conn; | |
} le_conn; | |
memset(&le_conn, 0, sizeof(le_conn)); | |
le_conn.le_meta.subevent = HCI_EV_LE_CONN_COMPLETE; | |
memset(&le_conn.le_conn.bdaddr, 0xaa, 6); | |
*(uint8_t*)&le_conn.le_conn.bdaddr.b[5] = 0x11; | |
le_conn.le_conn.role = 1; | |
le_conn.le_conn.handle = HCI_HANDLE_2; | |
hci_send_event_packet(vhci_fd, HCI_EV_LE_META, &le_conn, sizeof(le_conn)); | |
pthread_join(th, NULL); | |
close(hci_sock); | |
} | |
static long syz_emit_vhci(volatile long a0, volatile long a1) | |
{ | |
if (vhci_fd < 0) | |
return (uintptr_t)-1; | |
char* data = (char*)a0; | |
uint32_t length = a1; | |
return write(vhci_fd, data, length); | |
} | |
static void setup_common() | |
{ | |
if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { | |
} | |
} | |
static void setup_binderfs() | |
{ | |
if (mkdir("/dev/binderfs", 0777)) { | |
} | |
if (mount("binder", "/dev/binderfs", "binder", 0, NULL)) { | |
} | |
if (symlink("/dev/binderfs", "./binderfs")) { | |
} | |
} | |
static void loop(); | |
static void sandbox_common() | |
{ | |
prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); | |
setsid(); | |
struct rlimit rlim; | |
rlim.rlim_cur = rlim.rlim_max = (200 << 20); | |
setrlimit(RLIMIT_AS, &rlim); | |
rlim.rlim_cur = rlim.rlim_max = 32 << 20; | |
setrlimit(RLIMIT_MEMLOCK, &rlim); | |
rlim.rlim_cur = rlim.rlim_max = 136 << 20; | |
setrlimit(RLIMIT_FSIZE, &rlim); | |
rlim.rlim_cur = rlim.rlim_max = 1 << 20; | |
setrlimit(RLIMIT_STACK, &rlim); | |
rlim.rlim_cur = rlim.rlim_max = 0; | |
setrlimit(RLIMIT_CORE, &rlim); | |
rlim.rlim_cur = rlim.rlim_max = 256; | |
setrlimit(RLIMIT_NOFILE, &rlim); | |
if (unshare(CLONE_NEWNS)) { | |
} | |
if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { | |
} | |
if (unshare(CLONE_NEWIPC)) { | |
} | |
if (unshare(0x02000000)) { | |
} | |
if (unshare(CLONE_NEWUTS)) { | |
} | |
if (unshare(CLONE_SYSVSEM)) { | |
} | |
typedef struct { | |
const char* name; | |
const char* value; | |
} sysctl_t; | |
static const sysctl_t sysctls[] = { | |
{"/proc/sys/kernel/shmmax", "16777216"}, | |
{"/proc/sys/kernel/shmall", "536870912"}, | |
{"/proc/sys/kernel/shmmni", "1024"}, | |
{"/proc/sys/kernel/msgmax", "8192"}, | |
{"/proc/sys/kernel/msgmni", "1024"}, | |
{"/proc/sys/kernel/msgmnb", "1024"}, | |
{"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, | |
}; | |
unsigned i; | |
for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) | |
write_file(sysctls[i].name, sysctls[i].value); | |
} | |
static int wait_for_loop(int pid) | |
{ | |
if (pid < 0) | |
exit(1); | |
int status = 0; | |
while (waitpid(-1, &status, __WALL) != pid) { | |
} | |
return WEXITSTATUS(status); | |
} | |
static void drop_caps(void) | |
{ | |
struct __user_cap_header_struct cap_hdr = {}; | |
struct __user_cap_data_struct cap_data[2] = {}; | |
cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; | |
cap_hdr.pid = getpid(); | |
if (syscall(SYS_capget, &cap_hdr, &cap_data)) | |
exit(1); | |
const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); | |
cap_data[0].effective &= ~drop; | |
cap_data[0].permitted &= ~drop; | |
cap_data[0].inheritable &= ~drop; | |
if (syscall(SYS_capset, &cap_hdr, &cap_data)) | |
exit(1); | |
} | |
static int do_sandbox_none(void) | |
{ | |
if (unshare(CLONE_NEWPID)) { | |
} | |
int pid = fork(); | |
if (pid != 0) | |
return wait_for_loop(pid); | |
setup_common(); | |
initialize_vhci(); | |
sandbox_common(); | |
drop_caps(); | |
if (unshare(CLONE_NEWNET)) { | |
} | |
write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); | |
setup_binderfs(); | |
loop(); | |
exit(1); | |
} | |
void loop(void) | |
{ | |
memcpy((void*)0x20000000, | |
"\x02\xc8\x00\x09\x04\x08\x00\x01\x00\x02\x01\x04\x00\x01\x10\xff\xff", | |
17); | |
syz_emit_vhci(0x20000000, 0x11); | |
memcpy((void*)0x20000040, | |
"\x02\xc8\x00\x0d\x08\x0c\x00\x01\x00\x04\x01\x08\x00\x40\x00\x00\x00" | |
"\x01\x02\x00\x00", | |
21); | |
syz_emit_vhci(0x20000040, 0x15); | |
memcpy((void*)0x20000080, | |
"\x02\xc8\x00\x0d\x08\x0c\x00\x01\x00\x03\x01\x08\x00\x00\x00\x00\x00" | |
"\x00\x00\x00\x00", | |
21); | |
syz_emit_vhci(0x20000080, 0x15); | |
memcpy((void*)0x200000c0, | |
"\x02\xc8\x00\x0d\x08\x0c\x00\x01\x00\x04\x01\x08\x00\x40\x00\x00\x00" | |
"\x05\x00\x00\x00", | |
21); | |
syz_emit_vhci(0x200000c0, 0x15); | |
memcpy((void*)0x20000100, | |
"\x02\xc8\x00\x0c\x07\x0b\x00\x01\x00\x04\x01\x07\x00\x40\x00\x00\x00" | |
"\x05\x00\x00", | |
20); | |
syz_emit_vhci(0x20000100, 0x14); | |
memcpy((void*)0x20000140, | |
"\x02\xc8\x00\x0b\x06\x0a\x00\x01\x00\x05\x01\x06\x00\x40\x00\xff\xff" | |
"\x01\x00", | |
19); | |
syz_emit_vhci(0x20000140, 0x13); | |
} | |
int main(void) | |
{ | |
syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); | |
syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); | |
syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); | |
do_sandbox_none(); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./btmon -r log | |
Bluetooth monitor ver 5.64 | |
= Note: Linux version 6.1.0-rc2 (x86_64) 0.560927 | |
= Note: Bluetooth subsystem version 2.22 0.560952 | |
@ MGMT Open: bluetoothd (privileged) version 1.22 {0x0001} 0.563179 | |
@ MGMT Open: btmon (privileged) version 1.22 {0x0002} 0.569368 | |
= New Index: 00:00:00:00:00:00 (Primary,Virtual,hci0) [hci0] 16.612635 | |
@ RAW Open: 14474 (privileged) version 2.22 {0x0003} 16.629658 | |
= Open Index: 00:00:00:00:00:00 [hci0] 16.647733 | |
< HCI Command: Reset (0x03|0x0003) plen 0 #1 [hci0] 16.666309 | |
> HCI Event: Command Complete (0x0e) plen 252 #2 [hci0] 16.670806 | |
Reset (0x03|0x0003) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0 #3 [hci0] 16.686422 | |
> HCI Event: Command Complete (0x0e) plen 252 #4 [hci0] 16.691040 | |
Read Local Supported Features (0x04|0x0003) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0 #5 [hci0] 16.702416 | |
> HCI Event: Command Complete (0x0e) plen 252 #6 [hci0] 16.707166 | |
Read Local Version Information (0x04|0x0001) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 #7 [hci0] 16.719109 | |
> HCI Event: Command Complete (0x0e) plen 10 #8 [hci0] 16.723216 | |
Read BD ADDR (0x04|0x0009) ncmd 1 | |
Status: Success (0x00) | |
Address: AA:AA:AA:AA:AA:AA (OUI AA-AA-AA) | |
< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 #9 [hci0] 16.740899 | |
> HCI Event: Command Complete (0x0e) plen 11 #10 [hci0] 16.745041 | |
Read Buffer Size (0x04|0x0005) ncmd 1 | |
Status: Success (0x00) | |
ACL MTU: 1021 ACL max packet: 4 | |
SCO MTU: 96 SCO max packet: 6 | |
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 #11 [hci0] 16.755972 | |
> HCI Event: Command Complete (0x0e) plen 252 #12 [hci0] 16.760104 | |
Read Class of Device (0x03|0x0023) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Name (0x03|0x0014) plen 0 #13 [hci0] 16.773024 | |
> HCI Event: Command Complete (0x0e) plen 252 #14 [hci0] 16.777771 | |
Read Local Name (0x03|0x0014) ncmd 1 | |
Status: Success (0x00) | |
Name: | |
< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 #15 [hci0] 16.790193 | |
> HCI Event: Command Complete (0x0e) plen 252 #16 [hci0] 16.795806 | |
Read Voice Setting (0x03|0x0025) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Number of Supported IAC (0x03|0x0038) plen 0 #17 [hci0] 16.807887 | |
> HCI Event: Command Complete (0x0e) plen 252 #18 [hci0] 16.813989 | |
Read Number of Supported IAC (0x03|0x0038) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0 #19 [hci0] 16.824974 | |
> HCI Event: Command Complete (0x0e) plen 252 #20 [hci0] 16.829941 | |
Read Current IAC LAP (0x03|0x0039) ncmd 1 | |
Status: Success (0x00) | |
Number of IAC: 0 | |
< HCI Command: Write Connection Accept Timeout (0x03|0x0016) plen 2 #21 [hci0] 16.841644 | |
Timeout: 20000.000 msec (0x7d00) | |
> HCI Event: Command Complete (0x0e) plen 252 #22 [hci0] 16.847945 | |
Write Connection Accept Timeout (0x03|0x0016) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
= Index Info: AA:AA:AA:AA:AA:AA (Ericsson Technology Licensing) [hci0] 16.869337 | |
@ MGMT Event: Index Added (0x0004) plen 0 {0x0002} [hci0] 16.874079 | |
@ MGMT Event: Index Added (0x0004) plen 0 {0x0001} [hci0] 16.874079 | |
@ MGMT Command: Read Controller Information (0x0004) plen 0 {0x0001} [hci0] 16.889824 | |
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1 #23 [hci0] 16.900135 | |
Scan enable: Page Scan (0x02) | |
> HCI Event: Command Complete (0x0e) plen 4 #24 [hci0] 16.904387 | |
Write Scan Enable (0x03|0x001a) ncmd 1 | |
Status: Success (0x00) | |
@ MGMT Event: New Settings (0x0006) plen 4 {0x0002} [hci0] 16.911763 | |
Current settings: 0x00000083 | |
Powered | |
Connectable | |
BR/EDR | |
@ MGMT Event: New Settings (0x0006) plen 4 {0x0001} [hci0] 16.911763 | |
Current settings: 0x00000083 | |
Powered | |
Connectable | |
BR/EDR | |
> HCI Event: Connect Request (0x04) plen 10 #25 [hci0] 16.930179 | |
Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Class: 0x000000 | |
Major class: Miscellaneous | |
Minor class: 0x00 | |
Link type: ACL (0x01) | |
@ MGMT Event: Command Complete (0x0001) plen 283 {0x0001} [hci0] 16.934643 | |
Read Controller Information (0x0004) plen 280 | |
Status: Success (0x00) | |
Address: AA:AA:AA:AA:AA:AA (OUI AA-AA-AA) | |
Version: Bluetooth 1.0b (0x00) | |
Manufacturer: Ericsson Technology Licensing (0) | |
Supported settings: 0x000110bb | |
Powered | |
Connectable | |
Discoverable | |
Bondable | |
Link Security | |
BR/EDR | |
Debug Keys | |
PHY Configuration | |
Current settings: 0x00000083 | |
Powered | |
Connectable | |
BR/EDR | |
Class: 0x000000 | |
Major class: Miscellaneous | |
Minor class: 0x00 | |
Name: | |
Short name: | |
> HCI Event: Connect Complete (0x03) plen 11 #26 [hci0] 16.930975 | |
Status: Success (0x00) | |
Handle: 200 | |
Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Link type: ACL (0x01) | |
Encryption: Disabled (0x00) | |
@ RAW Close: 14474 {0x0003} 16.948312 | |
> HCI Event: Read Remote Supported Features (0x0b) plen 11 #27 [hci0] 16.931500 | |
Status: Success (0x00) | |
Handle: 200 | |
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | |
> HCI Event: LE Meta Event (0x3e) plen 19 #28 [hci0] 16.932307 | |
LE Connection Complete (0x01) | |
Status: Success (0x00) | |
Handle: 201 | |
Role: Peripheral (0x01) | |
Peer address type: Public (0x00) | |
Peer address: 11:AA:AA:AA:AA:AA (OUI 11-AA-AA) | |
Connection interval: 0.00 msec (0x0000) | |
Connection latency: 0 (0x0000) | |
Supervision timeout: 0 msec (0x0000) | |
Central clock accuracy: 0x00 | |
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0002} [hci0] 16.984331 | |
LE Address: 11:AA:AA:AA:AA:AA (OUI 11-AA-AA) | |
Flags: 0x00000000 | |
Data length: 0 | |
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0001} [hci0] 16.984331 | |
LE Address: 11:AA:AA:AA:AA:AA (OUI 11-AA-AA) | |
Flags: 0x00000000 | |
Data length: 0 | |
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7 #29 [hci0] 17.009005 | |
Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Role: Peripheral (0x01) | |
< ACL Data TX: Handle 200 flags 0x02 dlen 10 #30 [hci0] 17.022544 | |
= Note: Linux version 6.1.0-rc2 (x86_64) 0.560927 | |
= Note: Bluetooth subsystem version 2.22 0.560952 | |
@ MGMT Open: bluetoothd (privileged) version 1.22 {0x0001} 0.563179 | |
@ MGMT Open: btmon (privileged) version 1.22 {0x0002} 0.569368 | |
= New Index: 00:00:00:00:00:00 (Primary,Virtual,hci0) [hci0] 16.612635 | |
@ RAW Open: 14474 (privileged) version 2.22 {0x0003} 16.629658 | |
= Open Index: 00:00:00:00:00:00 [hci0] 16.647733 | |
< HCI Command: Reset (0x03|0x0003) plen 0 #1 [hci0] 16.666309 | |
> HCI Event: Command Complete (0x0e) plen 252 #2 [hci0] 16.670806 | |
Reset (0x03|0x0003) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0 #3 [hci0] 16.686422 | |
> HCI Event: Command Complete (0x0e) plen 252 #4 [hci0] 16.691040 | |
Read Local Supported Features (0x04|0x0003) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0 #5 [hci0] 16.702416 | |
> HCI Event: Command Complete (0x0e) plen 252 #6 [hci0] 16.707166 | |
Read Local Version Information (0x04|0x0001) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
= Note: Linux version 6.1.0-rc2 (x86_64) 0.560927 | |
= Note: Bluetooth subsystem version 2.22 0.560952 | |
@ MGMT Open: bluetoothd (privileged) version 1.22 {0x0001} 0.563179 | |
@ MGMT Open: btmon (privileged) version 1.22 {0x0002} 0.569368 | |
= New Index: 00:00:00:00:00:00 (Primary,Virtual,hci0) [hci0] 16.612635 | |
@ RAW Open: 14474 (privileged) version 2.22 {0x0003} 16.629658 | |
= Open Index: 00:00:00:00:00:00 [hci0] 16.647733 | |
< HCI Command: Reset (0x03|0x0003) plen 0 #1 [hci0] 16.666309 | |
> HCI Event: Command Complete (0x0e) plen 252 #2 [hci0] 16.670806 | |
Reset (0x03|0x0003) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0 #3 [hci0] 16.686422 | |
> HCI Event: Command Complete (0x0e) plen 252 #4 [hci0] 16.691040 | |
Read Local Supported Features (0x04|0x0003) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0 #5 [hci0] 16.702416 | |
> HCI Event: Command Complete (0x0e) plen 252 #6 [hci0] 16.707166 | |
Read Local Version Information (0x04|0x0001) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 #7 [hci0] 16.719109 | |
> HCI Event: Command Complete (0x0e) plen 10 #8 [hci0] 16.723216 | |
Read BD ADDR (0x04|0x0009) ncmd 1 | |
Status: Success (0x00) | |
Address: AA:AA:AA:AA:AA:AA (OUI AA-AA-AA) | |
< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 #9 [hci0] 16.740899 | |
> HCI Event: Command Complete (0x0e) plen 11 #10 [hci0] 16.745041 | |
Read Buffer Size (0x04|0x0005) ncmd 1 | |
Status: Success (0x00) | |
ACL MTU: 1021 ACL max packet: 4 | |
SCO MTU: 96 SCO max packet: 6 | |
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 #11 [hci0] 16.755972 | |
> HCI Event: Command Complete (0x0e) plen 252 #12 [hci0] 16.760104 | |
Read Class of Device (0x03|0x0023) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Name (0x03|0x0014) plen 0 #13 [hci0] 16.773024 | |
> HCI Event: Command Complete (0x0e) plen 252 #14 [hci0] 16.777771 | |
Read Local Name (0x03|0x0014) ncmd 1 | |
Status: Success (0x00) | |
Name: | |
< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 #15 [hci0] 16.790193 | |
> HCI Event: Command Complete (0x0e) plen 252 #16 [hci0] 16.795806 | |
Read Voice Setting (0x03|0x0025) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Number of Supported IAC (0x03|0x0038) plen 0 #17 [hci0] 16.807887 | |
> HCI Event: Command Complete (0x0e) plen 252 #18 [hci0] 16.813989 | |
Read Number of Supported IAC (0x03|0x0038) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0 #19 [hci0] 16.824974 | |
> HCI Event: Command Complete (0x0e) plen 252 #20 [hci0] 16.829941 | |
Read Current IAC LAP (0x03|0x0039) ncmd 1 | |
Status: Success (0x00) | |
Number of IAC: 0 | |
< HCI Command: Write Connection Accept Timeout (0x03|0x0016) plen 2 #21 [hci0] 16.841644 | |
Timeout: 20000.000 msec (0x7d00) | |
> HCI Event: Command Complete (0x0e) plen 252 #22 [hci0] 16.847945 | |
Write Connection Accept Timeout (0x03|0x0016) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
= Index Info: AA:AA:AA:AA:AA:AA (Ericsson Technology Licensing) [hci0] 16.869337 | |
@ MGMT Event: Index Added (0x0004) plen 0 {0x0002} [hci0] 16.874079 | |
@ MGMT Event: Index Added (0x0004) plen 0 {0x0001} [hci0] 16.874079 | |
@ MGMT Command: Read Controller Information (0x0004) plen 0 {0x0001} [hci0] 16.889824 | |
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1 #23 [hci0] 16.900135 | |
Scan enable: Page Scan (0x02) | |
> HCI Event: Command Complete (0x0e) plen 4 #24 [hci0] 16.904387 | |
Write Scan Enable (0x03|0x001a) ncmd 1 | |
Status: Success (0x00) | |
@ MGMT Event: New Settings (0x0006) plen 4 {0x0002} [hci0] 16.911763 | |
Current settings: 0x00000083 | |
Powered | |
Connectable | |
BR/EDR | |
@ MGMT Event: New Settings (0x0006) plen 4 {0x0001} [hci0] 16.911763 | |
Current settings: 0x00000083 | |
Powered | |
Connectable | |
BR/EDR | |
> HCI Event: Connect Request (0x04) plen 10 #25 [hci0] 16.930179 | |
Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Class: 0x000000 | |
Major class: Miscellaneous | |
Minor class: 0x00 | |
Link type: ACL (0x01) | |
@ MGMT Event: Command Complete (0x0001) plen 283 {0x0001} [hci0] 16.934643 | |
Read Controller Information (0x0004) plen 280 | |
Status: Success (0x00) | |
Address: AA:AA:AA:AA:AA:AA (OUI AA-AA-AA) | |
Version: Bluetooth 1.0b (0x00) | |
Manufacturer: Ericsson Technology Licensing (0) | |
Supported settings: 0x000110bb | |
Powered | |
Connectable | |
Discoverable | |
Bondable | |
Link Security | |
BR/EDR | |
Debug Keys | |
PHY Configuration | |
Current settings: 0x00000083 | |
Powered | |
Connectable | |
BR/EDR | |
Class: 0x000000 | |
Major class: Miscellaneous | |
Minor class: 0x00 | |
Name: | |
Short name: | |
> HCI Event: Connect Complete (0x03) plen 11 #26 [hci0] 16.930975 | |
Status: Success (0x00) | |
Handle: 200 | |
Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Link type: ACL (0x01) | |
Encryption: Disabled (0x00) | |
@ RAW Close: 14474 {0x0003} 16.948312 | |
> HCI Event: Read Remote Supported Features (0x0b) plen 11 #27 [hci0] 16.931500 | |
Status: Success (0x00) | |
Handle: 200 | |
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | |
> HCI Event: LE Meta Event (0x3e) plen 19 #28 [hci0] 16.932307 | |
LE Connection Complete (0x01) | |
Status: Success (0x00) | |
Handle: 201 | |
Role: Peripheral (0x01) | |
Peer address type: Public (0x00) | |
Peer address: 11:AA:AA:AA:AA:AA (OUI 11-AA-AA) | |
Connection interval: 0.00 msec (0x0000) | |
Connection latency: 0 (0x0000) | |
Supervision timeout: 0 msec (0x0000) | |
Central clock accuracy: 0x00 | |
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0002} [hci0] 16.984331 | |
LE Address: 11:AA:AA:AA:AA:AA (OUI 11-AA-AA) | |
Flags: 0x00000000 | |
Data length: 0 | |
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0001} [hci0] 16.984331 | |
LE Address: 11:AA:AA:AA:AA:AA (OUI 11-AA-AA) | |
Flags: 0x00000000 | |
Data length: 0 | |
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7 #29 [hci0] 17.009005 | |
Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Role: Peripheral (0x01) | |
< ACL Data TX: Handle 200 flags 0x02 dlen 10 #30 [hci0] 17.022544 | |
= Note: Linux version 6.1.0-rc2 (x86_64) 0.560927 | |
= Note: Bluetooth subsystem version 2.22 0.560952 | |
@ MGMT Open: bluetoothd (privileged) version 1.22 {0x0001} 0.563179 | |
@ MGMT Open: btmon (privileged) version 1.22 {0x0002} 0.569368 | |
= New Index: 00:00:00:00:00:00 (Primary,Virtual,hci0) [hci0] 16.612635 | |
@ RAW Open: 14474 (privileged) version 2.22 {0x0003} 16.629658 | |
= Open Index: 00:00:00:00:00:00 [hci0] 16.647733 | |
< HCI Command: Reset (0x03|0x0003) plen 0 #1 [hci0] 16.666309 | |
> HCI Event: Command Complete (0x0e) plen 252 #2 [hci0] 16.670806 | |
Reset (0x03|0x0003) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0 #3 [hci0] 16.686422 | |
> HCI Event: Command Complete (0x0e) plen 252 #4 [hci0] 16.691040 | |
Read Local Supported Features (0x04|0x0003) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0 #5 [hci0] 16.702416 | |
> HCI Event: Command Complete (0x0e) plen 252 #6 [hci0] 16.707166 | |
Read Local Version Information (0x04|0x0001) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 #7 [hci0] 16.719109 | |
> HCI Event: Command Complete (0x0e) plen 10 #8 [hci0] 16.723216 | |
Read BD ADDR (0x04|0x0009) ncmd 1 | |
Status: Success (0x00) | |
Address: AA:AA:AA:AA:AA:AA (OUI AA-AA-AA) | |
< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 #9 [hci0] 16.740899 | |
> HCI Event: Command Complete (0x0e) plen 11 #10 [hci0] 16.745041 | |
Read Buffer Size (0x04|0x0005) ncmd 1 | |
Status: Success (0x00) | |
ACL MTU: 1021 ACL max packet: 4 | |
SCO MTU: 96 SCO max packet: 6 | |
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 #11 [hci0] 16.755972 | |
> HCI Event: Command Complete (0x0e) plen 252 #12 [hci0] 16.760104 | |
Read Class of Device (0x03|0x0023) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Local Name (0x03|0x0014) plen 0 #13 [hci0] 16.773024 | |
> HCI Event: Command Complete (0x0e) plen 252 #14 [hci0] 16.777771 | |
Read Local Name (0x03|0x0014) ncmd 1 | |
Status: Success (0x00) | |
Name: | |
< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 #15 [hci0] 16.790193 | |
> HCI Event: Command Complete (0x0e) plen 252 #16 [hci0] 16.795806 | |
Read Voice Setting (0x03|0x0025) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Number of Supported IAC (0x03|0x0038) plen 0 #17 [hci0] 16.807887 | |
> HCI Event: Command Complete (0x0e) plen 252 #18 [hci0] 16.813989 | |
Read Number of Supported IAC (0x03|0x0038) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0 #19 [hci0] 16.824974 | |
> HCI Event: Command Complete (0x0e) plen 252 #20 [hci0] 16.829941 | |
Read Current IAC LAP (0x03|0x0039) ncmd 1 | |
Status: Success (0x00) | |
Number of IAC: 0 | |
< HCI Command: Write Connection Accept Timeout (0x03|0x0016) plen 2 #21 [hci0] 16.841644 | |
Timeout: 20000.000 msec (0x7d00) | |
> HCI Event: Command Complete (0x0e) plen 252 #22 [hci0] 16.847945 | |
Write Connection Accept Timeout (0x03|0x0016) ncmd 1 | |
invalid packet size | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
00 00 00 00 00 00 00 00 00 ......... | |
= Index Info: AA:AA:AA:AA:AA:AA (Ericsson Technology Licensing) [hci0] 16.869337 | |
@ MGMT Event: Index Added (0x0004) plen 0 {0x0002} [hci0] 16.874079 | |
@ MGMT Event: Index Added (0x0004) plen 0 {0x0001} [hci0] 16.874079 | |
@ MGMT Command: Read Controller Information (0x0004) plen 0 {0x0001} [hci0] 16.889824 | |
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1 #23 [hci0] 16.900135 | |
Scan enable: Page Scan (0x02) | |
> HCI Event: Command Complete (0x0e) plen 4 #24 [hci0] 16.904387 | |
Write Scan Enable (0x03|0x001a) ncmd 1 | |
Status: Success (0x00) | |
@ MGMT Event: New Settings (0x0006) plen 4 {0x0002} [hci0] 16.911763 | |
Current settings: 0x00000083 | |
Powered | |
Connectable | |
BR/EDR | |
@ MGMT Event: New Settings (0x0006) plen 4 {0x0001} [hci0] 16.911763 | |
Current settings: 0x00000083 | |
Powered | |
Connectable | |
BR/EDR | |
> HCI Event: Connect Request (0x04) plen 10 #25 [hci0] 16.930179 | |
Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Class: 0x000000 | |
Major class: Miscellaneous | |
Minor class: 0x00 | |
Link type: ACL (0x01) | |
@ MGMT Event: Command Complete (0x0001) plen 283 {0x0001} [hci0] 16.934643 | |
Read Controller Information (0x0004) plen 280 | |
Status: Success (0x00) | |
Address: AA:AA:AA:AA:AA:AA (OUI AA-AA-AA) | |
Version: Bluetooth 1.0b (0x00) | |
Manufacturer: Ericsson Technology Licensing (0) | |
Supported settings: 0x000110bb | |
Powered | |
Connectable | |
Discoverable | |
Bondable | |
Link Security | |
BR/EDR | |
Debug Keys | |
PHY Configuration | |
Current settings: 0x00000083 | |
Powered | |
Connectable | |
BR/EDR | |
Class: 0x000000 | |
Major class: Miscellaneous | |
Minor class: 0x00 | |
Name: | |
Short name: | |
> HCI Event: Connect Complete (0x03) plen 11 #26 [hci0] 16.930975 | |
Status: Success (0x00) | |
Handle: 200 | |
Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Link type: ACL (0x01) | |
Encryption: Disabled (0x00) | |
@ RAW Close: 14474 {0x0003} 16.948312 | |
> HCI Event: Read Remote Supported Features (0x0b) plen 11 #27 [hci0] 16.931500 | |
Status: Success (0x00) | |
Handle: 200 | |
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | |
> HCI Event: LE Meta Event (0x3e) plen 19 #28 [hci0] 16.932307 | |
LE Connection Complete (0x01) | |
Status: Success (0x00) | |
Handle: 201 | |
Role: Peripheral (0x01) | |
Peer address type: Public (0x00) | |
Peer address: 11:AA:AA:AA:AA:AA (OUI 11-AA-AA) | |
Connection interval: 0.00 msec (0x0000) | |
Connection latency: 0 (0x0000) | |
Supervision timeout: 0 msec (0x0000) | |
Central clock accuracy: 0x00 | |
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0002} [hci0] 16.984331 | |
LE Address: 11:AA:AA:AA:AA:AA (OUI 11-AA-AA) | |
Flags: 0x00000000 | |
Data length: 0 | |
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0001} [hci0] 16.984331 | |
LE Address: 11:AA:AA:AA:AA:AA (OUI 11-AA-AA) | |
Flags: 0x00000000 | |
Data length: 0 | |
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7 #29 [hci0] 17.009005 | |
Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Role: Peripheral (0x01) | |
< ACL Data TX: Handle 200 flags 0x02 dlen 10 #30 [hci0] 17.022544 | |
L2CAP: Information Request (0x0a) ident 1 len 2 | |
Type: Extended features supported (0x0002) | |
< ACL Data TX: Handle 201 flags 0x00 dlen 16 #31 [hci0] 17.031584 | |
LE L2CAP: Connection Parameter Update Request (0x12) ident 1 len 8 | |
Min interval: 24 | |
Max interval: 40 | |
Peripheral latency: 0 | |
Timeout multiplier: 0 | |
= bluetoothd: Failed to obtain handles for "Service Changed" characteristic 17.084068 | |
> ACL Data RX: Handle 200 flags 0x00 dlen 1033 #32 [hci0] 17.083174 | |
invalid packet size (12 != 1033) | |
08 00 01 00 02 01 04 00 01 10 ff ff ............ | |
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0002} [hci0] 17.104462 | |
BR/EDR Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Flags: 0x00000000 | |
Data length: 0 | |
@ MGMT Event: Device Connected (0x000b) plen 13 {0x0001} [hci0] 17.104462 | |
BR/EDR Address: 10:AA:AA:AA:AA:AA (OUI 10-AA-AA) | |
Flags: 0x00000000 | |
Data length: 0 | |
< ACL Data TX: Handle 200 flags 0x02 dlen 16 #33 [hci0] 17.149691 | |
L2CAP: Connection Response (0x03) ident 1 len 8 | |
Destination CID: 64 | |
Source CID: 65535 | |
Result: Connection pending (0x0001) | |
Status: No further information available (0x0000) | |
< ACL Data TX: Handle 200 flags 0x02 dlen 10 #34 [hci0] 17.154828 | |
L2CAP: Information Request (0x0a) ident 2 len 2 | |
Type: Extended features supported (0x0002) | |
> ACL Data RX: Handle 200 flags 0x00 dlen 2061 #35 [hci0] 17.145762 | |
invalid packet size (16 != 2061) | |
0c 00 01 00 04 01 08 00 40 00 00 00 01 02 00 00 ........@....... | |
> ACL Data RX: Handle 200 flags 0x00 dlen 2061 #36 [hci0] 17.146654 | |
invalid packet size (16 != 2061) | |
0c 00 01 00 03 01 08 00 00 00 00 00 00 00 00 00 ................ | |
> ACL Data RX: Handle 200 flags 0x00 dlen 2061 #37 [hci0] 17.147190 | |
invalid packet size (16 != 2061) | |
0c 00 01 00 04 01 08 00 40 00 00 00 05 00 00 00 ........@....... | |
> ACL Data RX: Handle 200 flags 0x00 dlen 1804 #38 [hci0] 17.148090 | |
invalid packet size (15 != 1804) | |
0b 00 01 00 04 01 07 00 40 00 00 00 05 00 00 ........@...... | |
> ACL Data RX: Handle 200 flags 0x00 dlen 1547 #39 [hci0] 17.148708 | |
invalid packet size (14 != 1547) | |
0a 00 01 00 05 01 06 00 40 00 ff ff 01 00 ........@..... | |
= bluetoothd: Sap driver initialization failed. 17.339632 | |
@ MGMT Event: New Settings (0x0006) plen 4 {0x0002} [hci0] 17.330888 | |
Current settings: 0x00000082 | |
Connectable | |
BR/EDR | |
@ MGMT Event: New Settings (0x0006) plen 4 {0x0001} [hci0] 17.330888 | |
Current settings: 0x00000082 | |
Connectable | |
BR/EDR | |
@ MGMT Command: Remove UUID (0x0011) plen 16 {0x0001} [hci0] 17.384265 | |
UUID: Vendor specific | |
@ MGMT Event: Command Status (0x0002) plen 3 {0x0001} [hci0] 17.401374 | |
Remove UUID (0x0011) | |
Status: Invalid Index (0x11) | |
= Close Index: AA:AA:AA:AA:AA:AA [hci0] 17.416675 | |
@ MGMT Event: Index Removed (0x0005) plen 0 {0x0002} [hci0] 17.423047 | |
@ MGMT Event: Index Removed (0x0005) plen 0 {0x0001} [hci0] 17.423047 | |
= Delete Index: AA:AA:AA:AA:AA:AA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <signal.h> | |
#include <sys/socket.h> | |
#include <bluetooth/bluetooth.h> | |
#include <bluetooth/l2cap.h> | |
int ba2str(const bdaddr_t *ba, char *str) | |
{ | |
return sprintf(str, "%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X", | |
ba->b[5], ba->b[4], ba->b[3], ba->b[2], ba->b[1], ba->b[0]); | |
} | |
int main(int argc, char **argv) | |
{ | |
struct sockaddr_l2 loc_addr = { 0 }, rem_addr = { 0 }; | |
char buf[1024] = { 0 }; | |
int s, client, bytes_read; | |
socklen_t opt = sizeof(rem_addr); | |
sigset_t mask; | |
sigfillset(&mask); | |
sigprocmask(SIG_SETMASK, &mask, NULL); | |
// allocate socket | |
s = socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); | |
// bind socket to port 0x1001 of the first available | |
// bluetooth adapter | |
loc_addr.l2_family = AF_BLUETOOTH; | |
loc_addr.l2_bdaddr = *BDADDR_ANY; | |
loc_addr.l2_psm = htobs(0x1001); // = 4097 | |
bind(s, (struct sockaddr *)&loc_addr, sizeof(loc_addr)); | |
// put socket into listening mode | |
listen(s, 1); | |
// accept one connection | |
client = accept(s, (struct sockaddr *)&rem_addr, &opt); | |
ba2str( &rem_addr.l2_bdaddr, buf ); | |
fprintf(stderr, "accepted connection from %s\n", buf); | |
for (;;) { | |
memset(buf, 0, sizeof(buf)); | |
// read data from the client | |
bytes_read = read(client, buf, sizeof(buf)); | |
if( bytes_read > 0 ) { | |
printf("received [%s]\n", buf); | |
} | |
sleep(300); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment