设备:两个bq3568-hm

系统:3.2.0.0

运行demo applications_app_samples: We provide a series of app samples to help you quickly get familiar with the APIs and app development process of the OpenHarmony SDKs. | 为帮助开发者快速熟悉OpenHarmony SDK所提供的API和应用开发流程,我们提供了一系列的应用示例 - Gitee.com

能正常运行

已经完成组网

设备画面: 

 

运行中调试: 

能够想互通信

问下这个demo需要怎样才能识别到设备还是需要什么配置?

以下是hilog

10-19 20:12:39.275  256-300      C01800/SAMGR                   samgr                           I  SystemAbilityManagerStub::OnReceived, code = 2, callerPid = 2561, flags= 0
10-19 20:12:39.275  256-300      C01800/SAMGR                   samgr                           I  found service : 1212.
10-19 20:12:39.335  256-300      C01800/SAMGR                   samgr                           I  SystemAbilityManagerStub::OnReceived, code = 2, callerPid = 660, flags= 0
10-19 20:12:39.336  256-300      C01800/SAMGR                   samgr                           I  found service : 1201.
10-19 20:12:39.337  262-1175     C02d10/Faultlogger             hiview                          I  Dump: DumpRequest: detail:<private>, list:<private>, file:<private>, name:<private>, time:<private>
10-19 20:12:40.785  584-964      C01560/OHWIFI_MESSAGE_QUEUE    wifi_manager_se                 I  mCvQueue wake up, reason: cv_status::timeout: 2999
10-19 20:12:40.785  584-964      C01560/OHWIFI_MESSAGE_QUEUE    wifi_manager_se                 I  Message queue is not empty.
10-19 20:12:40.786  584-964      C01560/OHWIFI_MESSAGE_QUEUE    wifi_manager_se                 I  Get queue message: 2
10-19 20:12:40.786  584-964      C01560/OHWIFI_HANDLER          wifi_manager_se                 I  Handler get message: 2
10-19 20:12:40.786  584-964      C01560/OHWIFI_STATE_MACHINE    wifi_manager_se                 I  State machine: LinkedState execute Cmd:2
10-19 20:12:40.786  584-964      C01560/StaStateMachine         wifi_manager_se                 I  LinkedState, reveived msgCode=2 msg.
10-19 20:12:40.786  584-964      C01560/StaStateMachine         wifi_manager_se                 E  NOT handle this event!
10-19 20:12:40.786  584-964      C01560/StaStateMachine         wifi_manager_se                 I  ApLinkedState-msgCode=2 received.
10-19 20:12:40.786  584-964      C01560/WifiFrameWork           wifi_manager_se                 I  LinkState ExecuteStateMsg function:msgName=[2].
10-19 20:12:40.786  584-964      C01560/WifiFrameWork           wifi_manager_se                 I  enter DealSignalPollResult.
10-19 20:12:40.787  524-524      C01560/WifiHalCrpcServer       wifi_hal_service                I  run GetConnectSignalInfo
10-19 20:12:40.787  524-524      C01560/WifiHalWpaCommon        wifi_hal_service                I  wpa_ctrl_request -> cmd: <private>
10-19 20:12:40.797  524-524      C01560/WifiHalWpaCommon        wifi_hal_service                I  wpa_ctrl_request -> buf: <private>
10-19 20:12:40.798  584-964      C01560/WifiFrameWork           wifi_manager_se                 I  DealSignalPollResult, signal:-54, txLinkSpeed:39, rxLinkSpeed:0, freq:2412, noise:9999.
10-19 20:12:40.798  584-964      C01560/WifiFrameWork           wifi_manager_se                 I  DealSignalPollResult, networkId:0, ssid:<private>, rssi:-54, band:1, connState:4, detailedState:11.
10-19 20:12:40.798  584-964      C01560/WifiFrameWork           wifi_manager_se                 I  DealSignalPollResult currentSignalLevel:4, lastSignalLevel:4.
10-19 20:12:40.798  584-927      C01560/WifiInternalEventDispatcher wifi_manager_se                 I  WifiInternalEventDispatcher:: Deal Sta Event Callback Msg: 4100
10-19 20:12:40.799  584-927      C01560/WifiInternalEventDispatcher wifi_manager_se                 I  InvokeDeviceCallbacks, msg.msgCode: 4100
10-19 20:12:40.799  1181-1183    C01560/WifiDeviceCallBackStub  com.ohos.systemui               I  WifiDeviceCallBackStub::OnRemoteRequest, code:4104!
10-19 20:12:40.799  1181-1183    C01560/WifiDeviceCallBackStub  com.ohos.systemui               I  WifiDeviceCallBackStub::OnStreamChanged, direction:0!
10-19 20:12:40.814  584-964      C01560/OHWIFI_MESSAGE_QUEUE    wifi_manager_se                 I  MessageQueue::AddMessageToQueue, msg: 2, timestamp:<private>
10-19 20:12:40.814  584-964      C01560/OHWIFI_MESSAGE_QUEUE    wifi_manager_se                 I  Add the message in the head of queue.
10-19 20:12:40.814  584-964      C01560/OHWIFI_MESSAGE_QUEUE    wifi_manager_se                 I  Add message needWakeup: 0
10-19 20:12:40.814  584-964      C01560/OHWIFI_MESSAGE_QUEUE    wifi_manager_se                 I  MessageQueue::GetNextMessage
10-19 20:12:40.814  584-964      C01560/OHWIFI_MESSAGE_QUEUE    wifi_manager_se                 I  Message queue is not empty.
10-19 20:12:40.814  584-964      C01560/OHWIFI_MESSAGE_QUEUE    wifi_manager_se                 I  mCvQueue wait_for: 2999
10-19 20:12:41.583  626-1106     C02942/ThermalSvc              foundation                      I  [thermal_observer.cpp:288] OnReceivedSensorInfo# callbackinfo_ size = 10
10-19 20:12:41.584  626-1106     C02942/ThermalSvc              foundation                      I  [thermal_observer.cpp:264] NotifySensorTempChanged# listeners.size = 0, callbackTypeMap.size = 0
10-19 20:12:41.584  626-1250     C02942/ThermalSvc              foundation                      I  [thermalsrv_event_handler.cpp:35] ProcessEvent# eventid = 5
10-19 20:12:41.584  626-1106     C02942/ThermalSvc              foundation                      I  [thermal_service_subscriber.cpp:94] SetHistoryTypeTempMap# SetHistoryTypeTempMap: sec=180
10-19 20:12:41.584  575-1253     C02943/ThermalHdi              power_host              4 power_host  I  [thermal_hdf_timer.cpp:135] ResetCount# multipleList_:2
10-19 20:12:41.584  575-1253     C02943/ThermalHdi              power_host              4 power_host  I  [thermal_hdf_timer.cpp:140] ResetCount# reportTime:1
10-19 20:12:42.159  584-965      C01560/WifiFrameWork           wifi_manager_se                 I  mCondition_timeout timeout.
10-19 20:12:42.159  584-965      C01560/StaNetworkCheck         wifi_manager_se                 I  Enter httpDetection
10-19 20:12:42.159  584-965      C01560/OHWIFI_UTILS_HTTP_REQ   wifi_manager_se                 E  HttpRequest::HttpRequestExec URL is null
10-19 20:12:42.159  584-965      C01560/StaNetworkCheck         wifi_manager_se                 E  This network can't online

解决方法:

发现没有修改系统应用权限。

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐