From owner-freebsd-wireless@FreeBSD.ORG Tue Oct 15 11:16:24 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EF980D8; Tue, 15 Oct 2013 11:16:23 +0000 (UTC) (envelope-from ericturgeon.bsd@gmail.com) Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [IPv6:2607:f8b0:400e:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C226725EE; Tue, 15 Oct 2013 11:16:23 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id bj1so8875849pad.35 for ; Tue, 15 Oct 2013 04:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IwcUTaakadIhTCJCFHMK3KviEBR14Cq0kWIQ5CjvQ+o=; b=pw275LsgTqT7hQ36SRzu6kcupICQJDJP2B9KfCUE+ldsLqx9a5vVOkqiOBfx98ldnv vdOScEJtEau1EpjtBLZ/NBON5fPjie4bVZ5nkyENhBnIzpwD7GHnYMW1gi5pzauFf047 FwIygpxbcgeoJ/LYztwyc6RfQvz1XfW3oUSHogKxrszGCPBOM0qQS+v++spdzXjYqb45 iadq5Ma5m49/to+qqn4pNsXkyv9fQxwKcuWr7lfibC9whXZuzAUWZ+DyQFsFh6wbALk6 ixJL7PUBKRVQeWn8yi6IIQQq8CuFKOxow1T2a4PNDWYYlnWVgDNj4MDLNdWj4JJI28RG 9gng== MIME-Version: 1.0 X-Received: by 10.66.158.196 with SMTP id ww4mr42987536pab.57.1381835783309; Tue, 15 Oct 2013 04:16:23 -0700 (PDT) Received: by 10.68.200.136 with HTTP; Tue, 15 Oct 2013 04:16:23 -0700 (PDT) In-Reply-To: References: <525B2802.5050904@gmail.com> Date: Tue, 15 Oct 2013 08:16:23 -0300 Message-ID: Subject: Re: Wireless API From: Eric Turgeon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 11:16:24 -0000 Hi Adrian That is OK, I have download the source code of Wifimgr, it use ifconfig. I was using "ifconfig wlan0 scan", it was to slow to display info, but in the Wifimgr code they use "ifconfig -v wlan* list scan" and "ifconfig wlan* list scan". I also found wifimgr calculate S:N to find the percentage of the connection, it is (S - N) * 4. I have also read further ifconfig manual, I suppose ifconfig will be a kind of API for my work. Thanks Eric On Mon, Oct 14, 2013 at 4:51 PM, Adrian Chadd wrote: > Not sure. I've not really focused on the userland side of the API at all > I'm sorry. > > Thanks, > > > -adrian > > > > On 13 October 2013 17:09, Eric Turgeon wrote: > >> Were is the documentation for that API. >> >> >> On Sun, Oct 13, 2013 at 8:57 PM, Adrian Chadd wrote: >> >>> What do you mean like "connection percentage" ? >>> >>> Do you mean like signal strength? If so, then yes. >>> >>> You can then make some basic heuristic guesses mapping signal level / >>> RSSI to a connection percentage based on some assumptions. For example, you >>> could look at the minimum RSSI required to guarantee some decent stability >>> at each receive/transmit rate (from 1mbit->54mbit, then MCS1->MCS23) and >>> then use that to map out connection percentage (where stable at MCS0 / >>> 1mbit would be lowest, and stable at MCS7/54mbit would be 100%.) >>> >>> HTH, >>> >>> >>> >>> -adrian >>> >>> >>> >>> On 13 October 2013 16:08, Eric Tugeon wrote: >>> >>>> Hi, >>>> I work on a Python GTK network manager for FreeBSD/GhostBSD, it will >>>> look similar to https://projects.gnome.org/**NetworkManager/. >>>> I want to know if we have wireless API like connection percentage? >>>> ______________________________**_________________ >>>> freebsd-wireless@freebsd.org mailing list >>>> http://lists.freebsd.org/**mailman/listinfo/freebsd-**wireless >>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@** >>>> freebsd.org " >>>> >>> >>> >> >> >> -- >> *Eric Turgeon >> **GhostBSD project* >> Office location: >> 1-11 connaught >> Moncton NB Canada >> www.ghostbsd.org >> > > -- *Eric Turgeon **GhostBSD project* Office location: 1-11 connaught Moncton NB Canada www.ghostbsd.org