Hi,
Am using bluez5.56 stack python test examples to establish BLE communication with mobile but am unable connect to the services of BLE in my mobile. Sometimes only it is connecting not all the time.
Can you please suggest any Bluetooth settings need to modify?
Thanks
Please provide logs from bluetoothd and the output of dmesg from a failed connection to help with debugging this. Thanks
Hi
Below is the log after executing the application.
Skip adapter: /org/bluez
GATT application registered
GetAll
returning props
Advertisement registered
hi
[ 2716.075325] audit: type=1701 audit(1703161299.413:5): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1026 comm=“bluetoothd” exe=“/usr/libexec/bluetooth/bluetoothd” sig=6 res=1
if I send the data from the board over BLE it just gives the above exception after hi message and immediately I lose connection as well. I have checked with Android and ios mobile using the BLE scanner app.
The below log is the dmesg log for your reference
[ 0.112352] Bluetooth: Core ver 2.22
[ 0.112379] NET: Registered protocol family 31
[ 0.112383] Bluetooth: HCI device and connection manager initialized
[ 0.112391] Bluetooth: HCI socket layer initialized
[ 0.112396] Bluetooth: L2CAP socket layer initialized
[ 0.112408] Bluetooth: SCO socket layer initialized
[ 0.113442] clocksource: Switched to clocksource arch_sys_counter
[ 0.113594] VFS: Disk quotas dquot_6.6.0
[ 0.113643] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.119584] NET: Registered protocol family 2
[ 0.119731] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.121190] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.121259] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.121486] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[ 0.121940] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.122038] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.122115] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.122300] NET: Registered protocol family 1
[ 0.122639] RPC: Registered named UNIX socket transport module.
[ 0.122643] RPC: Registered udp transport module.
[ 0.122646] RPC: Registered tcp transport module.
[ 0.122649] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.123326] PCI: CLS 0 bytes, default 64
[ 0.124051] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.124807] kvm [1]: IPA Size Limit: 40 bits
[ 0.126081] kvm [1]: GICv3: no GICV resource entry
[ 0.126085] kvm [1]: disabling GICv2 emulation
[ 0.126101] kvm [1]: GIC system register CPU interface enabled
[ 0.126162] kvm [1]: vgic interrupt IRQ9
[ 0.126255] kvm [1]: Hyp mode initialized successfully
[ 0.129078] Initialise system trusted keyrings
[ 0.129184] workingset: timestamp_bits=42 max_order=20 bucket_order=0
[ 0.134977] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.135559] NFS: Registering the id_resolver key type
[ 0.135580] Key type id_resolver registered
[ 0.135584] Key type id_legacy registered
[ 0.135660] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
[ 0.135664] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering…
[ 0.135683] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc.
[ 0.136029] 9p: Installing v9fs 9p2000 file system support
[ 0.171717] Key type asymmetric registered
[ 0.171722] Asymmetric key parser ‘x509’ registered
[ 0.171752] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 241)
[ 0.171757] io scheduler mq-deadline registered
[ 0.171760] io scheduler kyber registered
[ 0.173999] samsung-hdmi-phy 32fdff00.hdmiphy: failed to get phy apb clk: -517
[ 0.174156] imx8-pcie-phy 32f00000.pcie-phy: failed to get imx pcie phy clock
[ 0.185028] mxs-dma 33000000.dma-apbh: initialized
[ 0.187012] Bus freq driver module loaded
[ 0.189077] reg-userspace-consumer power-m2-mpcie: Failed to get supplies: -517
[ 0.189124] reg-userspace-consumer power-usb-port1: Failed to get supplies: -517
[ 0.189166] reg-userspace-consumer power-usb-port2: Failed to get supplies: -517
[ 0.193236] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.195631] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 32, base_baud = 5000000) is a IMX
[ 0.195759] serial serial0: tty port ttymxc0 registered
[ 0.196334] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 33, base_baud = 5000000) is a IMX
[ 0.196896] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 34, base_baud = 1500000) is a IMX
[ 0.233537] printk: console [ttymxc1] enabled
[ 0.236353] imx-lcdifv3 32e80000.lcd-controller: No pix clock get: -517
[ 0.243700] imx-lcdifv3 32e90000.lcd-controller: No pix clock get: -517
[ 0.250666] imx-lcdifv3 32fc6000.lcd-controller: No irq get, ret=-517
[ 0.260834] imx-hdmi-pavi 32fc4000.hdmi-pai-pvi: No pvi clock get
[ 0.277891] loop: module loaded
[ 0.279011] megasas: 07.714.04.00-rc1
[ 0.280414] imx ahci driver is registered.
[ 0.284019] libphy: Fixed MDIO Bus: probed
[ 0.284348] tun: Universal TUN/TAP device driver, 1.6
[ 0.284521] thunder_xcv, ver 1.0
[ 0.284558] thunder_bgx, ver 1.0
[ 0.285674] e1000: Intel(R) PRO/1000 Network Driver
[ 0.285678] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.285711] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.285715] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.285755] igb: Intel(R) Gigabit Ethernet Network Driver
[ 0.285758] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.285786] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 0.285789] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.285846] usbcore: registered new interface driver r8152
[ 0.285879] usbcore: registered new interface driver asix
[ 0.285908] usbcore: registered new interface driver ax88179_178a
[ 0.285934] usbcore: registered new interface driver cdc_ether
[ 0.285962] usbcore: registered new interface driver net1080
[ 0.285986] usbcore: registered new interface driver cdc_subset
[ 0.286013] usbcore: registered new interface driver zaurus
[ 0.286049] usbcore: registered new interface driver cdc_ncm
[ 0.286077] usbcore: registered new interface driver qmi_wwan
[ 0.286288] VFIO - User Level meta-driver version: 0.3
[ 0.292518] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 0.292526] ehci-pci: EHCI PCI platform driver
[ 0.292559] ehci-platform: EHCI generic platform driver
[ 0.292757] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 0.292784] ohci-pci: OHCI PCI platform driver
[ 0.292816] ohci-platform: OHCI generic platform driver
[ 0.293536] usbcore: registered new interface driver cdc_wdm
[ 0.293695] usbcore: registered new interface driver uas
[ 0.293731] usbcore: registered new interface driver usb-storage
[ 0.293797] usbcore: registered new interface driver usbserial_generic
[ 0.293813] usbserial: USB Serial support registered for generic
[ 0.293836] usbcore: registered new interface driver ftdi_sio
[ 0.293857] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 0.293885] usbcore: registered new interface driver usb_serial_simple
[ 0.293903] usbserial: USB Serial support registered for carelink
[ 0.293920] usbserial: USB Serial support registered for zio
[ 0.293937] usbserial: USB Serial support registered for funsoft
[ 0.293953] usbserial: USB Serial support registered for flashloader
[ 0.293971] usbserial: USB Serial support registered for google
[ 0.293987] usbserial: USB Serial support registered for libtransistor
[ 0.294005] usbserial: USB Serial support registered for vivopay
[ 0.294021] usbserial: USB Serial support registered for moto_modem
[ 0.294039] usbserial: USB Serial support registered for motorola_tetra
[ 0.294056] usbserial: USB Serial support registered for novatel_gps
[ 0.294076] usbserial: USB Serial support registered for hp4x
[ 0.294094] usbserial: USB Serial support registered for suunto
[ 0.294110] usbserial: USB Serial support registered for siemens_mpi
[ 0.294140] usbcore: registered new interface driver usb_ehset_test
[ 0.297917] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc1
[ 0.298153] i2c /dev entries driver
[ 0.302221] EDAC MC: ECC not enabled
[ 0.303490] sdhci: Secure Digital Host Controller Interface driver
[ 0.303496] sdhci: Copyright(c) Pierre Ossman
[ 0.303809] Synopsys Designware Multimedia Card Interface Driver
[ 0.304508] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.305511] sdhci-esdhc-imx 30b40000.mmc: voltage-ranges unspecified
[ 0.313784] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.314541] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping …
[ 0.314999] usbcore: registered new interface driver usbhid
[ 0.315002] usbhid: USB HID core driver
[ 0.315492] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator
[ 0.316021] mxc-mipi-csi2-sam 32e50000.csi: supply mipi-phy not found, using dummy regulator
[ 0.320224] imx-dsp-rproc 3b6e8000.dsp: Failed to get clock dsp_clk1
[ 0.326612] imx-dsp-rproc 3b6e8000.dsp: failed on imx_dsp_rproc_clk_get
[ 0.333593] remoteproc remoteproc0: releasing imx-dsp-rproc
[ 0.336523] optee: probing for conduit method.
[ 0.336544] optee: revision 3.15 (c939619d)
[ 0.337139] optee: dynamic shared memory is enabled
[ 0.337518] optee: initialized driver
[ 0.340869] Galcore version 6.4.3.p2.336687
[ 0.447582] [drm] Initialized vivante 1.0.0 20170808 for 40000000.mix_gpu_ml on minor 0
[ 0.448682] hantrodec 0 : module inserted. Major = 510
[ 0.449305] hantrodec 1 : module inserted. Major = 510
[ 0.450880] hantroenc: HW at base <0000000038320000> with ID <0x80006200>
[ 0.451003] hx280enc: module inserted. Major <509>
[ 0.451820] NET: Registered protocol family 26
[ 0.452282] NET: Registered protocol family 10
[ 0.453542] Segment Routing with IPv6
[ 0.453585] NET: Registered protocol family 17
[ 0.453973] Bluetooth: RFCOMM TTY layer initialized
[ 0.453981] Bluetooth: RFCOMM socket layer initialized
[ 0.454005] Bluetooth: RFCOMM ver 1.11
[ 0.454014] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 0.454018] Bluetooth: BNEP filters: protocol multicast
[ 0.454024] Bluetooth: BNEP socket layer initialized
[ 0.454028] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 0.454034] Bluetooth: HIDP socket layer initialized
[ 0.454069] 8021q: 802.1Q VLAN Support v1.8
[ 0.454166] 9pnet: Installing 9P2000 support
[ 0.454197] tsn generic netlink module v1 init…
[ 0.454266] Key type dns_resolver registered
[ 0.454533] registered taskstats version 1
[ 0.454538] Loading compiled-in X.509 certificates
[ 0.500676] nxp-pca9450 0-0025: pca9450bc probed.
[ 0.501017] i2c i2c-0: IMX I2C adapter registered
[ 0.502438] i2c i2c-1: IMX I2C adapter registered
[ 0.503853] adv7511 2-003d: supply avdd not found, using dummy regulator
[ 0.503955] adv7511 2-003d: supply dvdd not found, using dummy regulator
[ 0.504010] adv7511 2-003d: supply pvdd not found, using dummy regulator
[ 0.504048] adv7511 2-003d: supply a2vdd not found, using dummy regulator
[ 0.504090] adv7511 2-003d: supply v3p3 not found, using dummy regulator
[ 0.504126] adv7511 2-003d: supply v1p2 not found, using dummy regulator
[ 0.514582] i2c i2c-2: IMX I2C adapter registered
[ 0.515742] i2c i2c-3: IMX I2C adapter registered
[ 0.516750] imx8mq-usb-phy 381f0040.usb-phy: supply vbus not found, using dummy regulator
[ 0.517100] imx8mq-usb-phy 382f0040.usb-phy: supply vbus not found, using dummy regulator
[ 0.517369] samsung-hdmi-phy 32fdff00.hdmiphy: failed to get phy apb clk: -517
[ 0.527065] imx6q-pcie 33800000.pcie: supply epdev_on not found, using dummy regulator
[ 0.527383] imx6q-pcie 33800000.pcie: PLL REF_CLK is used!.
[ 0.527989] imx6q-pcie 33800000.pcie: PCIe PHY PLL clock is locked.
[ 0.538627] SoC: i.MX8MP revision 1.1
[ 0.538881] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 5 mkt segment 0 supported-hw 0x20 0x1
[ 0.543103] imx-lcdifv3 32fc6000.lcd-controller: No irq get, ret=-517
[ 0.552210] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 0.552233] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
[ 0.552575] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x0000002021810010
[ 0.552617] xhci-hcd xhci-hcd.2.auto: irq 75, io mem 0x38100000
[ 0.552738] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 0.552749] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
[ 0.552762] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[ 0.553695] hub 1-0:1.0: USB hub found
[ 0.553725] hub 1-0:1.0: 1 port detected
[ 0.553988] usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 0.554365] hub 2-0:1.0: USB hub found
[ 0.554388] hub 2-0:1.0: 1 port detected
[ 0.555724] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
[ 0.555744] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 3
[ 0.556086] xhci-hcd xhci-hcd.3.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x0000002021810010
[ 0.556132] xhci-hcd xhci-hcd.3.auto: irq 76, io mem 0x38200000
[ 0.556256] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
[ 0.556268] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 4
[ 0.556278] xhci-hcd xhci-hcd.3.auto: Host supports USB 3.0 SuperSpeed
[ 0.556791] hub 3-0:1.0: USB hub found
[ 0.556818] hub 3-0:1.0: 1 port detected
[ 0.557116] usb usb4: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 0.557547] hub 4-0:1.0: USB hub found
[ 0.557569] hub 4-0:1.0: 1 port detected
[ 0.560916] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 0.561220] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator
[ 0.561559] sdhci-esdhc-imx 30b40000.mmc: voltage-ranges unspecified
[ 0.561718] mxc-mipi-csi2-sam 32e40000.csi: lanes: 4, hs_settle: 16, clk_settle: 0, wclk: 0, freq: 266000000
[ 0.567990] sdhci-esdhc-imx 30b40000.mmc: allocated mmc-pwrseq
[ 0.568884] mxc-mipi-csi2-sam 32e50000.csi: supply mipi-phy not found, using dummy regulator
[ 0.569282] mxc-mipi-csi2-sam 32e50000.csi: lanes: 4, hs_settle: 16, clk_settle: 0, wclk: 0, freq: 266000000
[ 0.570942] remoteproc remoteproc0: imx-dsp-rproc is available
[ 0.573283] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 0.573326] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[ 0.573377] imx-drm display-subsystem: bound imx-lcdifv3-crtc.2 (ops lcdifv3_crtc_ops)
[ 0.573472] imx_sec_dsim_drv 32e60000.mipi_dsi: version number is 0x1060200
[ 0.573668] imx-drm display-subsystem: bound 32e60000.mipi_dsi (ops imx_sec_dsim_ops)
[ 0.573995] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[ 0.574415] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[ 0.575486] imx-drm display-subsystem: bound 32fd8000.hdmi (ops dw_hdmi_imx_ops)
[ 0.575815] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[ 0.577199] imx-drm display-subsystem: [drm] Cannot find any crtc or sizes
[ 0.581127] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.581537] imx6q-pcie 33800000.pcie: PCIe PLL locked after 0 us.
[ 0.581599] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:
[ 0.581609] imx6q-pcie 33800000.pcie: No bus range found for /soc@0/pcie@33800000, using [bus 00-ff]
[ 0.581635] imx6q-pcie 33800000.pcie: IO 0x001ff80000…0x001ff8ffff → 0x0000000000
[ 0.581647] imx6q-pcie 33800000.pcie: MEM 0x0018000000…0x001fefffff → 0x0018000000
[ 0.581710] imx6q-pcie 33800000.pcie: invalid resource
[ 0.582794] cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
[ 0.593201] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[ 0.593509] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 0.593514] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 0.597457] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA
[ 0.597790] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[ 0.638277] random: fast init done
[ 0.643734] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 0.645257] mmc1: host does not support reading read-only switch, assuming write-enable
[ 0.645369] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.647011] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.649953] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 0.652565] mmc0: queuing unknown CIS tuple 0x80 (6 bytes)
[ 0.685458] imx6q-pcie 33800000.pcie: Link up
[ 0.685468] imx6q-pcie 33800000.pcie: Link up
[ 0.685474] imx6q-pcie 33800000.pcie: Link up, Gen1
[ 0.692511] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[ 0.693990] mmcblk2: mmc2:0001 8GTF4R 7.28 GiB
[ 0.694154] mmcblk2boot0: mmc2:0001 8GTF4R partition 1 4.00 MiB
[ 0.694324] mmcblk2boot1: mmc2:0001 8GTF4R partition 2 4.00 MiB
[ 0.695113] mmcblk2rpmb: mmc2:0001 8GTF4R partition 3 512 KiB, chardev (511:0)
[ 0.697418] mmcblk2: p1 p2
[ 0.749254] mmc0: new ultra high speed SDR104 SDIO card at address 0001
[ 0.780011] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
[ 0.781060] mmcblk1: mmc1:aaaa SC16G 14.8 GiB
[ 0.783391] mmcblk1: p1 p2
[ 0.793927] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00
[ 0.793939] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.793945] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.793950] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff]
[ 0.793979] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 0.793995] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 0.794007] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 0.794054] pci 0000:00:00.0: supports D1
[ 0.794059] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 0.797119] pci 0000:01:00.0: [8086:157b] type 00 class 0x020000
[ 0.797192] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0001ffff]
[ 0.797252] pci 0000:01:00.0: reg 0x18: [io 0x0000-0x001f]
[ 0.797286] pci 0000:01:00.0: reg 0x1c: [mem 0x00000000-0x00003fff]
[ 0.797704] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.809805] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[ 0.811982] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff]
[ 0.811991] pci 0000:00:00.0: BAR 14: assigned [mem 0x18100000-0x181fffff]
[ 0.811996] pci 0000:00:00.0: BAR 6: assigned [mem 0x18200000-0x1820ffff pref]
[ 0.812001] pci 0000:00:00.0: BAR 13: assigned [io 0x1000-0x1fff]
[ 0.812008] pci 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x1811ffff]
[ 0.812024] pci 0000:01:00.0: BAR 3: assigned [mem 0x18120000-0x18123fff]
[ 0.812038] pci 0000:01:00.0: BAR 2: assigned [io 0x1000-0x101f]
[ 0.812053] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 0.812058] pci 0000:00:00.0: bridge window [io 0x1000-0x1fff]
[ 0.812063] pci 0000:00:00.0: bridge window [mem 0x18100000-0x181fffff]
[ 0.812402] pcieport 0000:00:00.0: PME: Signaling with IRQ 240
[ 0.814209] igb 0000:01:00.0: enabling device (0000 → 0002)
[ 0.844187] pps pps0: new PPS source ptp0
[ 0.844924] igb 0000:01:00.0: added PHC on eth0
[ 0.844928] igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection
[ 0.844933] igb 0000:01:00.0: eth0: (PCIe:2.5Gb/s:Width x1) d0:63:b4:04:d8:25
[ 0.844937] igb 0000:01:00.0: eth0: PBA No: FFFFFF-0FF
[ 0.844942] igb 0000:01:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
[ 0.861862] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 0.861917] VFS: Mounted root (ext4 filesystem) on device 179:98.
[ 0.862411] devtmpfs: mounted
[ 0.863241] Freeing unused kernel memory: 2560K
[ 0.881515] Run /sbin/init as init process
[ 0.881518] with arguments:
[ 0.881521] /sbin/init
[ 0.881524] with environment:
[ 0.881526] HOME=/
[ 0.881529] TERM=linux
[ 1.005187] hub 3-1:1.0: USB hub found
[ 1.005571] hub 3-1:1.0: 4 ports detected
[ 1.067995] systemd[1]: RTC configured in localtime, applying delta of 0 minutes to system time.
[ 1.068849] systemd[1]: System time before build time, advancing clock.
[ 1.084058] systemd[1]: systemd 247 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -ZSTD -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[ 1.084441] systemd[1]: Detected architecture arm64.
[ 1.085499] usb 4-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[ 1.105674] systemd[1]: Set hostname to .
[ 1.132556] hub 4-1:1.0: USB hub found
[ 1.132631] hub 4-1:1.0: 4 ports detected
[ 1.157389] systemd-sysv-generator[251]: SysV service ‘/etc/init.d/halt’ lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1.157739] systemd-sysv-generator[251]: SysV service ‘/etc/init.d/sendsigs’ lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1.159096] systemd-sysv-generator[251]: SysV service ‘/etc/init.d/umountnfs.sh’ lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1.159357] systemd-sysv-generator[251]: SysV service ‘/etc/init.d/single’ lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1.159464] systemd-sysv-generator[251]: SysV service ‘/etc/init.d/reboot’ lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1.159698] systemd-sysv-generator[251]: SysV service ‘/etc/init.d/umountfs’ lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1.159955] systemd-sysv-generator[251]: SysV service ‘/etc/init.d/rc.local’ lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1.160063] systemd-sysv-generator[251]: SysV service ‘/etc/init.d/save-rtc.sh’ lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1.320768] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock \xe2\x86\x92 /run/docker.sock; please update the unit file accordingly.
[ 1.423344] systemd[1]: Queued start job for default target Graphical Interface.
[ 1.424249] random: systemd: uninitialized urandom read (16 bytes read)
[ 1.479003] systemd[1]: Created slice system-getty.slice.
[ 1.479157] random: systemd: uninitialized urandom read (16 bytes read)
[ 1.480493] systemd[1]: Created slice system-modprobe.slice.
[ 1.480560] random: systemd: uninitialized urandom read (16 bytes read)
[ 1.481971] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 1.483314] systemd[1]: Created slice User and Session Slice.
[ 1.483526] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 1.483678] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 1.483906] systemd[1]: Reached target Host and Network Name Lookups.
[ 1.483947] systemd[1]: Reached target Paths.
[ 1.484021] systemd[1]: Reached target Remote File Systems.
[ 1.484087] systemd[1]: Reached target Slices.
[ 1.484169] systemd[1]: Reached target Swap.
[ 1.491769] systemd[1]: Listening on RPCbind Server Activation Socket.
[ 1.491911] systemd[1]: Reached target RPC Port Mapper.
[ 1.492225] systemd[1]: Listening on Syslog Socket.
[ 1.492414] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 1.492855] systemd[1]: Listening on Journal Audit Socket.
[ 1.493112] systemd[1]: Listening on Journal Socket (/dev/log).
[ 1.493427] systemd[1]: Listening on Journal Socket.
[ 1.494036] systemd[1]: Listening on Network Service Netlink Socket.
[ 1.494873] systemd[1]: Listening on udev Control Socket.
[ 1.495159] systemd[1]: Listening on udev Kernel Socket.
[ 1.495432] systemd[1]: Listening on User Database Manager Socket.
[ 1.498311] systemd[1]: Mounting Huge Pages File System…
[ 1.501314] systemd[1]: Mounting POSIX Message Queue File System…
[ 1.504972] systemd[1]: Mounting Kernel Debug File System…
[ 1.505480] systemd[1]: Condition check resulted in Kernel Trace File System being skipped.
[ 1.512120] systemd[1]: Mounting Temporary Directory (/tmp)…
[ 1.516870] systemd[1]: Starting Create list of static device nodes for the current kernel…
[ 1.520199] systemd[1]: Starting Load Kernel Module configfs…
[ 1.523411] systemd[1]: Starting Load Kernel Module drm…
[ 1.526414] systemd[1]: Starting Load Kernel Module fuse…
[ 1.530542] systemd[1]: Starting RPC Bind…
[ 1.530746] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[ 1.531293] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[ 1.531307] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[ 1.535084] systemd[1]: Starting Journal Service…
[ 1.545966] fuse: init (API version 7.32)
e Database being skipped.
[ 1.600817] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[ 1.603899] systemd[1]: Starting Apply Kernel Variables…
[ 1.604116] systemd[1]: Condition check resulted in Create System Users being skipped.
[ 1.608278] systemd[1]: Starting Create Static Device Nodes in /dev…
[ 1.623381] systemd[1]: Finished Apply Kernel Variables.
[ 1.641903] systemd[1]: Finished Create Static Device Nodes in /dev.
[ 1.642208] systemd[1]: Reached target Local File Systems (Pre).
[ 1.645776] systemd[1]: Mounting /var/volatile…
[ 1.649952] systemd[1]: Starting Rule-based Manager for Device Events and Files…
[ 1.652513] systemd[1]: Mounted /var/volatile.
[ 1.652788] systemd[1]: Condition check resulted in Bind mount volatile /var/cache being skipped.
[ 1.652860] systemd[1]: Condition check resulted in Bind mount volatile /var/lib being skipped.
[ 1.655933] systemd[1]: Starting Load/Save Random Seed…
[ 1.656107] systemd[1]: Condition check resulted in Bind mount volatile /var/spool being skipped.
[ 1.656222] systemd[1]: Condition check resulted in Bind mount volatile /srv being skipped.
[ 1.656345] systemd[1]: Reached target Local File Systems.
[ 1.656614] systemd[1]: Condition check resulted in Rebuild Dynamic Linker Cache being skipped.
[ 1.662473] systemd[1]: Started Journal Service.
[ 1.680137] systemd-journald[262]: Received client request to flush runtime journal.
[ 2.155072] rfkill_gpio rfkill_m2_wdis: m2_wdis device registered.
[ 2.155855] rfkill_gpio rfkill_m2_gps: m2_gps device registered.
[ 2.156579] rfkill_gpio rfkill_mpcie_wdis: mpcie_wdis device registered.
[ 2.180138] caam-snvs 30370000.caam-snvs: violation handlers armed - init state
[ 2.213404] basler_camera_driver_vvcam: loading out-of-tree module taints kernel.
[ 2.215149] i2c_transfer() failed: -6
[ 2.215158] basler_read_register_chunk() failed: -6
[ 2.215162] basler_read_register() failed: -6
[ 2.218143] i2c_transfer() failed: -6
[ 2.218153] basler_read_register_chunk() failed: -6
[ 2.218156] basler_read_register() failed: -6
[ 2.225138] rtc-abx80x 2-0069: model 1805, revision 2.3, lot 37b, wafer 10, uid 2461
[ 2.226647] rtc-abx80x 2-0069: Enabling trickle charger: 05
[ 2.233402] at24 0-0050: supply vcc not found, using dummy regulator
[ 2.238023] caam 30900000.crypto: device ID = 0x0a16040100000100 (Era 9)
[ 2.238035] caam 30900000.crypto: job rings = 1, qi = 0
[ 2.243913] at24 0-0050: 256 byte 24c02 EEPROM, writable, 16 bytes/write
[ 2.246413] rtc-abx80x 2-0069: registered as rtc0
[ 2.246734] at24 2-0057: supply vcc not found, using dummy regulator
[ 2.264172] at24 2-0057: 256 byte 24c02 EEPROM, writable, 8 bytes/write
[ 2.266328] rtc-abx80x 2-0069: setting system clock to 2023-12-21T12:49:50 UTC (1703162990)
[ 2.267540] Bluetooth: HCI UART driver ver 2.3
[ 2.267551] Bluetooth: HCI UART protocol H4 registered
[ 2.267878] Bluetooth: HCI UART protocol Broadcom registered
[ 2.276503] hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator
[ 2.276643] hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator
[ 2.330023] imx-dwmac 30bf0000.ethernet: IRQ eth_lpi not found
[ 2.330171] imx-dwmac 30bf0000.ethernet: no reset control found
[ 2.334856] imx-dwmac 30bf0000.ethernet: User ID: 0x10, Synopsys ID: 0x51
[ 2.334869] imx-dwmac 30bf0000.ethernet: DWMAC4/5
[ 2.334874] imx-dwmac 30bf0000.ethernet: DMA HW capability register supported
[ 2.334878] imx-dwmac 30bf0000.ethernet: RX Checksum Offload Engine supported
[ 2.334881] imx-dwmac 30bf0000.ethernet: TX Checksum insertion supported
[ 2.334884] imx-dwmac 30bf0000.ethernet: Wake-Up On Lan supported
[ 2.334986] imx-dwmac 30bf0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 2.334995] imx-dwmac 30bf0000.ethernet: device MAC address ae:bf:e6:91:e1:60
[ 2.335000] imx-dwmac 30bf0000.ethernet: Enabled Flow TC (entries=8)
[ 2.335015] imx-dwmac 30bf0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[ 2.335019] imx-dwmac 30bf0000.ethernet: Using 34 bits DMA width
[ 2.335435] libphy: stmmac: probed
[ 2.335959] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.484917] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 2.553522] wm8904 1-001a: revision A
[ 2.630082] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 2.639484] Bluetooth: hci0: BCM: chip id 107
[ 2.644252] Bluetooth: hci0: BCM: features 0x2f
[ 2.653607] Bluetooth: hci0: BCM4345C0
[ 2.657377] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000
[ 2.660495] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 3 2019 19:47:25 version 7.45.184 (r712131 CY) FWID 01-b363c0a0
[ 2.679106] enter viv_dwe_init_module
[ 2.683922] Bluetooth: hci0: BCM4345C0 ‘brcm/BCM4345C0.hcd’ Patch
[ 2.691724] enter viv_isp_init_module
[ 2.698195] enter dwe_hw_probe
[ 3.408193] Bluetooth: hci0: BCM4345C0 NXP UART 37.4 MHz BT 4.2
[ 3.414269] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0337
And also the below configurations i have changed in bluez.service file.
ExecStart=/usr/libexec/bluetooth/bluetoothd -C
#ExecStart=/usr/libexec/bluetooth/bluetoothd --compat
ExecStartPost=/usr/bin/sdptool add SP
Could you please let me know the steps to resolve this?
Thanks
Hi
And also providing the journalctl -f log for your reference.
root@imx8mpsolidrun:~# journalctl -f
– Journal begins at Wed 2021-03-24 10:25:18 UTC. –
Dec 22 09:18:14 imx8mpsolidrun systemd[1]: Started Bluetooth service.
Dec 22 09:18:14 imx8mpsolidrun systemd[1]: Started Hostname Service.
Dec 22 09:18:44 imx8mpsolidrun systemd-journald[255]: Forwarding to syslog missed 7 messages.
Dec 22 09:18:44 imx8mpsolidrun systemd[1]: systemd-hostnamed.service: Succeeded.
Dec 22 09:19:41 imx8mpsolidrun systemd-journald[255]: Forwarding to syslog missed 1 messages.
Dec 22 09:30:01 imx8mpsolidrun crond[1898]: pam_unix(crond:session): session opened for user root(uid=0) by (uid=0)
Dec 22 09:30:01 imx8mpsolidrun systemd-journald[255]: Forwarding to syslog missed 1 messages.
Dec 22 09:30:01 imx8mpsolidrun CROND[1899]: (root) CMD (/usr/bin/ntpdate-sync silent)
Dec 22 09:30:01 imx8mpsolidrun CROND[1898]: pam_unix(crond:session): session closed for user root
Dec 22 09:30:01 imx8mpsolidrun kernel: audit: type=1006 audit(1703237401.492:14): pid=1898 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=7 res=1
Dec 22 09:31:41 imx8mpsolidrun systemd-journald[255]: Forwarding to syslog missed 2 messages.
Dec 22 09:32:56 imx8mpsolidrun audit[1847]: ANOM_ABEND auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1847 comm=“bluetoothd” exe=“/usr/libexec/bluetooth/bluetoothd” sig=6 res=1
Dec 22 09:32:56 imx8mpsolidrun bluetoothd[1847]: dbus[1847]: arguments to dbus_message_iter_get_fixed_array() were incorrect, assertion “(subtype == DBUS_TYPE_INVALID) || (dbus_type_is_fixed (subtype) && subtype != DBUS_TYPE_UNIX_FD)” failed in file …/…/dbus-1.12.20/dbus/dbus-message.c line 2480.
Dec 22 09:32:56 imx8mpsolidrun bluetoothd[1847]: This is normally a bug in some application using the D-Bus library.
Dec 22 09:32:56 imx8mpsolidrun bluetoothd[1847]: D-Bus not built with -rdynamic so unable to print a backtrace
Dec 22 09:32:56 imx8mpsolidrun systemd-journald[255]: Forwarding to syslog missed 3 messages.
Dec 22 09:32:56 imx8mpsolidrun systemd[1]: bluetooth.service: Main process exited, code=killed, status=6/ABRT
Dec 22 09:32:56 imx8mpsolidrun kernel: audit: type=1701 audit(1703237576.164:15): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1847 comm=“bluetoothd” exe=“/usr/libexec/bluetooth/bluetoothd” sig=6 res=1
Dec 22 09:32:56 imx8mpsolidrun systemd[1]: bluetooth.service: Failed with result ‘signal’.
Dec 22 09:33:35 imx8mpsolidrun systemd-journald[255]: Forwarding to syslog missed 2 messages.
Dec 22 09:33:35 imx8mpsolidrun systemd[1]: Starting Bluetooth service…
Dec 22 09:33:35 imx8mpsolidrun systemd[1]: Starting Hostname Service…
Dec 22 09:33:35 imx8mpsolidrun sdptool[1918]: Serial Port service registered
Dec 22 09:33:35 imx8mpsolidrun systemd[1]: Started Bluetooth service.
Dec 22 09:33:35 imx8mpsolidrun systemd[1]: Started Hostname Service.
Dec 22 09:34:05 imx8mpsolidrun systemd-journald[255]: Forwarding to syslog missed 5 messages.
Dec 22 09:34:05 imx8mpsolidrun systemd[1]: systemd-hostnamed.service: Succeeded.
Dec 22 09:34:41 imx8mpsolidrun systemd-journald[255]: Forwarding to syslog missed 1 messages.
And from the mobile device nRF connect is giving the below log message
Error 133 (0x85): GATT ERROR
So, please let me know the causes behind the procedure.