From owner-freebsd-wireless@FreeBSD.ORG Tue Oct 15 14:03:40 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 2D71818B for ; Tue, 15 Oct 2013 14:03:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E070F26C3 for ; Tue, 15 Oct 2013 14:03:39 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id k4so2322045qaq.14 for ; Tue, 15 Oct 2013 07:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=gu3IiN3zOG1oEm5a5MnfQ+jFdFKJX1w/Wj7PPFRmJXQ=; b=LDofBTdEkrHC9USuptNzOrR1LFr08P3c5lf+hnUaFS+gVW49vMyPgSYgUczPDh3AYl o7bb6pjwNflO6oelGOqJqBtpasTizJkkLuloaOwbXN14UluB0xbcoLeW3NYLakk3e1Av xNXbq5zz4MnS9aIzf0QNnc0T1EMhizR1+OKTNC0CJ9zA8CQMhniGMUup7NNFrZEFltR8 1hI7z6UfyI8qNyL33CcY6VU5Pc2L8gtFmKu7foQJwb4Rn19i8pZg05dBBfCZpJwHOp1C gqPIMAOq8Fzhov9ZfOsMLW5Up+yi3+1G3CjgSKuA13v80pxgMza6Apsoe5p7eQILinI8 dRnw== MIME-Version: 1.0 X-Received: by 10.224.157.14 with SMTP id z14mr10497221qaw.90.1381845817174; Tue, 15 Oct 2013 07:03:37 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Tue, 15 Oct 2013 07:03:37 -0700 (PDT) In-Reply-To: References: <525B2802.5050904@gmail.com> Date: Tue, 15 Oct 2013 07:03:37 -0700 X-Google-Sender-Auth: seYfrvZv8mX12sSFCcYczvvSYAs Message-ID: Subject: Re: Wireless API From: Adrian Chadd To: Eric Turgeon 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 14:03:40 -0000 I'd rather that the ioctl API be used, rather than the output of 'ifconfig'. It's likely about time the ioctl API was turned into a library for userland to use. That way it could be imported into python/etc via C bindings. Thanks, -adrian On 15 October 2013 04:16, Eric Turgeon wrote: > 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 >