应用开发环境 openharmony 3.1 Release ,api 9

应用场景:使用软总线客户端桌面应用 调用系统softbus_server接口,连接远端openEuler设备,先使用hichain认证

SoftBusClient 主要代码

static string sessionServerInit(callBack *func) {
    int ret;
    OH_LOG_INFO(LOG_APP, "[debug] **************** this is main function ******************\n");

    // 创建sessionServer
    ret = CreateSessionServerInterface(func);
    if (ret) {
        OH_LOG_ERROR(LOG_APP, "[ERROR] <CreateSessionServerInterface> failed");
        return "<CreateSessionServerInterface> failed";
    }

    ret = PublishServiceInterface();
    if (ret) {
        OH_LOG_ERROR(LOG_APP, "[ERROR] <PublishServiceInterface> failed");
        sessionDisconnect(4);
        return "<PublishServiceInterface> failed";
    }

    ret = DiscoveryInterface();
    if (ret) {
        OH_LOG_ERROR(LOG_APP, "[ERROR] <DiscoveryInterface> failed");
        sessionDisconnect(3);
        return "<DiscoveryInterface> failed";
    }

    createImagesSavePath();

    OH_LOG_INFO(LOG_APP, "[INFO] Session server init success!!!");
    return "[INFO] Session server init success";
}

/**
 * 发现组网内设备,并跟需要连接的设备建立session
 * @return 建立连接的设备信息
 */
static string sessionConnect() {
    // 重新探测设备
    StopDiscoveryInterface();
    DiscoveryInterface();
    openedSessionId = -1;
    dev = nullptr;
    int devNum = GetAllNodeDeviceInfoInterface(&dev); //返回组网内的设备数
    if (devNum <= 0) {
        OH_LOG_ERROR(LOG_APP, "[ERROR] <GetAllNodeDeviceInfoInterface> failed");
        return "<GetAllNodeDeviceInfoInterface> failed";
    }
    for (int i = 0; i < devNum; i++) {
        string deviceName = dev[i].deviceName;
        OH_LOG_INFO(LOG_APP, "[INFO] found a device: %{public}s", deviceName.c_str());
        if( strcmp(deviceName.c_str(), "openEuler") != 0 ){
            OH_LOG_INFO(LOG_APP, "[INFO] Not a gateway device: %{public}s", deviceName.c_str());
            continue;
        }

        int sessionId = OpenSessionInterface(dev[i].networkId, "session_test");
        if (sessionId <= 0) {
            OH_LOG_ERROR(LOG_APP, "[ERROR] Open session to: %{public}s failed", dev[i].networkId);
            continue;
        }
        openedSessionId = sessionId;
        break;
    }
    if (openedSessionId < 0) {
        OH_LOG_ERROR(LOG_APP, "[ERROR] Open session failed openedSessionId %{public}d",openedSessionId);
        return "<OpenSessionInterface> failed";
    }

    DeviceDetail deviceDetails[devNum];
    int connectNum = GetDeviceDetailInterface(deviceDetails, dev, devNum);
    OH_LOG_INFO(LOG_APP, "[INFO] Connected device count: %{public}d", connectNum);

    sendData("session_test", "**i", 3);

    return getConnectedDeviceInfo(deviceDetails, connectNum);
}

连接双方先使用hichain 认证,能看到对端设备已上线

  目前可以连接成功。连接成功的日志如下:    GetAllNodeDeviceInfo是有节点的

09-27 17:16:34.354  2058  2058 I 00000/SoftBusClient: [debug] **************** this is main function ******************
09-27 17:16:34.354  2058  2058 I 00000/SoftBusClient: [INFO] Start to CreateSessionServer
09-27 17:16:34.354   420   420 I 015c0/dsoftbus_standard: [CONN]AddTrigger fd:23 success, current fdcount:2, module:5, triggerType:1
09-27 17:16:34.354  2058  2058 I 015c0/dsoftbus_standard: [TRAN]CreateSessionServer: pkgName=softbus_sample, sessionName=session_test
09-27 17:16:34.354   420   420 E 015c0/dsoftbus_standard: [TRAN]OpenTcpDirectChannel end: channelId=69
09-27 17:16:34.354   420   420 I 015c0/dsoftbus_standard: [TRAN]lane num is 1
09-27 17:16:34.354   420   420 I 015c0/dsoftbus_standard: [TRAN]server TransOpenChannel ok: channelId=69, channelType=0
09-27 17:16:34.354  2058  2058 I 015c0/dsoftbus_standard: [LNN]NodeStateCbCount is 10
09-27 17:16:34.354   475  1490 I 015c0/dsoftbus_standard: [TRAN]OpenSession ok: sessionId=30, channelId=69, channelType = 0
09-27 17:16:34.355  2058  2058 I 015c0/dsoftbus_standard: [LNN]BusCenterClientInit init OK!
09-27 17:16:34.355  2058  2058 I 015c0/dsoftbus_standard: [DISC]Init success as client side
09-27 17:16:34.355  2058  2058 I 015c0/dsoftbus_standard: [TRAN]init tcp direct channel success.
09-27 17:16:34.355  2058  2058 I 015c0/dsoftbus_standard: [CONN]proxy auth byteSize[39992], messageSize[4096]
09-27 17:16:34.355  2058  2058 I 015c0/dsoftbus_standard: [TRAN]trans udp channel manager init success.
09-27 17:16:34.355  2058  2058 I 015c0/dsoftbus_standard: [TRAN]init trans client success
09-27 17:16:34.355   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 0
09-27 17:16:34.356   420   420 I 015c0/dsoftbus_standard: [COMM]softbus register service success softbus_sample
09-27 17:16:34.356  2058  2058 I 015c0/dsoftbus_standard: [TRAN]ReCreateSessionServerToServer
09-27 17:16:34.356  2058  2058 I 015c0/dsoftbus_standard: [TRAN]ReCreateSessionServerToServer ok
09-27 17:16:34.356  2058  2058 I 015c0/dsoftbus_standard: [COMM]softbus server register service success!
09-27 17:16:34.356  2058  2058 I 015c0/dsoftbus_standard: [COMM]softbus sdk frame init success.
09-27 17:16:34.356  2058  2058 I 015c0/dsoftbus_standard: [TRAN]session name [session_test], pkg name [softbus_sample]
09-27 17:16:34.356   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 130
09-27 17:16:34.356   420   420 I 015c0/dsoftbus_standard: [COMM]src:session_test dest:session_test
09-27 17:16:34.356   420   420 I 015c0/dsoftbus_standard: [COMM]src:softbus_sample dest:softbus_sample
09-27 17:16:34.356   420   420 I 015c0/dsoftbus_standard: [TRAN]TransCreateSessionServer:pkgName=softbus_sample, sessionName=session_test
09-27 17:16:34.356   420   420 I 015c0/dsoftbus_standard: [TRAN]TransCreateSessionServer:uid=20010037, pid=2058
09-27 17:16:34.356   420   420 I 015c0/dsoftbus_standard: [TRAN]CreateSessionServer ok
09-27 17:16:34.356  2058  2058 I 015c0/dsoftbus_standard: [TRAN]CreateSessionServer ok: ret=0
09-27 17:16:34.356  2058  2058 I 00000/SoftBusClient: [INFO] Start to PublishService
09-27 17:16:34.356  2058  2058 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:34.356  2058  2058 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 128
09-27 17:16:34.357   420  1752 I 015c0/dsoftbus_standard: [CONN]DelTrigger and node [fd:23] success, current fdcount:1, module:5, triggerType:1
09-27 17:16:34.357   420  1752 I 015c0/dsoftbus_standard: [CONN]AddTrigger fd:23 success, current fdcount:2, module:5, triggerType:0
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [DISC]register input bitmap = [128].
09-27 17:16:34.357   420  1752 I 015c0/dsoftbus_standard: [TRAN]StartVerifySession
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [DISC]register all cap bitmap = [192].
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [DISC]coap start passive publish.
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [DISC]ServerPublishService success!
09-27 17:16:34.357   420  1752 E 015c0/dsoftbus_standard: [TRAN]GetAuthSideFlag: flags=0, side=2, seq=140
09-27 17:16:34.357  2058  2058 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:16:34.357   420  1752 I 015c0/dsoftbus_standard: [AUTH]auth get last session key succ, seq is:-117440510
09-27 17:16:34.357  2058  2058 I 015c0/dsoftbus_standard: [DISC]Sdk OnPublishSuccess, publishId = 123
09-27 17:16:34.357  2058  2058 I 00000/SoftBusClient: [INFO] <PublishSuccess>CB: publish 123 done
09-27 17:16:34.357   420  1752 E 015c0/dsoftbus_standard: [TRAN]side=0, flag=0x0, seq=140
09-27 17:16:34.357  2058  2058 I 015c0/dsoftbus_standard: [DISC]PublishService send request ret = 0!
09-27 17:16:34.357  2058  2058 I 00000/SoftBusClient: [INFO] Start to Discovery
09-27 17:16:34.357  2058  2058 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:34.357  2058  2058 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:34.357   420  1752 I 015c0/dsoftbus_standard: [TRAN]StartVerifySession ok
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 138
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [DISC]register input bitmap = [128].
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [DISC]register all cap bitmap = [192].
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [DISC]coap start active discovery.
09-27 17:16:34.357   420   420 I 015c0/dsoftbus_standard: [DISC]ServerStartDiscovery success!
09-27 17:16:34.357  2058  2058 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:16:34.358  2058  2058 I 015c0/dsoftbus_standard: [DISC]Sdk OnDiscoverySuccess, subscribeId = 123
09-27 17:16:34.358  2058  2058 I 00000/SoftBusClient: [INFO] <DiscoverySuccess>CB: discover subscribeId=123
09-27 17:16:34.359   420  1752 E 015c0/dsoftbus_standard: [CONN]tcp recv data fail errno[0]
09-27 17:16:34.359   420  1752 E 015c0/dsoftbus_standard: [TRAN]recv tcp data fail.
09-27 17:16:34.359   420  1752 I 015c0/dsoftbus_standard: [TRAN]Trans Srv Recv Data ret -1.
09-27 17:16:34.359   420  1752 I 015c0/dsoftbus_standard: [CONN]DelTrigger and node [fd:23] success, current fdcount:1, module:5, triggerType:0
09-27 17:16:34.359   420  1752 I 015c0/dsoftbus_standard: [CONN]shutdown fd=23
09-27 17:16:34.359   420  1752 I 015c0/dsoftbus_standard: [TRAN]del trans land mgr.[chanid=69][type=0]
09-27 17:16:34.359   475   475 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:16:34.359   475   475 I 015c0/dsoftbus_standard: [TRAN][client] TransOnChannelOpenFailed: channelId=69, channelType=0
09-27 17:16:34.359   475   475 I 015c0/dsoftbus_standard: [TRAN]TransOnSessionOpenFailed: channelId=69, channelType=0
09-27 17:16:34.360   475   475 I 015c0/dsoftbus_standard: [TRAN]TransOnSessionOpenFailed ok
09-27 17:16:34.360   420  1752 W 015c0/dsoftbus_standard: [TRAN]trasn server on channel open failed.[pkgname=ohos.distributeddata][channid=69][type=0]
09-27 17:16:34.360   420  1752 I 015c0/dsoftbus_standard: [TRAN]TCP direct channel failed, channelId = 69, ret = 0
09-27 17:16:34.360   420  1752 E 015c0/dsoftbus_standard: [TRAN]TransDelSessionConnById: channelId=69
09-27 17:16:34.360   475  1490 I 015c0/dsoftbus_standard: [TRAN]OpenSession: mySessionName=distributeddata-default, peerSessionName=distributeddata-default
09-27 17:16:34.360   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 132
09-27 17:16:34.361   420  1459 I 015c0/dsoftbus_standard: [DISC]Server OnDeviceFound capabilityBitmap = 192
09-27 17:16:34.361   420  1459 I 015c0/dsoftbus_standard: [DISC]find callback:id = 0
09-27 17:16:34.361   420  1459 I 015c0/dsoftbus_standard: [DISC]find callback:id = 123
09-27 17:16:34.361   420   420 I 015c0/dsoftbus_standard: [COMM]src:distributeddata-default dest:distributeddata-default
09-27 17:16:34.361   420   420 I 015c0/dsoftbus_standard: [COMM]src:ohos.distributeddata dest:ohos.distributeddata
09-27 17:16:34.361   420   420 I 015c0/dsoftbus_standard: [TRAN]trans server opensession.
09-27 17:16:34.361   420   420 I 015c0/dsoftbus_standard: [TRAN]session server [distributeddata-default] is exist
09-27 17:16:34.361   420   420 I 015c0/dsoftbus_standard: [TRAN]server TransOpenChannel
09-27 17:16:34.361   420   420 I 015c0/dsoftbus_standard: [TRAN]GetAppInfo
09-27 17:16:34.361   420   420 I 015c0/dsoftbus_standard: [TRAN]TransGetUidAndPid: sessionName=distributeddata-default, uid=1000, pid=475
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient: [INFO] <DeviceFound>CB: Device has found:
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   devId=7EECF33063D8DC738C57A3AF8979B4257972A8E6DB24C3BD48B6A5096D875280
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   devName=openEuler
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   devType=175
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   addrNum=1
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   addr1:type=0,
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   ip=192.168.1.100,port=36053,
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   peerUid=
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   capabilityBitmapNum=1
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   capabilityBitmap[1]=0xc0
09-27 17:16:34.361  2058  2060 I 00000/SoftBusClient:   custData=
09-27 17:16:34.361   420   420 E 015c0/dsoftbus_standard: [TRAN]TransOpenDirectChannel
09-27 17:16:34.361   420   420 E 015c0/dsoftbus_standard: [TRAN]OpenTcpDirectChannel
09-27 17:16:34.364   420   420 I 015c0/dsoftbus_standard: [CONN]AddTrigger fd:23 success, current fdcount:2, module:5, triggerType:1
09-27 17:16:34.364   420   420 E 015c0/dsoftbus_standard: [TRAN]OpenTcpDirectChannel end: channelId=70
09-27 17:16:34.364   420   420 I 015c0/dsoftbus_standard: [TRAN]lane num is 1
09-27 17:16:34.364   420   420 I 015c0/dsoftbus_standard: [TRAN]server TransOpenChannel ok: channelId=70, channelType=0
09-27 17:16:34.364   475  1490 I 015c0/dsoftbus_standard: [TRAN]OpenSession ok: sessionId=31, channelId=70, channelType = 0
09-27 17:16:34.370   420  1752 I 015c0/dsoftbus_standard: [CONN]DelTrigger and node [fd:23] success, current fdcount:1, module:5, triggerType:1
09-27 17:16:34.370   420  1752 I 015c0/dsoftbus_standard: [CONN]AddTrigger fd:23 success, current fdcount:2, module:5, triggerType:0
09-27 17:16:34.370   420  1752 I 015c0/dsoftbus_standard: [TRAN]StartVerifySession
09-27 17:16:34.370   420  1752 E 015c0/dsoftbus_standard: [TRAN]GetAuthSideFlag: flags=0, side=2, seq=142
09-27 17:16:34.370   420  1752 I 015c0/dsoftbus_standard: [AUTH]auth get last session key succ, seq is:-117440510
09-27 17:16:34.370   420  1752 E 015c0/dsoftbus_standard: [TRAN]side=0, flag=0x0, seq=142
09-27 17:16:34.371   420  1752 I 015c0/dsoftbus_standard: [TRAN]StartVerifySession ok
09-27 17:16:34.372   420  1752 E 015c0/dsoftbus_standard: [CONN]tcp recv data fail errno[0]
09-27 17:16:34.372   420  1752 E 015c0/dsoftbus_standard: [TRAN]recv tcp data fail.
09-27 17:16:34.372   420  1752 I 015c0/dsoftbus_standard: [TRAN]Trans Srv Recv Data ret -1.
09-27 17:16:34.373   420  1752 I 015c0/dsoftbus_standard: [CONN]DelTrigger and node [fd:23] success, current fdcount:1, module:5, triggerType:0
09-27 17:16:34.373   420  1752 I 015c0/dsoftbus_standard: [CONN]shutdown fd=23
09-27 17:16:34.373   420  1752 I 015c0/dsoftbus_standard: [TRAN]del trans land mgr.[chanid=70][type=0]
09-27 17:16:34.373   475   475 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:16:34.373   475   475 I 015c0/dsoftbus_standard: [TRAN][client] TransOnChannelOpenFailed: channelId=70, channelType=0
09-27 17:16:34.373   475   475 I 015c0/dsoftbus_standard: [TRAN]TransOnSessionOpenFailed: channelId=70, channelType=0
09-27 17:16:34.373   475   475 I 015c0/dsoftbus_standard: [TRAN]TransOnSessionOpenFailed ok
09-27 17:16:34.373   420  1752 W 015c0/dsoftbus_standard: [TRAN]trasn server on channel open failed.[pkgname=ohos.distributeddata][channid=70][type=0]
09-27 17:16:34.373   420  1752 I 015c0/dsoftbus_standard: [TRAN]TCP direct channel failed, channelId = 70, ret = 0
09-27 17:16:34.373   420  1752 E 015c0/dsoftbus_standard: [TRAN]TransDelSessionConnById: channelId=70
09-27 17:16:35.354  2058  2058 I 00000/SoftBusClient: [INFO] Start to create images save path
09-27 17:16:35.355  2058  2058 I 00000/SoftBusClient: [INFO] Path is existed: /data/storage/el2/base/haps/entry/files/ai_analysis
09-27 17:16:35.355  2058  2058 I 00000/SoftBusClient: [INFO] Path is existed: /data/storage/el2/base/haps/entry/files/situation_awareness
09-27 17:16:35.355  2058  2058 I 00000/SoftBusClient: [INFO] Session server init success!!!
09-27 17:16:35.430  2058  2058 I 02200/JsApp: MainMenu[SmartSoftbusOperation]:SoftBusClient starting
09-27 17:16:36.765   420  1458 D 015c0/dsoftbus_standard: [COMM]LoopTask[Loop-default], get message. handle=auth_handler,what=2,msgSize=0
09-27 17:16:36.765   420  1458 D 015c0/dsoftbus_standard: [COMM]LoopTask[Loop-default], HandleMessage message. handle=auth_handler,what=2
09-27 17:16:36.765   420  1458 I 015c0/dsoftbus_standard: [AUTH]auth message: what = 2.
09-27 17:16:36.765   420  1458 D 015c0/dsoftbus_standard: [COMM][Loop-default]PostMessageAtTime what =2 time=1695835026765240 us
09-27 17:16:36.765   420  1458 D 015c0/dsoftbus_standard: [COMM][Loop-default]PostMessageAtTime. insert
09-27 17:16:36.765   420  1458 D 015c0/dsoftbus_standard: [COMM]DumpLooper. i=0,handler=auth_handler,what =2,arg1=0 arg2=0, time=1695835026765240
09-27 17:16:36.765   420  1458 I 015c0/dsoftbus_standard: [COMM]LoopTask[Loop-default], after HandleMessage message. what=2
09-27 17:16:39.055   454  1954 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:39.055   454  1954 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:39.055   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 144
09-27 17:16:39.055   454  1954 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:39.055   454  1954 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 142
09-27 17:16:39.056   454  1954 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:39.056   454  1954 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 144
09-27 17:16:39.056   454  1954 I 015c0/dsoftbus_standard: [TRAN]OpenSession: mySessionName=device.security.level, peerSessionName=device.security.level
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 132
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [COMM]src:device.security.level dest:device.security.level
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [COMM]src:ohos.dslm dest:ohos.dslm
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [TRAN]trans server opensession.
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [TRAN]session server [device.security.level] is exist
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [TRAN]server TransOpenChannel
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [TRAN]GetAppInfo
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [TRAN]TransGetUidAndPid: sessionName=device.security.level, uid=1000, pid=454
09-27 17:16:39.056   420   420 I 015c0/dsoftbus_standard: [TRAN]GetAppInfo ok
09-27 17:16:39.057   420   420 I 015c0/dsoftbus_standard: [LNN]PreferredLinkList not set, prop = 2.
09-27 17:16:39.057   420   420 I 015c0/dsoftbus_standard: [LNN]select lane by SmartCommunication.
09-27 17:16:39.057   420   420 I 015c0/dsoftbus_standard: [LNN]Can't support WIFI WLAN 5G.
09-27 17:16:39.057   420   420 I 015c0/dsoftbus_standard: [TRAN]TransGetLaneInfo end
09-27 17:16:39.057   420   420 I 015c0/dsoftbus_standard: [TRAN]lane info: isSupportUdp=0, isProxy=0, connType=0
09-27 17:16:39.057   420   420 E 015c0/dsoftbus_standard: [TRAN]TransOpenDirectChannel
09-27 17:16:39.057   420   420 E 015c0/dsoftbus_standard: [TRAN]OpenTcpDirectChannel
09-27 17:16:39.063   420   420 I 015c0/dsoftbus_standard: [CONN]AddTrigger fd:23 success, current fdcount:2, module:5, triggerType:1
09-27 17:16:39.063   420   420 E 015c0/dsoftbus_standard: [TRAN]OpenTcpDirectChannel end: channelId=71
09-27 17:16:39.063   420   420 I 015c0/dsoftbus_standard: [TRAN]lane num is 1
09-27 17:16:39.063   420   420 I 015c0/dsoftbus_standard: [TRAN]server TransOpenChannel ok: channelId=71, channelType=0
09-27 17:16:39.063   454  1954 I 015c0/dsoftbus_standard: [TRAN]OpenSession ok: sessionId=2, channelId=71, channelType = 0
09-27 17:16:39.064   420  1752 I 015c0/dsoftbus_standard: [CONN]DelTrigger and node [fd:23] success, current fdcount:1, module:5, triggerType:1
09-27 17:16:39.064   420  1752 I 015c0/dsoftbus_standard: [CONN]AddTrigger fd:23 success, current fdcount:2, module:5, triggerType:0
09-27 17:16:39.064   420  1752 I 015c0/dsoftbus_standard: [TRAN]StartVerifySession
09-27 17:16:39.064   420  1752 E 015c0/dsoftbus_standard: [TRAN]GetAuthSideFlag: flags=0, side=2, seq=144
09-27 17:16:39.064   420  1752 I 015c0/dsoftbus_standard: [AUTH]auth get last session key succ, seq is:-117440510
09-27 17:16:39.065   420  1752 E 015c0/dsoftbus_standard: [TRAN]side=0, flag=0x0, seq=144
09-27 17:16:39.065   420  1752 I 015c0/dsoftbus_standard: [TRAN]StartVerifySession ok
09-27 17:16:44.082   454   454 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:44.082   454   454 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:44.083   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 142
09-27 17:16:44.083   454   454 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:44.083   454   454 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:44.083   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 144
09-27 17:16:45.432  2058  2058 I 00000/SoftBusClient: [UI_INFO] get deviceInfoArray
09-27 17:16:45.434   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 139
09-27 17:16:45.434   420   420 I 015c0/dsoftbus_standard: [COMM]StopDiscoveryInner softbus_sample, 123!
09-27 17:16:45.434   420   420 I 015c0/dsoftbus_standard: [DISC]unregister input bitmap = [128].
09-27 17:16:45.434   420   420 I 015c0/dsoftbus_standard: [DISC]register all cap bitmap = [64].
09-27 17:16:45.434   420   420 I 015c0/dsoftbus_standard: [DISC]coap stop active discovery.
09-27 17:16:45.434   420   420 I 015c0/dsoftbus_standard: [DISC]ServerStopDiscovery success!
09-27 17:16:45.435  2058  2058 E 015c0/dsoftbus_standard: [DISC]StopDiscovery send request ret = 0!
09-27 17:16:45.435  2058  2058 I 00000/SoftBusClient: [INFO] Start to Discovery
09-27 17:16:45.435  2058  2058 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:45.435  2058  2058 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:45.436   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 138
09-27 17:16:45.436   420   420 I 015c0/dsoftbus_standard: [DISC]register input bitmap = [128].
09-27 17:16:45.436   420   420 I 015c0/dsoftbus_standard: [DISC]register all cap bitmap = [192].
09-27 17:16:45.436   420   420 I 015c0/dsoftbus_standard: [DISC]coap start active discovery.
09-27 17:16:45.436   420   420 I 015c0/dsoftbus_standard: [DISC]ServerStartDiscovery success!
09-27 17:16:45.436  2058  2058 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:16:45.436  2058  2058 I 015c0/dsoftbus_standard: [DISC]Sdk OnDiscoverySuccess, subscribeId = 123
09-27 17:16:45.437  2058  2058 I 00000/SoftBusClient: [INFO] <DiscoverySuccess>CB: discover subscribeId=123
09-27 17:16:45.448   420  1459 I 015c0/dsoftbus_standard: [DISC]Server OnDeviceFound capabilityBitmap = 192
09-27 17:16:45.448   420  1459 I 015c0/dsoftbus_standard: [DISC]find callback:id = 0
09-27 17:16:45.449   420  1459 I 015c0/dsoftbus_standard: [DISC]find callback:id = 123
09-27 17:16:45.449  2058  2060 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:16:45.449  2058  2060 I 015c0/dsoftbus_standard: [DISC]Sdk OnDeviceFound, capabilityBitmap = 192
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient: [INFO] <DeviceFound>CB: Device has found:
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   devId=7EECF33063D8DC738C57A3AF8979B4257972A8E6DB24C3BD48B6A5096D875280
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   devName=openEuler
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   devType=175
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   addrNum=1
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   addr1:type=0,
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   ip=192.168.1.100,port=36053,
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   peerUid=
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   capabilityBitmapNum=1
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   capabilityBitmap[1]=0xc0
09-27 17:16:45.449  2058  2060 I 00000/SoftBusClient:   custData=
09-27 17:16:46.354  2058  2058 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:46.354  2058  2058 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:46.356   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 142
09-27 17:16:46.356  2058  2058 I 00000/SoftBusClient: [INFO] <GetAllNodeDeviceInfo> by softbus_sample return 1 Node
09-27 17:16:46.357  2058  2058 I 00000/SoftBusClient: [INFO] found a device: openEuler
09-27 17:16:46.357  2058  2058 I 00000/SoftBusClient: [INFO] Start to open session peerNetworkId: 57d458cc016925a4a2a598a63d3adb09e62ce3adb66d21adb137a8c7ea48cfd5 peerSessionName: session_test
09-27 17:16:46.357  2058  2058 I 015c0/dsoftbus_standard: [TRAN]OpenSession: mySessionName=session_test, peerSessionName=session_test
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 132
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [COMM]src:session_test dest:session_test
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [COMM]src:softbus_sample dest:softbus_sample
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [TRAN]trans server opensession.
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [TRAN]session server [session_test] is exist
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [TRAN]server TransOpenChannel
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [TRAN]GetAppInfo
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [TRAN]TransGetUidAndPid: sessionName=session_test, uid=20010037, pid=2058
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [TRAN]GetAppInfo ok
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [LNN]PreferredLinkList num = 1.
09-27 17:16:46.358   420   420 I 015c0/dsoftbus_standard: [LNN]select lane with PreferredLinkList.
09-27 17:16:46.359   420   420 I 015c0/dsoftbus_standard: [TRAN]TransGetLaneInfo end
09-27 17:16:46.359   420   420 I 015c0/dsoftbus_standard: [TRAN]lane info: isSupportUdp=0, isProxy=0, connType=0
09-27 17:16:46.359   420   420 E 015c0/dsoftbus_standard: [TRAN]TransOpenDirectChannel
09-27 17:16:46.359   420   420 E 015c0/dsoftbus_standard: [TRAN]OpenTcpDirectChannel
09-27 17:16:46.361   420   420 I 015c0/dsoftbus_standard: [CONN]AddTrigger fd:23 success, current fdcount:2, module:5, triggerType:1
09-27 17:16:46.361   420   420 E 015c0/dsoftbus_standard: [TRAN]OpenTcpDirectChannel end: channelId=72
09-27 17:16:46.361   420   420 I 015c0/dsoftbus_standard: [TRAN]lane num is 1
09-27 17:16:46.361   420   420 I 015c0/dsoftbus_standard: [TRAN]server TransOpenChannel ok: channelId=72, channelType=0
09-27 17:16:46.362  2058  2058 I 015c0/dsoftbus_standard: [TRAN]OpenSession ok: sessionId=1, channelId=72, channelType = 0
09-27 17:16:46.362   420  1752 I 015c0/dsoftbus_standard: [CONN]DelTrigger and node [fd:23] success, current fdcount:1, module:5, triggerType:1
09-27 17:16:46.362   420  1752 I 015c0/dsoftbus_standard: [CONN]AddTrigger fd:23 success, current fdcount:2, module:5, triggerType:0
09-27 17:16:46.362   420  1752 I 015c0/dsoftbus_standard: [TRAN]StartVerifySession
09-27 17:16:46.363   420  1752 E 015c0/dsoftbus_standard: [TRAN]GetAuthSideFlag: flags=0, side=2, seq=146
09-27 17:16:46.363   420  1752 I 015c0/dsoftbus_standard: [AUTH]auth get last session key succ, seq is:-117440510
09-27 17:16:46.363   420  1752 E 015c0/dsoftbus_standard: [TRAN]side=0, flag=0x0, seq=146
09-27 17:16:46.363   420  1752 I 015c0/dsoftbus_standard: [TRAN]StartVerifySession ok
09-27 17:16:46.414   420  1752 I 015c0/dsoftbus_standard: [CONN]DelTrigger and node [fd:23] success, current fdcount:1, module:5, triggerType:0
09-27 17:16:46.414   420  1752 I 015c0/dsoftbus_standard: [AUTH]auth get session key by dev info succ, seq is:-117440510
09-27 17:16:46.415   420  1752 I 015c0/dsoftbus_standard: [TRAN]OpenDataBusReply: channelId=72
09-27 17:16:46.415  2058  2060 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:16:46.415  2058  2060 I 015c0/dsoftbus_standard: [CONN]create pthread now.
09-27 17:16:46.416  2058  2060 I 015c0/dsoftbus_standard: [CONN]StartBaseClient SUCCESS
09-27 17:16:46.416  2058  2060 I 015c0/dsoftbus_standard: [TRAN]create sdk listener success.
09-27 17:16:46.416  2058  2092 I 015c0/dsoftbus_standard: [CONN]ThreadPoolWorker Start
09-27 17:16:46.416  2058  2060 I 015c0/dsoftbus_standard: [CONN]AddTrigger fd:55 success, current fdcount:1, module:4, triggerType:0
09-27 17:16:46.416  2058  2060 I 015c0/dsoftbus_standard: [TRAN]TransOnSessionOpened: sessionName=session_test, flag=2, isServer=0, type=1
09-27 17:16:46.416  2058  2060 I 00000/SoftBusClient: [INFO] <SessionOpened>CB: session 1 open success, session name is: session_test
09-27 17:16:46.416  2058  2060 I 015c0/dsoftbus_standard: [TRAN]TransOnSessionOpened ok
09-27 17:16:46.417   420  1752 I 015c0/dsoftbus_standard: [TRAN]OpenDataBusReply ok
09-27 17:16:46.417   420  1752 I 015c0/dsoftbus_standard: [TRAN]Trans Srv Recv Data ret 0.
09-27 17:16:46.417   420  1752 I 015c0/dsoftbus_standard: [CONN]close fd=23
09-27 17:16:46.417   420  1752 E 015c0/dsoftbus_standard: [TRAN]TransDelSessionConnById: channelId=72
09-27 17:16:47.354  2058  2058 I 00000/SoftBusClient: [INFO] Obtaining the sessionId of device (sessionName:session_test, networkId: 57d458cc016925a4a2a598a63d3adb09e62ce3adb66d21adb137a8c7ea48cfd5), sessionId is: 1
09-27 17:16:47.355  2058  2058 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:16:47.355  2058  2058 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:16:47.356   420   420 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 144
09-27 17:16:47.356  2058  2058 I 00000/SoftBusClient: [INFO] Get device info: {deviceName: openEuler, deviceId: 57d458cc016925a4a2a598a63d3adb09e62ce3adb66d21adb137a8c7ea48cfd5}
09-27 17:16:47.356  2058  2058 I 00000/SoftBusClient: [INFO] Connected device count: 1
09-27 17:16:47.356  2058  2058 I 015c0/dsoftbus_standard: [TRAN]SendBytes: sessionId=1
09-27 17:16:47.358  2058  2058 I 00000/SoftBusClient: [INFO] Successfully send data to the device of : session_test
09-27 17:16:47.360  2058  2058 I 00000/SoftBusClient: [INFO] getConnectedDeviceInfo: deviceName: openEuler
09-27 17:16:47.360  2058  2058 I 00000/SoftBusClient: ipAddress: 192.168.1.100
09-27 17:16:47.360  2058  2058 I 00000/SoftBusClient: port: 36053;

 

但设备冷热

重启后,无法获取所有节点信息,打印如下

09-27 17:25:44.371  2002  2002 I 01150/AppkitNative: [watchdog.cpp(Init:63)]Watchdog is running!
09-27 17:25:44.819  2002  2002 I 00000/SoftBusClient: [debug] **************** this is main function ******************
09-27 17:25:44.819  2002  2002 I 00000/SoftBusClient: [INFO] Start to CreateSessionServer
09-27 17:25:44.819  2002  2002 I 015c0/dsoftbus_standard: [TRAN]CreateSessionServer: pkgName=softbus_sample, sessionName=session_test
09-27 17:25:44.819  2002  2002 I 015c0/dsoftbus_standard: [LNN]NodeStateCbCount is 10
09-27 17:25:44.820  2002  2002 I 015c0/dsoftbus_standard: [LNN]BusCenterClientInit init OK!
09-27 17:25:44.820  2002  2002 I 015c0/dsoftbus_standard: [DISC]Init success as client side
09-27 17:25:44.820  2002  2002 I 015c0/dsoftbus_standard: [TRAN]init tcp direct channel success.
09-27 17:25:44.820  2002  2002 I 015c0/dsoftbus_standard: [CONN]proxy auth byteSize[39992], messageSize[4096]
09-27 17:25:44.820  2002  2002 I 015c0/dsoftbus_standard: [TRAN]trans udp channel manager init success.
09-27 17:25:44.820  2002  2002 I 015c0/dsoftbus_standard: [TRAN]init trans client success
09-27 17:25:44.820   383   383 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 0
09-27 17:25:44.821   383   383 I 015c0/dsoftbus_standard: [COMM]softbus register service success softbus_sample
09-27 17:25:44.821  2002  2002 I 015c0/dsoftbus_standard: [TRAN]ReCreateSessionServerToServer
09-27 17:25:44.821  2002  2002 I 015c0/dsoftbus_standard: [TRAN]ReCreateSessionServerToServer ok
09-27 17:25:44.821  2002  2002 I 015c0/dsoftbus_standard: [COMM]softbus server register service success!
09-27 17:25:44.821  2002  2002 I 015c0/dsoftbus_standard: [COMM]softbus sdk frame init success.
09-27 17:25:44.821  2002  2002 I 015c0/dsoftbus_standard: [TRAN]session name [session_test], pkg name [softbus_sample]
09-27 17:25:44.821   383   383 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 130
09-27 17:25:44.821   383   383 I 015c0/dsoftbus_standard: [COMM]src:session_test dest:session_test
09-27 17:25:44.821   383   383 I 015c0/dsoftbus_standard: [COMM]src:softbus_sample dest:softbus_sample
09-27 17:25:44.821   383   383 I 015c0/dsoftbus_standard: [TRAN]TransCreateSessionServer:pkgName=softbus_sample, sessionName=session_test
09-27 17:25:44.821   383   383 I 015c0/dsoftbus_standard: [TRAN]TransCreateSessionServer:uid=20010037, pid=2002
09-27 17:25:44.821   383   383 I 015c0/dsoftbus_standard: [TRAN]CreateSessionServer ok
09-27 17:25:44.821  2002  2002 I 015c0/dsoftbus_standard: [TRAN]CreateSessionServer ok: ret=0
09-27 17:25:44.821  2002  2002 I 00000/SoftBusClient: [INFO] Start to PublishService
09-27 17:25:44.821  2002  2002 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:25:44.821  2002  2002 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 128
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [DISC]register input bitmap = [128].
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [DISC]register all cap bitmap = [192].
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [DISC]coap start passive publish.
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [DISC]ServerPublishService success!
09-27 17:25:44.822  2002  2002 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:25:44.822  2002  2002 I 015c0/dsoftbus_standard: [DISC]Sdk OnPublishSuccess, publishId = 123
09-27 17:25:44.822  2002  2002 I 00000/SoftBusClient: [INFO] <PublishSuccess>CB: publish 123 done
09-27 17:25:44.822  2002  2002 I 015c0/dsoftbus_standard: [DISC]PublishService send request ret = 0!
09-27 17:25:44.822  2002  2002 I 00000/SoftBusClient: [INFO] Start to Discovery
09-27 17:25:44.822  2002  2002 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:25:44.822  2002  2002 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 138
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [DISC]register input bitmap = [128].
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [DISC]register all cap bitmap = [192].
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [DISC]coap start active discovery.
09-27 17:25:44.822   383   383 I 015c0/dsoftbus_standard: [DISC]ServerStartDiscovery success!
09-27 17:25:44.822  2002  2002 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:25:44.822  2002  2002 I 015c0/dsoftbus_standard: [DISC]Sdk OnDiscoverySuccess, subscribeId = 123
09-27 17:25:44.822  2002  2002 I 00000/SoftBusClient: [INFO] <DiscoverySuccess>CB: discover subscribeId=123
09-27 17:25:44.835   383  1244 I 015c0/dsoftbus_standard: [DISC]Server OnDeviceFound capabilityBitmap = 192
09-27 17:25:44.835   383  1244 I 015c0/dsoftbus_standard: [DISC]find callback:id = 0
09-27 17:25:44.835   383  1244 I 015c0/dsoftbus_standard: [DISC]find callback:id = 123
09-27 17:25:44.835  2002  2005 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:25:44.835  2002  2005 I 015c0/dsoftbus_standard: [DISC]Sdk OnDeviceFound, capabilityBitmap = 192
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient: [INFO] <DeviceFound>CB: Device has found:
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   devId=7EECF33063D8DC738C57A3AF8979B4257972A8E6DB24C3BD48B6A5096D875280
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   devName=openEuler
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   devType=175
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   addrNum=1
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   addr1:type=0,
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   ip=192.168.1.100,port=36053,
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   peerUid=
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   capabilityBitmapNum=1
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   capabilityBitmap[1]=0xc0
09-27 17:25:44.835  2002  2005 I 00000/SoftBusClient:   custData=
09-27 17:25:45.519   383  1238 D 015c0/dsoftbus_standard: [COMM]LoopTask[Loop-default], get message. handle=auth_handler,what=2,msgSize=0
09-27 17:25:45.519   383  1238 D 015c0/dsoftbus_standard: [COMM]LoopTask[Loop-default], HandleMessage message. handle=auth_handler,what=2
09-27 17:25:45.519   383  1238 I 015c0/dsoftbus_standard: [AUTH]auth message: what = 2.
09-27 17:25:45.519   383  1238 D 015c0/dsoftbus_standard: [COMM][Loop-default]PostMessageAtTime what =2 time=1695835575519817 us
09-27 17:25:45.519   383  1238 D 015c0/dsoftbus_standard: [COMM][Loop-default]PostMessageAtTime. insert
09-27 17:25:45.520   383  1238 D 015c0/dsoftbus_standard: [COMM]DumpLooper. i=0,handler=auth_handler,what =2,arg1=0 arg2=0, time=1695835575519817
09-27 17:25:45.520   383  1238 I 015c0/dsoftbus_standard: [COMM]LoopTask[Loop-default], after HandleMessage message. what=2
09-27 17:25:45.819  2002  2002 I 00000/SoftBusClient: [INFO] Start to create images save path
09-27 17:25:45.820  2002  2002 I 00000/SoftBusClient: [INFO] Path is existed: /data/storage/el2/base/haps/entry/files/ai_analysis
09-27 17:25:45.820  2002  2002 I 00000/SoftBusClient: [INFO] Path is existed: /data/storage/el2/base/haps/entry/files/situation_awareness
09-27 17:25:45.820  2002  2002 I 00000/SoftBusClient: [INFO] Session server init success!!!
09-27 17:25:45.896  2002  2002 I 00000/SoftBusClient: [UI_INFO] onPageShow
09-27 17:25:45.897  2002  2002 I 02200/JsApp: MainMenu[SmartSoftbusOperation]:SoftBusClient starting
09-27 17:25:55.898  2002  2002 I 00000/SoftBusClient: [UI_INFO] get deviceInfoArray
09-27 17:25:55.899   383   383 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 139
09-27 17:25:55.899   383   383 I 015c0/dsoftbus_standard: [COMM]StopDiscoveryInner softbus_sample, 123!
09-27 17:25:55.899   383   383 I 015c0/dsoftbus_standard: [DISC]unregister input bitmap = [128].
09-27 17:25:55.899   383   383 I 015c0/dsoftbus_standard: [DISC]register all cap bitmap = [192].
09-27 17:25:55.899   383   383 I 015c0/dsoftbus_standard: [DISC]coap stop active discovery.
09-27 17:25:55.899   383   383 I 015c0/dsoftbus_standard: [DISC]ServerStopDiscovery success!
09-27 17:25:55.899  2002  2002 E 015c0/dsoftbus_standard: [DISC]StopDiscovery send request ret = 0!
09-27 17:25:55.899  2002  2002 I 00000/SoftBusClient: [INFO] Start to Discovery
09-27 17:25:55.899  2002  2002 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:25:55.899  2002  2002 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:25:55.899   383   383 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 138
09-27 17:25:55.899   383   383 I 015c0/dsoftbus_standard: [DISC]register input bitmap = [128].
09-27 17:25:55.900   383   383 I 015c0/dsoftbus_standard: [DISC]register all cap bitmap = [192].
09-27 17:25:55.900   383   383 I 015c0/dsoftbus_standard: [DISC]coap start active discovery.
09-27 17:25:55.900   383   383 I 015c0/dsoftbus_standard: [DISC]ServerStartDiscovery success!
09-27 17:25:55.900  2002  2002 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:25:55.900  2002  2002 I 015c0/dsoftbus_standard: [DISC]Sdk OnDiscoverySuccess, subscribeId = 123
09-27 17:25:55.900  2002  2002 I 00000/SoftBusClient: [INFO] <DiscoverySuccess>CB: discover subscribeId=123
09-27 17:25:55.906   383  1244 I 015c0/dsoftbus_standard: [DISC]Server OnDeviceFound capabilityBitmap = 192
09-27 17:25:55.906   383  1244 I 015c0/dsoftbus_standard: [DISC]find callback:id = 0
09-27 17:25:55.906   383  1244 I 015c0/dsoftbus_standard: [DISC]find callback:id = 123
09-27 17:25:55.907  2002  2005 W 015c0/dsoftbus_standard: [COMM]softbus log len error
09-27 17:25:55.907  2002  2005 I 015c0/dsoftbus_standard: [DISC]Sdk OnDeviceFound, capabilityBitmap = 192
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient: [INFO] <DeviceFound>CB: Device has found:
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   devId=7EECF33063D8DC738C57A3AF8979B4257972A8E6DB24C3BD48B6A5096D875280
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   devName=openEuler
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   devType=175
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   addrNum=1
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   addr1:type=0,
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   ip=192.168.1.100,port=36053,
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   peerUid=
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   capabilityBitmapNum=1
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   capabilityBitmap[1]=0xc0
09-27 17:25:55.907  2002  2005 I 00000/SoftBusClient:   custData=
09-27 17:25:56.819  2002  2002 I 015c0/dsoftbus_standard: [COMM]exist same pkg name
09-27 17:25:56.820  2002  2002 E 015c0/dsoftbus_standard: [COMM]Add CheckPkgNameInfo failed.
09-27 17:25:56.821   383   383 I 015c0/dsoftbus_standard: [COMM]SoftBusServerStub::OnReceived, code = 142
09-27 17:25:56.821  2002  2002 I 00000/SoftBusClient: [INFO] <GetAllNodeDeviceInfo> by softbus_sample return 0 Node
09-27 17:25:56.821  2002  2002 E 00000/SoftBusClient: [ERROR] <GetAllNodeDeviceInfoInterface> failed

 

通过断开wifi再打开wifi,或者重启softbus_server可以恢复正常

 

 

 

 

Logo

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

更多推荐