To: Somisetty Sreegowri <[email protected]>

     From: Daniel Wagner <[email protected]>
     Date: 07/21/2011 02:21PM
     cc: [email protected]
     Subject: Re: Connman0.75 is unable to scan Bluetooth devices in
     Fedora14
Hi Somisetty,

>    Able to scan bluetooth devices using hcitool scan, sdptool search.

Okay, that means we have a working bluetooth setup. Did you pair your
device?

>    However not able to scan bluetooth devices using connman0.75.
>
>
>
>    Following are the steps followed to bringup the bluetooth in
>    connman0.75.
>
>    1. NetworkManager and Network is stopped.

Also make sure you have disabled modem-manager.

>    2. Started Connmand0.75 - [root@01HW087732 connman-0.75]# connmand -W
>    wext -n -d 'plugins/*'
>    3. Started bluetoothd 4.94
>    4. plugged in bluetooth dongle.
>    5. Executed test-manager script from connman-0.75 test script and
>    output as follows
>
>    [root@localhost test]# ./test-manager
>    ActiveProfile
>        /profile/default
>    EnabledDebugs
>        [ ]
>    ConnectedTechnologies
>        [ ethernet ]
>    DefaultTechnology
>        ethernet
>    EnabledTechnologies
>        [ ethernet bluetooth ]
>    AvailableDebugs
>        [ ]
>    State
>        online
>    Services
>        /profile/default/ethernet_0013727a7ae7_cable
>            IPv6.Configuration = { Method=auto Privacy=disabled }
>            AutoConnect = false
>            Proxy.Configuration = { }
>            Name = Wired
>            Nameservers = [ 172.19.88.135 172.19.144.135 172.19.168.75 ]
>            Provider = { }
>            Favorite = true
>            Domains.Configuration = [ ]
>            State = online
>            Proxy = { Method=direct }
>            Nameservers.Configuration = [ ]
>            LoginRequired = false
>            IPv6 = { Method=auto Privacy=disabled }
>            Domains = [ india.tcs.com ]
>            Ethernet = { Interface=eth0 MTU=1500 Method=auto
>    Address=00:13:72:7A:7A:E7 }
>            Security = [ ]
>            IPv4.Configuration = { Method=dhcp }
>            Type = ethernet
>            Immutable = false
>            IPv4 = { Netmask=255.255.255.128 Gateway=172.19.94.129
>    Method=dhcp Address=172.19.94.142 }
>    Technologies
>        /net/connman/technology/ethernet
>            State = enabled
>            Type = ethernet
>            Name = Wired
>            Tethering = false
>        /net/connman/technology/wifi
>            State = offline
>            Type = wifi
>            Name = WiFi
>            Tethering = false
>        /net/connman/technology/bluetooth
>            State = enabled
>            Type = bluetooth
>            Name = Bluetooth
>            Tethering = false
>    OfflineMode
>        false
>    AvailableTechnologies
>        [ ethernet bluetooth ]
>    SessionMode
>        0
>
>    6. Scan for bluetooth devices using test-connman and the output as
>    follows
>
>    [root@localhost test]# ./test-connman scan bluetooth
>    Traceback (most recent call last):
>      File "./test-connman", line 175, in <module>
>        manager.RequestScan(sys.argv[2])
>      File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 68, in
>    __call__
>        return self._proxy_method(*args, **keywords)
>      File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 140, in
>    __call__
>        **keywords)
>      File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630,
>    in call_blocking
>        message, timeout)
>    dbus.exceptions.DBusException: net.connman.Error.InvalidArguments:
>    Invalid arguments

Actually "test-connman scan bluetooth" won't work. The only valid
arguments are "wifi" of "wimax". So returning an error is okay but it
could be done in a more user friendly way.

>    7. As per the mailing list
>    "[1][1]http://lists.connman.net/pipermail/connman/2009-January/000124.html
>    ", device is created using Bluez scripts. Output is as follows
>
>    [root@localhost test]# ./test-device create 00:24:83:5D:C5:A3
>    New device (/org/bluez/14869/hci0/dev_00_24_83_5D_C5_A3)

If you have paired your phone (e.g. using the bluetooth UI tool from
gnome or kde) and your phone supports PAN it should appear without any
additional steps.

>    8. Executed step 6. However got the same error that is mentioned in
>    step6.

as expected :)

>    9. connmand output is as follows
>
>    [root@localhost test]# connmand -W wext -n -d 'plugins/*'
>    Failed to create state directory: No such file or directory
>    Failed to create storage directory: No such file or directory
>    Failed to create statistics directory: No such file or directory
>    connmand[16260]: Connection Manager version 0.75
>    connmand[16260]: Parsing /usr/local/etc/connman/main.conf failed: No
>    such file or directory
>    connmand[16260]: Creation of STORAGEDIR  watch failed
>    connmand[16260]: Checking loopback interface settings
>    connmand[16260]: System hostname is localhost.localdomain
>    connmand[16260]: System domainname is india.tcs.com
>    connmand[16260]: Adding default profile
>    connmand[16260]: lo {newlink} index 1 operstate 0 <UNKNOWN>
>    connmand[16260]: eth0 {create} index 2 type 1 <ETHER>
>    connmand[16260]: eth0 {RX} 1627 packets 449831 bytes
>    connmand[16260]: eth0 {TX} 498 packets 117610 bytes
>    connmand[16260]: eth0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
>    connmand[16260]: eth0 {newlink} index 2 address 00:13:72:7A:7A:E7 mtu
>    1500
>    connmand[16260]: eth0 {newlink} index 2 operstate 6 <UP>
>    connmand[16260]: Create interface eth0 [ ethernet ]
>    connmand[16260]: Failed to store service information
>    connmand[16260]: open error No such file or directory for
>    /usr/local/var/lib/connman/stats/ethernet_0013727a7ae7_cable.data
>    connmand[16260]: eth0 {add} address 172.19.94.142/25 label eth0 family
>    2
>    connmand[16260]: eth0 {add} route 172.19.94.128 gw 0.0.0.0 scope 253
>    <LINK>
>    connmand[16260]: Adding DNS server 172.19.88.135
>    connmand[16260]: Removing DNS server 172.19.88.135
>    connmand[16260]: Adding DNS server 172.19.88.135
>    connmand[16260]: Adding DNS server 172.19.144.135
>    connmand[16260]: Removing DNS server 172.19.88.135
>    connmand[16260]: Removing DNS server 172.19.144.135
>    connmand[16260]: Adding DNS server 172.19.88.135
>    connmand[16260]: Adding DNS server 172.19.144.135
>    connmand[16260]: Adding DNS server 172.19.168.75
>    connmand[16260]: Setting domainname to india.tcs.com
>    connmand[16260]: Deleting host route failed (No such process)
>    connmand[16260]: Deleting host route failed (No such process)
>    connmand[16260]: Deleting host route failed (No such process)
>    connmand[16260]: Enabling DNS server 172.19.88.135
>    connmand[16260]: Enabling DNS server 172.19.144.135
>    connmand[16260]: Enabling DNS server 172.19.168.75
>    connmand[16260]: Enabling DNS server 172.19.88.135
>    connmand[16260]: Enabling DNS server 172.19.144.135
>    connmand[16260]: Enabling DNS server 172.19.168.75
>    connmand[16260]: eth0 {add} route 172.19.94.129 gw 0.0.0.0 scope 253
>    <LINK>
>    connmand[16260]: eth0 {add} route 172.19.88.135 gw 172.19.94.129 scope
>    0 <UNIVERSE>
>    connmand[16260]: eth0 {add} route 172.19.144.135 gw 172.19.94.129 scope
>    0 <UNIVERSE>
>    connmand[16260]: eth0 {add} route 172.19.168.75 gw 172.19.94.129 scope
>    0 <UNIVERSE>
>    connmand[16260]: eth0 {add} route 0.0.0.0 gw 172.19.94.129 scope 0
>    <UNIVERSE>
>
>    after removing the Bluetooth Dongle:
>    connmand[16260]: Failed to store information
>
>    after terminating manually :
>    ^Cconnmand[16260]: Terminating
>    connmand[16260]: Removing DNS server 172.19.88.135
>    connmand[16260]: Removing DNS server 172.19.144.135
>    connmand[16260]: Removing DNS server 172.19.168.75
>    connmand[16260]: Adding DNS server 172.19.144.135
>    connmand[16260]: Failed to store service information
>    connmand[16260]: Removing DNS server 172.19.144.135
>    connmand[16260]: Deleting host route failed (No such process)
>    connmand[16260]: Removing default gateway route failed (No such
>    process)
>    connmand[16260]: connman_inet_clear_address: Invalid argument
>    connmand[16260]: Failed to store service information
>    connmand[16260]: Failed to store information
>    connmand[16260]: Failed to store information
>    connmand[16260]: Remove interface eth0 [ ethernet ]
>    connmand[16260]: eth0 {remove} index 2
>    connmand[16260]: Exit

The only device ConnMan maintains is your local ethernet device.

>    Kindly let me know the steps to be followed to scan the bluetooth
>    devices from connman0.75.

Check if your phone is paired and if it's supports PAN. E.g. the iPhone
is such a device. list-services will produce something like this:

[ /profile/default/bluetooth_00025b0322a0_90840db2c704 ]
    IPv6.Configuration = { Method=off }
    AutoConnect = false
    Proxy.Configuration = { }
    Name = Car IT 009
    Nameservers = [ ]
    Provider = { }
    Favorite = true
    Domains.Configuration = [ ]
    State = idle
    Proxy = { }
    Nameservers.Configuration = [ ]
    LoginRequired = false
    IPv6 = { }
    Domains = [ ]
    Ethernet = { Method=auto }
    Security = [ ]
    IPv4.Configuration = { Method=dhcp }
    Type = bluetooth
    Immutable = false
    IPv4 = { }

cheers,
daniel
Dear Daniel,
Thanks for the query response. We followed your steps and we have further querie
s.
Issue:
Not able to successfully use the connman scripts to connect,disconnect,enable,di
sable for bluetooth.
Steps that are followed:
1) Pairing with the Bluetooth enabled device ( with PAN Support ) with Bluetooth
 UI tool is working fine.
2) Could you please let us know the steps to follow to pair using BlueZ 4.94 scr
ipts without using Bluetooth UI tool. Because when we are creating the device th
rough the BlueZ 4.94 scripts, list-devices shows the "paired" property value as
0.
3) When we paired the device with Bluetooth UI tool and executed the list servic
es from connman and the output as follows:
        [root@01HW087732 test]# ./list-services
            [ /profile/default/bluetooth_001f81000250_18e7f4f25a5e ]
                IPv6.Configuration = { }
                AutoConnect = false
                Proxy.Configuration = { }
                Name = Krishnaji's iPhone
                Nameservers = [ ]
                Provider = { }
                Favorite = false
                Domains.Configuration = [ ]
                State = idle
                Proxy = { }
                Nameservers.Configuration = [ ]
                LoginRequired = false
                IPv6 = { }
                Domains = [ ]
                Ethernet = { }
                Security = [ ]
                IPv4.Configuration = { }
                Type = bluetooth
                Immutable = false
                IPv4 = { }
        4)      test-connman sevice paths are as follows
        [root@01HW087732 test]# ./test-connman services
        * Wired                      { ethernet_00142245bd5b_cable }
          Krishnaji's iPhone         { bluetooth_001f81000250_18e7f4f25a5e }
        We are not able to connect to the Bluetooth service path and the output
as follows:
        [root@01HW087732 test]# ./test-connman connect bluetooth_001f81000250_18
e7f4f25a5e
        net.connman.Error.Failed: Input/output error
5) But we can Disable the bluetooth through test-connman disable.
        [root@01HW087732 test]# ./test-connman disable bluetooth
        ( This command successfully diasabled the bluetooth service path. )
   But after disabling, we tried to enable the bluetooth, the error is "Operatio
n Time Out"
        [root@01HW087732 test]# ./test-connman enable bluetooth
Thanks and Regards,
Sree Gowri.

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

References

   1. http://lists.connman.net/pipermail/connman/2009-January/000124.html
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to