CN114830604A - Information processing method, device and equipment - Google Patents

Information processing method, device and equipment Download PDF

Info

Publication number
CN114830604A
CN114830604A CN202080088542.2A CN202080088542A CN114830604A CN 114830604 A CN114830604 A CN 114830604A CN 202080088542 A CN202080088542 A CN 202080088542A CN 114830604 A CN114830604 A CN 114830604A
Authority
CN
China
Prior art keywords
resource
model
address
internet
ocf
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202080088542.2A
Other languages
Chinese (zh)
Other versions
CN114830604B (en
Inventor
杨宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114830604A publication Critical patent/CN114830604A/en
Application granted granted Critical
Publication of CN114830604B publication Critical patent/CN114830604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides an information processing method, an information processing device and information processing equipment, wherein the method comprises the following steps: after the state of a first model in the Internet of things equipment is changed, state change information of the first model is obtained; determining a first resource according to the first model; and determining first resource attribute information of the first resource according to the state change information, and sending the first resource attribute information to terminal equipment. The timeliness of obtaining the state of the model in the Internet of things equipment is improved.

Description

Information processing method, device and equipment Technical Field
The application relates to the technical field of internet of things, in particular to an information processing method, device and equipment.
Background
The internet of things comprises a plurality of internet of things devices, for example, the internet of things devices can comprise a lighting lamp, an electric plug board and the like. The user can control the internet of things device through a user terminal (for example, a mobile phone, a computer and other devices).
The internet of things equipment can comprise one or more elements, each element can comprise one or more models, most models can comprise two or more states, and the states of the models can be changed. For example, when the internet of things device is a light, the element in the light may include a model of: a switch model, a brightness model, a color temperature model, etc. When a user needs to know the state of the model in the internet of things equipment, the user needs to request to query the state of the model in the internet of things equipment through the user terminal, the process is complex, and the timeliness of the user for acquiring the state of the model in the internet of things equipment is poor.
Disclosure of Invention
The application provides an information processing method, device and equipment. The timeliness of the user for obtaining the state of the model in the Internet of things equipment is improved.
In a first aspect, an embodiment of the present application provides an information processing method, where the method includes:
after the state of a first model in the Internet of things equipment is changed, state change information of the first model is obtained;
determining a first resource according to the first model;
and determining first resource attribute information of the first resource according to the state change information, and sending the first resource attribute information to terminal equipment.
In a second aspect, an embodiment of the present application provides an information processing apparatus, including a processing module and a sending module, wherein,
the processing module is used for acquiring state change information of a first model in the Internet of things equipment after the state of the first model is changed, determining a first resource according to the first model, and determining first resource attribute information of the first resource according to the state change information;
the sending module is configured to send the first resource attribute information to a terminal device.
In a third aspect, an embodiment of the present application provides an information processing apparatus, including: a transceiver, a processor, a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory, so that the processor executes the information processing method of any one of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is configured to implement the information processing method according to any one of the first aspect.
According to the information processing method, the information processing device and the information processing equipment, when the state of the first model in the Internet of things equipment changes, the Internet of things equipment can actively send the state change information of the first model to the bridging equipment, so that the bridging equipment determines the first resource, determines the first resource attribute information of the first resource and sends the first resource attribute information to the terminal equipment, the terminal equipment can quickly acquire the state change condition of the first model, and the timeliness of a user for acquiring the state of the model in the Internet of things equipment is improved.
Drawings
Fig. 1 is a schematic flow chart illustrating access of an internet of things device to the internet of things according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of message delivery provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a bridging device according to an embodiment of the present application;
fig. 4 is a schematic flowchart of creating a mapping relationship by a bridging device according to an embodiment of the present application;
FIG. 5 is a system architecture diagram provided in accordance with an embodiment of the present application;
fig. 6 is a schematic flowchart of an internet of things device configuration provided in an embodiment of the present application;
fig. 7 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 8 is a schematic flowchart of another information processing method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present application;
fig. 11 is a schematic hardware configuration diagram of an information processing apparatus according to an embodiment of the present application.
Detailed Description
For ease of understanding, the concepts to which this application relates will first be described.
The Internet of things equipment: the internet of things (IoT) is a network that enables common physical objects that can be addressed independently to achieve interconnection and interworking based on information bearers such as the internet and a conventional telecommunication network. The internet of things equipment is equipment that can insert the internet of things, for example, the internet of things equipment can include equipment such as electric light, electric mortiser board, refrigerator, washing machine, air conditioner, electric rice cooker, car. The internet of things device may be a bluetooth device, in other words, the internet of things device may be a bluetooth communication-based device, for example, the internet of things device may be a Bluetooth Low Energy (BLE) network (or star Mesh topology) Mesh device.
In the practical application process, the discovery device can access the internet of things device into the internet of things in a discovery mode. Next, with reference to fig. 1, a process of accessing an internet of things device to the internet of things will be described.
Fig. 1 is a schematic flow chart illustrating access of an internet of things device to the internet of things according to an embodiment of the present application. Please refer to fig. 1, which includes:
s101, a discovery device (provider) scans the devices (scan).
In the device scanning process, the discovery device may receive a broadcast frame sent by the internet of things device.
S102, the Internet of things equipment sends a broadcast frame to the discovery equipment.
The Internet of things equipment is equipment for requesting to join the Internet of things. In fig. 1, it is illustrated that the device requesting to join the internet of things includes an internet of things device 1, an internet of things device 2, and an internet of things device 3.
The broadcast frame sent by each internet of things device comprises the device identification. For example, the broadcast frame sent by the internet of things device 1 includes the device identifier of the internet of things device 1, the broadcast frame sent by the internet of things device 2 includes the device identifier of the internet of things device 2, and the broadcast frame sent by the internet of things device 3 includes the device identifier of the internet of things device 3.
S103, selecting the Internet of things equipment by the discovery equipment.
Optionally, the discovery device may select the internet of things device according to information such as a manufacturer of the internet of things device, a device type of the internet of things device, and the like. The discovery device can identify information such as a manufacturer and a device type of the internet of things device according to the device identifier of the internet of things device.
The user may configure a rule for selecting the internet of things device by the discovery device in advance, so that the discovery device may select the internet of things device according to the rule.
It should be noted that, in fig. 1, it is described that the discovery device selects the internet of things device 2 as an example.
And S104, the discovery device sends a connection establishing request to the selected Internet of things device.
And S105, the Internet of things equipment sends a connection establishment response to the discovery equipment.
Through the process, the internet of things equipment 2 can be added into the internet of things, the internet of things related service can be executed after the internet of things equipment 2 is added into the internet of things, and the internet of things equipment can quit the internet of things after the internet of things related service is executed.
It should be noted that fig. 1 illustrates, by way of example only, a process of accessing an internet of things device to the internet of things, and does not limit the process.
After the internet of things device accesses the internet of things, the internet of things device can also be called a node (node). In the following, the structure of the internet of things device (or node) in the internet of things is explained: one or more elements (elements) may be included in the internet of things device, each element including one or more models (models), each model having its corresponding state (status). For example, assuming that the internet of things device is an electric lamp, elements included in the electric lamp, models included in the elements, and states of the models may be as shown in table 1:
TABLE 1
Figure PCTCN2020071395-APPB-000001
Referring to table 1, the lamp includes 2 elements, element 1 and element 2, element 1 includes a switch module and a brightness model, the state of the switch module includes on and off, and the brightness model state is a brightness value (according to the protocol, the brightness is generally placed in the main element). The element 2 includes a color temperature model and a color temperature model, wherein the state of the color temperature model is a color temperature value.
It should be noted that table 1 illustrates the structure of the electric lamp in the internet of things (the elements included in the electric lamp, the models included in the elements, and the states of the models) by way of example, and does not limit the structure of the electric lamp in the internet of things.
The internet of things device comprises elements including a primary element and N secondary elements, wherein N is an integer. For example, when one element is included in the internet of things device, the one element is a master element, and the slave element is not included in the internet of things device. When the internet of things equipment comprises a plurality of elements, the internet of things equipment comprises a main element, and the elements except the main element are slave elements.
Each element in the internet of things equipment has a unique address, the address can also be called a unicast address, each element can be independently addressed, and then the elements can be independently controlled. After the internet of things equipment accesses the internet of things, the internet of things equipment is allocated with a unicast address, the unicast address of the internet of things equipment can be used as the unicast address of a main element in the internet of things equipment, and 1 can be sequentially added to the unicast address of the main element to obtain the unicast address of a slave element. For example, assuming that the internet of things device includes one master element and two slave elements, and the address of the master element is 0x0005, the address of the first slave element may be 0x0006, and the address of the second slave element may be 0x 0007.
Each element may include one or more models. The model referred to in the present application may include three types of models, which are a service model (server model), a client model (client model), and a control model (control model). In the internet of things device, the model for providing the service may be referred to as a service model, for example, the models shown in table 1 are all service models. It should be noted that, in the present application, the model having the state may be a service model.
Messages can be transmitted between the internet of things devices, for example, messages can be transmitted between the internet of things devices, so that one internet of things device processes (for example, accesses, modifies, sets and the like) the state of the service model in another internet of things device through the client model. Next, a message delivery process will be described with reference to fig. 2.
Fig. 2 is a schematic diagram of message delivery provided in an embodiment of the present application. Please refer to fig. 2, which includes an internet of things device a, an internet of things device B, and an internet of things device C. The elements in the internet of things device A comprise a client model 1, the elements in the internet of things device B comprise a client model 2, and the elements in the internet of things device C comprise a service model. The internet of things device a may process the state of the service model in the internet of things device C through the client model 1, for example, the internet of things device a may process the state of the service model in the internet of things device C through the message x, the message y, and the like. The internet of things device B may process the state of the service model in the internet of things device C through the client model 2, for example, the internet of things device B may process the state of the service model in the internet of things device C through messages such as message a, message B, and message C. The messages x, y, a, b, and c may be setting messages, reading messages, modifying messages, and the like.
An Open Connectivity Foundation (OCF) device is a virtual device deployed in a network, for example, an OCF device corresponding to an internet of things device is generally deployed in the network based on the internet of things device. The OCF device may have an OCF resource (OCF resource), the OCF resource may have an OCF resource type (OCF resource type), and the OCF resource type may have an OCF resource attribute (OCF resource property). The OCF equipment and the Internet of things equipment have a corresponding relation. Next, a correspondence relationship between the OCF device and the internet of things device is described with reference to table 2.
TABLE 2
Figure PCTCN2020071395-APPB-000002
Referring to table 2, there is a corresponding relationship between the internet of things device and the OCF device, there is a corresponding relationship between an element in the internet of things device and an OCF resource in the OCF device, there is a corresponding relationship between a model in the element and a resource type of the OCF resource, and there is a corresponding relationship between a state of the model and an attribute of the OCF resource.
For example, assuming that the internet of things device is an electric lamp, the corresponding relationship between the internet of things device and the OCF resource type may be as shown in table 3:
TABLE 3
Internet of things equipment Type of OCF device
Electric lamp (light) oic.d.light
When the internet of things device is an electric lamp, the correspondence between the model in the internet of things device and the OCF resource type may be as shown in table 4:
TABLE 4
Figure PCTCN2020071395-APPB-000003
Because the OCF device and the internet of things device have a corresponding relationship, a user may obtain relevant information (e.g., COF resources, OCF resource types, OCF resource attributes, and the like) of the OCF device in a network through a user terminal (e.g., an OCF client), and the user may control the internet of things device through the relevant information of the OCF device in the OCF client, for example, control a state of a model in the internet of things device, access a state of the model in the internet of things device, and the like.
In the actual application process, communication between the OCF client and the internet of things device can be realized through the bridge device (also referred to as a preset platform). For example, the default platform may also be referred to as an OCF bridge platform (OCF bridge platform). Next, the structure of the bridge device will be described with reference to fig. 3.
Fig. 3 is a schematic structural diagram of a bridging device according to an embodiment of the present application. Referring to fig. 3, the bridging device may include a virtual OCF server (virtual OCF server), a mapping function (mapping function) module, and a virtual client (virtual client). When the internet of things device is a BLE Mesh device, the virtual client is a virtual BLE Mesh client (virtual BLE Mesh client), and the mapping function module is a BLE Mesh mapping function (BLE Mesh mapping function) module.
The virtual OCF server and the OCF client can communicate based on an OCF protocol. When the internet of things device is a BLE Mesh device, the internet of things device and the virtual client can communicate based on a BLE Mesh protocol. The mapping function module may implement mapping between the internet of things device and the OCF device, and the mapping relationship may be as shown in table 2, which is not described herein again.
Next, with reference to fig. 4, a process of creating a mapping relationship between the internet of things device and the OCF device by the bridge device is described.
Fig. 4 is a schematic flowchart of creating a mapping relationship by a bridge device according to an embodiment of the present application. The bridge device comprises a virtual client, a mapping function module and a virtual OCF server. Please refer to fig. 4, which includes:
s401, after the virtual client adds the Internet of things equipment into the Internet of things, the virtual client sends a node creation success notification to the mapping function module.
The node creation success notification may include an identification of the internet of things device. The node creation success notification is used for indicating successful access of the equipment of the internet of things to the internet of things.
Optionally, after the virtual client adds the internet of things device to the internet of things, the virtual client may perform key (key) binding operation on the model in the internet of things device, configure a client model for the service model in the internet of things device (see fig. 5 for this process, which is not described here again), perform key (key) binding operation on the model in the internet of things device at the virtual client, and after configuring the client model for the service model in the internet of things device, the virtual client sends a node creation notification to the mapping function module.
S402, the mapping function module sends an OCF equipment creating request to the virtual OCF server.
The OCF device creation request may include an identifier of the internet of things device. The OCF equipment creating request is used for requesting to create OCF equipment corresponding to the Internet of things equipment.
Optionally, the mapping function module stores the identifier of the internet of things device in a preset list, and sequentially sends OCF device creation requests to the virtual OCF server according to a preset sequence. For example, assuming that the preset list includes the identifiers of 3 pieces of internet of things devices, which are respectively denoted as internet of things device 1, internet of things device 2, and internet of things device 3, the mapping function module may sequentially send an OCF device creation request 1, an OCF device creation request 2, and an OCF device creation request 3 to the virtual OCF server, where the OCF device creation request 1 includes the internet of things device 1, the OCF device creation request 2 includes the internet of things device 2, and the OCF device creation request 3 includes the internet of things device 3.
S403, the virtual OCF server side creates OCF equipment corresponding to the Internet of things equipment.
After the virtual OCF server creates an OCF device corresponding to the Internet of things device, the virtual OCF server generates a device identifier (device index) of the OCF device.
S404, the virtual OCF server sends the identification of the OCF equipment to the mapping function module.
S405, the mapping function module creates a mapping relation between the Internet of things equipment and the OCF equipment.
The virtual OCF server can determine the corresponding relation between the Internet of things equipment and the OCF equipment, the corresponding relation between the elements and the OCF resources, the corresponding relation between the model and the OCF resource type and the like according to the identification of the OCF equipment and the identification of the Internet of things equipment. For example, the mapping relationship may be as shown in table 2.
Alternatively, when determining the correspondence between an element and an OCF resource, the address (e.g., unicast address) of the element may be contained in a URI (value of href) of the OCF resource.
It should be noted that fig. 4 illustrates, by way of example only, a process of creating a mapping relationship between an internet of things device and an OCF device, and does not limit the process.
In the related art, when a user needs to know the state of the model in the internet of things equipment, the user needs to request to query the state of the model in the internet of things equipment through a user terminal, and the process is complex, so that the timeliness of the user for acquiring the state of the model in the internet of things equipment is poor. Therefore, the technical scheme is provided in the embodiment of the application, so that the timeliness of the user for acquiring the state of the model in the Internet of things equipment is improved. To facilitate an understanding of the present application, first, a system architecture diagram of the present application will be described in conjunction with fig. 5.
Fig. 5 is a system architecture diagram provided in an embodiment of the present application. Please refer to fig. 5, which includes an OCF client, a bridge device, and an internet of things device. In the implementation of the application, the bridge device configures the model in the internet of things device, so that when the state of the model changes, the model actively sends the state change information of the model to the bridge device. The bridging device also sets a corresponding relation between the elements in the internet of things device and the OCF resources, so that the bridging device can determine the OCF resources corresponding to the changed state according to the corresponding relation between the elements and the OCF resources, and convert the state change information into resource attribute information of the OCF resources. The bridging device can also set the OCF resource as an observable resource, so that the OCF client can obtain the resource attribute information of the OCF resource from the bridging device.
In the above scheme provided by the application, through pre-configuration, when the state of the model in the internet of things device changes, the model actively sends the state change information of the model to the bridge device, so that the bridge device determines the OCF resource according to the mapping relationship between the elements and the OCF resource, determines the resource attribute information of the OCF resource, and sends the resource attribute information of the OCF resource to the OCF client, so that the OCF client can quickly obtain the state change condition of the model in the internet of things device, and the timeliness of obtaining the state of the model in the internet of things device by the user is improved.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following embodiments may be independent of each other or combined with each other, and description of the same or similar contents is not repeated in different embodiments.
In the embodiment of the present application, for convenience of understanding, first, a configuration process of the internet of things device by the bridge device is described with reference to fig. 6.
Fig. 6 is a schematic flow chart of the configuration of the internet of things device according to the embodiment of the present application. The bridge device includes a virtual client, a mapping function module, and a virtual OCF server, and the first resource is taken as a first OCF resource for explanation. Referring to fig. 6, the method may include:
s601, the virtual client executes an equipment discovery process so as to add the equipment of the Internet of things into the Internet of things.
It should be noted that, the execution process of S601 may refer to the embodiment shown in fig. 1, and is not described herein again.
After joining an internet of things device to the internet of things, the internet of things device may also be referred to as a node.
Optionally, the virtual client may include a discovery model, a configuration model, and a client model. Wherein the virtual client may perform the discovery process through the discovery model.
S602, the virtual client performs key binding operation on the first model in the Internet of things equipment.
The first model is any one service model in the Internet of things equipment.
The key binding operation may also be referred to as an Application key binding operation. The key binding operation means that a key is set for the first model, and in the process of the service of the internet of things, messages communicated with the first model are encrypted by the key.
Optionally, the virtual client may perform key binding operation on the first model in the internet of things device through the configuration model.
S603, the virtual client configures a client model for the first model.
Optionally, the virtual client may configure the client model for the first model through a configuration model.
After configuring the customer model for the first service model, the first model (service model) may communicate with the customer model.
S604, the virtual client sets a publishing address for the first model.
The issuing address comprises a unicast address of the first element where the first model is located.
Optionally, the publishing address is a multicast address. For example, the distribution address includes a preset prefix and a unicast address of the first element, the preset prefix is located before the unicast address of the first element, and the preset prefix is used for indicating that the distribution address is a multicast address.
In the embodiment of the present application, the address concerned may include a unicast address, a multicast address, an unallocated address, a virtual address, and the like. Different types of addresses have different prefixes. For example, the prefix of the unicast address is 00, the prefix of the multicast address is 11, and the prefix of the virtual address is 10. Unallocated addresses are all 0's.
For example, the issue address may be: 0xC000+ unicast address of the first element.
Setting the distribution address as a multicast address has at least the following beneficial effects: because the number of the unicast addresses is limited, the unicast address can not be occupied by setting the issuing address as the multicast address, and the unicast address resource is further saved. Further, when the element includes a plurality of models, the release addresses of the plurality of models are the same, so that when the state of any one model in the element changes, the changed state of the model can be reflected on the attribute of the OCF resource type corresponding to the model under the OCF resource.
In S604, by setting the publishing address for the first model, after the state of the first model changes, the first model actively sends state change information to the corresponding client model in the virtual client (the client model configured for the first model in S603), and the state after the change of the first model may be included in the state change information.
S605, the virtual client, the mapping function module and the virtual OCF server create OCF equipment and a mapping relation between the Internet of things equipment and the OCF equipment.
It should be noted that, the execution process of S605 may refer to the embodiment shown in fig. 4, and is not described herein again.
S606, the virtual OCF server creates a first corresponding relation between the elements and the resources.
Optionally, the first correspondence is a correspondence between an address of the element and an identifier of the resource. The first correspondence includes an address of the element and an identification of a resource to which the address of the element corresponds. For example, the first correspondence includes a plurality of key value pairs, a key in a key value pair being an address of an element, and a value in a key value pair being an identification of a resource. The address of the element may be a unicast address of the element. Thus, the identification of the resource can be queried based on the address of the element.
Optionally, the first corresponding relationship includes: the first element and the first OCF resource. The first element is an element where the first model is located, and the first OCF resource is an OCF resource corresponding to the first element.
It should be noted that, in S606, the virtual OCF server may create a first correspondence between the plurality of elements and the plurality of resources. In other words, the first correspondence relationship may include addresses of a plurality of elements and an identification of a resource to which the address of each element corresponds.
S607, the virtual OCF server sets the OCF resource as the observable resource.
The OCF resource may be an OCF resource included in the first correspondence relationship. The OCF resources comprise first OCF resources corresponding to the first model.
Resource attribute information for the observable resource indicating the resource may be requested to be obtained. When the OCF resource is an observable resource, after the resource attribute information of the OCF resource changes, the virtual OCF server may actively send the resource attribute information of the OCF resource to the OCF client, or the OCF client may request to acquire the resource attribute information of the OCF resource from the virtual OCF server.
In the embodiment shown in fig. 6, by setting the publishing address for the first model, the first model actively sends the state change information to the bridge device (or the virtual client in the bridge device) after the state of the first model changes. The virtual OCF server further creates a first corresponding relationship between the elements and the resources, so that after the bridge device (or a mapping function module in the bridge device) receives the state change information, the first OCF resource corresponding to the first element where the first model is located may be determined according to the first corresponding relationship, and the state change information is converted into resource attribute information of a resource type corresponding to the first model in the first OCF resource, where the resource attribute information may also be referred to as updated resource attribute information. Because the virtual OCF server also sets the first OCF resource as the observable resource, the OCF client can obtain the updated resource attribute information, so that the user can determine the state of a first model (the first model is a model with a changed state) in the Internet of things equipment according to the updated resource attribute information.
In addition to any of the above embodiments, an information processing method according to the present application will be described below with reference to fig. 7.
Fig. 7 is a flowchart illustrating an information processing method according to an embodiment of the present application. The bridge device includes a virtual client, a mapping function module, and a virtual OCF server, and the first resource is taken as a first OCF resource for explanation. Referring to fig. 7, the method may include:
s701, the OCF client side sends a device discovery request to the virtual OCF server side.
Wherein the device discovery request is for requesting acquisition of an OCF device,
s702, the virtual OCF server side sends the OCF equipment information to the OCF client side.
The OCF device information may include an identifier of the OCF device, an OCF resource included in the OCF device, a resource type of the OCF resource, resource attribute information corresponding to the resource type, and the like.
And S703, the OCF client sends a subscription request message to the virtual OCF server.
The subscription request message includes an identifier of a first OCF resource, where the first OCF resource is a resource for which the OCF client requests subscription.
The subscription request message is for requesting: and when the state of the model in the first element corresponding to the first OCF resource changes, acquiring the resource attribute information of the first OCF resource. After the state of the model in the first element changes, the resource attribute information of the first OCF resource also changes, so that the resource attribute information requested to be acquired by the subscription request message is the updated resource attribute information.
After the virtual OCF server receives the subscription request message including the identifier of the first OCF resource, and after the resource attribute information of the first OCF resource is updated, the virtual OCF server may actively send the updated resource attribute information to the OCF client. Or, the OCF client may actively request the virtual OCF server to obtain the updated resource attribute information of the first OCF resource.
S704, after the state of the first model in the Internet of things equipment is changed, the Internet of things equipment sends state change information to the virtual client.
It should be noted that, since the release address is set for the first model in S604, after the state of the first model in the internet of things device changes, the internet of things device may actively send state change information to the virtual client.
Optionally, when the internet of things device is a BLE Mesh device, the virtual client is a virtual BLE Mesh client, and then the internet of things device may send the state change information to the client model corresponding to the first model in the virtual BLE Mesh client through a BLE Mesh protocol. The customer model corresponding to the first model may be the customer model configured for the first model in S603.
Optionally, the internet of things device may send the state change information to the virtual client through the publishing address, where the state change information may include the publishing address.
S705, the virtual client sends state change information to the mapping function module.
S706, the mapping function module determines a first OCF resource according to the first corresponding relation and the first model.
Optionally, the mapping function module may determine a first element where the first model is located, and determine the first OCF resource according to the first corresponding relationship and the first element. For example, the mapping function module may obtain an issue address in the state change information, where the issue address includes a unicast address of the first element, and the mapping function module may determine the first element according to the unicast address of the first element, and determine the identifier of the first OCF resource according to the first corresponding relationship and the address of the first element.
S707, the mapping function module determines first resource attribute information of the first OCF resource according to the state change information.
The first resource attribute information is resource attribute information of a resource type corresponding to the first model in the first OCF resource.
Optionally, the mapping function module may update the resource attribute information of the resource type corresponding to the first model in the first OCF resource according to the state change information, so as to obtain the first resource attribute information.
S708, the mapping function module sends the first resource attribute information to the virtual OCF server.
And S709, the virtual OCF server side sends the first resource attribute information to the OCF client side.
Optionally, after receiving the first resource attribute information, the virtual OCF server may actively send the first resource attribute information to the OCF client. Or, after receiving the request message sent by the OCF client, the OCF server may send the first resource attribute information to the OCF client.
In the embodiment shown in fig. 7, after the configuration shown in the embodiment shown in fig. 6 is performed, when the state of the first model in the internet of things device changes, the internet of things device may actively send state change information of the first model to the bridge device (or the virtual client in the bridge device), so that the bridge device (or the mapping function module in the bridge device) determines the first OCF resource according to the first corresponding relationship, determines the first resource attribute information of the first OCF resource, and sends the first resource attribute information of the OCF resource to the OCF client, so that the OCF client can quickly obtain the state change condition of the first model, and the timeliness of obtaining the state of the model in the internet of things device by the user is improved.
Based on any of the above embodiments, the information processing procedure shown in the present application will be described below with reference to fig. 8.
Fig. 8 is a flowchart illustrating another information processing method according to an embodiment of the present application. Please refer to fig. 8, which includes:
s801, acquiring state change information of the first model after the state of the first model in the Internet of things equipment is changed.
The execution main body in the embodiment of the application may be a bridge device, or may also be a virtual OCF server, a mapping function module, and a virtual client that are set in the bridge device.
It should be noted that the execution process of S801 may refer to the execution process of S704, and details are not described here.
S802, determining a first resource according to the first model.
It should be noted that the execution process of S802 may refer to the execution process of S706, and details are not described here.
And S803, determining first resource attribute information of the first resource according to the state change information, and sending the first resource attribute information to the terminal equipment.
It should be noted that the execution process of S803 may refer to the execution processes of S707-S709, and will not be described herein again.
In the embodiment shown in fig. 8, when the state of the first model in the internet of things device changes, the internet of things device may actively send state change information of the first model to the bridge device, so that the bridge device determines the first resource, determines first resource attribute information of the first resource, and sends the first resource attribute information to the terminal device, so that the terminal device can quickly obtain the state change condition of the first model, and the timeliness of obtaining the state of the model in the internet of things device by the user is improved.
Fig. 9 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application. The information processing apparatus may be provided in a bridging device, see fig. 9, and the information processing apparatus 10 may include a processing module 11 and a transmitting module 12, wherein,
the processing module 11 is configured to, after a state of a first model in the internet of things device changes, obtain state change information of the first model, determine a first resource according to the first model, and determine first resource attribute information of the first resource according to the state change information;
the sending module 12 is configured to send the first resource attribute information to a terminal device.
The information processing apparatus 10 provided in the embodiment of the present application may execute the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar and will not be described herein again.
In a possible implementation, the processing module 11 is specifically configured to:
determining a first element where the first model is located;
and determining the first resource according to a first corresponding relation and the first element, wherein the first corresponding relation is the corresponding relation between the elements and the resource.
In a possible embodiment, the first correspondence is a correspondence between an address of an element and an identification of a resource.
In one possible embodiment, the first correspondence includes an address of the element and an identification of a resource to which the address of the element corresponds.
In a possible implementation, the first corresponding relationship includes a plurality of key value pairs, a key in the key value pair is an address of the element, and a value in the key value pair is an identity of the resource.
In one possible implementation, the address of the element is a unicast address of the element.
In a possible implementation, the processing module 11 is further configured to:
creating the first correspondence.
In a possible implementation, the processing module 11 is further configured to:
and setting a release address for the first model, wherein the release address comprises a unicast address of a first element where the first model is located.
In one possible embodiment, the distribution address is a multicast address.
In a possible implementation manner, the distribution address includes a preset prefix and a unicast address of the first element, where the preset prefix is located before the unicast address of the first element, and the preset prefix is used to indicate that the distribution address is a multicast address.
In a possible implementation manner, the resource in the first corresponding relationship is an observable resource, and the observable resource is used for indicating that resource attribute information of the resource can be requested to be acquired.
In a possible implementation manner, the first resource attribute information is resource attribute information corresponding to a state of the first model.
Fig. 10 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present application. On the basis of the embodiment shown in fig. 9, referring to fig. 10, the information processing apparatus 10 may further include a receiving module 13, wherein,
the receiving module 13 is configured to receive a subscription request message sent by the terminal device, where the subscription request message includes an identifier of the first resource, and the subscription request message is used to request: and when the state of the model in the first element corresponding to the first resource changes, acquiring the resource attribute information of the first resource.
In one possible embodiment, the resource attribute information of the first resource includes: and resource attribute information of the resource type corresponding to the model with the changed state in the first element.
In one possible implementation, the internet of things device is a bluetooth device.
In one possible implementation, the internet of things device is a bluetooth low energy network BLE Mesh device.
In one possible embodiment, the first resource is an open connection foundation OCF resource.
In a possible implementation, the terminal device is an OCF client.
The information processing apparatus 10 provided in the embodiment of the present application may execute the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar and will not be described herein again.
Fig. 11 is a schematic hardware configuration diagram of an information processing apparatus according to an embodiment of the present application. The information processing apparatus 20 may be a bridge device, or the information processing apparatus 20 may be provided in the bridge device. Referring to fig. 11, the information processing apparatus 20 may include: a transceiver 21, a memory 22, a processor 23. The transceiver 21 may include: a transmitter and/or a receiver. The transmitter may also be referred to as a sender, a transmitter, a sending port or a sending interface, and the like, and the receiver may also be referred to as a receiver, a receiving port or a receiving interface, and the like. Illustratively, the transceiver 21, the memory 22, and the processor 23 are connected to each other by a bus 24.
The memory 22 is used for storing program instructions;
the processor 23 is configured to execute the program instructions stored in the memory, so as to enable the information processing apparatus 20 to execute any one of the information processing methods described above.
The transceiver 21 is configured to perform transceiving operations of the bridge device in the information processing method.
An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is used for implementing the information processing method.
The present application may also provide a computer program product, which can be executed by a processor, and when the computer program product is executed, the information processing method executed by any one of the bridging devices (or information processing apparatuses) shown above can be implemented.
The bridging device (or the information processing apparatus), the computer-readable storage medium, and the computer program product according to the embodiments of the present application may execute the information processing method, and specific implementation processes and beneficial effects thereof are described above and are not described herein again.
All or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (flexible disk), optical disk (optical disk), and any combination thereof.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.
In the present application, the terms "include" and variations thereof may refer to non-limiting inclusions; the term "or" and variations thereof may mean "and/or". The terms "first," "second," and the like in this application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. In the present application, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.

Claims (38)

  1. An information processing method characterized by comprising:
    after the state of a first model in the Internet of things equipment is changed, state change information of the first model is obtained;
    determining a first resource according to the first model;
    and determining first resource attribute information of the first resource according to the state change information, and sending the first resource attribute information to terminal equipment.
  2. The method of claim 1, wherein mapping the first resource according to the first model comprises:
    determining a first element where the first model is located;
    and determining the first resource according to a first corresponding relation and the first element, wherein the first corresponding relation is the corresponding relation between the elements and the resource.
  3. The method of claim 2, wherein the first correspondence is a correspondence between an address of an element and an identity of a resource.
  4. A method according to claim 2 or 3, wherein the first correspondence comprises an address of an element and an identity of a resource to which the address of the element corresponds.
  5. The method of claim 4, wherein the first correspondence comprises a plurality of key value pairs, wherein a key in a key value pair is an address of the element, and wherein a value in the key value pair is an identity of the resource.
  6. The method according to any of claims 3-5, wherein the address of the element is a unicast address of the element.
  7. The method according to any one of claims 2-6, further comprising:
    creating the first correspondence.
  8. The method according to any one of claims 1-7, further comprising:
    and setting a release address for the first model, wherein the release address comprises a unicast address of a first element where the first model is located.
  9. The method of claim 8, wherein the publication address is a multicast address.
  10. The method according to claim 8 or 9, wherein the distribution address comprises a preset prefix and a unicast address of the first element, the preset prefix is located before the unicast address of the first element, and the preset prefix is used for indicating that the distribution address is a multicast address.
  11. The method according to any one of claims 2-10, wherein the resource in the first corresponding relationship is an observable resource, and the observable resource is used for indicating that resource attribute information of the resource can be requested to be obtained.
  12. The method according to any of claims 1-11, wherein the first resource attribute information is resource attribute information corresponding to a state of the first model.
  13. The method according to any one of claims 1-12, further comprising:
    receiving a subscription request message sent by the terminal device, where the subscription request message includes an identifier of the first resource, and the subscription request message is used to request: and when the state of the model in the first element corresponding to the first resource changes, acquiring the resource attribute information of the first resource.
  14. The method of claim 13, wherein the resource attribute information of the first resource comprises: and resource attribute information of the resource type corresponding to the model with the changed state in the first element.
  15. The method of any one of claims 1-14, wherein the internet of things device is a bluetooth device.
  16. The method according to any one of claims 1-15, wherein the internet of things device is a bluetooth low energy network, BLE, Mesh device.
  17. The method of any one of claims 1-16, wherein the first resource is an Open Connection Foundation (OCF) resource.
  18. The method according to any of claims 1-17, wherein the terminal device is an OCF client.
  19. An information processing apparatus comprising a processing module and a transmission module, wherein,
    the processing module is used for acquiring state change information of a first model in the Internet of things equipment after the state of the first model is changed, determining a first resource according to the first model, and determining first resource attribute information of the first resource according to the state change information;
    the sending module is configured to send the first resource attribute information to a terminal device.
  20. The apparatus of claim 19, wherein the processing module is specifically configured to:
    determining a first element where the first model is located;
    and determining the first resource according to a first corresponding relation and the first element, wherein the first corresponding relation is the corresponding relation between the elements and the resource.
  21. The apparatus of claim 20, wherein the first correspondence is a correspondence between an address of an element and an identity of a resource.
  22. The apparatus according to claim 20 or 21, wherein the first correspondence comprises an address of an element and an identification of a resource to which the address of the element corresponds.
  23. The apparatus of claim 22, wherein the first correspondence comprises a plurality of key value pairs, wherein a key in a key value pair is an address of the element, and wherein a value in the key value pair is an identification of the resource.
  24. The apparatus of any of claims 21-23, wherein the address of the element is a unicast address of the element.
  25. The apparatus of any one of claims 20-24, wherein the processing module is further configured to:
    creating the first correspondence.
  26. The apparatus of any one of claims 19-25, wherein the processing module is further configured to:
    and setting a release address for the first model, wherein the release address comprises a unicast address of a first element where the first model is located.
  27. The apparatus of claim 26, wherein the distribution address is a multicast address.
  28. The apparatus according to claim 26 or 27, wherein the distribution address comprises a preset prefix and a unicast address of the first element, the preset prefix is located before the unicast address of the first element, and the preset prefix is used to indicate that the distribution address is a multicast address.
  29. The apparatus according to any of claims 20-28, wherein the resource in the first corresponding relationship is an observable resource, and wherein the observable resource is used to indicate that resource attribute information of the resource can be requested to be obtained.
  30. The apparatus according to any of claims 19-29, wherein the first resource attribute information is resource attribute information corresponding to a state of the first model.
  31. The apparatus of any one of claims 19-30, further comprising a receiving module, wherein,
    the receiving module is configured to receive a subscription request message sent by the terminal device, where the subscription request message includes an identifier of the first resource, and the subscription request message is used to request: and when the state of the model in the first element corresponding to the first resource changes, acquiring the resource attribute information of the first resource.
  32. The apparatus of claim 31, wherein the resource attribute information of the first resource comprises: and resource attribute information of the resource type corresponding to the model with the changed state in the first element.
  33. The apparatus of any one of claims 19-32, wherein the internet of things device is a bluetooth device.
  34. The apparatus according to any one of claims 19-33, wherein the internet of things device is a bluetooth low energy network, BLE, Mesh device.
  35. The apparatus of any one of claims 19-34, wherein the first resource is an Open Connection Foundation (OCF) resource.
  36. The apparatus according to any of claims 19-35, wherein the terminal device is an OCF client.
  37. An information processing apparatus characterized by comprising: a transceiver, a processor, a memory;
    the memory stores computer-executable instructions;
    the processor executes computer-executable instructions stored by the memory, causing the processor to perform the information processing method of any one of claims 1-18.
  38. A computer-readable storage medium having stored therein computer-executable instructions for implementing the information processing method of any one of claims 1 to 18 when executed by a processor.
CN202080088542.2A 2020-01-10 2020-01-10 Information processing method, device and equipment Active CN114830604B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/071395 WO2021138899A1 (en) 2020-01-10 2020-01-10 Information processing method, apparatus, and device

Publications (2)

Publication Number Publication Date
CN114830604A true CN114830604A (en) 2022-07-29
CN114830604B CN114830604B (en) 2023-08-29

Family

ID=76788438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080088542.2A Active CN114830604B (en) 2020-01-10 2020-01-10 Information processing method, device and equipment

Country Status (2)

Country Link
CN (1) CN114830604B (en)
WO (1) WO2021138899A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
US20190045033A1 (en) * 2017-12-06 2019-02-07 Mats Gustav Agerstam Plugin management for internet of things (iot) network optimization
WO2019245274A1 (en) * 2018-06-19 2019-12-26 엘지전자 주식회사 Method and apparatus for controlling iot device in wireless communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11316932B2 (en) * 2017-09-22 2022-04-26 Intel Corporation Device management services based on restful messaging
CN108848159A (en) * 2018-06-14 2018-11-20 电子科技大学 A kind of internet of things equipment interoperability dispatching method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
US20190045033A1 (en) * 2017-12-06 2019-02-07 Mats Gustav Agerstam Plugin management for internet of things (iot) network optimization
WO2019245274A1 (en) * 2018-06-19 2019-12-26 엘지전자 주식회사 Method and apparatus for controlling iot device in wireless communication system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WENQUAN JIN等: "《Resource Management Based on OCF for Device Self-Registration and Status Detection in IoT Networks》", 《ELECTRONICS》, pages 3 *

Also Published As

Publication number Publication date
CN114830604B (en) 2023-08-29
WO2021138899A1 (en) 2021-07-15

Similar Documents

Publication Publication Date Title
EP3327992B1 (en) Method of selecting network slice and system utilizing same
CN109417492B (en) Network function NF management method and NF management equipment
CN103795768B (en) The method and apparatus of remote access
CN110752975B (en) Network sharing method and device
KR102158654B1 (en) Resource subscription method, resource subscription device, and resource subscription system
KR101680715B1 (en) Apparatus and method of registring personal network
CN112105009A (en) Device discovery and Bluetooth broadcasting method, device, electronic device and storage medium
CN108259523B (en) Data transmission method, Internet of things system and network access method
CN107347202B (en) initial access method and device of terminal under network slice architecture
CN103368847A (en) Broadband convergence communication method and router
CN110621051B (en) Routing method and device
CN115334146A (en) Resource publishing method, device, equipment and storage medium of Internet of things
CN109788075B (en) Private network system, data acquisition method and edge server
CN105763663A (en) Private network address management method, control device and network device
CN112689029A (en) Method, device and equipment for acquiring IP address of group user
CN114830604B (en) Information processing method, device and equipment
CN115174310B (en) PDN dialing and configuration method, system, device, equipment and storage medium
CN113994649A (en) Method, device, equipment and storage medium for accessing BLE Mesh equipment
CN113873554B (en) Method and system for synchronous configuration acquisition and transmission of Mesh networking
CN112787884A (en) Networking method and device and storage medium
KR101687564B1 (en) System for network terminal liking specific network group and method thereof
CN105828273A (en) Method and device for managing group resources
CN113872783B (en) Method, apparatus and computer readable storage medium for network configuration
CN113079039B (en) Method and system for multi-host network distribution, communication host and storage medium
CN113347284B (en) Resource access method, resource access device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant