Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2013 08:16:23 -0300
From:      Eric Turgeon <ericturgeon.bsd@gmail.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>
Subject:   Re: Wireless API
Message-ID:  <CADRZFmpxgBSpCor1ntPwE%2B-W5z58mj=vL-6SBDLWcyx4Czh0VA@mail.gmail.com>
In-Reply-To: <CAJ-Vmo=7To-vO=-EcueueT6TmBdU5VtUXGaWVwX8UOEabKB4-A@mail.gmail.com>
References:  <525B2802.5050904@gmail.com> <CAJ-Vmomu3nq9tckFC=x5f95DpVXNG5jxawToQfknvx3zWszCfQ@mail.gmail.com> <CADRZFmrMsLYT-txAkJuEg2UW%2Bd6nQ0N%2BJv=je8Q=tVk-iq8Hyg@mail.gmail.com> <CAJ-Vmo=7To-vO=-EcueueT6TmBdU5VtUXGaWVwX8UOEabKB4-A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <adrian@freebsd.org> 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 <ericturgeon.bsd@gmail.com> wrote:
>
>> Were is the documentation for that API.
>>
>>
>> On Sun, Oct 13, 2013 at 8:57 PM, Adrian Chadd <adrian@freebsd.org> 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 <ericturgeon.bsd@gmail.com> wrote:
>>>
>>>> Hi,
>>>> I work on a Python GTK network manager for FreeBSD/GhostBSD, it will
>>>> look similar to https://projects.gnome.org/**NetworkManager/<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<http://lists.freebsd.org/mailman/listinfo/freebsd-wireless>;
>>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@**
>>>> freebsd.org <freebsd-wireless-unsubscribe@freebsd.org>"
>>>>
>>>
>>>
>>
>>
>> --
>> *Eric Turgeon
>> **GhostBSD project*
>> Office location:
>> 1-11 connaught
>> Moncton NB Canada
>> www.ghostbsd.org <http://www.ghostbsd.org/>;
>>
>
>


-- 
*Eric Turgeon
**GhostBSD project*
Office location:
1-11 connaught
Moncton NB Canada
www.ghostbsd.org <http://www.ghostbsd.org/>;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADRZFmpxgBSpCor1ntPwE%2B-W5z58mj=vL-6SBDLWcyx4Czh0VA>