Ok. I think I figured out how enable simple bluetooth pairing and it seems painfully simple.
Simply call "bluetoothd" give it a few seconds and you can see and pair with it from another device.
Based on my experimenting, this will perform the following:
- Power on / enable the radio (equivalent to "hciconfig hci0 up")
- Make the radio visible to other devices (equivalent to "hciconfig hci0 pscan")
- Make the rename the radio to clanton0 (equivalent to "hciconfig hci0 name 'clanton0'")
- Enable simple pairing mode (equivalent to "hciconfig hci0 sspmode 1")
Plus some other unknown changes that I have yet to figure out since doing all of the above itself could not enable pairing between my Galileo board and my phone (Nexus 4)
Note that I'm using the following:
- The official SD card version of the 0.7.5.7 Linux firmware image
- Intel Centrino-N 6235 mini PCIe WiFi/Bluetooth radio
My main.conf file is as follows:
main.conf |
---|
[General] # List of plugins that should not be loaded on bluetoothd startup # Default adaper name # Default device class. Only the major and minor device class bits are # How long to stay in discoverable mode before going back to non-discoverable # How long to stay in pairable mode before going back to non-discoverable # Use some other page timeout than the controller default one # Automatic connection for bonded devices driven by platform/user events. # What value should be assumed for the adapter Powered property when # Remember the previously stored Powered state when initializing adapters # Use vendor id source (assigner), vendor, product and version information for # Do reverse service discovery for previously unknown devices that connect to # Enable name resolving after inquiry. Set it to 'false' if you don't need # Enable runtime persistency of debug link keys. Default is false which # Enable the GATT functionality. Default is false |