linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Help, Connection Reset by peer.
@ 2006-02-04 17:26 ermal mino
  2006-02-07 11:07 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: ermal mino @ 2006-02-04 17:26 UTC (permalink / raw)
  To: bluez

Hi,
I know bluez supports max 7 rfcomm connections at one
time, and so it works.
I implemented obex push profile(a part of it) and i
use it to send files to cellphones over rfcomm.
The strange thing is that sometimes when more than one
connection are working at the same time without any
particular apparent reason fail and some of the
connections or both of them stay open.

i close these connections using "hcitool dc"

when i try to browse the services it gives me:
Failed to connect SDP server: Connection reset by peer

i also stop my application
i restart hcid,sdpd
but still the same error,
then i have to reboot to make it work again.

any idea about what can it be the reason?
it happens rarely,randomly without any particular
condition except of the fact that there are two open
connections working, and i use kernel 2.4.27 or 2.4.29

is there any way to reset the device without needing
to reboot the system?

I must say that the only thing my application does is,

while true
1-search for devices,
2-for every device 
     find the service channel
     start a new thread with the sendfile function
goto while

so i don't think my application is the problem.

Thanks in advance.


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Help, Connection Reset by peer.
  2006-02-04 17:26 [Bluez-devel] Help, Connection Reset by peer ermal mino
@ 2006-02-07 11:07 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2006-02-07 11:07 UTC (permalink / raw)
  To: bluez-devel

Hi,

> I know bluez supports max 7 rfcomm connections at one
> time, and so it works.
> I implemented obex push profile(a part of it) and i
> use it to send files to cellphones over rfcomm.
> The strange thing is that sometimes when more than one
> connection are working at the same time without any
> particular apparent reason fail and some of the
> connections or both of them stay open.
> 
> i close these connections using "hcitool dc"
> 
> when i try to browse the services it gives me:
> Failed to connect SDP server: Connection reset by peer
> 
> i also stop my application
> i restart hcid,sdpd
> but still the same error,
> then i have to reboot to make it work again.
> 
> any idea about what can it be the reason?
> it happens rarely,randomly without any particular
> condition except of the fact that there are two open
> connections working, and i use kernel 2.4.27 or 2.4.29
> 
> is there any way to reset the device without needing
> to reboot the system?
> 
> I must say that the only thing my application does is,
> 
> while true
> 1-search for devices,
> 2-for every device 
>      find the service channel
>      start a new thread with the sendfile function
> goto while
> 
> so i don't think my application is the problem.

I wouldn't bet on it, but this can also be a kernel problem. The old 2.4
kernel series is no longer actively maintained and you might consider
switching to the latest 2.6 kernel. And you run "hcidump -X -V" to see
what really happens.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2006-02-07 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-04 17:26 [Bluez-devel] Help, Connection Reset by peer ermal mino
2006-02-07 11:07 ` 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).