是p2p0无线接口的WIFI DIRECT android系统中? [英] is p2p0 a wireless interface for WIFI DIRECT in android?

查看:4245
本文介绍了是p2p0无线接口的WIFI DIRECT android系统中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打印的所有接口在我的Andr​​oid设备:

when i print all interfaces in my android device:

03-10 19:50:15.484: I/System.out(22415): lo
03-10 19:50:15.494: I/System.out(22415): upnlink0
03-10 19:50:15.504: I/System.out(22415): svnet0
03-10 19:50:15.504: I/System.out(22415): rmnet0
03-10 19:50:15.514: I/System.out(22415): rmnet1
03-10 19:50:15.524: I/System.out(22415): rmnet2
03-10 19:50:15.534: I/System.out(22415): sit0
03-10 19:50:15.544: I/System.out(22415): ip6tnl0
03-10 19:50:15.554: I/System.out(22415): p2p0
03-10 19:50:15.564: I/System.out(22415): wlan0

我wounder如果p2p0是WIFI DIRECT实际的接口?还如何打印不仅仅是当前使用的接口??

i wounder if p2p0 is the actual interface for WIFI DIRECT? also how to print just the currently used INTERFACES ??

推荐答案

是的,p2p0是一种虚拟接口用于Wi-Fi直。它是(或似乎是我的)相互排斥使用为wlan0连接到接入点。换句话说,它是使用相同的硬件为wlan0,所以你既可以使用为wlan0连接到一个AP的的,你可以使用p2p0为一个对等连接。

Yes, p2p0 is a kind of virtual interface to be used for Wi-Fi Direct. It is (or appears to be to me) mutually exclusively with using wlan0 to connect to an Access Point. In other words, it's using the same hardware as wlan0, so you can either be using wlan0 to connect to an AP or you can be using p2p0 for a peer-to-peer connection.

至于你的其他问题,如果你有一个终端打开您的手机上或者(更可能)你有一个ADB(Android的调试桥)的外壳打开,您可以发出以下命令列出的状态这是你所有的网络接口(连接):

As to your other question, if you've got a terminal open on your phone or (more likely) you've got an adb (Android Debug Bridge) shell open, you can issue the following command to list the status of all your network interfaces which are UP (connected):

$ IP链路| grep的状态UP

$ ip link | grep "state UP"

这篇关于是p2p0无线接口的WIFI DIRECT android系统中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆