Openharmony 通过网络链接HDC
·
背景
设备硬件不支持usb 方式链接hdc,或者链接接口被占用
hdc 工具安装
网络环境
执行ifconfig 获取单板 IP地址
hdc客户端主机ping 通单板网络 (注意单板和主机网络必须可以链接)
PS C:\Users\tjw> ping 192.168.137.137
正在 Ping 192.168.137.137 具有 32 字节的数据:
来自 192.168.137.137 的回复: 字节=32 时间<1ms TTL=64
来自 192.168.137.137 的回复: 字节=32 时间<1ms TTL=64
来自 192.168.137.137 的回复: 字节=32 时间<1ms TTL=64
来自 192.168.137.137 的回复: 字节=32 时间<1ms TTL=64
192.168.137.137 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 0ms,最长 = 0ms,平均 = 0ms
端口配置
通过串口终端获取hdc 端口信息
param get | grep port
# param get | grep port
const.telephony.satellite.supported = 0
persist.hdc.port = 52188 // 此行为hdc 端口号
update.server.port = 16895
若没有hdc.port则设置hdc 端口
param set persist.hdc.port 52188
hdcd -t &
链接
PS C:\Users\tjw> hdc tconn 192.168.137.137:52188
Connect OK
PS C:\Users\tjw>
参考链接:
更多推荐
所有评论(0)