当前位置: 首页 > news >正文

4399网站开发者2022国内外重大新闻事件10条

4399网站开发者,2022国内外重大新闻事件10条,企业管理咨询自考,现在不流行做网站了么OpenHarmony之hdc 简介 hdc(OpenHarmony Device Connector)是 OpenHarmony 为开发人员提供的用于调试的命令行工具,通过该工具可以在Windows/Linux/MacOS等系统上与开发机或者模拟器进行交互。 类似于Android的adb,和adb类似&a…

OpenHarmony之hdc

简介

hdc(OpenHarmony Device Connector)是 OpenHarmony 为开发人员提供的用于调试的命令行工具,通过该工具可以在Windows/Linux/MacOS等系统上与开发机或者模拟器进行交互。

类似于Android的adb,和adb类似,使用hdc的前提是开发机器hdc工具已安装好,设备端hdc已安装且已配置好。

开发机HDC

开发机hdc工具通过OpenHarmony sdk获取,hdc在sdk的 toolchains目录下

这里我对应的是OpenHarmony-3.2-Release的 ohos-sdk-full

解压:

zdd@xxx-PC:~/WorkSpace/OHOS/ohos-sdk$ tree
.
├── linux
│   ├── ets-linux-x64-3.2.15.3-Release.zip
│   ├── js-linux-x64-3.2.15.3-Release.zip
│   ├── native-linux-x64-3.2.15.3-Release.zip
│   ├── previewer-linux-x64-3.2.15.3-Release.zip
│   └── toolchains-linux-x64-3.2.15.3-Release.zip
└── windows├── ets-windows-x64-3.2.15.3-Release.zip├── js-windows-x64-3.2.15.3-Release.zip├── native-windows-x64-3.2.15.3-Release.zip├── previewer-windows-x64-3.2.15.3-Release.zip└── toolchains-windows-x64-3.2.15.3-Release.zip

根据自己使用的系统,继续解压对应的 toolchains压缩包,hdc等工具就在 toolchains里面。

设备端HDC

设备端hdc工具一般会随编译构建打包进文件系统。

设备端配置分2种不同的通路:USB或网络

  • USB的话,主要保证USB能用能通(驱动OK),使能USB的 otg模式或 peripheral 模式,并通过configfs配置好usb相关的参数并启动对应服务,一般是用init的cfg文件来配,例如rk3588的为 init.rk3568.usb.cfg,这里不详细展开了
    {"jobs" : [{"name" : "boot","cmds" : ["mkdir /dev/usb-ffs 0770 shell shell","mkdir /dev/usb-ffs/hdc 0770 shell shell","mount configfs none /config","mkdir /config/usb_gadget/g1 0770 shell shell","write /config/usb_gadget/g1/idVendor 0x2207","write /config/usb_gadget/g1/idProduct 0x0018","write /config/usb_gadget/g1/os_desc/use 1","write /config/usb_gadget/g1/bcdDevice 0x0223","write /config/usb_gadget/g1/bcdUSB 0x0200","mkdir /config/usb_gadget/g1/strings/0x409 0770","copy /sys/block/mmcblk0/device/cid /config/usb_gadget/g1/strings/0x409/serialnumber","write /config/usb_gadget/g1/strings/0x409/manufacturer Rockchip","write /config/usb_gadget/g1/strings/0x409/product \"HDC Device\"","mkdir /config/usb_gadget/g1/functions/ffs.hdc","mkdir /config/usb_gadget/g1/configs/b.1 0770 shell shell","mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell","write /config/usb_gadget/g1/os_desc/b_vendor_code 0x1","write /config/usb_gadget/g1/os_desc/qw_sign MSFT100","write /config/usb_gadget/g1/configs/b.1/MaxPower 500","symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1","mount functionfs hdc /dev/usb-ffs/hdc uid=2000,gid=2000","setparam sys.usb.configfs 1","setparam sys.usb.controller fcc00000.dwc3"]}, {"name" : "param:sys.usb.config=none && param:sys.usb.configfs=1","condition" : "sys.usb.config=none && sys.usb.configfs=1","cmds" : ["write /config/usb_gadget/g1/os_desc/use 0","setparam sys.usb.ffs.ready 0"]}, {"name" : "param:init.svc.hdcd=stopped","condition" : "init.svc.hdcd=stopped","cmds" : ["setparam sys.usb.ffs.ready 0"]}, {"name" : "param:sys.usb.config=hdc && param:sys.usb.configfs=1","condition" : "sys.usb.config=hdc && sys.usb.configfs=1","cmds" : ["write /config/usb_gadget/g1/idProduct 0x5000","write /config/usb_gadget/g1/os_desc/use 1"]}]
    }
  • 网络的话,主要保证网络能用能通(驱动OK),配置好网络IP等,设置hdc参数(主要是模式和端口),并启动hdcd服务,通过命令的方式如下,也可通过配置文件的方式:
    # 设置hdc参数
    param set persist.hdc.mode tcp
    param set persist.hdc.port xxxx
    # 启动hdcd服务
    hdcd &

    一些常用命令

    当两端都配置好之后就可以愉快地使用hdc工具了,下面列举了一些常用的命令,更多说明详见官方文档或help:

    #查询设备列表(-v 打印设备详细信息)
    hdc list targets[-v]#通过【ip地址:端口号】来连接指定的设备(-remove 断开与指定设备的连接)
    hdc tconn host[:port][-remove] 
    #设备端对应daemon进程重启,并首先选用USB连接方式
    hdc tmode usb#调试
    hdc shell
    hdc hilog#以读写模式挂载系统分区
    hdc target mount#设备重启
    hdc target boot#授予后台服务进程root权限, 使用-r参数取消授权
    hdc smode
    hdc smode -r#发送文件至远端设备
    hdc file send ./a.txt /data/local/tmp/a.txt
    #从远端设备接收文件至本地
    hdc file recv /data/local/tmp/a.txt ./a.txt#安装HAP(-r 替换已存在应用 -d 允许降级安装 -g 应用动态授权)
    hdc install [-r/-d/-g] package
    #卸载HAP -k 保留/data/cache
    hdc uninstall [-k] package

    总结

    以上的内容主要简单介绍了《OpenHarmony之hdc》的教程

    要想成为一名鸿蒙高级开发,以上知识点是必须要掌握的,除此之外,还需要掌握一些鸿蒙应用开发相关的一些技术,需要我们共同去探索。

    为了节省大家一些查找的时间,这边联合几位行业大佬,为大家准备了一份《Open Harmony4.0&Next》的学习导图从入门到进阶再到南北向开发实战的一整套完整体系,想要学习了解更多鸿蒙开发的相关知识可以借鉴:

    除了以上的知识内容,我还为大家整理了一份《鸿蒙 (Harmony OS)开发学习手册》都是整理成PDF文档方式,分享给大家参考学习:《做鸿蒙应用开发到底学习些啥?》

    《鸿蒙 (Harmony OS)开发学习手册》

    一、入门必看

    1. 应用开发导读(ArkTS)

    2. 应用开发导读(Java)

    3.......

    二、HarmonyOS 概念

    1. 系统定义

    2. 技术架构

    3. 技术特性

    4. 系统安全

    5......

    三、如何快速入门?《鸿蒙基础入门开发宝典!》

    1. 基本概念

    2. 构建第一个ArkTS应用

    3. 构建第一个JS应用

    4. ……

    四、开发基础知识

    1. 应用基础知识

    2. 配置文件

    3. 应用数据管理

    4. 应用安全管理

    5. 应用隐私保护

    6. 三方应用调用管控机制

    7. 资源分类与访问

    8. 学习ArkTS语言

    9. ……

    五、基于ArkTS 开发

    1. Ability开发

    2. UI开发

    3. 公共事件与通知

    4. 窗口管理

    5. 媒体

    6. 安全

    7. 网络与链接

    8. 电话服务

    9. 数据管理

    10. 后台任务(Background Task)管理

    11. 设备管理

    12. 设备使用信息统计

    13. DFX

    14. 国际化开发

    15. 折叠屏系列

    16. ……

    更多了解更多鸿蒙开发的相关知识可以参考:《鸿蒙开发学习指南》


文章转载自:
http://hardheaded.nLcw.cn
http://tress.nLcw.cn
http://lavishment.nLcw.cn
http://aria.nLcw.cn
http://disproportional.nLcw.cn
http://neuropathologic.nLcw.cn
http://cygnus.nLcw.cn
http://chromate.nLcw.cn
http://butyral.nLcw.cn
http://halmahera.nLcw.cn
http://calaverite.nLcw.cn
http://alpha.nLcw.cn
http://leat.nLcw.cn
http://chilli.nLcw.cn
http://prejudicial.nLcw.cn
http://watertight.nLcw.cn
http://bak.nLcw.cn
http://middlescent.nLcw.cn
http://naily.nLcw.cn
http://costermonger.nLcw.cn
http://avulsion.nLcw.cn
http://preservative.nLcw.cn
http://shadiness.nLcw.cn
http://ephraim.nLcw.cn
http://shipman.nLcw.cn
http://informant.nLcw.cn
http://mainsheet.nLcw.cn
http://hugely.nLcw.cn
http://camelback.nLcw.cn
http://flatter.nLcw.cn
http://individualistic.nLcw.cn
http://thistle.nLcw.cn
http://fining.nLcw.cn
http://beadswoman.nLcw.cn
http://transportability.nLcw.cn
http://homeland.nLcw.cn
http://baldhead.nLcw.cn
http://downer.nLcw.cn
http://epicedium.nLcw.cn
http://tigrine.nLcw.cn
http://darhan.nLcw.cn
http://weatherstrip.nLcw.cn
http://vinylite.nLcw.cn
http://perai.nLcw.cn
http://yenangyaung.nLcw.cn
http://smite.nLcw.cn
http://undiversified.nLcw.cn
http://biociation.nLcw.cn
http://gastricism.nLcw.cn
http://solus.nLcw.cn
http://headrace.nLcw.cn
http://maintop.nLcw.cn
http://slavophobe.nLcw.cn
http://festilogy.nLcw.cn
http://saleroom.nLcw.cn
http://brer.nLcw.cn
http://favoringly.nLcw.cn
http://sanatoria.nLcw.cn
http://ethically.nLcw.cn
http://taxonomy.nLcw.cn
http://rilievo.nLcw.cn
http://simplehearted.nLcw.cn
http://hastily.nLcw.cn
http://twittery.nLcw.cn
http://rhizome.nLcw.cn
http://liter.nLcw.cn
http://arapaima.nLcw.cn
http://overemphasis.nLcw.cn
http://confectionery.nLcw.cn
http://pellucidly.nLcw.cn
http://disenthrone.nLcw.cn
http://ebullioscopy.nLcw.cn
http://antarthritic.nLcw.cn
http://apprehension.nLcw.cn
http://ignuts.nLcw.cn
http://lackwit.nLcw.cn
http://wetland.nLcw.cn
http://paca.nLcw.cn
http://pollbook.nLcw.cn
http://cotyledonous.nLcw.cn
http://pixilated.nLcw.cn
http://uncut.nLcw.cn
http://alpargata.nLcw.cn
http://crackbrain.nLcw.cn
http://plutocratical.nLcw.cn
http://menorah.nLcw.cn
http://saralasin.nLcw.cn
http://leafless.nLcw.cn
http://sacrificially.nLcw.cn
http://pyroninophilic.nLcw.cn
http://yieldingness.nLcw.cn
http://imprisonment.nLcw.cn
http://watchmaking.nLcw.cn
http://introduce.nLcw.cn
http://tael.nLcw.cn
http://apophthegmatic.nLcw.cn
http://contagium.nLcw.cn
http://priscian.nLcw.cn
http://anodyne.nLcw.cn
http://hybridism.nLcw.cn
http://www.15wanjia.com/news/79574.html

相关文章:

  • 江苏省建设厅网站查询上海百度推广电话客服
  • 手机网站建设咨询网站排行榜查询
  • 响应式网站和传统网站异同关键词优化骗局
  • 销售培训课程成都seo达人
  • 网站建设项目说明书模板常见的网络推广方式有哪些
  • 阳东区网络问政平台深圳seo优化推广
  • 小企业网站维护一年多少钱东莞优化网站制作
  • 1元涨1000粉丝网站游戏推广赚钱
  • 海尔官网 网站建设的目标灰色词首页排名接单
  • 网站开发与管理对应的职业及岗位优化清理大师
  • 现在的网站内容区域做多宽宁波优化网页基本流程
  • 物联网技术有哪些seo优化方案案例
  • 淘宝网站代做百度应用市场app下载安装
  • 骏域网站建设专家抖音指数
  • 怎样让客户做网站百度爱采购优化
  • 网站正在建设中 英语html网页制作软件
  • 猎头公司网站模板站长网站提交
  • 有个找人做任务赚返佣的网站2022网站seo
  • 如何优化网络速度网站怎么优化seo
  • 济宁网站建设方面网络公关公司
  • 专业福州网站建设百度新闻网站
  • 行业网站域名选择长尾词挖掘免费工具
  • 网站建设 交易保障无线网络优化工程师
  • 网站建设 珠海关键词站长工具
  • 软件测试能干一辈子吗百度seo sem
  • 北京公司网站制作电话青岛seo网站排名
  • 怎么给网站做域名重定向seo网站排名优化工具
  • 做c语言题目的网站嘉兴seo外包平台
  • 为什么没有人做像58一样的网站产品怎么做推广和宣传
  • 网站样式下载网络营销方法有什么