mgmt API, need some help for my use-case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

I would like to discuss a use-case that I encountered on my project, and
for which I cannot find a right way to do it with mgmt API.

I have a controller, the 88W8887 that I need to set in 'wakeup host' mode.

I put my host in suspend-to-mem, and the controller toggles a GPIO to wake
it up under certain circumstances, including a Low Energy connection.

To do that, I need to :
	- configure precisely my advertising intervals, to be in low duty
	  cycle advertising, with a long interval between advertisements
	- configure the filter policy, to only process connection
	  requests from whitelisted devices ( we want only whitelisted
	  devices to be able to wakeup our system ).

I previously did that with the HCI lib in my C program, and submitted a
patch to the hci lib, to add the le_set_advertising_parameters to the lib.

I used the following HCI commands :
	- LE clear whitelist ( OCF 0x0010 )
	- LE Add device to whitelist ( OCF 0x0011 )
	- LE Set advertising parameters ( OCF 0x0006 )
	- LE Set advertise enable ( OCF 0x000A )

It turns out this is not the right approach, Johan Hedberg explained to me
on IRC that the hci lib was not intended to be used by external programs.

Therefore, I'm looking for a way to do it using the mgmt API, but I can't
find a way to :
	- Manipulate the whitelist
	- Configure advertising intervals
	- Configure the filter policy

If I missed something in the mgmt API that would allow me to do that, please
point it to me. If these are some missing features, I am willing to spend some
time working on it.

Thanks in advance,

Maxime Chevallier
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux