Op 14-02-19 om 23:01 schreef Ferry Toth:
Op 14-02-19 om 20:51 schreef Daniel Wagner:
> On Tue, Jan 29, 2019 at 09:49:13PM -0600, David Lechner wrote:
>> On 1/29/19 2:22 PM, Ferry Toth wrote:
>>> Op 09-01-19 om 16:51 schreef Daniel Wagner:
>>>>> root@edison:~# connmanctl
>>>>> connmanctl> services
>>>>> *AR Wired ethernet_00800f951d4d_cable
>>>>> Ferry Toth (Galaxy Note3) bluetooth_43341B001FAC_C462EA01AF74
>>>>> connmanctl> connect bluetooth_43341B001FAC_C462EA01AF74
>>>>> Error /net/connman/service/bluetooth_43341B001FAC_C462EA01AF74:
>>>>> Input/output error
>>>>> Seems like 1 more thing is missing.
>>>> Something interesting in the logs?
>>> I posted debug logs. Did you have a look?
>> I had a look, but I didn't see anything helpful. Sorry.
> Me neither.
>> Maybe there is something in the BlueZ/bluetoothd logs?
>> Maybe you are missing a kernel option that needs to be
>> enabled for ConnMan or BlueZ?
I have read the parts relating to the kernel config. I think I have
everything. But then again, it's not working.
> Hmm, good idea. If it would be oFono my tip would CONFIG_TUN. Almost :(
Could d-bus be blocking something? This my bluetooth.conf:
<!-- This configuration file specifies the required security policies
for Bluetooth core daemon to work. -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus
<!-- ../system.conf have denied everything, so we just punch some
<!-- allow users of lp group (printing subsystem) to
communicate with bluetoothd -->
Solved this, thanks Andy Shevchenko.
It appears on Edison (and some other BT devices too), bd_addr is not
stored in OTP. For instance on Edison it is stored in a partition on the
eMMC (/factory). The bcm driver (BCM43341B0) bases the default bd_addr
on the chip (43:34:1B:00:1F:AC), which is fine for most BT services, but
apparently not for pan/nap. It seems like the bnep device is created and
then immediately removed again. The only thing missing is error handling
of this case.
Using the bdaddr tool to set the address makes connman connect to
bluetooth service without problems.