简体   繁体   English

将Android可穿戴仿真器与手持设备连接,该设备无线连接到adb

[英]Connect Android Wearable Emulator with Handheld device which is connected to adb WIRELESSLY

Is it possible to connect wearable emulator to handheld device which is connected to adb wirelessly ? 是否可以将可穿戴仿真器连接到无线连接到adb的手持设备?

1) First I connected my phone to adb wirelessly with the adb tcpip 5555 command. 1)首先,我使用adb tcpip 5555命令将手机无线连接到adb。 2) Now, my phone is connected with adb by ip address assigned to it in local wlan. 2)现在,我的手机通过本地wlan分配给它的IP地址与adb连接。 (adb connect ipaddress) 3) Now I started my emulator of wearable device and I want to connect that to that handheld device connected wirelessly. (adb connect ipaddress)3)现在我启动了可穿戴设备的模拟器,我想将它连接到无线连接的手持设备。 For normal connection, command for this is adb -d forward tcp:5601 tcp:5601 but I know that this obviously won't work here. 对于正常连接,命令为adb -d forward tcp:5601 tcp:5601但我知道这显然不适用于此处。

So my question here is : Is it possible to achieve this? 所以我的问题是:是否有可能实现这一目标? Whether it's a yes or no, can you explain me why ? 无论是或否,你能解释一下为什么吗? I don't have much idea about tcp ports etc. I tried to google it but could not find much information about it online. 我对tcp端口等没有太多了解。我试图谷歌它,但无法在网上找到很多关于它的信息。 So, it would be great if you can explain me about this. 所以,如果你可以向我解释这个问题会很棒。

It is written in adb help that forward command would forward the port depending on what you specify. 在adb帮助中写入,forward命令将根据您指定的内容转发端口。 So I also want to know about the exact detailing for this and how it works. 所以我也想了解这个的确切细节以及它是如何工作的。

I don't have any command over networking concepts so please explain accordingly. 我没有关于网络概念的任何命令,所以请相应地解释。

Thanks in advance. 提前致谢。

Modify the command to pair to device like this 修改命令以像这样配对设备

adb -s <remote_device_ip>:5555 -d forward tcp:5601 tcp:5601

Example in my case: 我案例中的例子:

adb -s 192.168.0.7:5555 -d forward tcp:5601 tcp:5601

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

相关问题 Android可穿戴模拟器无法连接usb连接手机 - Android wearable emulator can't connect with usb connected phone 为什么我会收到 API: Wearable.API is not available on this device when I try to connect my handheld device app to wearable using android? - Why do I get API: Wearable.API is not available on this device when I try to connect my handheld device app to wearable using android? 通过ADB Connect将设备与Android Wear模拟器连接 - Connect Device with Android wear emulator over adb connect 安卓手持和可穿戴设备收不到消息 - Android handheld and wearable not receiving messages Android ADB设备无法保持连接状态 - Android ADB Device Will Not Stay Connected Android应用程序将无法连接到无线连接到网络的计算机 - Android app won't connect to computer that's connected wirelessly to network 从可穿戴服务到手持服务的通信[Android] - Communication from wearable service to handheld service [Android] 是否需要通过Android Wear配套应用将可穿戴设备连接至手持设备才能使用数据层API? - Is it necessary to connect wearable to handheld through android wear companion app to use data layer API? 手持设备和可穿戴设备之间的Android双向通信 - Android Two Way Communication Between Handheld and Wearable 数据流从可穿戴设备到Android手持设备 - Data Stream from Wearable to Android Handheld
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM