* [Bluez-devel] Obex handle? @ 2007-07-18 10:32 Fernando Unzu 2007-07-19 4:39 ` Vikas Sinha 0 siblings, 1 reply; 6+ messages in thread From: Fernando Unzu @ 2007-07-18 10:32 UTC (permalink / raw) To: bluez-devel Hello, I have a question about how to select which device I want to use with my program. I have an application that sends some content t another bluetooth devices, and i realize the transfer with Obex functions. But if I have two dongles in my PC, I would can to select between one and other. This is what i don't know how to do. The handle is created with Obex_Init, and I think it is in that moment when I select one of the dongles, but I don't know how. Or there is another way to do it?? Or it has to be done in another moment with another function?? I have eard that DBus solves this problems...; anybody can help me, please? P.D.: Although anybody gives me a DBus solution, I'm interesting in the Obex solution too. Thank you, Fernando Unzu ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] Obex handle? 2007-07-18 10:32 [Bluez-devel] Obex handle? Fernando Unzu @ 2007-07-19 4:39 ` Vikas Sinha 2007-07-19 4:44 ` [Bluez-devel] Inquiry Response tjoconno 2007-07-19 10:16 ` [Bluez-devel] Obex handle? Fernando Unzu 0 siblings, 2 replies; 6+ messages in thread From: Vikas Sinha @ 2007-07-19 4:39 UTC (permalink / raw) To: BlueZ development [-- Attachment #1.1: Type: text/plain, Size: 1652 bytes --] Go and check mailing list .. Few months ago someone asked same question. http://blog.gmane.org/gmane.linux.bluez.devel/month=20070501 well i don't know about DBUS but with obex and hci layer I have controlled multiple Dongles. You can find solution here On 7/18/07, Fernando Unzu <fernando@bluexare.org> wrote: > > Hello, > > I have a question about how to select which device I want to use with my > program. > > I have an application that sends some content t another bluetooth devices, > and > i realize the transfer with Obex functions. > > But if I have two dongles in my PC, I would can to select between one and > other. > This is what i don't know how to do. > > The handle is created with Obex_Init, and I think it is in that moment > when I > select one of the dongles, but I don't know how. > > Or there is another way to do it?? Or it has to be done in another moment > with > another function?? > > I have eard that DBus solves this problems...; anybody can help me, > please? > > P.D.: Although anybody gives me a DBus solution, I'm interesting in the > Obex > solution too. > > Thank you, > Fernando Unzu > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Bluez-devel mailing list > Bluez-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-devel > -- Impossible itself contain I M Possible Vikas [-- Attachment #1.2: Type: text/html, Size: 2589 bytes --] [-- Attachment #2: Type: text/plain, Size: 286 bytes --] ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ [-- Attachment #3: Type: text/plain, Size: 164 bytes --] _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] Inquiry Response 2007-07-19 4:39 ` Vikas Sinha @ 2007-07-19 4:44 ` tjoconno 2007-07-19 10:16 ` [Bluez-devel] Obex handle? Fernando Unzu 1 sibling, 0 replies; 6+ messages in thread From: tjoconno @ 2007-07-19 4:44 UTC (permalink / raw) To: bluez-devel Hello, I am trying to write a small snippet of code that sends hci inquiry responses. I cannot find a function in hci.c that provides this capability. Currently, where is the code located for sending hci inquiry responses and extended inquiry responses? Basically, where is the code that executes on the client once a server has initated an hci_inquiry()? Thank you so much for your assistance in advance. TJ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] Obex handle? 2007-07-19 4:39 ` Vikas Sinha 2007-07-19 4:44 ` [Bluez-devel] Inquiry Response tjoconno @ 2007-07-19 10:16 ` Fernando Unzu 2007-07-19 13:11 ` Manuel Naranjo 1 sibling, 1 reply; 6+ messages in thread From: Fernando Unzu @ 2007-07-19 10:16 UTC (permalink / raw) To: BlueZ development Thanks for your response, Vikas. first...? There is any problem with the mailing list in sourceforge?? I can't do any search... Afortunately, you give me a link within I can search. Thanks once. But this issue talks about how to know if a dongle is free to use it or not= ... This can help me, now what I know, but my question is where I select which = dongle will be used with OBEX... So... ,at one moment, I know the dongle I must to use is the "dev_id 0", ok= ; = but..., how I say to OBEX "use the dongle "dev_id 0"". In whic method I can select this option?? In HCI is the addr.hci_dev, and in OBEX...? handle.dev_id???? I'm not sure I'm explaning well, but I hope you understand me a little. Thans a lot, Fernando Unzu El Jueves, 19 de Julio de 2007 06:39, Vikas Sinha escribi=F3: > Go and check mailing list .. Few months ago someone asked same question. > http://blog.gmane.org/gmane.linux.bluez.devel/month=3D20070501 > > > well i don't know about DBUS but with obex and hci layer I have controlled > multiple Dongles. > You can find solution here > > On 7/18/07, Fernando Unzu <fernando@bluexare.org> wrote: > > Hello, > > > > I have a question about how to select which device I want to use with my > > program. > > > > I have an application that sends some content t another bluetooth > > devices, and > > i realize the transfer with Obex functions. > > > > But if I have two dongles in my PC, I would can to select between one a= nd > > other. > > This is what i don't know how to do. > > > > The handle is created with Obex_Init, and I think it is in that moment > > when I > > select one of the dongles, but I don't know how. > > > > Or there is another way to do it?? Or it has to be done in another mome= nt > > with > > another function?? > > > > I have eard that DBus solves this problems...; anybody can help me, > > please? > > > > P.D.: Although anybody gives me a DBus solution, I'm interesting in the > > Obex > > solution too. > > > > Thank you, > > Fernando Unzu > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Bluez-devel mailing list > > Bluez-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/bluez-devel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] Obex handle? 2007-07-19 10:16 ` [Bluez-devel] Obex handle? Fernando Unzu @ 2007-07-19 13:11 ` Manuel Naranjo 2007-07-23 11:06 ` Fernando Unzu 0 siblings, 1 reply; 6+ messages in thread From: Manuel Naranjo @ 2007-07-19 13:11 UTC (permalink / raw) To: BlueZ development Fernando, This question should be asked in the openobex mailing list but who cares. I had patched the obexftp app to be able to use more than one dongle, here's the code that handle that: if (!src) { bacpy(&src_addr, BDADDR_ANY); else if (!strncmp(src, "hci", 3)) { hci_devba(atoi(src + 3), &src_addr); } else { str2ba(src, &src_addr); } if (!device) { ret = -EINVAL; break; } (void) str2ba(devicedup, &bdaddr); free(devicedup); ret = BtOBEX_TransportConnect(cli->obexhandle, &src_addr, &bdaddr, (uint8_t)port); > Thanks for your response, Vikas. > > first...? There is any problem with the mailing list in sourceforge?? > I can't do any search... > > Afortunately, you give me a link within I can search. > Thanks once. > > But this issue talks about how to know if a dongle is free to use it or not... > > This can help me, now what I know, but my question is where I select which > dongle will be used with OBEX... > > So... ,at one moment, I know the dongle I must to use is the "dev_id 0", ok; > but..., how I say to OBEX "use the dongle "dev_id 0"". > In whic method I can select this option?? > > In HCI is the addr.hci_dev, and in OBEX...? handle.dev_id???? > > I'm not sure I'm explaning well, but I hope you understand me a little. > > Thans a lot, > Fernando Un ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] Obex handle? 2007-07-19 13:11 ` Manuel Naranjo @ 2007-07-23 11:06 ` Fernando Unzu 0 siblings, 0 replies; 6+ messages in thread From: Fernando Unzu @ 2007-07-23 11:06 UTC (permalink / raw) To: BlueZ development Thanks Manuel for your response. It has helped me enough for my issue. But in the business we are interested into migrate to DBUS functions... So, if anybody can help me where I can find some information about DBUS API= or = similar, please, tell us. Thank you, Manuel, once, for your response. A clearly and simple solution. Fernando Unzu El Jueves, 19 de Julio de 2007 15:11, Manuel Naranjo escribi=F3: > Fernando, > This question should be asked in the openobex mailing list but who cares. > I had patched the obexftp app to be able to use more than one dongle, > here's the code that handle that: > if (!src) { > bacpy(&src_addr, BDADDR_ANY); > else if (!strncmp(src, "hci", 3)) { > hci_devba(atoi(src + 3), &src_addr); > } > else { > str2ba(src, &src_addr); > } > if (!device) { > ret =3D -EINVAL; > break; > } > > (void) str2ba(devicedup, &bdaddr); > free(devicedup); > ret =3D BtOBEX_TransportConnect(cli->obexhandle, &src_addr, &bdaddr, > (uint8_t)port); > > > Thanks for your response, Vikas. > > > > first...? There is any problem with the mailing list in sourceforge?? > > I can't do any search... > > > > Afortunately, you give me a link within I can search. > > Thanks once. > > > > But this issue talks about how to know if a dongle is free to use it or > > not... > > > > This can help me, now what I know, but my question is where I select > > which dongle will be used with OBEX... > > > > So... ,at one moment, I know the dongle I must to use is the "dev_id 0", > > ok; but..., how I say to OBEX "use the dongle "dev_id 0"". > > In whic method I can select this option?? > > > > In HCI is the addr.hci_dev, and in OBEX...? handle.dev_id???? > > > > I'm not sure I'm explaning well, but I hope you understand me a little. > > > > Thans a lot, > > Fernando Un > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Bluez-devel mailing list > Bluez-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-07-23 11:06 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-07-18 10:32 [Bluez-devel] Obex handle? Fernando Unzu 2007-07-19 4:39 ` Vikas Sinha 2007-07-19 4:44 ` [Bluez-devel] Inquiry Response tjoconno 2007-07-19 10:16 ` [Bluez-devel] Obex handle? Fernando Unzu 2007-07-19 13:11 ` Manuel Naranjo 2007-07-23 11:06 ` Fernando Unzu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox