首页 > 其他分享 >OpenHarmony开发09 —— 复现D2 wifi

OpenHarmony开发09 —— 复现D2 wifi

时间:2023-01-09 18:44:31浏览次数:63  
标签:OpenHarmony iot 09 oc wifi e53 example cloud

OpenHarmony开发09 —— 复现D2 wifi

指导文档:applications/BearPi/BearPi-HM_Nano/sample/D2_iot_wifi_sta_connect/README.md · 小熊派开源社区/BearPi-HM_Nano - Gitee.com

  1. 修改热点的账号密码

    image

  2. 修改sample/Build.gn

    # Copyright (c) 2020 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    import("//build/lite/config/component/lite_component.gni")
    
    lite_component("app") {
        features = [
            #"A1_kernal_thread:thread_example",
            #"A2_kernel_timer:timer_example",
            #"A3_kernel_event:event_example",
            #"A4_kernel_mutex:mutex_example",
            #"A5_kernel_semaphore:semaphore_example",
            #"A6_kernel_message:message_example",
    
            #"B1_basic_led_blink:led_example",
            #"B2_basic_button:button_example",
            #"B3_basic_pwm_led:pwm_example",
            #"B4_basic_adc:adc_example",
            #"B5_basic_i2c_nfc:i2c_example",
            #"B6_basic_uart:uart_example",
            
            #"C1_e53_sf1_mq2:e53_sf1_example",
            #"C2_e53_ia1_temp_humi_pls:e53_ia1_example",
            #"C3_e53_sc1_pls:e53_sc1_example",
            #"C4_e53_sc2_axis:e53_sc2_example",
            #"C5_e53_is1_infrared:e53_is1_example",
    
            #"D1_iot_wifi_ap:wifi_ap",
            "D2_iot_wifi_sta_connect:wifi_sta_connect",        
            #"D3_iot_udp_client:udp_client",
            #"D4_iot_tcp_server:tcp_server",
            #"D5_iot_mqtt:iot_mqtt",        
            #"D6_iot_cloud_oc:oc_mqtt",
            #"D7_iot_cloud_onenet:onenet_mqtt",
            #"D8_iot_cloud_oc_smoke:cloud_oc_smoke",
            #"D9_iot_cloud_oc_light:cloud_oc_light",
            #"D10_iot_cloud_oc_manhole_cover:cloud_oc_manhole_cover",
            #"D11_iot_cloud_oc_infrared:cloud_oc_infrared",
            #"D12_iot_cloud_oc_agriculture:cloud_oc_agriculture",
            #"D13_iot_cloud_oc_gps:cloud_oc_gps",
        ]
    }
    
    
    
    
  3. 输入hpm dist进行编译

    image

  4. 使用Hiburn进行烧录

    事实证明,Hy这个软件和Hiburn这两个软件之间不能共存,都占用com4端口

  5. 使用HyperTerminal查看连接,连接成功

    image

标签:OpenHarmony,iot,09,oc,wifi,e53,example,cloud
From: https://www.cnblogs.com/ZzTzZ/p/17038262.html

相关文章

  • OpenHarmony开发07 —— 小熊派入门
    OpenHarmony开发07——小熊派入门BearPi-HMNano入门applications/BearPi/BearPi-HM_Nano/docs/quick-start/BearPi-HM_Nano十分钟上手.md·小熊派开源社区/BearPi-......
  • OpenHarmony开发08 —— 复现A1 thread
    OpenHarmony开发08——复现A1thread技术文档:applications/BearPi/BearPi-HM_Nano/sample/A1_kernal_thread/README.md·小熊派开源社区/BearPi-HM_Nano-Gitee.com......
  • 普通家庭网络两台基本千兆路由器组网实现同WiFi名同密码
    普通家庭网络两台基本千兆路由器组网实现同WiFi名同密码准备工作:1.确认家里的两台路由器属于基础入门版路由器,如小米A4,支持IPv6,同时带有5Ghz的频段,不支持mesh组网模式(mes......
  • C语言学生管理系统[2023-01-09]
    C语言学生管理系统[2023-01-09]学生管理系统利用数据结构的单链表的框架实现学生管理系统以下功能要求:1)学生个人信息:姓名、学号、专业、性别、年龄、联系方式、成绩。......
  • [安卓]微信迁移聊天记录,手机端总显示无线网络 wifi
    安卓手机:备份记录,迁移记录都无法成功,显示不在同一网络,手机网络名称总为wifi其实是需要给微信一个权限:开启WLAN的权限给微信设置好权限之后,重启微信或者重启手机,然后就......
  • C语言居民小区水电费管理系统[2023-01-09]
    C语言居民小区水电费管理系统[2023-01-09]居民小区水电费管理系统【问题详述】居民小区水电费管理系统可以对居民小区的用水、用电情况及应交费用进行查询与管理。物业......
  • C语言员工销售统计及奖金发放系统[2023-01-09]
    C语言员工销售统计及奖金发放系统[2023-01-09]课题3:员工销售统计及奖金发放系统程序设计功能及要求:(1)总人数不定,开始先输入员工的人数及工号进行初始化,数据使用文......
  • 每日食词—day092
    pluginn.插件vendorn.供应商、厂商、小贩、卖主、卖方digestv. n.摘要、文摘、理解、领悟、消化、提炼物radixn.底数、根、基数(数学)signumn.正负号......
  • 每日食词—day091
    pureadj.纯色、纯、纯粹、纯净、纯洁、不掺杂质的algorithmn.算法asymptoticadj.渐近的、渐近线的complexityn.复杂性、复杂、复杂度、错综度checkout......
  • win电脑查看wifi密码的方法
     1、使用电脑连接需要查看的WiFi,鼠标右击电脑桌面右下角【WiFi图标】,在弹出的菜单中点击【打开“网络和internet”设置】。2、在弹出的设置窗口中点击【网络和共享中心......