Return-Path: Subject: Re: [Bluez-users] l2test error From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: <2de46576050110025214118b21@mail.gmail.com> References: <2de46576050110025214118b21@mail.gmail.com> Content-Type: text/plain Message-Id: <1105360635.8652.3.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 10 Jan 2005 13:37:15 +0100 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