public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] l2test error
@ 2005-01-10 10:52 Manjunath Prabhu
  2005-01-10 12:37 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Manjunath Prabhu @ 2005-01-10 10:52 UTC (permalink / raw)
  To: bluez-users

Hi marcel,
i am running the l2test with some modifications to the code, the
connection reset  i am getting after 512 packets is because of this
new code,

You suggested that it could be an endian bug and asked me to check the
hardware.
so this is not the problem.....I have added a new function to measure
RSSI values along with the throughput l2test measures. The RSSI part
of the code is the same as used in 'hcitool'. The 'connection reset by
peer' is because on the receiver side i see another error in this RSSI
fuction, which resets the connection.

the error i get is ,
"HCI device open failed:Too many open files"...

This is because to get dd i use hci_open_dev (dev_id) fuction, and at
the end of the function i close(dd) or hci_close_dev(dd)....but i
still get the same error. After 512 packets i don't get the dev_id or
dd and hence the error.
Hope you can help me.

Thanx,
regards,
Manjunath


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] l2test error
  2005-01-10 10:52 [Bluez-users] l2test error Manjunath Prabhu
@ 2005-01-10 12:37 ` Marcel Holtmann
  2005-01-10 13:16   ` Manjunath Prabhu
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2005-01-10 12:37 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Manjunath,

> i am running the l2test with some modifications to the code, the
> connection reset  i am getting after 512 packets is because of this
> new code,
> 
> You suggested that it could be an endian bug and asked me to check the
> hardware.
> so this is not the problem.....I have added a new function to measure
> RSSI values along with the throughput l2test measures. The RSSI part
> of the code is the same as used in 'hcitool'. The 'connection reset by
> peer' is because on the receiver side i see another error in this RSSI
> fuction, which resets the connection.
> 
> the error i get is ,
> "HCI device open failed:Too many open files"...
> 
> This is because to get dd i use hci_open_dev (dev_id) fuction, and at
> the end of the function i close(dd) or hci_close_dev(dd)....but i
> still get the same error. After 512 packets i don't get the dev_id or
> dd and hence the error.

why don't you open dd once at the beginning of your program and use it
every time? On exit you close dd. Show me your code.

Regards

Marcel




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] l2test error
  2005-01-10 12:37 ` Marcel Holtmann
@ 2005-01-10 13:16   ` Manjunath Prabhu
  0 siblings, 0 replies; 3+ messages in thread
From: Manjunath Prabhu @ 2005-01-10 13:16 UTC (permalink / raw)
  To: bluez-users

Hi marcel,
i found the bug, in my function i was returning the rssi value(return
rp.rssi) before i did a close(dd)........i just swaped the 2 lines and
the code works fine.......

when u pumped 5000 packets continously .....didn't the connection
close down after some 2000 odd packets ......i found that it does
....must be because of hci buffer getting full and some kind of queue
or buffer overflow??

Regards,
Manjunath

On Mon, 10 Jan 2005 13:37:15 +0100, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Manjunath,
> 
> > i am running the l2test with some modifications to the code, the
> > connection reset  i am getting after 512 packets is because of this
> > new code,
> >
> > You suggested that it could be an endian bug and asked me to check the
> > hardware.
> > so this is not the problem.....I have added a new function to measure
> > RSSI values along with the throughput l2test measures. The RSSI part
> > of the code is the same as used in 'hcitool'. The 'connection reset by
> > peer' is because on the receiver side i see another error in this RSSI
> > fuction, which resets the connection.
> >
> > the error i get is ,
> > "HCI device open failed:Too many open files"...
> >
> > This is because to get dd i use hci_open_dev (dev_id) fuction, and at
> > the end of the function i close(dd) or hci_close_dev(dd)....but i
> > still get the same error. After 512 packets i don't get the dev_id or
> > dd and hence the error.
> 
> why don't you open dd once at the beginning of your program and use it
> every time? On exit you close dd. Show me your code.
> 
> Regards
> 
> Marcel
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2005-01-10 13:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-10 10:52 [Bluez-users] l2test error Manjunath Prabhu
2005-01-10 12:37 ` Marcel Holtmann
2005-01-10 13:16   ` Manjunath Prabhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox