* BT PAN Connection - NAP with PANU ? @ 2016-07-23 18:39 Ajay Parashar 2016-07-25 8:20 ` Luiz Augusto von Dentz 0 siblings, 1 reply; 12+ messages in thread From: Ajay Parashar @ 2016-07-23 18:39 UTC (permalink / raw) To: linux-bluetooth Hi, I am using bluez 5.35 and performing one POC with NAP and PANU communication. I want to connect PANU with NAP, for this i executed below tasks 1) Created a bridge successfully with Ubuntu 15.10. 2) Executed /test/test-nap script and i can see that NAP has established. 3) I am not getting how to start PANU (client) so that it can be connected with NAP (as defined in above step 2) and start communicating each other. I searched a lot but did not get any example, script or command that can let me know how to execute PANU. It will be great help if you please let me know how can i start PANU and communicate it with NAP. Regards Ajay ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BT PAN Connection - NAP with PANU ? 2016-07-23 18:39 BT PAN Connection - NAP with PANU ? Ajay Parashar @ 2016-07-25 8:20 ` Luiz Augusto von Dentz 2016-07-25 10:59 ` Ajay Parashar 2016-07-25 11:11 ` Ajay Parashar 0 siblings, 2 replies; 12+ messages in thread From: Luiz Augusto von Dentz @ 2016-07-25 8:20 UTC (permalink / raw) To: Ajay Parashar; +Cc: linux-bluetooth@vger.kernel.org Hi Ajay, On Sat, Jul 23, 2016 at 9:39 PM, Ajay Parashar <ajay.parasha@gmail.com> wrote: > Hi, > > I am using bluez 5.35 and performing one POC with NAP and PANU communication. > I want to connect PANU with NAP, for this i executed below tasks > > 1) Created a bridge successfully with Ubuntu 15.10. > 2) Executed /test/test-nap script and i can see that NAP has established. > > 3) I am not getting how to start PANU (client) so that it can be > connected with NAP (as defined in above step 2) and start > communicating each other. How about doc/network-api.txt: https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt e.g: org.bluez.Network1.Connect("panu") -- Luiz Augusto von Dentz ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BT PAN Connection - NAP with PANU ? 2016-07-25 8:20 ` Luiz Augusto von Dentz @ 2016-07-25 10:59 ` Ajay Parashar 2016-07-25 11:11 ` Ajay Parashar 1 sibling, 0 replies; 12+ messages in thread From: Ajay Parashar @ 2016-07-25 10:59 UTC (permalink / raw) To: Luiz Augusto von Dentz; +Cc: linux-bluetooth@vger.kernel.org Thanks for reply, I will try this connect API. In my case it need to be connected with NAP as PANU itself, so the parameter of connect api should states its own role or the role of server with whom it needs to be connected? These APIs are used in python examples, is there similar API available for C programming application also? Can i get similar C example ? On Mon, Jul 25, 2016 at 1:50 PM, Luiz Augusto von Dentz <luiz.dentz@gmail.com> wrote: > Hi Ajay, > > On Sat, Jul 23, 2016 at 9:39 PM, Ajay Parashar <ajay.parasha@gmail.com> wrote: >> Hi, >> >> I am using bluez 5.35 and performing one POC with NAP and PANU communication. >> I want to connect PANU with NAP, for this i executed below tasks >> >> 1) Created a bridge successfully with Ubuntu 15.10. >> 2) Executed /test/test-nap script and i can see that NAP has established. >> >> 3) I am not getting how to start PANU (client) so that it can be >> connected with NAP (as defined in above step 2) and start >> communicating each other. > > How about doc/network-api.txt: > > https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt > > e.g: org.bluez.Network1.Connect("panu") > > -- > Luiz Augusto von Dentz ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BT PAN Connection - NAP with PANU ? 2016-07-25 8:20 ` Luiz Augusto von Dentz 2016-07-25 10:59 ` Ajay Parashar @ 2016-07-25 11:11 ` Ajay Parashar 2016-07-25 11:36 ` Luiz Augusto von Dentz 1 sibling, 1 reply; 12+ messages in thread From: Ajay Parashar @ 2016-07-25 11:11 UTC (permalink / raw) To: Luiz Augusto von Dentz; +Cc: linux-bluetooth@vger.kernel.org > Hi, > > I am using bluez 5.35 and performing one POC with NAP and PANU communication. > I want to connect PANU with NAP, for this i executed below tasks > > 1) Created a bridge successfully with Ubuntu 15.10. > 2) Executed /test/test-nap script and i can see that NAP has established. > > 3) I am not getting how to start PANU (client) so that it can be > connected with NAP (as defined in above step 2) and start > communicating each other. How about doc/network-api.txt: https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt e.g: org.bluez.Network1.Connect("panu") ---------------------------------------------------------------------------------------------- My fault i did Top posting, so giving my reply again in right format. ---------------------------------------------------------------------------------------------------- Hi, Thanks for reply, I will try this connect API. In my case it need to be connected with NAP as PANU itself, so the parameter of connect api should states its own role or the role of server with whom it needs to be connected? These APIs are used in python examples, is there similar API available for C programming application also? Can i get similar C example ? On Mon, Jul 25, 2016 at 1:50 PM, Luiz Augusto von Dentz <luiz.dentz@gmail.com> wrote: > Hi Ajay, > > On Sat, Jul 23, 2016 at 9:39 PM, Ajay Parashar <ajay.parasha@gmail.com> wrote: >> Hi, >> >> I am using bluez 5.35 and performing one POC with NAP and PANU communication. >> I want to connect PANU with NAP, for this i executed below tasks >> >> 1) Created a bridge successfully with Ubuntu 15.10. >> 2) Executed /test/test-nap script and i can see that NAP has established. >> >> 3) I am not getting how to start PANU (client) so that it can be >> connected with NAP (as defined in above step 2) and start >> communicating each other. > > How about doc/network-api.txt: > > https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt > > e.g: org.bluez.Network1.Connect("panu") > > -- > Luiz Augusto von Dentz ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BT PAN Connection - NAP with PANU ? 2016-07-25 11:11 ` Ajay Parashar @ 2016-07-25 11:36 ` Luiz Augusto von Dentz 2016-07-26 5:41 ` Ajay Parashar 0 siblings, 1 reply; 12+ messages in thread From: Luiz Augusto von Dentz @ 2016-07-25 11:36 UTC (permalink / raw) To: Ajay Parashar; +Cc: linux-bluetooth@vger.kernel.org Hi Ajay, On Mon, Jul 25, 2016 at 2:11 PM, Ajay Parashar <ajay.parasha@gmail.com> wrote: >> Hi, >> >> I am using bluez 5.35 and performing one POC with NAP and PANU communication. >> I want to connect PANU with NAP, for this i executed below tasks >> >> 1) Created a bridge successfully with Ubuntu 15.10. >> 2) Executed /test/test-nap script and i can see that NAP has established. >> >> 3) I am not getting how to start PANU (client) so that it can be >> connected with NAP (as defined in above step 2) and start >> communicating each other. > > How about doc/network-api.txt: > > https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt > > e.g: org.bluez.Network1.Connect("panu") > > ---------------------------------------------------------------------------------------------- > My fault i did Top posting, so giving my reply again in right format. > ---------------------------------------------------------------------------------------------------- > Hi, > > Thanks for reply, I will try this connect API. > In my case it need to be connected with NAP as PANU itself, so the > parameter of connect api should states its own role or the role of > server with whom it needs to be connected? > > These APIs are used in python examples, is there similar API available > for C programming application also? > Can i get similar C example ? It is actually a D-Bus method call so any D-Bus binding would do it, we just did in python because it is much more convenient. -- Luiz Augusto von Dentz ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BT PAN Connection - NAP with PANU ? 2016-07-25 11:36 ` Luiz Augusto von Dentz @ 2016-07-26 5:41 ` Ajay Parashar [not found] ` <CANBo3n9=-VeFh2EAwm5EcSHgBuZUzFyJDwMZDR29wwKrmgKvVg@mail.gmail.com> 0 siblings, 1 reply; 12+ messages in thread From: Ajay Parashar @ 2016-07-26 5:41 UTC (permalink / raw) To: Luiz Augusto von Dentz; +Cc: linux-bluetooth@vger.kernel.org On Mon, Jul 25, 2016 at 5:06 PM, Luiz Augusto von Dentz <luiz.dentz@gmail.com> wrote: > Hi Ajay, > > On Mon, Jul 25, 2016 at 2:11 PM, Ajay Parashar <ajay.parasha@gmail.com> wrote: >>> Hi, >>> >>> I am using bluez 5.35 and performing one POC with NAP and PANU communication. >>> I want to connect PANU with NAP, for this i executed below tasks >>> >>> 1) Created a bridge successfully with Ubuntu 15.10. >>> 2) Executed /test/test-nap script and i can see that NAP has established. >>> >>> 3) I am not getting how to start PANU (client) so that it can be >>> connected with NAP (as defined in above step 2) and start >>> communicating each other. >> >> How about doc/network-api.txt: >> >> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt >> >> e.g: org.bluez.Network1.Connect("panu") >> >> ---------------------------------------------------------------------------------------------- >> My fault i did Top posting, so giving my reply again in right format. >> ---------------------------------------------------------------------------------------------------- >> Hi, >> >> Thanks for reply, I will try this connect API. >> In my case it need to be connected with NAP as PANU itself, so the >> parameter of connect api should states its own role or the role of >> server with whom it needs to be connected? >> >> These APIs are used in python examples, is there similar API available >> for C programming application also? >> Can i get similar C example ? > > It is actually a D-Bus method call so any D-Bus binding would do it, > we just did in python because it is much more convenient. > > -- > Luiz Augusto von Dentz HI Luiz, I will try with C language D-Bus binding. Prior to this I tried to execute bluez-5.34/test/test-network example and i m getting below error. 1) It sounds me that it is unable to found Bluetooth device, but my device is quite ready and working with other examples." 2) other reason could me i did not pair this with /test-nap example, should first i pair this test-network example device with test-nap example device ? Can you please let me know why i am getting this error or let me know some pointers from where i can debug this issue. Traceback (most recent call last): File "./test-network", line 41, in <module> device = bluezutils.find_device(args[0], options.dev_id) File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 30, in find_device adapter_pattern) File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 47, in find_device_in_objects raise Exception("Bluetooth device not found") Exception: Bluetooth device not found ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <CANBo3n9=-VeFh2EAwm5EcSHgBuZUzFyJDwMZDR29wwKrmgKvVg@mail.gmail.com>]
* Re: BT PAN Connection - NAP with PANU ? [not found] ` <CANBo3n9=-VeFh2EAwm5EcSHgBuZUzFyJDwMZDR29wwKrmgKvVg@mail.gmail.com> @ 2016-08-11 9:54 ` Ajay Parashar 2016-08-13 10:13 ` Ajay Parashar 0 siblings, 1 reply; 12+ messages in thread From: Ajay Parashar @ 2016-08-11 9:54 UTC (permalink / raw) To: bharat panda, Luiz Augusto von Dentz, linux-bluetooth On Tue, Jul 26, 2016 at 2:18 PM, bharat panda <bharat22bhusan@gmail.com> wrote: > Hi Ajay, > > On Tue, Jul 26, 2016 at 11:11 AM, Ajay Parashar <ajay.parasha@gmail.com> wrote: >> On Mon, Jul 25, 2016 at 5:06 PM, Luiz Augusto von Dentz >> <luiz.dentz@gmail.com> wrote: >>> Hi Ajay, >>> >>> On Mon, Jul 25, 2016 at 2:11 PM, Ajay Parashar <ajay.parasha@gmail.com> wrote: >>>>> Hi, >>>>> >>>>> I am using bluez 5.35 and performing one POC with NAP and PANU communication. >>>>> I want to connect PANU with NAP, for this i executed below tasks >>>>> >>>>> 1) Created a bridge successfully with Ubuntu 15.10. >>>>> 2) Executed /test/test-nap script and i can see that NAP has established. >>>>> >>>>> 3) I am not getting how to start PANU (client) so that it can be >>>>> connected with NAP (as defined in above step 2) and start >>>>> communicating each other. >>>> >>>> How about doc/network-api.txt: >>>> >>>> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt >>>> >>>> e.g: org.bluez.Network1.Connect("panu") >>>> >>>> ---------------------------------------------------------------------------------------------- >>>> My fault i did Top posting, so giving my reply again in right format. >>>> ---------------------------------------------------------------------------------------------------- >>>> Hi, >>>> >>>> Thanks for reply, I will try this connect API. >>>> In my case it need to be connected with NAP as PANU itself, so the >>>> parameter of connect api should states its own role or the role of >>>> server with whom it needs to be connected? >>>> >>>> These APIs are used in python examples, is there similar API available >>>> for C programming application also? >>>> Can i get similar C example ? >>> >>> It is actually a D-Bus method call so any D-Bus binding would do it, >>> we just did in python because it is much more convenient. >>> >>> -- >>> Luiz Augusto von Dentz >> >> HI Luiz, >> >> I will try with C language D-Bus binding. >> >> Prior to this I tried to execute bluez-5.34/test/test-network example >> and i m getting below error. >> 1) It sounds me that it is unable to found Bluetooth device, but my >> device is quite ready and working with other examples." >> 2) other reason could me i did not pair this with /test-nap example, >> should first i pair this test-network example device with test-nap >> example device ? >> >> Can you please let me know why i am getting this error or let me know >> some pointers from where i can debug this issue. >> >> Traceback (most recent call last): >> File "./test-network", line 41, in <module> >> device = bluezutils.find_device(args[0], options.dev_id) >> File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 30, >> in find_device >> adapter_pattern) >> File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 47, >> in find_device_in_objects >> raise Exception("Bluetooth device not found") >> Exception: Bluetooth device not found > The test-network script, tries to search for remote device in device > databases. So for this you first need to add the device in devices > list by successfully pairing to the device from bluetoothctl. If > bluetoothctl lists the remote device name for "devices" command, then > this will not show this error anymore. > Then you will encounter another error i.e "No such method "Connect" > with signature "s" exists on org.bluez.Network1 interface". I am not > sure how to get rid of this now. > >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > Regards > Bharat > > -- > Thanks and Regards > Bharat Bhusan Panda Hi, I reached till here and yes after executing test-network it gives error. ".UnknownMethod: Method "Connect" with signature "s" on interface "org.bluez.Network1" doesn't exist" Please let me know is there any way to resolve this issue? Pasting Error details as below: Traceback (most recent call last): File "./test-network", line 52, in <module> iface = network.Connect(service) File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__ return self._proxy_method(*args, **keywords) File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__ **keywords) File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with signature "s" on interface "org.bluez.Network1" doesn't exist Regards ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BT PAN Connection - NAP with PANU ? 2016-08-11 9:54 ` Ajay Parashar @ 2016-08-13 10:13 ` Ajay Parashar [not found] ` <CANBo3n_NVJCha8qLAan_9yEmk_9HPuaXK96MDT8S4DTqp=_y-w@mail.gmail.com> 0 siblings, 1 reply; 12+ messages in thread From: Ajay Parashar @ 2016-08-13 10:13 UTC (permalink / raw) To: bharat panda, Luiz Augusto von Dentz, linux-bluetooth [-- Attachment #1: Type: text/plain, Size: 5561 bytes --] On Thu, Aug 11, 2016 at 3:24 PM, Ajay Parashar <ajay.parasha@gmail.com> wrote: > On Tue, Jul 26, 2016 at 2:18 PM, bharat panda <bharat22bhusan@gmail.com> wrote: >> Hi Ajay, >> >> On Tue, Jul 26, 2016 at 11:11 AM, Ajay Parashar <ajay.parasha@gmail.com> wrote: >>> On Mon, Jul 25, 2016 at 5:06 PM, Luiz Augusto von Dentz >>> <luiz.dentz@gmail.com> wrote: >>>> Hi Ajay, >>>> >>>> On Mon, Jul 25, 2016 at 2:11 PM, Ajay Parashar <ajay.parasha@gmail.com> wrote: >>>>>> Hi, >>>>>> >>>>>> I am using bluez 5.35 and performing one POC with NAP and PANU communication. >>>>>> I want to connect PANU with NAP, for this i executed below tasks >>>>>> >>>>>> 1) Created a bridge successfully with Ubuntu 15.10. >>>>>> 2) Executed /test/test-nap script and i can see that NAP has established. >>>>>> >>>>>> 3) I am not getting how to start PANU (client) so that it can be >>>>>> connected with NAP (as defined in above step 2) and start >>>>>> communicating each other. >>>>> >>>>> How about doc/network-api.txt: >>>>> >>>>> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt >>>>> >>>>> e.g: org.bluez.Network1.Connect("panu") >>>>> >>>>> ---------------------------------------------------------------------------------------------- >>>>> My fault i did Top posting, so giving my reply again in right format. >>>>> ---------------------------------------------------------------------------------------------------- >>>>> Hi, >>>>> >>>>> Thanks for reply, I will try this connect API. >>>>> In my case it need to be connected with NAP as PANU itself, so the >>>>> parameter of connect api should states its own role or the role of >>>>> server with whom it needs to be connected? >>>>> >>>>> These APIs are used in python examples, is there similar API available >>>>> for C programming application also? >>>>> Can i get similar C example ? >>>> >>>> It is actually a D-Bus method call so any D-Bus binding would do it, >>>> we just did in python because it is much more convenient. >>>> >>>> -- >>>> Luiz Augusto von Dentz >>> >>> HI Luiz, >>> >>> I will try with C language D-Bus binding. >>> >>> Prior to this I tried to execute bluez-5.34/test/test-network example >>> and i m getting below error. >>> 1) It sounds me that it is unable to found Bluetooth device, but my >>> device is quite ready and working with other examples." >>> 2) other reason could me i did not pair this with /test-nap example, >>> should first i pair this test-network example device with test-nap >>> example device ? >>> >>> Can you please let me know why i am getting this error or let me know >>> some pointers from where i can debug this issue. >>> >>> Traceback (most recent call last): >>> File "./test-network", line 41, in <module> >>> device = bluezutils.find_device(args[0], options.dev_id) >>> File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 30, >>> in find_device >>> adapter_pattern) >>> File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 47, >>> in find_device_in_objects >>> raise Exception("Bluetooth device not found") >>> Exception: Bluetooth device not found >> The test-network script, tries to search for remote device in device >> databases. So for this you first need to add the device in devices >> list by successfully pairing to the device from bluetoothctl. If >> bluetoothctl lists the remote device name for "devices" command, then >> this will not show this error anymore. >> Then you will encounter another error i.e "No such method "Connect" >> with signature "s" exists on org.bluez.Network1 interface". I am not >> sure how to get rid of this now. >> >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> Regards >> Bharat >> >> -- >> Thanks and Regards >> Bharat Bhusan Panda > > > Hi, > > I reached till here and yes after executing test-network it gives > error. > ".UnknownMethod: Method "Connect" with > signature "s" on interface "org.bluez.Network1" doesn't exist" > > Please let me know is there any way to resolve this > issue? > Pasting Error details as below: > > Traceback (most recent call last): > File "./test-network", line 52, in <module> > iface = network.Connect(service) > File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__ > return self._proxy_method(*args, **keywords) > File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__ > **keywords) > File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line > 651, in call_blocking > message, timeout) > dbus.exceptions.DBusException: > org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with > signature "s" on interface "org.bluez.Network1" doesn't exist > > Regards Hi, I nail down the issue why it always says (UnknownMethod: Method "Connect" with signature "s" on interface "org.bluez.Network1" doesn't exist). While debugging more, it sounds that /org/bluez/hci1 provides only 8 interfaces.(org.bluez.Adapter1, CyclingSpeedManager1, HeartRateManager1, Media1, NetworkServer1, ThermometerManager1, DBus.Introspectable, DBus.properties). org.bluez.Network1 interface entry is missing from /org/bluez/hci1 ? For your reference i am attaching snapshot of my set up, please let me know how can i add org.bluez.Network1 interface with /org/bluez/hci ? Is there any configuration file that i need to change ? or any other way to achieve this goal? Regards Ajay [-- Attachment #2: org_bluez_hci1.png --] [-- Type: image/png, Size: 52698 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <CANBo3n_NVJCha8qLAan_9yEmk_9HPuaXK96MDT8S4DTqp=_y-w@mail.gmail.com>]
* Re: BT PAN Connection - NAP with PANU ? [not found] ` <CANBo3n_NVJCha8qLAan_9yEmk_9HPuaXK96MDT8S4DTqp=_y-w@mail.gmail.com> @ 2016-08-13 16:11 ` Ajay Parashar 2016-08-16 12:37 ` Ajay Parashar 0 siblings, 1 reply; 12+ messages in thread From: Ajay Parashar @ 2016-08-13 16:11 UTC (permalink / raw) To: bharat panda; +Cc: linux-bluetooth, Luiz Augusto von Dentz [-- Attachment #1: Type: text/plain, Size: 6946 bytes --] On Sat, Aug 13, 2016 at 4:19 PM, bharat panda <bharat22bhusan@gmail.com> wrote: > Hi Ajay, > > On 13 Aug 2016 15:43, "Ajay Parashar" <ajay.parasha@gmail.com> wrote: >> >> On Thu, Aug 11, 2016 at 3:24 PM, Ajay Parashar <ajay.parasha@gmail.com> >> wrote: >> > On Tue, Jul 26, 2016 at 2:18 PM, bharat panda <bharat22bhusan@gmail.com> >> > wrote: >> >> Hi Ajay, >> >> >> >> On Tue, Jul 26, 2016 at 11:11 AM, Ajay Parashar >> >> <ajay.parasha@gmail.com> wrote: >> >>> On Mon, Jul 25, 2016 at 5:06 PM, Luiz Augusto von Dentz >> >>> <luiz.dentz@gmail.com> wrote: >> >>>> Hi Ajay, >> >>>> >> >>>> On Mon, Jul 25, 2016 at 2:11 PM, Ajay Parashar >> >>>> <ajay.parasha@gmail.com> wrote: >> >>>>>> Hi, >> >>>>>> >> >>>>>> I am using bluez 5.35 and performing one POC with NAP and PANU >> >>>>>> communication. >> >>>>>> I want to connect PANU with NAP, for this i executed below tasks >> >>>>>> >> >>>>>> 1) Created a bridge successfully with Ubuntu 15.10. >> >>>>>> 2) Executed /test/test-nap script and i can see that NAP has >> >>>>>> established. >> >>>>>> >> >>>>>> 3) I am not getting how to start PANU (client) so that it can be >> >>>>>> connected with NAP (as defined in above step 2) and start >> >>>>>> communicating each other. >> >>>>> >> >>>>> How about doc/network-api.txt: >> >>>>> >> >>>>> >> >>>>> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt >> >>>>> >> >>>>> e.g: org.bluez.Network1.Connect("panu") >> >>>>> >> >>>>> >> >>>>> ---------------------------------------------------------------------------------------------- >> >>>>> My fault i did Top posting, so giving my reply again in right >> >>>>> format. >> >>>>> >> >>>>> ---------------------------------------------------------------------------------------------------- >> >>>>> Hi, >> >>>>> >> >>>>> Thanks for reply, I will try this connect API. >> >>>>> In my case it need to be connected with NAP as PANU itself, so the >> >>>>> parameter of connect api should states its own role or the role of >> >>>>> server with whom it needs to be connected? >> >>>>> >> >>>>> These APIs are used in python examples, is there similar API >> >>>>> available >> >>>>> for C programming application also? >> >>>>> Can i get similar C example ? >> >>>> >> >>>> It is actually a D-Bus method call so any D-Bus binding would do it, >> >>>> we just did in python because it is much more convenient. >> >>>> >> >>>> -- >> >>>> Luiz Augusto von Dentz >> >>> >> >>> HI Luiz, >> >>> >> >>> I will try with C language D-Bus binding. >> >>> >> >>> Prior to this I tried to execute bluez-5.34/test/test-network example >> >>> and i m getting below error. >> >>> 1) It sounds me that it is unable to found Bluetooth device, but my >> >>> device is quite ready and working with other examples." >> >>> 2) other reason could me i did not pair this with /test-nap example, >> >>> should first i pair this test-network example device with test-nap >> >>> example device ? >> >>> >> >>> Can you please let me know why i am getting this error or let me know >> >>> some pointers from where i can debug this issue. >> >>> >> >>> Traceback (most recent call last): >> >>> File "./test-network", line 41, in <module> >> >>> device = bluezutils.find_device(args[0], options.dev_id) >> >>> File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 30, >> >>> in find_device >> >>> adapter_pattern) >> >>> File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 47, >> >>> in find_device_in_objects >> >>> raise Exception("Bluetooth device not found") >> >>> Exception: Bluetooth device not found >> >> The test-network script, tries to search for remote device in device >> >> databases. So for this you first need to add the device in devices >> >> list by successfully pairing to the device from bluetoothctl. If >> >> bluetoothctl lists the remote device name for "devices" command, then >> >> this will not show this error anymore. >> >> Then you will encounter another error i.e "No such method "Connect" >> >> with signature "s" exists on org.bluez.Network1 interface". I am not >> >> sure how to get rid of this now. >> >> >> >>> -- >> >>> To unsubscribe from this list: send the line "unsubscribe >> >>> linux-bluetooth" in >> >>> the body of a message to majordomo@vger.kernel.org >> >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> >> >> Regards >> >> Bharat >> >> >> >> -- >> >> Thanks and Regards >> >> Bharat Bhusan Panda >> > >> > >> > Hi, >> > >> > I reached till here and yes after executing test-network it gives >> > error. >> > ".UnknownMethod: Method "Connect" with >> > signature "s" on interface "org.bluez.Network1" doesn't exist" >> > >> > Please let me know is there any way to resolve this >> > issue? >> > Pasting Error details as below: >> > >> > Traceback (most recent call last): >> > File "./test-network", line 52, in <module> >> > iface = network.Connect(service) >> > File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in >> > __call__ >> > return self._proxy_method(*args, **keywords) >> > File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in >> > __call__ >> > **keywords) >> > File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line >> > 651, in call_blocking >> > message, timeout) >> > dbus.exceptions.DBusException: >> > org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with >> > signature "s" on interface "org.bluez.Network1" doesn't exist >> > >> > Regards >> >> Hi, >> >> I nail down the issue why it always says (UnknownMethod: Method >> "Connect" with signature "s" on interface "org.bluez.Network1" doesn't >> exist). >> >> While debugging more, it sounds that /org/bluez/hci1 provides only 8 >> interfaces.(org.bluez.Adapter1, CyclingSpeedManager1, >> HeartRateManager1, Media1, NetworkServer1, ThermometerManager1, >> DBus.Introspectable, DBus.properties). >> >> org.bluez.Network1 interface entry is missing from /org/bluez/hci1 ? >> >> For your reference i am attaching snapshot of my set up, please let me >> know how can i add org.bluez.Network1 interface with /org/bluez/hci ? >> Is there any configuration file that i need to change ? or any other >> way to achieve this goal? > > Basically you need to add Network1 interface in bluetooth.conf file residing > /etc/dbus/system.d/bluetooth.conf > > And restart bluetoothd. > > Regards > Bharat >> >> Regards >> Ajay Hi Bharat, I hope this issue has resolve at your end? i did the change as suggested by you but it did not resolve the issue. For your reference i am attaching bluetooth.conf with my change at line number 21, can you please confirm is this the only change required ? or some more changes need to do ? I have 1 more question the interfaces name mentioned in bluetooth.conf does not match with my set up. Again i am attaching snapshot of my setup. Please let me know how this issue can be resolved at my end ? Regards Ajay [-- Attachment #2: org_bluez_hci1.png --] [-- Type: image/png, Size: 52698 bytes --] [-- Attachment #3: bluetooth.conf --] [-- Type: application/octet-stream, Size: 1679 bytes --] <!-- This configuration file specifies the required security policies for Bluetooth core daemon to work. --> <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> <busconfig> <!-- ../system.conf have denied everything, so we just punch some holes --> <policy user="root"> <allow own="org.bluez"/> <allow send_destination="org.bluez"/> <allow send_interface="org.bluez.Agent1"/> <allow send_interface="org.bluez.MediaEndpoint1"/> <allow send_interface="org.bluez.MediaPlayer1"/> <allow send_interface="org.bluez.ThermometerWatcher1"/> <allow send_interface="org.bluez.AlertAgent1"/> <allow send_interface="org.bluez.Profile1"/> <allow send_interface="org.bluez.HeartRateWatcher1"/> <allow send_interface="org.bluez.CyclingSpeedWatcher1"/> <allow send_interface="org.bluez.Network1"/> <allow send_interface="org.bluez.GattCharacteristic1"/> <allow send_interface="org.bluez.GattDescriptor1"/> <allow send_interface="org.freedesktop.DBus.ObjectManager"/> <allow send_interface="org.freedesktop.DBus.Properties"/> </policy> <!-- allow users of bluetooth group to communicate --> <policy group="bluetooth"> <allow send_destination="org.bluez"/> </policy> <policy at_console="true"> <allow send_destination="org.bluez"/> </policy> <!-- allow users of lp group (printing subsystem) to communicate with bluetoothd --> <policy group="lp"> <allow send_destination="org.bluez"/> </policy> <policy context="default"> <deny send_destination="org.bluez"/> </policy> </busconfig> ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BT PAN Connection - NAP with PANU ? 2016-08-13 16:11 ` Ajay Parashar @ 2016-08-16 12:37 ` Ajay Parashar 2016-08-16 13:11 ` Luiz Augusto von Dentz 0 siblings, 1 reply; 12+ messages in thread From: Ajay Parashar @ 2016-08-16 12:37 UTC (permalink / raw) To: bharat panda; +Cc: linux-bluetooth, Luiz Augusto von Dentz On Sat, Aug 13, 2016 at 9:41 PM, Ajay Parashar <ajay.parasha@gmail.com> wrote: > On Sat, Aug 13, 2016 at 4:19 PM, bharat panda <bharat22bhusan@gmail.com> wrote: >> Hi Ajay, >> >> On 13 Aug 2016 15:43, "Ajay Parashar" <ajay.parasha@gmail.com> wrote: >>> >>> On Thu, Aug 11, 2016 at 3:24 PM, Ajay Parashar <ajay.parasha@gmail.com> >>> wrote: >>> > On Tue, Jul 26, 2016 at 2:18 PM, bharat panda <bharat22bhusan@gmail.com> >>> > wrote: >>> >> Hi Ajay, >>> >> >>> >> On Tue, Jul 26, 2016 at 11:11 AM, Ajay Parashar >>> >> <ajay.parasha@gmail.com> wrote: >>> >>> On Mon, Jul 25, 2016 at 5:06 PM, Luiz Augusto von Dentz >>> >>> <luiz.dentz@gmail.com> wrote: >>> >>>> Hi Ajay, >>> >>>> >>> >>>> On Mon, Jul 25, 2016 at 2:11 PM, Ajay Parashar >>> >>>> <ajay.parasha@gmail.com> wrote: >>> >>>>>> Hi, >>> >>>>>> >>> >>>>>> I am using bluez 5.35 and performing one POC with NAP and PANU >>> >>>>>> communication. >>> >>>>>> I want to connect PANU with NAP, for this i executed below tasks >>> >>>>>> >>> >>>>>> 1) Created a bridge successfully with Ubuntu 15.10. >>> >>>>>> 2) Executed /test/test-nap script and i can see that NAP has >>> >>>>>> established. >>> >>>>>> >>> >>>>>> 3) I am not getting how to start PANU (client) so that it can be >>> >>>>>> connected with NAP (as defined in above step 2) and start >>> >>>>>> communicating each other. >>> >>>>> >>> >>>>> How about doc/network-api.txt: >>> >>>>> >>> >>>>> >>> >>>>> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/network-api.txt >>> >>>>> >>> >>>>> e.g: org.bluez.Network1.Connect("panu") >>> >>>>> >>> >>>>> >>> >>>>> ---------------------------------------------------------------------------------------------- >>> >>>>> My fault i did Top posting, so giving my reply again in right >>> >>>>> format. >>> >>>>> >>> >>>>> ---------------------------------------------------------------------------------------------------- >>> >>>>> Hi, >>> >>>>> >>> >>>>> Thanks for reply, I will try this connect API. >>> >>>>> In my case it need to be connected with NAP as PANU itself, so the >>> >>>>> parameter of connect api should states its own role or the role of >>> >>>>> server with whom it needs to be connected? >>> >>>>> >>> >>>>> These APIs are used in python examples, is there similar API >>> >>>>> available >>> >>>>> for C programming application also? >>> >>>>> Can i get similar C example ? >>> >>>> >>> >>>> It is actually a D-Bus method call so any D-Bus binding would do it, >>> >>>> we just did in python because it is much more convenient. >>> >>>> >>> >>>> -- >>> >>>> Luiz Augusto von Dentz >>> >>> >>> >>> HI Luiz, >>> >>> >>> >>> I will try with C language D-Bus binding. >>> >>> >>> >>> Prior to this I tried to execute bluez-5.34/test/test-network example >>> >>> and i m getting below error. >>> >>> 1) It sounds me that it is unable to found Bluetooth device, but my >>> >>> device is quite ready and working with other examples." >>> >>> 2) other reason could me i did not pair this with /test-nap example, >>> >>> should first i pair this test-network example device with test-nap >>> >>> example device ? >>> >>> >>> >>> Can you please let me know why i am getting this error or let me know >>> >>> some pointers from where i can debug this issue. >>> >>> >>> >>> Traceback (most recent call last): >>> >>> File "./test-network", line 41, in <module> >>> >>> device = bluezutils.find_device(args[0], options.dev_id) >>> >>> File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 30, >>> >>> in find_device >>> >>> adapter_pattern) >>> >>> File "/mnt/hgfs/shared_With_VM_Ubuntu/test/bluezutils.py", line 47, >>> >>> in find_device_in_objects >>> >>> raise Exception("Bluetooth device not found") >>> >>> Exception: Bluetooth device not found >>> >> The test-network script, tries to search for remote device in device >>> >> databases. So for this you first need to add the device in devices >>> >> list by successfully pairing to the device from bluetoothctl. If >>> >> bluetoothctl lists the remote device name for "devices" command, then >>> >> this will not show this error anymore. >>> >> Then you will encounter another error i.e "No such method "Connect" >>> >> with signature "s" exists on org.bluez.Network1 interface". I am not >>> >> sure how to get rid of this now. >>> >> >>> >>> -- >>> >>> To unsubscribe from this list: send the line "unsubscribe >>> >>> linux-bluetooth" in >>> >>> the body of a message to majordomo@vger.kernel.org >>> >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>> >> >>> >> Regards >>> >> Bharat >>> >> >>> >> -- >>> >> Thanks and Regards >>> >> Bharat Bhusan Panda >>> > >>> > >>> > Hi, >>> > >>> > I reached till here and yes after executing test-network it gives >>> > error. >>> > ".UnknownMethod: Method "Connect" with >>> > signature "s" on interface "org.bluez.Network1" doesn't exist" >>> > >>> > Please let me know is there any way to resolve this >>> > issue? >>> > Pasting Error details as below: >>> > >>> > Traceback (most recent call last): >>> > File "./test-network", line 52, in <module> >>> > iface = network.Connect(service) >>> > File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in >>> > __call__ >>> > return self._proxy_method(*args, **keywords) >>> > File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in >>> > __call__ >>> > **keywords) >>> > File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line >>> > 651, in call_blocking >>> > message, timeout) >>> > dbus.exceptions.DBusException: >>> > org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with >>> > signature "s" on interface "org.bluez.Network1" doesn't exist >>> > >>> > Regards >>> >>> Hi, >>> >>> I nail down the issue why it always says (UnknownMethod: Method >>> "Connect" with signature "s" on interface "org.bluez.Network1" doesn't >>> exist). >>> >>> While debugging more, it sounds that /org/bluez/hci1 provides only 8 >>> interfaces.(org.bluez.Adapter1, CyclingSpeedManager1, >>> HeartRateManager1, Media1, NetworkServer1, ThermometerManager1, >>> DBus.Introspectable, DBus.properties). >>> >>> org.bluez.Network1 interface entry is missing from /org/bluez/hci1 ? >>> >>> For your reference i am attaching snapshot of my set up, please let me >>> know how can i add org.bluez.Network1 interface with /org/bluez/hci ? >>> Is there any configuration file that i need to change ? or any other >>> way to achieve this goal? >> >> Basically you need to add Network1 interface in bluetooth.conf file residing >> /etc/dbus/system.d/bluetooth.conf >> >> And restart bluetoothd. >> >> Regards >> Bharat >>> >>> Regards >>> Ajay > > Hi Bharat, > > I hope this issue has resolve at your end? > > i did the change as suggested by you but it did not resolve the issue. > For your reference i am attaching bluetooth.conf with my change at > line number 21, can you please confirm is this the only change > required ? or some more changes need to do ? > > I have 1 more question the interfaces name mentioned in > bluetooth.conf does not match with my set up. Again i am attaching > snapshot of my setup. > > Please let me know how this issue can be resolved at my end ? > > Regards > Ajay Hi, Can you please provide update regarding this issue? How can i solve this , i am very much locked here. Regards Ajay ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BT PAN Connection - NAP with PANU ? 2016-08-16 12:37 ` Ajay Parashar @ 2016-08-16 13:11 ` Luiz Augusto von Dentz 2016-08-20 5:01 ` Ajay Parashar 0 siblings, 1 reply; 12+ messages in thread From: Luiz Augusto von Dentz @ 2016-08-16 13:11 UTC (permalink / raw) To: Ajay Parashar; +Cc: bharat panda, linux-bluetooth@vger.kernel.org Hi Ajay, >> Hi Bharat, >> >> I hope this issue has resolve at your end? >> >> i did the change as suggested by you but it did not resolve the issue. >> For your reference i am attaching bluetooth.conf with my change at >> line number 21, can you please confirm is this the only change >> required ? or some more changes need to do ? >> >> I have 1 more question the interfaces name mentioned in >> bluetooth.conf does not match with my set up. Again i am attaching >> snapshot of my setup. >> >> Please let me know how this issue can be resolved at my end ? >> >> Regards >> Ajay > > Hi, > > Can you please provide update regarding this issue? > How can i solve this , i am very much locked here. Usage: ./test-network <address> [service] There should be a device object for the given address and it must implement org.bluez.Network1 interface, if that doesn't exist than it is probably due to missing SDP record. -- Luiz Augusto von Dentz ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BT PAN Connection - NAP with PANU ? 2016-08-16 13:11 ` Luiz Augusto von Dentz @ 2016-08-20 5:01 ` Ajay Parashar 0 siblings, 0 replies; 12+ messages in thread From: Ajay Parashar @ 2016-08-20 5:01 UTC (permalink / raw) To: Luiz Augusto von Dentz; +Cc: bharat panda, linux-bluetooth@vger.kernel.org On Tue, Aug 16, 2016 at 6:41 PM, Luiz Augusto von Dentz <luiz.dentz@gmail.com> wrote: > Hi Ajay, > >>> Hi Bharat, >>> >>> I hope this issue has resolve at your end? >>> >>> i did the change as suggested by you but it did not resolve the issue. >>> For your reference i am attaching bluetooth.conf with my change at >>> line number 21, can you please confirm is this the only change >>> required ? or some more changes need to do ? >>> >>> I have 1 more question the interfaces name mentioned in >>> bluetooth.conf does not match with my set up. Again i am attaching >>> snapshot of my setup. >>> >>> Please let me know how this issue can be resolved at my end ? >>> >>> Regards >>> Ajay >> >> Hi, >> >> Can you please provide update regarding this issue? >> How can i solve this , i am very much locked here. > > Usage: ./test-network <address> [service] > > There should be a device object for the given address and it must > implement org.bluez.Network1 interface, if that doesn't exist than it > is probably due to missing SDP record. > > -- > Luiz Augusto von Dentz Hi Luiz, Thanks a lot for pointing the right direction. Issue was bad sequence of steps execution, i was doing pairing first and then executing NAP server. Now first i am executing NAP server and then pairing, so that both devices have knowledge of NAP service. I confirmed that this issue has resolved @ my end. Thanks & Regards Ajay Parashar ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2016-08-20 5:01 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-07-23 18:39 BT PAN Connection - NAP with PANU ? Ajay Parashar 2016-07-25 8:20 ` Luiz Augusto von Dentz 2016-07-25 10:59 ` Ajay Parashar 2016-07-25 11:11 ` Ajay Parashar 2016-07-25 11:36 ` Luiz Augusto von Dentz 2016-07-26 5:41 ` Ajay Parashar [not found] ` <CANBo3n9=-VeFh2EAwm5EcSHgBuZUzFyJDwMZDR29wwKrmgKvVg@mail.gmail.com> 2016-08-11 9:54 ` Ajay Parashar 2016-08-13 10:13 ` Ajay Parashar [not found] ` <CANBo3n_NVJCha8qLAan_9yEmk_9HPuaXK96MDT8S4DTqp=_y-w@mail.gmail.com> 2016-08-13 16:11 ` Ajay Parashar 2016-08-16 12:37 ` Ajay Parashar 2016-08-16 13:11 ` Luiz Augusto von Dentz 2016-08-20 5:01 ` Ajay Parashar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).