linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Connections
@ 2006-06-07 21:00 markusv
  2006-06-07 21:11 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: markusv @ 2006-06-07 21:00 UTC (permalink / raw)
  To: bluez-devel

hi
I have created a bluetooth service and registeret it. Doing sdptool browse
local shows me my service. So the registering should have gone fine. But I
wonder how i listen for connections to that service? How do I receive
connections made to my service from other bluetooth devices in my C
program. Any code examples on this?

thanks
Markus






_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-devel] Connections
  2006-06-07 21:00 [Bluez-devel] Connections markusv
@ 2006-06-07 21:11 ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2006-06-07 21:11 UTC (permalink / raw)
  To: BlueZ development

Hi Markus,

> I have created a bluetooth service and registeret it. Doing sdptool browse
> local shows me my service. So the registering should have gone fine. But I
> wonder how i listen for connections to that service? How do I receive
> connections made to my service from other bluetooth devices in my C
> program. Any code examples on this?

the bluez-utils source code is full with examples (check rctest.c).

Regards

Marcel




_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bluez-devel] connections
@ 2006-11-28 14:35 mark bernard
  2006-11-28 14:57 ` Peter Wippich
  0 siblings, 1 reply; 5+ messages in thread
From: mark bernard @ 2006-11-28 14:35 UTC (permalink / raw)
  To: bluez-devel

hi,
im trying to connect 7 devices on bluetooth, but i get stuck at 3 devices.
the 4th device refuses to connect.
http://by108fd.bay108.hotmail.msn.com/cgi-bin/compose?&curmbox=00000000%2d0000%2d0000%2d0000%2d000000000001&a=d56e940c65c89244b0be101733a1c79516289b6786b97bffd0ecea592e886438#
Verzenden
the message i got from hcidump is:

>ACL data: handle 42 flags 0x02 dlen 12
   L2CAP(s): Connect req: psm 4097 scid 0x0040
< ACL data: handle 42 flags 0x02 dlen 16
   L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 4 status 0
         Connection refused - no resources available

then it starts disconnecting this device.
connection 3 devices works good, and i can send messages to every of them. 
but connecting 4 or more will refuse the connection. "no resources 
available", what does that mean? how can i fix that?


Gr,
mark

_________________________________________________________________
Typ je SMS sneller binnen Messenger 
http://join.msn.com/mobile-Messaging/overview


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-devel] connections
  2006-11-28 14:35 [Bluez-devel] connections mark bernard
@ 2006-11-28 14:57 ` Peter Wippich
  2006-12-07 10:48   ` Steven Singer
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Wippich @ 2006-11-28 14:57 UTC (permalink / raw)
  To: BlueZ development



Hi Mark, 


On Tue, 28 Nov 2006, mark bernard wrote:

> hi,
> im trying to connect 7 devices on bluetooth, but i get stuck at 3 devices.
> the 4th device refuses to connect.
> http://by108fd.bay108.hotmail.msn.com/cgi-bin/compose?&curmbox=00000000%2d0000%2d0000%2d0000%2d000000000001&a=d56e940c65c89244b0be101733a1c79516289b6786b97bffd0ecea592e886438#
> Verzenden
> the message i got from hcidump is:

No quite sure but it is a problem with your BT chip. It only allows 3 
connection. If it is a CSR chip may be soembody has configured it to allow 
only 3 ACL connections. You can find out using bccmd. There is a PS-key 
named something like MAX_ACL_CONNECTIONS.

Ciao, 

Peter  



|       Peter Wippich                   Voice: +49 30 46776411          |
|       G&W Instruments GmbH            fax:   +49 30 46776419          |
|       Gustav-Meyer-Allee 25, Geb. 12  Email: pewi@gw-instruments.de   |
|       D-13355 Berlin  / Germany                                       |


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-devel] connections
  2006-11-28 14:57 ` Peter Wippich
@ 2006-12-07 10:48   ` Steven Singer
  0 siblings, 0 replies; 5+ messages in thread
From: Steven Singer @ 2006-12-07 10:48 UTC (permalink / raw)
  To: BlueZ development

Peter Wippich wrote:
> No quite sure but it is a problem with your BT chip. It only allows 3 
> connection. If it is a CSR chip may be soembody has configured it to allow 
> only 3 ACL connections. You can find out using bccmd. There is a PS-key 
> named something like MAX_ACL_CONNECTIONS.

No. It's not a baseband issue. If it were, the connection would be
rejected at the HCI level. Instead, the connection is being rejected at
the L2CAP level indicating that the baseband was happy to accept the
connection, but something that's nominally in the host has rejected it.

	- Steven
-- 


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-07 10:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-28 14:35 [Bluez-devel] connections mark bernard
2006-11-28 14:57 ` Peter Wippich
2006-12-07 10:48   ` Steven Singer
  -- strict thread matches above, loose matches on Subject: below --
2006-06-07 21:00 [Bluez-devel] Connections markusv
2006-06-07 21:11 ` Marcel Holtmann

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).