简体   繁体   English

Linux上Mono中的Wlan信息

[英]Wlan information in mono on linux

I am working on a project that will run on a small linux platform. 我正在做一个将在小型Linux平台上运行的项目。 All applications on the system must be written in c# that will be executed via mono. 系统上的所有应用程序都必须使用c#编写,并将通过mono执行。 But that is causing me some problems with the network information port. 但这导致我的网络信息端口出现一些问题。 All the examples I have been able to find on the topic on the internet is for .net, and it seems that the WlanInterface module is not implemented in mono. 我可以在Internet上找到的所有示例示例都针对.net,并且似乎WlanInterface模块不是在mono中实现的。

So the simple question is then, how do I get information such as ssid, rssi, available APs, and its like in mono on linux? 因此,简单的问题是,如何在Linux上的单声道中获取ssid,rssi,可用的AP及其类似信息? Is there a simple way, or do I have to write a service object in eg c++ or java to get the information? 有没有一种简单的方法,还是我必须用c ++或java编写服务对象来获取信息?

damn, not what I was hoping to hear :) 该死的,不是我希望听到的:)

Anyway, I found another solution I will try to pursue. 无论如何,我找到了我将尝试的另一种解决方案。 Since the machine has got gnome on it, hijacking the information from the network manager via dbus could be the solution. 由于计算机上安装了gnome,因此可以通过dbus劫持网络管理器中的信息。 This might also be a good idea, since I would like to receive an event when connection is lost. 这可能也是一个好主意,因为我想在连接断开时收到一个事件。

I would still like to hear comments both on this idea, MarkR's idea and any other alternatives. 我仍然希望听到有关该想法,MarkR想法和任何其他替代方案的评论。

You can invoke the command line utilities and parse their output via a pipe or something eg 您可以调用命令行实用程序并通过管道或类似方法解析其输出,例如

iwconfig
iwlist

etc which will ship with a wifi-enabled Linux system. 等等,它将与支持wifi的Linux系统一起提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM