Information processing method, device, equipment, and computer storage medium

By obtaining and using the security domain identity information of IoT devices, the discovery request is constructed, and only the resources matching its security domain are requested, which solves the problem of information redundancy in the discovery process of IoT devices and improves data processing efficiency.

CN115834202BActive Publication Date: 2024-11-01GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211476242.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-27
Publication Date
2024-11-01
Estimated Expiration
2040-05-27

AI Technical Summary

Technical Problem

In the Internet of Things device, during the device discovery and resource discovery process, the resource list received by the first device often contains undesirable information, resulting in information redundancy and reducing data processing efficiency.

Method used

By acquiring the identity information of the first security domain, constructing and sending matching discovery request information, only requesting resources from target devices matching the security domain, thereby reducing unnecessary resource return.

Benefits of technology

The information redundancy is effectively reduced, the data processing efficiency of the device is improved, and the first device only receives the target resources of the target device matching its security domain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834202B_ABST
    Figure CN115834202B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an information processing method, which is applied to a first device, and the method includes: obtaining first identity information of a first security domain; obtaining first discovery request information based on the first identity information; the first discovery request information is used to request a target resource of a target device matching the first identity information; and sending the first discovery request information. The embodiment of the present application also provides an information processing apparatus, a device, and a computer storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the PCT international patent application PCT / CN2020 / 092685 with an application date of May 27, 2020, which entered the Chinese national phase with Chinese patent application number 202080093549.3 and the invention name being “Information processing methods, devices, equipment, and computer storage media.” Technical Field

[0002] The present application relates to the technical field of Internet of Things, and in particular to an information processing method and apparatus, equipment, and computer storage medium. Background Art

[0003] The Internet of Things (IOT) is an important part of the new generation of information technology. IOT is a network that connects any IOT device to the Internet according to the agreed protocol to exchange information and communicate, so as to realize the intelligent identification, positioning, tracking, monitoring and management of the device.

[0004] With the popularization of IOT technology, some IOT devices that need to cooperate with each other often need to perform device discovery and device resource discovery. At present, in the method for discovering IoT devices and device resources, a first device (such as a client) can send a discovery request to multiple second devices (such as a server) in a local area network, and each second device that receives the discovery request will respond to the discovery request and return its own resource list to the first device.

[0005] In this way, the first device will receive resource lists returned by multiple second devices, and the received resource lists are likely to include information that the first device does not expect (for example, resource lists returned by second devices that the first device cannot control); this causes information redundancy and reduces the data processing efficiency of the first device. Summary of the invention

[0006] The embodiments of the present application provide an information processing method and apparatus, a device, and a computer storage medium.

[0007] In a first aspect, an embodiment of the present application provides an information processing method, which is applied to a first device, and the method includes:

[0008] Obtaining first identity information of a first security domain;

[0009] Based on the first identity information, first discovery request information is obtained; the first discovery request information is used to request a target resource of a target device matching the first identity information;

[0010] Send the first discovery request information.

[0011] In a second aspect, an embodiment of the present application provides an information processing method, which is applied to a second device, and the method includes:

[0012] Receive first discovery request information; the first discovery request information includes first identity information of a first security domain; the first discovery request information is used to request a target resource of a target device matching the first identity information;

[0013] Based on the first identity information, determine whether to send the target resource.

[0014] In a third aspect, an embodiment of the present application provides an information processing device, which is applied to a first device, and the information processing device includes:

[0015] A first acquiring unit, configured to acquire first identity information of a first security domain;

[0016] A first processing unit is configured to obtain first discovery request information based on the first identity information; the first discovery request information is used to request a target resource of a target device matching the first identity information;

[0017] The first transceiver unit is configured to send the first discovery request information.

[0018] In a fourth aspect, an embodiment of the present application provides an information processing apparatus, applied to a second device, the information processing apparatus comprising:

[0019] A second transceiver unit is configured to receive a first discovery request message; the first discovery request message includes first identity information of a first security domain; the first discovery request message is used to discover a target resource of a target device matching the first identity information;

[0020] The second processing unit is configured to determine whether to send the target resource based on the first identity information.

[0021] In a fifth aspect, an embodiment of the present application provides a device, the device comprising: a first transceiver, a first processor, and a first memory storing a computer program;

[0022] The first transceiver, the first processor and the first memory communicate with each other via a first communication bus;

[0023] The first processor is configured to communicate with another device through the transceiver; wherein,

[0024] The first processor is further configured to execute the steps of the information processing method described in the first aspect when running the computer program stored in the first memory in conjunction with the first transceiver.

[0025] In a sixth aspect, an embodiment of the present application provides a device, the device comprising: a second transceiver, a second processor, and a second memory storing a computer program;

[0026] The second transceiver, the second processor and the second memory communicate with each other via a second communication bus;

[0027] The second processor is configured to communicate with another device through the transceiver; wherein,

[0028] The second processor is further configured to execute the steps of the second information processing method when running the computer program stored in the second memory in conjunction with the second transceiver.

[0029] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a first processor to implement the steps of the method described in the first aspect; or; the computer program is executed by a second processor to implement the steps of the method described in the second aspect.

[0030] The information processing method and apparatus, device, and computer storage medium provided by the embodiments of the present application, wherein the first device obtains the first identity information of the first security domain; based on the first identity information, obtains the first discovery request information; the first discovery request information is used to request the target resource of the target device that matches the first identity information; and sends the first discovery request information. In other words, the first discovery request information is only used to request the target resource stored in the target device that matches the first security domain, so that the information received by the first device is the target resource of the target device that matches the first security domain (i.e., the first identity information); in this way, the redundancy of information is reduced and the processing efficiency of the first device is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of an exemplary application scenario of a discovery process provided in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of a network structure provided for an embodiment of the present application;

[0033] Figure 3 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 1 ;

[0034] Figure 4 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 2 ;

[0035] Figure 5 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 3 ;

[0036] Figure 6 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 4 ;

[0037] Figure 7 A schematic diagram of an application scenario of an information processing method provided in an embodiment of the present application;

[0038] Figure 8 A schematic diagram of a device discovery or resource discovery process provided in an embodiment of the present application Figure 1 ;

[0039] Fig. 9 A schematic diagram of a device discovery or resource discovery process provided in an embodiment of the present application Figure 2 ;

[0040] Fig.10 A schematic diagram of a device discovery or resource discovery process provided in an embodiment of the present application Figure 3 ;

[0041] Fig.11 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application Figure 1 ;

[0042] Fig.12 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application Figure 2 ;

[0043] Fig.13 A schematic diagram of the hardware structure of a first device provided in an embodiment of the present application Figure 1 ;

[0044] Fig.14 A schematic diagram of the hardware structure of a second device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present invention.

[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0047] In practical applications, you can use the well-known oic / res resource as the default discovery mechanism. Figure 1 The application scenario diagram of the discovery process shown in FIG. 1 may include multiple server devices (including Figure 1 The refrigerator 11, the light 12 and the temperature sensor 13 shown in the figure and a client device (such as Figure 1 The specific discovery process is as follows:

[0048] (1) Each server device can update the discoverable resources to the local / oic / res resource of the server. That is, each time a new discoverable resource is instantiated on the server device, the instantiated resource needs to be updated to the local / oic / res resource of the server device.

[0049] (2) In order to discover resources or resource types on multiple server devices, the client device can issue a RETRIEVE request to the / oic / res resource of multiple server devices. In addition, the client device can use query conditions in the RETRIEVE request to limit the objects to be discovered. The query conditions can be limited based on resource type, interface or attribute.

[0050] (3) The server device that receives the RETRIEVE request responds to the request and returns the resource list stored in the / oic / res resource.

[0051] That is to say, any server device that receives a RETRIEVE request needs to respond to the request and return its resource list to the client device. The resource list received by the client device may contain information that the client device does not expect, such as a resource list returned by a server device that is not in the same security domain as the client device, or a resource list returned by a server device that is not controlled by the client device. This causes information redundancy and reduces the data processing efficiency of the client device.

[0052] Based on this, the embodiments of the present application provide an information processing method and device, and a computer storage medium. Figure 2 Schematic diagram of a network structure 200 applicable to the embodiment of the present application. Figure 2 , the network structure 200 includes a client device 210 and a server device 220. Among them, the client device 210 refers to a device for accessing resources, and the server device refers to a device for providing resources. It should be understood that the client device has the function of querying and controlling other devices, and the server device can be queried and controlled by other devices; that is, in the network structure 200 provided by the implementation of this application, any device with the function of querying and controlling other devices can be used as a client device, and at the same time, any device that can be queried and controlled can be used as a server device. It should be noted that a device that implements a certain basic function (such as a light bulb) can only serve as a server, provided to the client for query and control, and has no need to control or query other devices.

[0053] The client device 210 and the server device 220 involved in the embodiment of the present application include but are not limited to smart phones, tablets, laptops, wearable devices, vehicle-mounted devices, smart home devices, smart security devices, etc. Smart home devices include but are not limited to smart air conditioners, refrigerators, smart door locks, smart lamps, etc., and smart security devices include but are not limited to smoke and gas alarm devices, infrared probes, infrared fences, etc.

[0054] Figure 2 One client device 210 and two server devices 220 are exemplarily shown. Optionally, the network structure may include multiple client devices and other numbers of server devices, which is not limited in the embodiments of the present application.

[0055] It should be understood that the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0056] Figure 3 This is a schematic diagram of an information processing method provided in an embodiment of the present application. Figure 1 The information processing method is executed by a first device, which may be Figure 2 The client device 210 is shown. The information processing method includes the following contents.

[0057] Step 310: Obtain first identity information of a first security domain.

[0058] Here, the security domain can also be called a security domain network, which is a specific IoT network. The security domain network has an independent security protocol (or security mechanism), and IoT devices in the same security domain network can be interconnected, interoperable, discover each other, and transmit instructions to each other. It is understandable that two devices that are not in the same security domain network cannot access each other's IoT devices in the security domain network due to the restrictions of the security protocol in the security domain network.

[0059] Among them, the relevant information of the security domain to which each device belongs can be configured by the user or by other devices (such as an Internet of Things server), which is not limited here in the embodiments of the present application.

[0060] In the embodiment provided in the present application, the relevant information of the security domain to which the device belongs includes at least the identity information of the security domain; here, the identity information of the security domain can identify the security domain.

[0061] In a possible implementation, the identity information of the security domain may include identification information of the security domain and / or name information of the security domain. It should be understood that in the embodiment of the present application, the first identity information may include identification information of the first security domain and / or name information of the first security domain.

[0062] In the embodiment provided in the present application, the first security domain may be the security domain to which the first device belongs; the first security domain may also be any security domain except the security domain to which the first device belongs. The embodiment of the present application does not limit the first security domain.

[0063] Step 320: obtaining first discovery request information based on the first identity information; the first discovery request information is used to request a target resource of a target device matching the first identity information;

[0064] In the embodiment provided in the present application, the first device can construct the first discovery request information based on the first identity information; that is, the first identity information is carried in the first discovery request information, and is used to request the target resource stored in the target device matching the first identity information in the network. In this way, the first device adds a filtering condition based on the security domain to the first discovery request information, so that only the device that receives the first discovery request information and whose identity information of the security domain matches the first identity information will respond to the first discovery request information, thereby avoiding the problem of all devices in the network that receive the discovery request information returning a resource list, resulting in information redundancy.

[0065] It should be noted that the first discovery request in the embodiment of the present application is used to discover the target resource of the target device matching the first identity information, which may include two meanings: first, when the first device first accesses the local area network or starts the device discovery mechanism, the first discovery request is used to discover the target device matching the first identity information in the local area network, as well as the target resource stored in each target device; second, when the first device knows the device location in the local area network or starts the resource discovery mechanism, the first discovery request is used to discover the target resource stored in the known device in the local area network. That is, the first discovery request in the embodiment of the present application can be used to realize both device discovery in the network and resource discovery in the network.

[0066] Step 330: Send a first discovery request message.

[0067] In a possible implementation, the first device may send a first discovery request message to at least one second device. Here, the second device may be Figure 2 The server device 220 and the server device 230 are shown.

[0068] In a possible implementation, the first device may send the first discovery request information to at least one second device by broadcasting or multicasting. Here, the first device sends the first discovery request information to at least one second device by broadcasting or multicasting, which may be performed when the first device first accesses the local area network or starts the device discovery mechanism.

[0069] In a possible implementation, the first device may also send the first discovery request information to at least one second device in a unicast manner. Here, the first device may send the first discovery request information in a unicast manner when the address of the second device is known.

[0070] It can be seen that in the information processing method provided by the embodiment of the present application, the first device obtains the first identity information of the first security domain; then, based on the first identity information, the first discovery request information is obtained; the first discovery request information is used to request the target resource of the target device matching the first identity information; and the first discovery request information is sent. In other words, the first discovery request information is only used to request the target resource stored in the target device matching the first security domain, so that the information received by the first device is the target resource of the target device matching the first security domain (i.e., the first identity information); in this way, the redundancy of information is reduced and the processing efficiency of the first device is improved.

[0071] Based on the above embodiment, there are multiple specific implementation methods for obtaining the first identity information of the first security domain in step 310, and two of them are described in detail below: method 1 and method 2.

[0072] Method 1

[0073] In a possible implementation manner, the process of obtaining the first identity information of the first security domain is as follows:

[0074] The identity information of the security domain to which the first device belongs is determined as the first identity information of the first security domain.

[0075] It can be understood that the first security domain may be a security domain to which the first device belongs, and the first identity information is the identity information of the security domain to which the first device belongs.

[0076] In the embodiment provided in the present application, the first device can view the locally configured security domain resources, that is, the security domain information stored in the / oic / sec / sdi resource, and find the first identity information in the security domain information. Here, the first identity information can be the security domain identification information and / or security domain name information of the security domain to which the first device belongs.

[0077] Furthermore, the first device determines the identity information of the security domain to which the first device belongs as the first identity information of the first security domain, and constructs the first discovery request information. In this way, by directly using the identity information of the security domain to which the first device belongs as the first identity information to construct the first discovery request information, it is possible to accurately discover devices in the same security domain as the first device, that is, devices that can be interconnected with the first device, so as to improve the discovery efficiency.

[0078] Method 2

[0079] In a possible implementation manner, the process of obtaining the first identity information of the first security domain is as follows:

[0080] Obtaining a setting instruction; the setting instruction includes identity information of a specific security domain;

[0081] Respond to the setting instruction and determine the first identity information of the first security domain by using the identity information of the specific security domain.

[0082] In the embodiments provided in the present application, the first device can obtain the setting instructions input by the user through any type of input module, respond to the received setting instructions, and set the identity information of the specific security domain carried in the setting instructions as the first identity information of the first security domain, that is, the first identity information can be the identity information of any security domain input by the user.

[0083] It should be noted that the identity information of the specific security domain input by the user may be security domain identification information and / or security domain name information of any security domain.

[0084] Furthermore, after determining the first identity information, the first device constructs the first discovery request information based on the first identity information. In this way, the first device can construct the first discovery request information based on the identity information of any security domain input by the user to discover the target information of the target device matching the input security domain, that is, the information the user expects to obtain; thus improving the flexibility of device discovery and resource discovery.

[0085] In a possible implementation, as an embodiment, refer to Figure 4 A schematic diagram of an information processing method shown Figure 2 Before obtaining the first discovery request information based on the first identity information in step 320, the method further includes the following steps:

[0086] Step 311: Obtain a privacy identifier of the security domain to which the first device belongs;

[0087] Step 312: If the privacy identifier indicates that the resource of the first device is a private resource, generate and present confirmation information; the confirmation information is used to confirm whether to perform discovery based on the identity information of the security domain;

[0088] Step 313: receiving feedback information for the confirmation information;

[0089] Accordingly, step 320 obtains the first discovery request information based on the first identity information, which can be implemented by step 320':

[0090] Step 320': if the feedback information indicates that the discovery is to be performed based on the identity information of the security domain, a first discovery request information is constructed based on the first identity information.

[0091] Here, the security domain information of each device may also include a privacy identifier priv. The privacy identifier may be used to indicate the visibility of the security domain information in the device, and may also be understood as the visibility of the security domain resources.

[0092] When the privacy flag priv of a device is set to "false", the security domain resources of the device are considered visible, so the security domain information of the device (specifically, the identity information of the security domain) is disclosed in the / oic / res resource of the device. When the privacy flag priv of a device is set to "true", the security domain resources of the device are considered invisible resources, so the security domain information of the device (specifically, the identity information of the security domain) is not disclosed in the / oic / res resource of the device.

[0093] In the embodiment provided in the present application, before the first device performs device discovery or resource discovery, the first device may first check whether its privacy identifier indicates that the security domain resources of the first device are invisible resources. When the security domain resources of the first device are invisible resources, there may be a risk of resource leakage when performing device discovery and resource discovery. Therefore, when the privacy identifier indicates that the resources of the first device are invisible resources, it is also necessary to confirm with the user whether to perform discovery based on the security domain.

[0094] In a possible implementation, the first device may present confirmation information to the user through an interactive interface of the display apparatus to inquire whether to perform device discovery or resource discovery based on the security domain.

[0095] Here, after outputting the confirmation information, the first device waits for feedback information input by the user. If the received feedback information is used to indicate discovery based on the identity information of the security domain, the first discovery request information is obtained based on the first identity information. In this way, the security of data transmission is improved.

[0096] It should be noted that steps 311 to 313 may be performed before step 310, after step 310, or simultaneously with step 310. The present application embodiment is not limited here.

[0097] In a possible implementation, step 320 obtains first discovery request information based on the first identity information, including:

[0098] Get the Uniform Resource Identifier (URI) of the target resource and the request address;

[0099] The first discovery request information is constructed based on the resource unified identifier of the target resource, the request address, and the first identity information.

[0100] Here, after determining the first identity information of the first security domain, the first device can determine the request address and the URI corresponding to the requested target resource according to the user's device discovery or resource discovery requirements. Further, the first discovery request information is constructed according to the URI of the target resource, the request address, and the first identity information.

[0101] In a possible implementation, the request address may be a multicast address.

[0102] In another possible implementation, the request address may also be a unicast address.

[0103] Here, the request address can be determined according to the user's device discovery or resource discovery requirements. If the user needs to request all devices in the local area network, the request address can be a multicast address. When the user knows the addresses of some devices and needs to request the resources of more of these devices, the addresses of these devices can be directly used as the request address.

[0104] Combination of the above Figure 3 and Figure 4 , describes in detail the information processing method provided by the embodiment of the present application from the perspective of the first device, and the following is combined with Figure 5 and Figure 6 , the method for information processing provided by the embodiment of the present application is described in detail from the perspective of the second device. It should be understood that the description on the first device side corresponds to the description on the second device side, and similar descriptions can be found above. To avoid repetition, they will not be repeated here.

[0105] Figure 5 This is a schematic diagram of an information processing method provided in an embodiment of the present application. Figure 3 The information processing method is executed by a second device, which may be Figure 2 The server device 220 or the server device 230 shown. The information processing method includes the following contents.

[0106] Step 510: Receive first discovery request information; the first discovery request information includes first identity information of a first security domain; the first discovery request information is used to discover target resources of a target device matching the first identity information;

[0107] In a possible implementation manner, the second device receives first discovery request information sent by the first device.

[0108] In another possible implementation manner, the second device receives the first discovery request information sent by the first device and forwarded by other devices.

[0109] Step 520: Determine whether to send the target resource based on the first identity information.

[0110] Here, the first discovery request information is used to request the target resource stored in the target device that matches the first identity information. In the embodiment of the present application, after receiving the first discovery request information, the second device can parse the first identity information of the first security domain from the first discovery request information, and based on the first identity information, determine whether it matches the first identity information. If it matches, it responds to the first discovery request information and determines to send its own target resource. If it does not match, it does not respond to the first discovery request information and determines not to send its own target resource.

[0111] That is to say, the second device can respond to the first discovery request information and return the target resources in the second device only if it matches the first identity information carried in the first discovery request information. In this way, the information received by the first device is the target resources of the target device that matches the first security domain (i.e., the first identity information); in this way, the redundancy of information is reduced and the processing efficiency of the first device is improved.

[0112] In one possible implementation, reference Figure 6 A schematic diagram of an information processing method shown Figure 4 , based on the first identity information, the implementation process of determining whether to send the target resource of the second device is:

[0113] Step 5201: Obtain resource description information of the second device.

[0114] In the embodiment provided in the present application, the resource description information of the second device may be attribute information in the / oic / res resource of the second device.

[0115] Step 5202: determine whether the resource description information of the second device includes second identity information; the second identity information is the identity information of the security domain to which the second device belongs;

[0116] It can be understood that judging whether the second identity information matches the first identity information is to determine whether the security domain of the second device is the same as the first security domain carried in the first discovery request information.

[0117] Here, the second identity information may include identification information of the security domain to which the second device belongs and / or name information of the security domain to which the second device belongs. In the embodiment provided in the present application, the second device may search for identification information of the security domain to which the second device belongs and / or name information of the security domain to which the second device belongs from the attribute information of the / oic / res resource.

[0118] It should be noted that when the first identity information is the identification information of the first security domain, the second device needs to obtain the identification information of the security domain to which it belongs to match the first identity information. When the first identity information is the name information of the first security domain, the second device needs to obtain the name information of the security domain to which the second device belongs to match the first identity information. When the first identity information is the identification information and name information of the first security domain, the second device needs to obtain the identification information and name information of the security domain to which the second device belongs to match the first identity information. In this case, the second identity information can be determined to match the first identity information only when both the identification information and the name information match; or the second identity information can be determined to match the first identity information when any one of the identification information and the name information matches. The embodiment of the present application is not limited here.

[0119] Step 5203: If the resource description information of the second device includes the second identity information, and the second identity information matches the first identity information, determine to send the target resource.

[0120] Here, if the second identity information matches the first identity information, it can be considered that the security domain of the second device is the same as the security domain of the first device. The second device responds to the first discovery request information, that is, the second device obtains the target resource requested in the first discovery request information and sends the target resource.

[0121] Step 5204: If the resource description information of the second device includes the second identity information, and the second identity information does not match the first identity information, determine not to send the target resource.

[0122] Here, if the second identity information does not match the first identity information, it can be considered that the security domain of the second device is not the same as the security domain of the first device, and the second device does not respond to the first discovery request information, that is, the second device does not send the target resource.

[0123] Step 5205: If the resource description information of the second device does not include the second identity information, determine not to send the target resource.

[0124] Here, the second device's resource description information does not include the second identity information, which may be caused by two situations: situation one, the second device does not implement security domain resources, or the second device does not configure security domain information; situation two, the privacy flag in the security domain information of the second device is set to "true". In the above two situations, the second device and the first device cannot achieve device discovery or resource discovery based on the security domain. Therefore, when the second identity information is included in the resource description information of the second device, the second device can determine not to respond to the first discovery request information, that is, not to send the target resource.

[0125] In a possible implementation, after step 5203 determines to send the target resource, the following steps are further included:

[0126] Determine the second device as the target device, and obtain the target resource in the second device;

[0127] The target resource is sent to the first device.

[0128] Here, after the second device determines that the second identity information matches the first identity information, it can determine that it is the target device. After determining to send the target resource, the second device responds to the first discovery request information, that is, obtains the target resource required in the first discovery request, and sends the target resource to the first device.

[0129] Optionally, the second device sends the target resource to the first device via unicast.

[0130] In summary, in the information processing method provided by the present application, the second device can respond to the first discovery request information and return the target resource in the second device only if it matches the first identity information carried in the first discovery request information. In this way, the information received by the first device is the target resource of the target device that matches the first security domain (i.e., the first identity information); in this way, the redundancy of the information is reduced and the processing efficiency of the first device is improved.

[0131] The data processing method provided in the embodiment of the present application is described in detail below in conjunction with actual application scenarios.

[0132] refer to Figure 7 In the application scenario diagram shown, there are three server devices in the local area network 700, namely device 1, device 2 and device 3, and a client device.

[0133] Device 1, device 2 and device 3 constitute a multicast group named "all nodes", wherein the multicast address of the "all nodes" multicast group includes: multicast service address: ff02::158, port information 5683.

[0134] exist Figure 7 In the example, device 1 and the client device are in the same security domain, and the security domain information of device 1 is configured to be discoverable (i.e., the privacy flag sdi.priv=false in the security domain information of device 1). An example of the / oic / res resource of device 1 is as follows (ignoring the list of common resources):

[0135] {

[0136] "rt":["oic.wk.res"], / / Resource type

[0137] "if":["oic.if.ll","oic.if.b","oic.if.baseline"], / / Resource interface

[0138] "links":[ / / Resource list

[0139] {

[0140] "href":" / light", / / Uniform Resource Identifier parameter

[0141] "anchor":"ocf: / / 11ace64c-2412-4e9f-aa8b-e6128473bb65", / / Uniform Resource Identifier parameter

[0142] "rt":["oic.r.light"], / / Resource type

[0143] "if":["oic.if.s","oic.if.baseline"] / / Resource interface

[0144] }

[0145] ],

[0146] "sduuid":"12345678-1234-1234-1234-123412341234", / / Security domain identification information

[0147] "sdname":"Alice's Home" / / Security domain name information

[0148] }

[0149] Device 2 and the client device are not in the same security domain, and the security domain information of device 2 is configured to be discoverable (i.e., the privacy flag sdi.priv=false in the security domain information of device 2). An example of the / oic / res resource of device 2 is as follows (ignore the list of common resources):

[0150] {

[0151] "rt":["oic.wk.res"], / / Resource type

[0152] "if":["oic.if.ll","oic.if.b","oic.if.baseline"], / / Resource interface

[0153] "links":[ / / Resource list

[0154] {

[0155] "href":" / switch", / / Uniform Resource Identifier parameter

[0156] "anchor":"ocf: / / 0873bc75-3140-49a6-44e6-f74acfa2028c", / / Uniform Resource Identifier parameter

[0157] "rt":["oic.switch.binary"], / / Resource type

[0158] "if":["oic.if.a","oic.if.baseline"], / / resource interface

[0159] }

[0160] ],

[0161] "sduuid":"dc70373c-1e8d-4fb3-962e-017eaa863989", / / Security domain identification information

[0162] "sdname":"Bob's Home" / / Security domain name information

[0163] }

[0164] The security domain information of device 3 is configured to be invisible (ie, the privacy flag sdi.priv in the security domain information of device 3 = true). Alternatively, device 3 is not configured with the security domain resource / oic / sec / sdi resource.

[0165] based on Figure 7 In the application scenario shown in FIG. 1 , in one example, when a client device first accesses a local area network 700 or when a client device starts a device discovery mechanism, reference Figure 8 The device discovery or resource discovery process shown Figure 1 The operation process of the client device (i.e., the first device described above) performing LAN device discovery or resource discovery includes the following steps:

[0166] Step 1: The client device (ie, the first device) checks its own security domain information to obtain the identity information of the security domain to which the client device belongs.

[0167] Optionally, the identity information of the security domain to which the client belongs is security domain identification information (sduuid); for example, the sduuid of the client device is 12345678-1234-1234-1234-1234123412341234.

[0168] Optionally, the identity information of the security domain to which the client belongs may also be security domain name information (sdname). For example, the sdname of the client device is Alice's Home.

[0169] Optionally, sduuid and sdname may also be used as identity information of the security domain to which the client belongs.

[0170] Step 2: The client device (ie, the first device) constructs first discovery request information based on the identity information obtained in step 1. The first discovery request may be sent in a multicast manner.

[0171] In the embodiment provided in the present application, the client device can join when it needs to perform device discovery. Figure 7 The "all nodes" multicast group shown; the client device sends a first discovery request to all devices in the "all nodes" multicast group via multicast, and the URI of the requested resource is " / oic / res".

[0172] In the embodiment provided in the present application, the first discovery request information can be constructed based on the Constrained Application Protocol (CoAP).

[0173] Here, taking the client obtaining sduuid as the identity information of the security domain to which it belongs as an example, the process of constructing the first discovery request information is explained. Specifically, the client device can construct the first discovery request information according to the multicast address ([ff02::158]:5683), the target resource oic / res, and the sduuid value of the security domain to which the client device belongs. The first discovery request information can be:

[0174] RETRIEVE coap: / / [ff02::158]:5683 / oic / res? sduuid="12345678-1234-1234-1234-123412341234".

[0175] Step 3, device 1, device 2 and device 3 receive the first discovery request information, parse the target resource indicated by the first discovery request information (i.e., the / oic / res resource), and the filtering condition (i.e., the identity information of the security domain to which the client device belongs), and then device 1, device 2 and device 3 determine whether there are sduuid and / or sdname attributes (i.e., the second identity information) in the attributes of their own / oic / res resources.

[0176] Here, when the first identity information carried in the first discovery request information sent by the client device is sduuid, device 1, device 2 and device 3 determine whether their own / oic / res resources have sduuid attributes. When the first identity information carried in the first discovery request information sent by the client device is sdname, device 1, device 2 and device 3 determine whether their own / oic / res resources have sduuid attributes. In addition, when the first identity information carried in the first discovery request information sent by the client device is sduuid and sdname, device 1, device 2 and device 3 determine whether their own / oic / res resources have sduuid and sdname attributes.

[0177] Step 4a: After receiving the first discovery request information, device 1 checks the attribute information of its own / oic / res resource including the sduuid and / or sdname attributes.

[0178] And device 1 has a sduuid value of "12345678-1234-1234-1234-123412341234" and a sdname value of "Alice's Home", which matches the sduuid and / or sdname values ​​in the first discovery request.

[0179] Further, execute step 5a.

[0180] Step 5a: Device 1 returns the / oic / res resource to the client device via unicast.

[0181] Device 1 returns the resource list "links" in the / oic / res resource, which specifically includes:

[0182]

[0183] Step 4b: After receiving the first discovery request information, device 2 checks the attribute information of its own / oic / res resource including the sduuid and / or sdname attributes.

[0184] And the sduuid value of device 2 is "dc70373c-1e8d-4fb3-962e-017eaa863989" and the sdname value is "Bob's Home", which do not match the sduuid and / or sdname values ​​in the first discovery request information.

[0185] Further, execute step 5b.

[0186] Step 5b: Device 2 determines not to respond to the first discovery request information, that is, does not send the / oic / res resource.

[0187] Step 4c: After receiving the first discovery request information, device 3 checks the attribute information of its own / oic / res resource and finds that there are no sduuid and sdname attributes.

[0188] Further, execute step 5c.

[0189] Step 5c: Device 3 determines not to respond to the first discovery request information, that is, does not send the / oic / res resource.

[0190] It should be noted that steps 4a, 4b and 4c can be performed simultaneously.

[0191] Furthermore, the client device receives a resource list returned by all discoverable devices in the same security domain as itself in the local area network 700, which can be displayed to the user through the interactive interface for subsequent control. In this way, the information received by the client device is the device resources of the device matching the security domain to which the client belongs; thus, the redundancy of information is reduced and the processing efficiency of the client device is improved.

[0192] based on Figure 7 In another example, refer to the application scenario shown in Fig. 9 The device discovery or resource discovery process shown Figure 2 The operation process of the client device (i.e., the first device described above) performing LAN device discovery or resource discovery includes the following steps:

[0193] Step 1: The client device receives a setting instruction input by a user on an interactive interface, where the setting instruction is used to set first identity information of a first security domain.

[0194] It is understandable that the user can set the identity information of any security domain as a filter condition for device discovery, that is, the user can input the identity information of any security domain to form the first discovery request information, and discover devices in the same security domain as the security domain through the first discovery request information.

[0195] Optionally, the client device may receive security domain identification information entered by the user in the interactive interface to construct the first discovery request information. For example, the user enters the security domain identification information duuid as "12345678-1234-1234-1234-123412341234" in the interactive interface of the client device.

[0196] Optionally, the client device may receive security domain name information input by the user in the interactive interface to construct the first discovery request information. For example, the user enters the security domain name information as "Alice'sHome" in the interactive interface of the client device.

[0197] Step 2: The client device constructs a first discovery request message based on the first identity information obtained in step 1; and sends the first discovery request message in the local area network 700 via multicast.

[0198] Here, the process of constructing the first discovery request information is described by taking the user setting sdname to "Alice's Home" as an example. Specifically, the client device can construct the first discovery request information according to the multicast address ([ff02::158]:5683), the target resource oic / res, the name information of the security domain to which the client device belongs, and the sdname value. The first discovery request information can be:

[0199] RETRIEVE coap: / / [ff02::158]:5683 / oic / res? sdname="Alice's Home".

[0200] Step 3, device 1, device 2 and device 3 receive the first discovery request information, parse the target resource (i.e., / oic / res resource) and the filtering condition (i.e., the first identity information of the first security domain set by the user), and then device 1, device 2 and device 3 determine whether there are sduuid and / or sdname attributes (i.e., the second identity information) in the attributes of their own / oic / res resources.

[0201] Step 4a: After receiving the first discovery request information, device 1 checks the attribute information of its own / oic / res resource including the sduuid and / or sdname attributes.

[0202] And device 1 has a sduuid value of "12345678-1234-1234-1234-123412341234" and a sdname value of "Alice's Home", which matches the sduuid and / or sdname values ​​in the first discovery request.

[0203] Further, execute step 5a.

[0204] Step 5a: Device 1 returns the / oic / res resource to the client device via unicast.

[0205] Device 1 returns the resource list "links" in the oic / res resource, including:

[0206]

[0207] Step 4b: After receiving the first discovery request information, device 2 checks the attribute information of its own / oic / res resource including the sduuid and / or sdname attributes.

[0208] And the sduuid value of device 2 is "dc70373c-1e8d-4fb3-962e-017eaa863989" and the sdname value is "Bob's Home", which do not match the sduuid and / or sdname values ​​in the first discovery request information.

[0209] Further, execute step 5b.

[0210] Step 5b: Device 2 determines not to respond to the first discovery request information, that is, does not send the / oic / res resource.

[0211] Step 4c: After receiving the first discovery request information, device 3 checks the attribute information of its own / oic / res resource and finds that there are no sduuid and sdname attributes.

[0212] Further, execute step 5c.

[0213] Step 5c: Device 3 determines not to respond to the first discovery request information, that is, does not send the / oic / res resource.

[0214] It should be noted that steps 4a, 4b and 4c can be performed simultaneously.

[0215] Furthermore, the client device receives a resource list returned by all discoverable devices in the same security domain as itself in the local area network 700, which can be displayed to the user for subsequent control. In this way, the redundancy of information is reduced and the processing efficiency of the client device is improved.

[0216] based on Figure 7 In another example, referring to the application scenario shown in Fig.10 The device discovery or resource discovery process shown Figure 3 The operation process of the client device (i.e., the first device described above) performing LAN device discovery or resource discovery includes the following steps:

[0217] Step 1: The client device (ie, the first device) checks its own security domain information to obtain the identity information of the security domain to which the client device belongs.

[0218] Optionally, the identity information of the security domain to which the client belongs is security domain identification information (sduuid); for example, the sduuid of the client device is 12345678-1234-1234-1234-1234123412341234.

[0219] Optionally, the identity information of the security domain to which the client belongs may also be security domain name information (sdname). For example, the sdname of the client device is Alice's Home.

[0220] Optionally, sduuid and sdname may also be used as identity information of the security domain to which the client belongs.

[0221] Step 2: The client device checks the privacy identifier in its own security domain information, that is, the priv attribute value.

[0222] Step 3: If sdi.priv=true of the client device, a confirmation message is generated and presented to the user through the interactive interface of the client device. The confirmation message is used to ask the user whether to perform device discovery and / or resource discovery based on the identity information of the security domain.

[0223] Step 4: The client device receives feedback information input by the user, where the feedback information indicates that discovery is performed based on the identity information of the security domain.

[0224] Step 5: The client device constructs first discovery request information based on the identity information obtained in step 1. The first discovery request may be sent in a multicast manner.

[0225] Here, taking the example of the client obtaining sduuid as the identity information of the security domain to which it belongs, the first discovery request information may be:

[0226] RETRIEVE coap: / / [ff02::158]:5683 / oic / res? sduuid="12345678-1234-1234-1234-123412341234".

[0227] Step 6. Device 1, device 2 and device 3 receive the first discovery request information, parse the target resource indicated by the first discovery request information (i.e., the / oic / res resource), and the filtering condition (i.e., the identity information of the security domain to which the client device belongs), and then device 1, device 2 and device 3 determine whether there are sduuid and / or sdname attributes (i.e., the second identity information) in the attributes of their own / oic / res resources.

[0228] Here, when the first identity information carried in the first discovery request information sent by the client device is sduuid, device 1, device 2 and device 3 determine whether their own / oic / res resources have sduuid attributes. When the first identity information carried in the first discovery request information sent by the client device is sdname, device 1, device 2 and device 3 determine whether their own / oic / res resources have sduuid attributes. In addition, when the first identity information carried in the first discovery request information sent by the client device is sduuid and sdname, device 1, device 2 and device 3 determine whether their own / oic / res resources have sduuid and sdname attributes.

[0229] Step 7a: After receiving the first discovery request information, device 1 checks the attribute information of its own / oic / res resource including the sduuid and / or sdname attributes.

[0230] And device 1 has a sduuid value of "12345678-1234-1234-1234-123412341234" and a sdname value of "Alice's Home", which matches the sduuid and / or sdname values ​​in the first discovery request.

[0231] Further, execute step 8a.

[0232] Step 8a: Device 1 returns the / oic / res resource to the client device via unicast.

[0233] Device 1 returns the resource list "links" in the / oic / res resource, including:

[0234]

[0235]

[0236] Step 7b: After receiving the first discovery request information, device 2 checks the attribute information of its own / oic / res resource including the sduuid and / or sdname attributes.

[0237] And the sduuid value of device 2 is "dc70373c-1e8d-4fb3-962e-017eaa863989" and the sdname value is "Bob's Home", which do not match the sduuid and / or sdname values ​​in the first discovery request information.

[0238] Further, execute step 8b.

[0239] Step 8b: Device 2 determines not to respond to the first discovery request information, that is, does not send the / oic / res resource.

[0240] Step 7c: After receiving the first discovery request information, device 3 checks the attribute information of its own / oic / res resource and finds that there are no sduuid and sdname attributes.

[0241] Further, execute step 8c.

[0242] Step 8c: Device 3 determines not to respond to the first discovery request information, that is, does not send the / oic / res resource.

[0243] It should be noted that steps 7a, 7b and 7c can be performed simultaneously.

[0244] Furthermore, the client device receives a resource list returned by all discoverable devices in the same security domain as itself in the local area network 700, which can be displayed to the user for subsequent control. In this way, the redundancy of information is reduced and the processing efficiency of the client device is improved.

[0245] Based on the above embodiments, the present application provides an information processing device, which can be applied to the first device described above. Fig.11 As shown, the information processing device includes:

[0246] A first acquiring unit 1101 is configured to acquire first identity information of a first security domain;

[0247] The first processing unit 1102 is configured to obtain first discovery request information based on the first identity information; the first discovery request information is used to request a target resource of a target device matching the first identity information;

[0248] The first transceiver unit 1103 is configured to send the first discovery request information.

[0249] In the embodiment provided in the present application, the first obtaining unit 1101 is further configured to determine the identity information of the security domain to which the first device belongs as the first identity information of the first security domain.

[0250] In the embodiment provided in the present application, the first acquisition unit 1101 acquires a setting instruction; the setting instruction includes identity information of a specific security domain;

[0251] The first processing unit 1102 is configured to respond to the setting instruction and determine the first identity information of the first security domain by using the identity information of the specific security domain.

[0252] In the embodiment provided in the present application, the first acquisition unit 1101 is configured to acquire a privacy identifier of the security domain to which the first device belongs;

[0253] The first processing unit 1102 is configured to generate and present confirmation information if the privacy identifier indicates that the resource of the first device is a private resource; the confirmation information is used to confirm whether to discover based on the identity information of the security domain;

[0254] The first transceiver unit 1103 is configured to receive feedback information for the confirmation information;

[0255] The first processing unit 1102 is configured to construct the first discovery request information based on the first identity information if the feedback information indicates that discovery is to be performed based on the identity information of the security domain.

[0256] In the embodiment provided in the present application, the first transceiver unit 1103 is configured to send the first discovery request information to at least one second device.

[0257] In the embodiment provided in the present application, the first identity information includes identification information of the first security domain and / or name information of the first security domain.

[0258] In the embodiment provided in the present application, the first acquisition unit 1101 is configured to acquire a resource unified identifier of a target resource and a request address;

[0259] The first processing unit 1102 is configured to construct the first discovery request information based on the resource unified identifier of the target resource, the request address, and the first identity information.

[0260] In the embodiment provided in the present application, the request address is a multicast address.

[0261] Based on the above embodiments, the present application provides an information processing device, which can be applied to the second device described above. Fig.12 As shown, the information processing device includes:

[0262] The second transceiver unit 1201 is configured to receive first discovery request information; the first discovery request information includes first identity information of a first security domain; the first discovery request information is used to discover a target resource of a target device matching the first identity information;

[0263] The second processing unit 1202 is configured to determine whether to send the target resource based on the first identity information.

[0264] In some embodiments, the second processing unit 1202 is also configured to determine whether the resource description information of the second device includes second identity information; the second identity information is the identity information of the security domain to which the second device belongs; if the resource description information includes the second identity information, and the second identity information matches the first identity information, it is determined to send the target resource.

[0265] In some embodiments, the second processing unit 1202 is further configured to determine not to send the target resource if the resource description information includes the second identity information and the second identity information does not match the first identity information.

[0266] In some embodiments, the second processing unit 1202 is further configured to determine not to send the target resource if the resource description information of the second device does not include the second identity information.

[0267] In some embodiments, the information processing device further includes a second acquisition unit;

[0268] The second processing unit 1202 is configured to determine that the second device is the target device;

[0269] A second acquisition unit, configured to acquire the target resource in the second device;

[0270] The second transceiver unit 1201 is configured to send the target resource to the first device.

[0271] Based on the above embodiments, the application embodiment further provides a device, referring to Fig.13 A schematic diagram of the hardware structure of a first device is shown. Fig.13 The first device shown includes: a first transceiver 1301, a first processor 1302, and a first memory 1303 storing a computer program;

[0272] The first transceiver 1301, the first processor 1302 and the first memory 1303 communicate with each other via a first communication bus 1304;

[0273] The first processor is configured to communicate with another device through the first transceiver 1301; wherein,

[0274] The first processor 1302, when running the computer program stored in the first memory 1303, performs the following steps: obtaining first identity information of a first security domain; obtaining first discovery request information based on the first identity information; the first discovery request information is used to request target resources of a target device that matches the first identity information; the first transceiver 1301, when running the computer program stored in the first memory 1303, performs the following steps: sending the first discovery request information.

[0275] In some embodiments, when the first processor 1302 runs the computer program stored in the first memory 1303, the following steps are performed: determining the identity information of the security domain to which the first device belongs as the first identity information of the first security domain.

[0276] In some embodiments, when the first processor 1302 runs the computer program stored in the first memory 1303, the following steps are performed: obtaining a setting instruction; the setting instruction includes identity information of a specific security domain; responding to the setting instruction, and determining the first identity information of the first security domain using the identity information of the specific security domain.

[0277] In some embodiments, when the first processor 1302 runs the computer program stored in the first memory 1303, the following steps are performed: obtaining a privacy identifier of the security domain to which the first device belongs; if the privacy identifier indicates that the resources of the first device are private resources, generating and presenting confirmation information; the confirmation information is used to confirm whether to perform discovery based on the identity information of the security domain; receiving feedback information for the confirmation information; if the feedback information indicates that discovery is performed based on the identity information of the security domain, constructing the first discovery request information based on the first identity information.

[0278] In some embodiments, when the first transceiver 1301 runs the computer program stored in the first memory 1303 , the following steps are performed: sending the first discovery request information to at least one second device.

[0279] In some embodiments, the first identity information includes identification information of the first security domain and / or name information of the first security domain.

[0280] In some embodiments, when the first transceiver 1301 runs the computer program stored in the first memory 1303, the following steps are performed: obtaining the resource unified identifier URI of the target resource and the request address; constructing the first discovery request information based on the resource unified identifier of the target resource, the request address, and the first identity information.

[0281] In some embodiments, the request address is a multicast address.

[0282] Based on the above embodiments, the application embodiment further provides a device, referring to Fig.13 A schematic diagram of the hardware structure of a second device is shown. Fig.14 The second device shown includes: a second transceiver 1401, a second processor 1402, and a second memory 1403 storing a computer program;

[0283] The second transceiver 1401, the second processor 1402 and the second memory 1403 communicate with each other via a second communication bus 1404;

[0284] The second processor 1402 is configured to communicate with another device through the second transceiver 1401; wherein,

[0285] The second transceiver 1401, when running the computer program stored in the second memory 1403, performs the following steps: receiving first discovery request information; the first discovery request information includes first identity information of a first security domain; the first discovery request information is used to request a target resource of a target device matching the first identity information;

[0286] When the second processor 1402 runs the computer program stored in the second memory 1403, the second processor 1402 performs the following steps: determining whether to send the target resource based on the first identity information.

[0287] In some embodiments, when the second processor 1402 runs the computer program stored in the second memory 1403, it can also perform the following steps: obtaining resource description information of the second device; determining whether the resource description information includes second identity information; the second identity information is the identity information of the security domain to which the second device belongs; if the resource description information includes the second identity information, and the second identity information matches the first identity information, determining to send the target resource.

[0288] In some embodiments, when the second processor 1402 runs the computer program stored in the second memory 1403, it can also perform the following steps: if the resource description information includes the second identity information, and the second identity information does not match the first identity information, determine not to send the target resource.

[0289] In some embodiments, when the second processor 1402 runs the computer program stored in the second memory 1403, it can also perform the following steps: if the resource description information does not include the second identity information, determine not to send the target resource.

[0290] In some embodiments, when the second processor 1402 runs the computer program stored in the second memory 1403, it can also perform the following steps: determine that the second device is the target device, and obtain the target resource in the second device;

[0291] The second transceiver 1401, when running the computer program stored in the second memory 1403, performs the following steps: sending the target resource to the first device.

[0292] It should be understood that the first memory and the second memory in this embodiment can be volatile memory or non-volatile memory, and can also include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (FlashMemory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0293] The present application also provides a computer storage medium, specifically a computer-readable storage medium, on which computer instructions are stored. As a first implementation, when the computer storage medium is located in a terminal, the computer instructions are executed by a processor to implement any step of the above-mentioned information processing method in the present application.

[0294] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0295] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0296] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0297] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0298] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0299] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0300] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0301] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An information processing method, wherein: Applied to a first device, the method includes: Determine the identity information of the security domain to which the first device belongs as the first identity information of the first security domain, where the first security domain is a network in the Internet of Things and is different from the local area network, wherein two devices that are not in the same security domain network cannot access each other's Internet of Things devices in the security domain network due to restrictions of security protocols in the security domain network; Based on the first identity information, first discovery request information is obtained; the first discovery request information is used to request a target resource of a target device matching the first identity information; The first discovery request information is sent to multiple second devices, wherein the first discovery request information is used to enable the second device to obtain the identity information of the security domain to which the second device belongs to match the first identity information, so that only the second device that receives the first discovery request information and whose identity information of the security domain to which the second device belongs matches the first identity information will respond to the first discovery request information.

2. The method according to claim 1, wherein: Before obtaining the first discovery request information based on the first identity information, the method further includes: Obtaining a privacy identifier of the security domain to which the first device belongs; If the privacy identifier indicates that the resource of the first device is a private resource, generating and presenting confirmation information; the confirmation information is used to confirm whether to perform discovery based on the identity information of the security domain; receiving feedback information regarding the confirmation information; The obtaining first discovery request information based on the first identity information includes: If the feedback information indicates that discovery is performed based on the identity information of the security domain, the first discovery request information is constructed based on the first identity information.

3. The method according to any one of claims 1 to 2, wherein: The first identity information includes identification information of the first security domain and / or name information of the first security domain.

4. The method according to claim 1, wherein: The obtaining first discovery request information based on the first identity information includes: Get the target resource's uniform resource identifier (URI) and the requested address; The first discovery request information is constructed based on the resource uniform identifier URI of the target resource, the request address, and the first identity information.

5. The method according to claim 4, wherein: The request address is a multicast address.

6. An information processing method, wherein: Applied to the second device, the method includes: receiving first discovery request information from a first device; the first discovery request information includes first identity information of a first security domain, the first identity information being identity information of a security domain to which the first device belongs; the first discovery request information is used to request a target resource of a target device that matches the first identity information, the first security domain being a network in the Internet of Things and being different from a local area network, wherein two devices that are not in the same security domain network cannot access each other's Internet of Things devices in the security domain network of the other party due to restrictions imposed by security protocols in the security domain network; Based on the first identity information, determine whether to send the target resource, wherein the first discovery request information is used to enable the second device to obtain the identity information of the security domain to which the second device belongs to match the first identity information, so that only the second device that receives the first discovery request information and the identity information of the security domain to which the second device belongs matches the first identity information will respond to the first discovery request information.

7. The method according to claim 6, wherein: The determining whether to send the target resource based on the first identity information includes: Obtain resource description information of the second device; Determine whether the resource description information includes second identity information; the second identity information is identity information of the security domain to which the second device belongs; If the resource description information includes the second identity information, and the second identity information matches the first identity information, it is determined to send the target resource.

8. The method according to claim 7, wherein: The method further comprises: If the resource description information includes the second identity information, and the second identity information does not match the first identity information, it is determined not to send the target resource.

9. The method according to claim 7, wherein: The method further comprises: If the resource description information does not include the second identity information, it is determined not to send the target resource.

10. The method according to any one of claims 6 to 7, wherein: After determining to send the target resource, the method further includes: Determine that the second device is the target device, and obtain the target resource in the second device; The target resource is sent to the first device.

11. An information processing device, wherein: The application and the first device, the information processing device includes: A first acquisition unit is configured to determine the identity information of the security domain to which the first device belongs as the first identity information of the first security domain, wherein the first security domain is a network in the Internet of Things and is different from the local area network, wherein two devices that are not in the same security domain network cannot access each other's Internet of Things devices in the security domain network of the other party due to restrictions of the security protocol in the security domain network; A first processing unit is configured to obtain first discovery request information based on the first identity information; the first discovery request information is used to request a target resource of a target device matching the first identity information; A first transceiver unit is configured to send the first discovery request information to multiple second devices, wherein the first discovery request information is used to enable the second device to obtain identity information of the security domain to which the second device belongs to match the first identity information, so that only the second device that receives the first discovery request information and whose identity information of the security domain to which the second device belongs matches the first identity information will respond to the first discovery request information.

12. An information processing device, wherein: Applied to the second device, the information processing apparatus comprises: A second transceiver unit is configured to receive first discovery request information from a first device; the first discovery request information includes first identity information of a first security domain, the first identity information is identity information of a security domain to which the first device belongs; the first discovery request information is used to discover a target resource of a target device that matches the first identity information, the first security domain is a network in the Internet of Things and is different from a local area network, wherein two devices that are not in the same security domain network cannot access each other's Internet of Things devices in the security domain network of the other party due to restrictions imposed by security protocols in the security domain network; A second processing unit is configured to determine whether to send the target resource based on the first identity information, wherein the first discovery request information is used to enable the second device to obtain the identity information of the security domain to which the second device belongs to match the first identity information, so that only the second device that receives the first discovery request information and the identity information of the security domain to which the second device belongs matches the first identity information will respond to the first discovery request information.

13. An information processing device, wherein: The information processing device comprises: a first transceiver, a first processor and a first memory storing a computer program; The first transceiver, the first processor and the first memory communicate with each other via a first communication bus; The first processor is configured to communicate with another device through the first transceiver; wherein, The first processor is further configured to execute the steps of the method according to any one of claims 1 to 5 when running the computer program stored in the first memory in conjunction with the first transceiver.

14. An information processing device, wherein: The information processing device comprises: a second transceiver, a second processor and a second memory storing a computer program; The second transceiver, the second processor and the second memory communicate with each other via a second communication bus; The second processor is configured to communicate with another device through the second transceiver; wherein, The second processor is further configured to execute the steps of the method according to any one of claims 6 to 10 when running the computer program stored in the second memory in conjunction with the second transceiver.

15. A computer-readable storage medium, wherein: A computer program is stored thereon, and the computer program is executed by a first processor to implement the steps of the method described in any one of claims 1 to 5; or; the computer program is executed by a second processor to implement the steps of the method described in any one of claims 6 to 10.