* bluetooth-agent @ 2009-10-28 11:55 Germán Pedrosa 2009-10-28 13:21 ` bluetooth-agent Claudio Takahasi 0 siblings, 1 reply; 8+ messages in thread From: Germán Pedrosa @ 2009-10-28 11:55 UTC (permalink / raw) To: linux-bluetooth Hi, I am newbie with bluez and I'm developing a research project where I need to use various Bluetooth USB-dongles. I need to deploy an automatic bluetooth pairing by command line (it is a project requirement), but the problem is that bluetooth-agent does only listen to hci0 device (I mean, if in any case I need to pair with any other dongle, bluetooth-agent does not reply). Is there any possibility where bluetooth-agent could respond to the other devices? The man page for bluetooth-agent is missing, and I have not found any way to get it. Thanks a lot and best regards. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bluetooth-agent 2009-10-28 11:55 bluetooth-agent Germán Pedrosa @ 2009-10-28 13:21 ` Claudio Takahasi 2009-10-28 14:43 ` bluetooth-agent Germán Pedrosa 0 siblings, 1 reply; 8+ messages in thread From: Claudio Takahasi @ 2009-10-28 13:21 UTC (permalink / raw) To: Germán Pedrosa; +Cc: linux-bluetooth On Wed, Oct 28, 2009 at 9:55 AM, Germán Pedrosa <german.pedrosa@fundacionctic.org> wrote: > Hi, > > I am newbie with bluez and I'm developing a research project where I > need to use various Bluetooth USB-dongles. > > I need to deploy an automatic bluetooth pairing by command line (it is a > project requirement), but the problem is that bluetooth-agent does only > listen to hci0 device (I mean, if in any case I need to pair with any > other dongle, bluetooth-agent does not reply). > > Is there any possibility where bluetooth-agent could respond to the > other devices? The man page for bluetooth-agent is missing, and I have > not found any way to get it. > > Thanks a lot and best regards. > > > > -- > 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 > Hi German, you can register the same bluetooth-agent to handle requests for all dongles. See simple-agent code under test directory, there is an example how to register agent. Basically you need to call: adapter0.RegisterAgent(path, "DisplayYesNo") adapter1.RegisterAgent(path, "DisplayYesNo") ... There isn't man pages for bluetooth-agent, see agent-api.txt under doc directory. Cheers, krau ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bluetooth-agent 2009-10-28 13:21 ` bluetooth-agent Claudio Takahasi @ 2009-10-28 14:43 ` Germán Pedrosa [not found] ` <4CAA0D07-C612-4AA6-A5D8-1143F8B252AF@gmail.com> 0 siblings, 1 reply; 8+ messages in thread From: Germán Pedrosa @ 2009-10-28 14:43 UTC (permalink / raw) To: Claudio Takahasi; +Cc: linux-bluetooth Dear Claudio, thanks for your quick answer. But I'm not using BlueZ's API from a C program. We're using Java, so I'd like to run bluetooh-agent directly from the shell. Is there any way to handle requests for all dongles using the command line tool? I tried using --path, but I didn't get any result. Probably because I'm not sure how the mapping between bluetooth and unix devices work. Thanks in advance. Best, El mié, 28-10-2009 a las 11:21 -0200, Claudio Takahasi escribió: > > Hi German, > > you can register the same bluetooth-agent to handle requests for all dongles. > > See simple-agent code under test directory, there is an example how to > register agent. > Basically you need to call: > adapter0.RegisterAgent(path, "DisplayYesNo") > adapter1.RegisterAgent(path, "DisplayYesNo") > ... > > There isn't man pages for bluetooth-agent, see agent-api.txt under doc > directory. > > Cheers, > krau On Wed, Oct 28, 2009 at 9:55 AM, Germán Pedrosa > <german.pedrosa@fundacionctic.org> wrote: > > Hi, > > > > I am newbie with bluez and I'm developing a research project where I > > need to use various Bluetooth USB-dongles. > > > > I need to deploy an automatic bluetooth pairing by command line (it is a > > project requirement), but the problem is that bluetooth-agent does only > > listen to hci0 device (I mean, if in any case I need to pair with any > > other dongle, bluetooth-agent does not reply). > > > > Is there any possibility where bluetooth-agent could respond to the > > other devices? The man page for bluetooth-agent is missing, and I have > > not found any way to get it. > > > > Thanks a lot and best regards. > > > > > > > > -- > > 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 > > -- Germán Pedrosa <german.pedrosa@fundacionctic.org> ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <4CAA0D07-C612-4AA6-A5D8-1143F8B252AF@gmail.com>]
* Re: bluetooth-agent [not found] ` <4CAA0D07-C612-4AA6-A5D8-1143F8B252AF@gmail.com> @ 2009-10-28 15:23 ` Germán Pedrosa 2009-10-28 15:37 ` bluetooth-agent alok barsode 0 siblings, 1 reply; 8+ messages in thread From: Germán Pedrosa @ 2009-10-28 15:23 UTC (permalink / raw) To: LORENZO ANTONIO BRITO MORALES; +Cc: linux-bluetooth I agree with your point that use JNI would be better than run shell commands from Java code. But here the scenario is totally different: in our architecture the Java components are not in charge to run such a kind of things; there are a set on bash scripts that run some previous deendencies of our system, such as bluetoth-agent. Therefore I'd need to replicate the behaviour explained by Claudio before in this thread, but instead of calling the native api, invoking the command line tool. Best regards, El mié, 28-10-2009 a las 09:09 -0600, LORENZO ANTONIO BRITO MORALES escribió: > im very shure, but the library from java dont support a lot of > commands... > Im developing a system based in bluez , i think is better to code > somethings in c, then use > JINI to use C in java.. i think it will be easier for you doing in > this way, than using a command line from java. > On 28/10/2009, at 08:43 a.m., Germán Pedrosa wrote: > > > Dear Claudio, > > > > thanks for your quick answer. > > > > But I'm not using BlueZ's API from a C program. We're using Java, so > > I'd > > like to run bluetooh-agent directly from the shell. Is there any way > > to > > handle requests for all dongles using the command line tool? > > > > I tried using --path, but I didn't get any result. Probably because > > I'm > > not sure how the mapping between bluetooth and unix devices work. > > > > Thanks in advance. > > > > Best, > > > > > > El mié, 28-10-2009 a las 11:21 -0200, Claudio Takahasi escribió: > >> > >> Hi German, > >> > >> you can register the same bluetooth-agent to handle requests for > >> all dongles. > >> > >> See simple-agent code under test directory, there is an example how > >> to > >> register agent. > >> Basically you need to call: > >> adapter0.RegisterAgent(path, "DisplayYesNo") > >> adapter1.RegisterAgent(path, "DisplayYesNo") > >> ... > >> > >> There isn't man pages for bluetooth-agent, see agent-api.txt under > >> doc > >> directory. > >> > >> Cheers, > >> krau > > > > On Wed, Oct 28, 2009 at 9:55 AM, Germán Pedrosa > >> <german.pedrosa@fundacionctic.org> wrote: > >>> Hi, > >>> > >>> I am newbie with bluez and I'm developing a research project where I > >>> need to use various Bluetooth USB-dongles. > >>> > >>> I need to deploy an automatic bluetooth pairing by command line > >>> (it is a > >>> project requirement), but the problem is that bluetooth-agent does > >>> only > >>> listen to hci0 device (I mean, if in any case I need to pair with > >>> any > >>> other dongle, bluetooth-agent does not reply). > >>> > >>> Is there any possibility where bluetooth-agent could respond to the > >>> other devices? The man page for bluetooth-agent is missing, and I > >>> have > >>> not found any way to get it. > >>> > >>> Thanks a lot and best regards. > >>> > >>> > >>> > >>> -- > >>> 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 > >>> > > -- > > Germán Pedrosa <german.pedrosa@fundacionctic.org> > > > > -- > > 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 > > LORENZO ANTONIO BRITO MORALES > lorenzo.brito@gmail.com > lorbrito.blogspot.com > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bluetooth-agent 2009-10-28 15:23 ` bluetooth-agent Germán Pedrosa @ 2009-10-28 15:37 ` alok barsode 2009-10-29 12:47 ` bluetooth-agent Germán Pedrosa 0 siblings, 1 reply; 8+ messages in thread From: alok barsode @ 2009-10-28 15:37 UTC (permalink / raw) To: Germán Pedrosa; +Cc: LORENZO ANTONIO BRITO MORALES, linux-bluetooth Hi German, On Wed, Oct 28, 2009 at 8:53 PM, Germán Pedrosa <german.pedrosa@fundacionctic.org> wrote: > I agree with your point that use JNI would be better than run shell > commands from Java code. > > But here the scenario is totally different: in our architecture the Java > components are not in charge to run such a kind of things; there are a > set on bash scripts that run some previous deendencies of our system, > such as bluetoth-agent. Are you refering to /test/agent program ? Can you register an agent per adapter ? just run ./adapter --agent "hciX" 0000 for every 'X' adapter. Or you can use the python script simple-agent for every adapter by running ./simple-agent hciX Hope this helps. Cheers, Alok. > > Therefore I'd need to replicate the behaviour explained by Claudio > before in this thread, but instead of calling the native api, invoking > the command line tool. > > Best regards, > > El mié, 28-10-2009 a las 09:09 -0600, LORENZO ANTONIO BRITO MORALES > escribió: >> im very shure, but the library from java dont support a lot of >> commands... >> Im developing a system based in bluez , i think is better to code >> somethings in c, then use >> JINI to use C in java.. i think it will be easier for you doing in >> this way, than using a command line from java. > >> On 28/10/2009, at 08:43 a.m., Germán Pedrosa wrote: >> >> > Dear Claudio, >> > >> > thanks for your quick answer. >> > >> > But I'm not using BlueZ's API from a C program. We're using Java, so >> > I'd >> > like to run bluetooh-agent directly from the shell. Is there any way >> > to >> > handle requests for all dongles using the command line tool? >> > >> > I tried using --path, but I didn't get any result. Probably because >> > I'm >> > not sure how the mapping between bluetooth and unix devices work. >> > >> > Thanks in advance. >> > >> > Best, >> > >> > >> > El mié, 28-10-2009 a las 11:21 -0200, Claudio Takahasi escribió: >> >> >> >> Hi German, >> >> >> >> you can register the same bluetooth-agent to handle requests for >> >> all dongles. >> >> >> >> See simple-agent code under test directory, there is an example how >> >> to >> >> register agent. >> >> Basically you need to call: >> >> adapter0.RegisterAgent(path, "DisplayYesNo") >> >> adapter1.RegisterAgent(path, "DisplayYesNo") >> >> ... >> >> >> >> There isn't man pages for bluetooth-agent, see agent-api.txt under >> >> doc >> >> directory. >> >> >> >> Cheers, >> >> krau >> > >> > On Wed, Oct 28, 2009 at 9:55 AM, Germán Pedrosa >> >> <german.pedrosa@fundacionctic.org> wrote: >> >>> Hi, >> >>> >> >>> I am newbie with bluez and I'm developing a research project where I >> >>> need to use various Bluetooth USB-dongles. >> >>> >> >>> I need to deploy an automatic bluetooth pairing by command line >> >>> (it is a >> >>> project requirement), but the problem is that bluetooth-agent does >> >>> only >> >>> listen to hci0 device (I mean, if in any case I need to pair with >> >>> any >> >>> other dongle, bluetooth-agent does not reply). >> >>> >> >>> Is there any possibility where bluetooth-agent could respond to the >> >>> other devices? The man page for bluetooth-agent is missing, and I >> >>> have >> >>> not found any way to get it. >> >>> >> >>> Thanks a lot and best regards. >> >>> >> >>> >> >>> >> >>> -- >> >>> 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 >> >>> >> > -- >> > Germán Pedrosa <german.pedrosa@fundacionctic.org> >> > >> > -- >> > 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 >> >> LORENZO ANTONIO BRITO MORALES >> lorenzo.brito@gmail.com >> lorbrito.blogspot.com >> > > -- > 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 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bluetooth-agent 2009-10-28 15:37 ` bluetooth-agent alok barsode @ 2009-10-29 12:47 ` Germán Pedrosa 2009-10-29 12:55 ` bluetooth-agent alok barsode 0 siblings, 1 reply; 8+ messages in thread From: Germán Pedrosa @ 2009-10-29 12:47 UTC (permalink / raw) To: alok barsode; +Cc: linux-bluetooth Hi Alok, Finally I decided to modify the python script, in order to add the PinCode as a parameter. Thank you very much. El mié, 28-10-2009 a las 21:07 +0530, alok barsode escribió: > Hi German, > > On Wed, Oct 28, 2009 at 8:53 PM, Germán Pedrosa > <german.pedrosa@fundacionctic.org> wrote: > > I agree with your point that use JNI would be better than run shell > > commands from Java code. > > > > But here the scenario is totally different: in our architecture the Java > > components are not in charge to run such a kind of things; there are a > > set on bash scripts that run some previous deendencies of our system, > > such as bluetoth-agent. > > Are you refering to /test/agent program ? > > Can you register an agent per adapter ? just run ./adapter --agent > "hciX" 0000 for every 'X' adapter. > > Or you can use the python script simple-agent for every adapter by > running ./simple-agent hciX > > Hope this helps. > > Cheers, > Alok. > > > > > Therefore I'd need to replicate the behaviour explained by Claudio > > before in this thread, but instead of calling the native api, invoking > > the command line tool. > > > > Best regards, > > > > El mié, 28-10-2009 a las 09:09 -0600, LORENZO ANTONIO BRITO MORALES > > escribió: > >> im very shure, but the library from java dont support a lot of > >> commands... > >> Im developing a system based in bluez , i think is better to code > >> somethings in c, then use > >> JINI to use C in java.. i think it will be easier for you doing in > >> this way, than using a command line from java. > > > >> On 28/10/2009, at 08:43 a.m., Germán Pedrosa wrote: > >> > >> > Dear Claudio, > >> > > >> > thanks for your quick answer. > >> > > >> > But I'm not using BlueZ's API from a C program. We're using Java, so > >> > I'd > >> > like to run bluetooh-agent directly from the shell. Is there any way > >> > to > >> > handle requests for all dongles using the command line tool? > >> > > >> > I tried using --path, but I didn't get any result. Probably because > >> > I'm > >> > not sure how the mapping between bluetooth and unix devices work. > >> > > >> > Thanks in advance. > >> > > >> > Best, > >> > > >> > > >> > El mié, 28-10-2009 a las 11:21 -0200, Claudio Takahasi escribió: > >> >> > >> >> Hi German, > >> >> > >> >> you can register the same bluetooth-agent to handle requests for > >> >> all dongles. > >> >> > >> >> See simple-agent code under test directory, there is an example how > >> >> to > >> >> register agent. > >> >> Basically you need to call: > >> >> adapter0.RegisterAgent(path, "DisplayYesNo") > >> >> adapter1.RegisterAgent(path, "DisplayYesNo") > >> >> ... > >> >> > >> >> There isn't man pages for bluetooth-agent, see agent-api.txt under > >> >> doc > >> >> directory. > >> >> > >> >> Cheers, > >> >> krau > >> > > >> > On Wed, Oct 28, 2009 at 9:55 AM, Germán Pedrosa > >> >> <german.pedrosa@fundacionctic.org> wrote: > >> >>> Hi, > >> >>> > >> >>> I am newbie with bluez and I'm developing a research project where I > >> >>> need to use various Bluetooth USB-dongles. > >> >>> > >> >>> I need to deploy an automatic bluetooth pairing by command line > >> >>> (it is a > >> >>> project requirement), but the problem is that bluetooth-agent does > >> >>> only > >> >>> listen to hci0 device (I mean, if in any case I need to pair with > >> >>> any > >> >>> other dongle, bluetooth-agent does not reply). > >> >>> > >> >>> Is there any possibility where bluetooth-agent could respond to the > >> >>> other devices? The man page for bluetooth-agent is missing, and I > >> >>> have > >> >>> not found any way to get it. > >> >>> > >> >>> Thanks a lot and best regards. > >> >>> > >> >>> > >> >>> > >> >>> -- > >> >>> 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 > >> >>> > >> > -- > >> > Germán Pedrosa <german.pedrosa@fundacionctic.org> > >> > > >> > -- > >> > 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 > >> > >> LORENZO ANTONIO BRITO MORALES > >> lorenzo.brito@gmail.com > >> lorbrito.blogspot.com > >> > > > > -- > > 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 > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bluetooth-agent 2009-10-29 12:47 ` bluetooth-agent Germán Pedrosa @ 2009-10-29 12:55 ` alok barsode 2009-10-29 13:09 ` bluetooth-agent Germán Pedrosa 0 siblings, 1 reply; 8+ messages in thread From: alok barsode @ 2009-10-29 12:55 UTC (permalink / raw) To: Germán Pedrosa; +Cc: linux-bluetooth Hi German, On Thu, Oct 29, 2009 at 6:17 PM, Germán Pedrosa <german.pedrosa@fundacionctic.org> wrote: > Hi Alok, > > Finally I decided to modify the python script, in order to add the > PinCode as a parameter. Why did u have to modify it? it prompts you for one during authentication. If u want to hardcode it, use test/agent program instead. > > Thank you very much. > Cheers, Alok. > El mié, 28-10-2009 a las 21:07 +0530, alok barsode escribió: >> Hi German, >> >> On Wed, Oct 28, 2009 at 8:53 PM, Germán Pedrosa >> <german.pedrosa@fundacionctic.org> wrote: >> > I agree with your point that use JNI would be better than run shell >> > commands from Java code. >> > >> > But here the scenario is totally different: in our architecture the Java >> > components are not in charge to run such a kind of things; there are a >> > set on bash scripts that run some previous deendencies of our system, >> > such as bluetoth-agent. >> >> Are you refering to /test/agent program ? >> >> Can you register an agent per adapter ? just run ./adapter --agent >> "hciX" 0000 for every 'X' adapter. >> >> Or you can use the python script simple-agent for every adapter by >> running ./simple-agent hciX >> >> Hope this helps. >> >> Cheers, >> Alok. >> >> > >> > Therefore I'd need to replicate the behaviour explained by Claudio >> > before in this thread, but instead of calling the native api, invoking >> > the command line tool. >> > >> > Best regards, >> > >> > El mié, 28-10-2009 a las 09:09 -0600, LORENZO ANTONIO BRITO MORALES >> > escribió: >> >> im very shure, but the library from java dont support a lot of >> >> commands... >> >> Im developing a system based in bluez , i think is better to code >> >> somethings in c, then use >> >> JINI to use C in java.. i think it will be easier for you doing in >> >> this way, than using a command line from java. >> > >> >> On 28/10/2009, at 08:43 a.m., Germán Pedrosa wrote: >> >> >> >> > Dear Claudio, >> >> > >> >> > thanks for your quick answer. >> >> > >> >> > But I'm not using BlueZ's API from a C program. We're using Java, so >> >> > I'd >> >> > like to run bluetooh-agent directly from the shell. Is there any way >> >> > to >> >> > handle requests for all dongles using the command line tool? >> >> > >> >> > I tried using --path, but I didn't get any result. Probably because >> >> > I'm >> >> > not sure how the mapping between bluetooth and unix devices work. >> >> > >> >> > Thanks in advance. >> >> > >> >> > Best, >> >> > >> >> > >> >> > El mié, 28-10-2009 a las 11:21 -0200, Claudio Takahasi escribió: >> >> >> >> >> >> Hi German, >> >> >> >> >> >> you can register the same bluetooth-agent to handle requests for >> >> >> all dongles. >> >> >> >> >> >> See simple-agent code under test directory, there is an example how >> >> >> to >> >> >> register agent. >> >> >> Basically you need to call: >> >> >> adapter0.RegisterAgent(path, "DisplayYesNo") >> >> >> adapter1.RegisterAgent(path, "DisplayYesNo") >> >> >> ... >> >> >> >> >> >> There isn't man pages for bluetooth-agent, see agent-api.txt under >> >> >> doc >> >> >> directory. >> >> >> >> >> >> Cheers, >> >> >> krau >> >> > >> >> > On Wed, Oct 28, 2009 at 9:55 AM, Germán Pedrosa >> >> >> <german.pedrosa@fundacionctic.org> wrote: >> >> >>> Hi, >> >> >>> >> >> >>> I am newbie with bluez and I'm developing a research project where I >> >> >>> need to use various Bluetooth USB-dongles. >> >> >>> >> >> >>> I need to deploy an automatic bluetooth pairing by command line >> >> >>> (it is a >> >> >>> project requirement), but the problem is that bluetooth-agent does >> >> >>> only >> >> >>> listen to hci0 device (I mean, if in any case I need to pair with >> >> >>> any >> >> >>> other dongle, bluetooth-agent does not reply). >> >> >>> >> >> >>> Is there any possibility where bluetooth-agent could respond to the >> >> >>> other devices? The man page for bluetooth-agent is missing, and I >> >> >>> have >> >> >>> not found any way to get it. >> >> >>> >> >> >>> Thanks a lot and best regards. >> >> >>> >> >> >>> >> >> >>> >> >> >>> -- >> >> >>> 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 >> >> >>> >> >> > -- >> >> > Germán Pedrosa <german.pedrosa@fundacionctic.org> >> >> > >> >> > -- >> >> > 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 >> >> >> >> LORENZO ANTONIO BRITO MORALES >> >> lorenzo.brito@gmail.com >> >> lorbrito.blogspot.com >> >> >> > >> > -- >> > 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 >> > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bluetooth-agent 2009-10-29 12:55 ` bluetooth-agent alok barsode @ 2009-10-29 13:09 ` Germán Pedrosa 0 siblings, 0 replies; 8+ messages in thread From: Germán Pedrosa @ 2009-10-29 13:09 UTC (permalink / raw) To: alok barsode; +Cc: linux-bluetooth Hi Alok, In your last mail, you said: >> Can you register an agent per adapter ? just run ./adapter --agent > >> "hciX" 0000 for every 'X' adapter. I didn't find the adapter program (I know, I've just seen that it is a mistake, it is the agent program), so I decided to modify the Python script. This solution should be better, I'll try it. Thanks a lot. El jue, 29-10-2009 a las 18:25 +0530, alok barsode escribió: > Hi German, > > On Thu, Oct 29, 2009 at 6:17 PM, Germán Pedrosa > <german.pedrosa@fundacionctic.org> wrote: > > Hi Alok, > > > > Finally I decided to modify the python script, in order to add the > > PinCode as a parameter. > > Why did u have to modify it? it prompts you for one during > authentication. If u want to hardcode it, use test/agent program > instead. > > > > Thank you very much. > > > > Cheers, > Alok. > > El mié, 28-10-2009 a las 21:07 +0530, alok barsode escribió: > >> Hi German, > >> > >> On Wed, Oct 28, 2009 at 8:53 PM, Germán Pedrosa > >> <german.pedrosa@fundacionctic.org> wrote: > >> > I agree with your point that use JNI would be better than run shell > >> > commands from Java code. > >> > > >> > But here the scenario is totally different: in our architecture the Java > >> > components are not in charge to run such a kind of things; there are a > >> > set on bash scripts that run some previous deendencies of our system, > >> > such as bluetoth-agent. > >> > >> Are you refering to /test/agent program ? > >> > >> Can you register an agent per adapter ? just run ./adapter --agent > >> "hciX" 0000 for every 'X' adapter. > >> > >> Or you can use the python script simple-agent for every adapter by > >> running ./simple-agent hciX > >> > >> Hope this helps. > >> > >> Cheers, > >> Alok. > >> > >> > > >> > Therefore I'd need to replicate the behaviour explained by Claudio > >> > before in this thread, but instead of calling the native api, invoking > >> > the command line tool. > >> > > >> > Best regards, > >> > > >> > El mié, 28-10-2009 a las 09:09 -0600, LORENZO ANTONIO BRITO MORALES > >> > escribió: > >> >> im very shure, but the library from java dont support a lot of > >> >> commands... > >> >> Im developing a system based in bluez , i think is better to code > >> >> somethings in c, then use > >> >> JINI to use C in java.. i think it will be easier for you doing in > >> >> this way, than using a command line from java. > >> > > >> >> On 28/10/2009, at 08:43 a.m., Germán Pedrosa wrote: > >> >> > >> >> > Dear Claudio, > >> >> > > >> >> > thanks for your quick answer. > >> >> > > >> >> > But I'm not using BlueZ's API from a C program. We're using Java, so > >> >> > I'd > >> >> > like to run bluetooh-agent directly from the shell. Is there any way > >> >> > to > >> >> > handle requests for all dongles using the command line tool? > >> >> > > >> >> > I tried using --path, but I didn't get any result. Probably because > >> >> > I'm > >> >> > not sure how the mapping between bluetooth and unix devices work. > >> >> > > >> >> > Thanks in advance. > >> >> > > >> >> > Best, > >> >> > > >> >> > > >> >> > El mié, 28-10-2009 a las 11:21 -0200, Claudio Takahasi escribió: > >> >> >> > >> >> >> Hi German, > >> >> >> > >> >> >> you can register the same bluetooth-agent to handle requests for > >> >> >> all dongles. > >> >> >> > >> >> >> See simple-agent code under test directory, there is an example how > >> >> >> to > >> >> >> register agent. > >> >> >> Basically you need to call: > >> >> >> adapter0.RegisterAgent(path, "DisplayYesNo") > >> >> >> adapter1.RegisterAgent(path, "DisplayYesNo") > >> >> >> ... > >> >> >> > >> >> >> There isn't man pages for bluetooth-agent, see agent-api.txt under > >> >> >> doc > >> >> >> directory. > >> >> >> > >> >> >> Cheers, > >> >> >> krau > >> >> > > >> >> > On Wed, Oct 28, 2009 at 9:55 AM, Germán Pedrosa > >> >> >> <german.pedrosa@fundacionctic.org> wrote: > >> >> >>> Hi, > >> >> >>> > >> >> >>> I am newbie with bluez and I'm developing a research project where I > >> >> >>> need to use various Bluetooth USB-dongles. > >> >> >>> > >> >> >>> I need to deploy an automatic bluetooth pairing by command line > >> >> >>> (it is a > >> >> >>> project requirement), but the problem is that bluetooth-agent does > >> >> >>> only > >> >> >>> listen to hci0 device (I mean, if in any case I need to pair with > >> >> >>> any > >> >> >>> other dongle, bluetooth-agent does not reply). > >> >> >>> > >> >> >>> Is there any possibility where bluetooth-agent could respond to the > >> >> >>> other devices? The man page for bluetooth-agent is missing, and I > >> >> >>> have > >> >> >>> not found any way to get it. > >> >> >>> > >> >> >>> Thanks a lot and best regards. > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> -- > >> >> >>> 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 > >> >> >>> > >> >> > -- > >> >> > Germán Pedrosa <german.pedrosa@fundacionctic.org> > >> >> > > >> >> > -- > >> >> > 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 > >> >> > >> >> LORENZO ANTONIO BRITO MORALES > >> >> lorenzo.brito@gmail.com > >> >> lorbrito.blogspot.com > >> >> > >> > > >> > -- > >> > 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 > >> > > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-10-29 13:09 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 11:55 bluetooth-agent Germán Pedrosa
2009-10-28 13:21 ` bluetooth-agent Claudio Takahasi
2009-10-28 14:43 ` bluetooth-agent Germán Pedrosa
[not found] ` <4CAA0D07-C612-4AA6-A5D8-1143F8B252AF@gmail.com>
2009-10-28 15:23 ` bluetooth-agent Germán Pedrosa
2009-10-28 15:37 ` bluetooth-agent alok barsode
2009-10-29 12:47 ` bluetooth-agent Germán Pedrosa
2009-10-29 12:55 ` bluetooth-agent alok barsode
2009-10-29 13:09 ` bluetooth-agent Germán Pedrosa
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox