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 <adr...@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....@gmail.com> wrote: > >> Were is the documentation for that API. >> >> >> On Sun, Oct 13, 2013 at 8:57 PM, Adrian Chadd <adr...@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....@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? >>>> ______________________________**_________________ >>>> email@example.com 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-unsubscr...@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/> _______________________________________________ firstname.lastname@example.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"