Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20984

Re: Pairing Intel Galileo w/Device via Bluetooth

$
0
0

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
#DisablePlugins = network,input

# Default adaper name
# %h - substituted for hostname
# %d - substituted for adapter id
Name = %h-%d

# Default device class. Only the major and minor device class bits are
# considered.
Class = 0x000100

# How long to stay in discoverable mode before going back to non-discoverable
# The value is in seconds. Default is 180, i.e. 3 minutes.
# 0 = disable timer, i.e. stay discoverable forever
DiscoverableTimeout = 0

# How long to stay in pairable mode before going back to non-discoverable
# The value is in seconds. Default is 0.
# 0 = disable timer, i.e. stay pairable forever
PairableTimeout = 0

# Use some other page timeout than the controller default one
# which is 16384 (10 seconds).
PageTimeout = 8192

# Automatic connection for bonded devices driven by platform/user events.
# If a platform plugin uses this mechanism, automatic connections will be
# enabled during the interval defined below. Initially, this feature
# intends to be used to establish connections to ATT channels.
AutoConnectTimeout = 60

# What value should be assumed for the adapter Powered property when
# SetProperty(Powered, ...) hasn't been called yet. Defaults to true
InitiallyPowered = true

# Remember the previously stored Powered state when initializing adapters
RememberPowered = true

# Use vendor id source (assigner), vendor, product and version information for
# DID profile support. The values are separated by ":" and assigner, VID, PID
# and version.
# Possible vendor id source values: bluetooth, usb (defaults to usb)
#DeviceID = bluetooth:1234:5678:abcd

# Do reverse service discovery for previously unknown devices that connect to
# us. This option is really only needed for qualification since the BITE tester
# doesn't like us doing reverse SDP for some test cases (though there could in
# theory be other useful purposes for this too). Defaults to true.
ReverseServiceDiscovery = true

# Enable name resolving after inquiry. Set it to 'false' if you don't need
# remote devices name and want shorter discovery cycle. Defaults to 'true'.
NameResolving = true

# Enable runtime persistency of debug link keys. Default is false which
# makes debug link keys valid only for the duration of the connection
# that they were created for.
DebugKeys = false

# Enable the GATT functionality. Default is false
EnableGatt = false


Viewing all articles
Browse latest Browse all 20984

Trending Articles