On Mon, Jul 25, 2016 at 5:06 PM, Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: > Hi Ajay, > > On Mon, Jul 25, 2016 at 2:11 PM, Ajay Parashar <ajay.parasha@xxxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html