Hi Cathy, > >> The Connman is V0.5. I'm sure there are several bluetooth devices > >> around by "hcitool scan". I tried to scan the bluetooth devices > >> around by device.ProposeScan(), but failed to list any when call > >> GetProperties() of Bluetooth Network interface. > >> > >> I want to confirm with you that is the proper way to detect bluetooth > >> device around and set up PAN connection with other bluetooth device > >> is similar to WiFi connection as below: > >> 1. Scan and get bluetooth devices around (may show bdaddr to user) > > > > in the Bluetooth case you can't just do the scanning like this. You > > have to setup the device via BlueZ first. Then it will list it. So > > you would have to use CreateDevice or CreatePairedDevice from BlueZ > > to make the device available to ConnMan. Either use bluetooth-wizard > > or test-device from the BlueZ test scripts for this. > > > > So connman can enable/disable bluetooth device, get IP address for NAP and GN > automatically, set static IP address for PAN, and show the connection status > of bluetooth to user. > Scan and connection to remote device should be done by bluez itself, right?
scanning for remote device and setting them up has to be done by BlueZ since that task is kinda complex. After that ConnMan can detect new PAN capable devices from BlueZ. You can use ConnMan to connect these PAN devices (mostly NAP) and run DHCP to retrieve and set IP configuration. Once it is connected, then ConnMan will give you status about the connection itself and the assigned IP details etc. Regards Marcel _______________________________________________ connman mailing list [email protected] https://lists.moblin.org/mailman/listinfo/connman
