CN113994722B - Access control method, equipment and storage medium of BLE Mesh equipment - Google Patents

Access control method, equipment and storage medium of BLE Mesh equipment Download PDF

Info

Publication number
CN113994722B
CN113994722B CN201980097307.9A CN201980097307A CN113994722B CN 113994722 B CN113994722 B CN 113994722B CN 201980097307 A CN201980097307 A CN 201980097307A CN 113994722 B CN113994722 B CN 113994722B
Authority
CN
China
Prior art keywords
model
ble mesh
ocf
group
ble
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.)
Active
Application number
CN201980097307.9A
Other languages
Chinese (zh)
Other versions
CN113994722A (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 CN113994722A publication Critical patent/CN113994722A/en
Application granted granted Critical
Publication of CN113994722B publication Critical patent/CN113994722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The embodiment of the application provides an access control method, equipment and a storage medium of a BLE Mesh device, wherein the access and/or control request of a terminal device to the first BLE Mesh device is received through a network device, the network device can determine a model group corresponding to an OCF resource according to identification information of the OCF resource and a resource type of the OCF resource included in the access and/or control request, and access and/or control a plurality of models included in the model group, that is, a user performs one-time access and/or control operation on a certain model of the first BLE Mesh device, so that the network device can access and/or control a plurality of models in the model group to which the model belongs, and compared with the one-time access and/or control operation of the user, only one model can be accessed and/or controlled, and efficiency of the terminal device in accessing and/or controlling the BLE Mesh device is improved.

Description

Access control method, equipment and storage medium of BLE Mesh equipment
Technical Field
Embodiments of the present application relate to communication technologies, and in particular, to an access control method, device, and storage medium for a BLE Mesh device.
Background
In the prior art, a bluetooth low energy (Bluetooth Low Energy, BLE) Mesh (Mesh) device as a server may be accessed and/or controlled by a BLE Mesh device as a Client (Client), that is, both the BLE Mesh server device and the BLE Mesh Client device conform to the BLE Mesh Protocol (Protocol).
In order to extend the scope of which BLE Mesh server devices are accessed and/or controlled, a conversion between the open connection foundation (Open Connectivity Foundation, OCF) protocol and the BLE Mesh protocol is proposed, so that OCF client devices following the OCF protocol can also access and/or control the BLE Mesh server devices.
However, current OCF client devices are less efficient at accessing and/or controlling BLE Mesh server devices.
Disclosure of Invention
The embodiment of the application provides an access control method, equipment and storage medium of BLE Mesh equipment, so as to improve the efficiency of accessing and/or controlling BLE Mesh server equipment by OCF client equipment.
In a first aspect, an embodiment of the present application may provide an access control method of a BLE Mesh device, applied to a network device, where the method includes:
receiving an access and/or control request of terminal equipment to first BLE Mesh equipment, wherein the access and/or control request comprises identification information of OCF resources and resource types of the OCF resources;
determining a model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource, wherein the model group comprises a plurality of models;
accessing and/or controlling the plurality of models.
In a second aspect, embodiments of the present application may provide a network device, including:
a receiving module, configured to receive an access and/or control request of a terminal device to a first BLE Mesh device, where the access and/or control request includes identification information of an OCF resource and a resource type of the OCF resource;
the determining module is used for determining a model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource, wherein the model group comprises a plurality of models;
and the access control module is used for accessing and/or controlling the models.
In a third aspect, embodiments of the present application may provide a network device, including:
a processor, a memory, a communication interface;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory, causing the processor to perform the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions for performing the method according to the first aspect when the computer-executable instructions are executed by a processor.
In a fifth aspect, embodiments of the present application provide a chip, including: a processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product comprising computer program instructions for causing a computer to perform the method according to the first aspect.
In a seventh aspect, embodiments of the present application further provide a computer program, which causes a computer to perform the method as described in the first aspect above.
According to the access control method, the device and the storage medium for the BLE Mesh device, the network device receives the access and/or control request of the terminal device to the first BLE Mesh device, the network device can determine the model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource, and access and/or control a plurality of models included in the model group, namely, a user performs one-time access and/or control operation on a certain model of the first BLE Mesh device, so that the network device can access and/or control a plurality of models in the model group to which the model belongs, and compared with the case that the one-time access and/or control operation of the user can only access and/or control one model, the efficiency of the terminal device in accessing and/or controlling the BLE Mesh device is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the prior art descriptions, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic diagram of a communication system provided herein;
FIG. 2 is a schematic diagram of a prior art communication system;
FIG. 3 is a schematic diagram of a communication system provided herein;
FIG. 4 is a schematic diagram of another communication system provided herein;
FIG. 5 is a schematic illustration of a user interface provided herein;
fig. 6 is a schematic structural diagram of a network device provided in the present application;
FIG. 7 is a flowchart of a mapping relationship establishment process between a group address corresponding to each model group and identification information of OCF resources corresponding to the model group in a plurality of model groups provided in the present application;
fig. 8 is a flowchart of an access control method of a BLE Mesh device provided in the present application;
FIG. 9 is a schematic diagram of another user interface provided herein;
FIG. 10 is a schematic illustration of yet another user interface provided herein;
fig. 11 is a flowchart of an access control method of another BLE Mesh device provided in the present application;
fig. 12 is a flowchart of an access control method of another BLE Mesh device provided in the present application;
fig. 13 is a flowchart of another access control method of a BLE Mesh device provided in the present application;
fig. 14 is a flowchart of another access control method of a BLE Mesh device provided in the present application;
fig. 15 is a flowchart of another access control method of a BLE Mesh device provided in the present application;
fig. 16 is a flowchart of another access control method of a BLE Mesh device provided in the present application;
fig. 17 is a schematic structural diagram of a network device provided in the present application;
fig. 18 is another schematic structural diagram of a network device provided in the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms first, second and the like in the description of embodiments of the present application, in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be capable of operation in sequences other than those illustrated or described herein, for example. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical solution of the embodiment of the application can be applied to various communication systems, for example: global system for mobile communications (Global System of Mobile communication, GSM), code division multiple access (Code Division Multiple Access, CDMA) system, wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA) system, general packet Radio service (General Packet Radio Service, GPRS) system, long term evolution (Long Term Evolution, LTE) system, LTE frequency division duplex (Frequency Division Duplex, FDD) system, LTE time division duplex (Time Division Duplex, TDD) system, long term evolution advanced (Advanced long term evolution, LTE-a) system, new Radio (NR) system, evolution system of NR system, LTE (LTE-based access to unlicensed spectrum, LTE-U) system on unlicensed band, NR (NR-based access to unlicensed spectrum, NR-U) system on unlicensed band, universal mobile communication system (Universal Mobile Telecommunication System, UMTS), universal internet microwave access (Worldwide Interoperability for Microwave Access, wiMAX) communication system, wireless local area network (Wireless Local Area Networks, WLAN) system, wireless fidelity (Wireless Fidelity, wiFi) system, next generation communication system or other communication system, etc.
Generally, the number of connections supported by the conventional communication system is limited and easy to implement. However, with the development of communication technology, the mobile communication system will support not only conventional communication but also, for example, device-to-Device (D2D) communication, machine-to-machine (Machine to Machine, M2M) communication, machine type communication (Machine Type Communication, MTC), and inter-vehicle (Vehicle to Vehicle, V2V) communication, etc., to which the embodiments of the present application can also be applied.
Exemplary, a communication system 100 to which embodiments of the present application apply is shown in fig. 1. The communication system 100 may include a network device 110, and the network device 110 may be a device that communicates with a terminal device 120 (or referred to as a communication terminal, terminal). Network device 110 may provide communication coverage for a particular geographic area and may communicate with terminal devices located within the coverage area. In one implementation, the network device 110 may be a base station (Base Transceiver Station, BTS) in a GSM system or a CDMA system, a base station (NodeB, NB) in a WCDMA system, an evolved base station (Evolutional Node B, eNB or eNodeB) in an LTE system, or a radio controller in a cloud radio access network (Cloud Radio Access Network, CRAN), or the network device may be a mobile switching center, a relay station, an access point, a vehicle device, a wearable device, a hub, a switch, a bridge, a router, a network-side device in a 5G network, or a network device in a future evolved public land mobile network (Public Land Mobile Network, PLMN), etc.
The communication system 100 further comprises at least one terminal device 120 located within the coverage area of the network device 110. "terminal device" as used herein includes, but is not limited to, a connection via a wireline, such as via a public-switched telephone network (Public Switched Telephone Networks, PSTN), a digital subscriber line (Digital Subscriber Line, DSL), a digital cable, a direct cable connection; and/or via another data network; and/or via a wireless interface, e.g., for cellular networks, WLANs, digital television networks such as DVB-H networks, satellite networks, AM-FM broadcast transmitters; and/or via a device connection of the other terminal device arranged to receive/transmit communication signals; and/or via an internet of things (Internet of Things, ioT) device connection. Terminal devices arranged to communicate over a wireless interface may be referred to as "wireless communication terminals", "wireless terminals" or "mobile terminals". Examples of mobile terminals include, but are not limited to, satellites or cellular telephones; a personal communications system (Personal Communications System, PCS) terminal that may combine a cellular radiotelephone with data processing, facsimile and data communications capabilities; personal digital assistant (Personal Digital Assistant, PDA) devices that may include a radiotelephone, pager, internet/intranet access, web browser, organizer, calendar, and/or a global positioning system (Global Positioning System, GPS) receiver; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver. A terminal device may refer to an access terminal, user Equipment (UE), subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent, or User Equipment. An access terminal may be a cellular telephone, a cordless telephone, a session initiation protocol (Session Initiation Protocol, SIP) phone, a wireless local loop (Wireless Local Loop, WLL) station, a PDA device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal device in a 5G network, or a terminal device in a future evolved PLMN, etc.
In one implementation, D2D communication may be performed between terminal devices 120.
In one implementation, the 5G system may also be referred to as an NR system, or the 5G network may also be referred to as an NR network.
Fig. 1 illustrates one network device and two terminal devices by way of example, and in one implementation, the communication system 100 may include multiple network devices and may include other numbers of terminal devices within the coverage area of each network device, as embodiments of the present application are not limited in this regard.
In fig. 1, the network device may be an access device, for example, an access device in an NR-U system, for example, a 5G NR base station (next generation Node B, gNB) or a small station, a micro station, or a relay station, a transmitting and receiving point (Transmission and Reception Point, TRP), a Road Side Unit (RSU), or the like.
A terminal device can also be called a mobile terminal, UE, access terminal, subscriber unit, subscriber station, mobile station, user terminal, wireless communication device, user agent, or user equipment. In particular a smart phone, a cellular phone, a cordless phone, a PDA device, a handheld device with wireless communication capabilities or other processing device connected to a wireless modem, a car mounted device, a wearable device, etc. In an embodiment of the present application, the terminal device has an interface for communicating with a network device (e.g., a cellular network).
In one implementation, the communication system 100 may further include a network controller, a mobility management entity, and other network entities, which are not limited in this embodiment of the present application.
It should be understood that a device having a communication function in a network/system in an embodiment of the present application may be referred to as a communication device. Taking the communication system 100 shown in fig. 1 as an example, the communication device may include a network device 110 and a terminal device 120 with communication functions, where the network device 110 and the terminal device 120 may be specific devices described above, and are not described herein again; the communication device may also include other devices in the communication system 100, such as a network controller, a mobility management entity, and other network entities, which are not limited in this embodiment of the present application.
It should be understood that the terms "system" and "network" are used interchangeably herein. The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The method of the embodiment of the application can be applied to the communication system shown in fig. 1 and can also be applied to other communication scenes. For example, the method of the embodiment of the present application may be applied to a Mesh network, as shown in fig. 2, where 20 represents a BLE Mesh client device, and the BLE Mesh client device 20 may access and/or control a BLE Mesh server device through the Mesh network, where the BLE Mesh server device may specifically be a device that conforms to a BLE Mesh protocol, for example, a BLE Mesh socket, a BLE Mesh lamp device, and so on. In this embodiment, a BLE Mesh lamp device is taken as a BLE Mesh server device for example to perform schematic description. As shown in fig. 2, 21 and 22 represent BLE Mesh lamp devices, respectively, one BLE Mesh lamp device may include one or more elements, each of which may include one or more models (models).
For example, the BLE Mesh lamp device 21 may include an element 1, an element 2, and an element 3, where the element 1 may be a main element of the BLE Mesh lamp device 21, an address corresponding to the main element is denoted as addr1, and the addr1 may be an address of the BLE Mesh lamp device 21 in the Mesh network. Element 2 and element 3 may be slaves of BLE lamp device 21, the address corresponding to element 2 may be denoted addr2, and the address corresponding to element 3 may be denoted addr3. Wherein, addr2 may be a fixed offset added to addr1, and addr3 may be two fixed offsets added to addr 1. In addition, each element of the BLE Mesh lamp device 21 may further include one or more models, for example, element 1 includes a luminance model and a switching model, element 2 includes a switching model, and element 3 includes a color temperature model and a saturation model. The BLE Mesh client device 20 may access and/or control a model of the BLE Mesh light device 21.
Similarly, the BLE Mesh light device 22 may also include one or more elements, for example, the BLE Mesh light device 22 includes an element 1 and an element 2, where the element 1 is a main element of the BLE Mesh light device 22, an address corresponding to the main element is addr4, and the addr4 may be an address of the BLE Mesh light device 22 in the Mesh network. Element 2 of the BLE Mesh light device 22 is a slave element of the BLE Mesh light device 22, an address corresponding to element 2 of the BLE Mesh light device 22 is addr5, and addr5 may be a fixed offset added on the basis of addr 4. Similarly, the BLE Mesh client device 20 may access and/or control the model of the BLE Mesh light device 22.
In order to enable BLE Mesh server devices to be accessed and/or controlled by more types of client devices, the network architecture shown in fig. 2 may be extended by network devices supporting multiple protocols. As shown in fig. 3, the terminal device 30 is an OCF client device, that is, the terminal device 30 is a device supporting the OCF protocol. The network device 31 is a device supporting the OCF protocol and the BLE Mesh protocol, and the network device 31 may specifically be a bridge device, and in addition, the network device 31 may be a non-access network device. The communication protocol between the network device 31 and the terminal device 30 is an OCF protocol, the communication protocol between the network device 31 and the BLE Mesh lamp device 21 is a BLE Mesh protocol, and the communication protocol between the network device 31 and the BLE Mesh lamp device 22 is a BLE Mesh protocol. That is, the network device 31 may translate the data packet of the OCF protocol into the data packet of the BLE Mesh protocol, or translate the data packet of the BLE Mesh protocol into the data packet of the OCF protocol.
Specifically, an Application (APP) may be installed on the terminal device 30, the terminal device 30 may generate an access and/or control request conforming to the OCF protocol according to an access and/or control operation performed by a user on the APP, and send the access and/or control request of the OCF protocol to the network device 31, and the network device 31 may translate the access and/or control request of the OCF protocol into an access and/or control request conforming to the BLE Mesh protocol, and perform access and/or control on the model of the BLE Mesh lamp device 21 or the BLE Mesh lamp device 22 according to the translated access and/or control request. However, only one model of one BLE Mesh lamp device can be accessed and/or controlled by a user through one access and/or control operation, which may result in a lower efficiency of the terminal device 30 accessing and/or controlling the BLE Mesh lamp device 21 or the BLE Mesh lamp device 22, i.e. a lower efficiency of the OCF client device accessing and/or controlling the BLE Mesh server device. In order to solve the problem, the present embodiment provides an access control method for a BLE Mesh device, and the access control method for the BLE Mesh device is described below in connection with a specific embodiment.
Fig. 4 is a communication system to which the access control method of a BLE Mesh device provided in the present application is applicable. The communication system includes an OCF client device (e.g., terminal device 30), a network device (e.g., network device 31) supporting both the OCF protocol and the BLE Mesh protocol, and a plurality of BLE Mesh devices (e.g., BLE Mesh light device 21 and BLE Mesh light device 22), specifically, BLE Mesh server devices as described above. Specifically, the BLE Mesh light device 21 may be denoted as a first BLE Mesh device, and the BLE Mesh light device 22 may be denoted as a second BLE Mesh device. The first BLE Mesh device may be a BLE Mesh device that is currently accessed and/or controlled by the user. The number of the second BLE Mesh devices may be one or more, and is schematically illustrated here by taking one example.
Specifically, the network device 31 may actively discover surrounding BLE Mesh devices, for example, when the network device 31 discovers the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22, the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 may send the elements and the models respectively included in the respective BLE Mesh lamp device to the network device 31, and the network device 31 may divide the models of the BLE Mesh lamp device 21 and/or the BLE Mesh lamp device 22 to obtain a plurality of model groups.
In particular, the network device 31 may divide the same model of different BLE Mesh lamp devices into one model group. For example, the saturation model of element 3 of the BLE Mesh lamp device 21 and the saturation model of element 1 of the BLE Mesh lamp device 22 are divided into model group 1, the switching model of element 2 of the BLE Mesh lamp device 21, the switching model of element 1 of the BLE Mesh lamp device 22, and the switching model of element 2 of the BLE Mesh lamp device 22 are divided into model group 2, and the luminance model of element 1 of the BLE Mesh lamp device 21 and the luminance model of element 2 of the BLE Mesh lamp device 22 are divided into model group 3.
In addition, the network device 31 may divide a plurality of models of the same BLE Mesh lamp device into one model group. Specifically, the network device 31 may divide multiple models of the same element of the same BLE Mesh lamp device into one model group, or may divide multiple models of different elements of the same BLE Mesh lamp device into one model group. For example, the on-off model of the element 1 of the BLE Mesh lamp device 21 and the color temperature model of the element 3 of the BLE Mesh lamp device 21 are divided into model groups 4.
Furthermore, the network device 31 may divide different models of different BLE Mesh lamp devices into one model group. For example, the color temperature model of the element 1 of the BLE Mesh lamp device 21 and the saturation model of the element 2 of the BLE Mesh lamp device 22 are divided into model groups 5.
It will be appreciated that the terminal device 30 may also divide the models of the BLE Mesh lamp device 21 and/or the BLE Mesh lamp device 22 to obtain a plurality of model groups. Specifically, when the network device 31 discovers the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22, the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 may send the elements and the models respectively included in the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 to the network device 31, and the network device 31 further sends the elements and the models respectively included in the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 to the terminal device 30, and since the BLE Mesh lamp device is a device conforming to the BLE Mesh protocol, the terminal device 30 is a device conforming to the OCF protocol, and therefore, the elements are concepts in the BLE Mesh protocol, and the elements correspond to the concepts of the resources in the terminal device 30. The terminal device 30 may display the elements and the model included in each of the BLE Mesh light device 21 and the BLE Mesh light device 22 on the APP, as shown in fig. 5. Wherein element 1 in the BLE Mesh lamp device corresponds to resource 1 displayed by the terminal device 30, element 2 in the BLE Mesh lamp device corresponds to resource 2 displayed by the terminal device 30, element 3 in the BLE Mesh lamp device corresponds to resource 3 displayed by the terminal device 30, and so on. 51 represents an icon corresponding to the BLE Mesh light device 21, and 52 represents an icon corresponding to the BLE Mesh light device 22. The user can divide the saturation model of the element 3 of the BLE Mesh lamp device 21 and the saturation model of the element 1 of the BLE Mesh lamp device 22 into one model group by continuously clicking the saturation icon of the resource 3 corresponding to the icon 51 and the saturation icon of the resource 1 corresponding to the icon 52. Specifically, after the user continuously clicks the saturation icon of the resource 3 corresponding to the icon 51 and the saturation icon of the resource 1 corresponding to the icon 52, the terminal device 30 generates a model group division instruction according to the clicking operation of the user, and sends the model group division instruction to the network device 31, where the model group division instruction may include identification information of the saturation icon of the resource 3 corresponding to the icon 51 and identification information of the saturation icon of the resource 1 corresponding to the icon 52, and further, the network device 31 divides the saturation model of the element 3 of the BLE Mesh lamp device 21 and the saturation model of the element 1 of the BLE Mesh lamp device 22 into a model group according to the model group division instruction, where the model group may be denoted as a model group 1. Other model sets, such as model set 2, model set 3, model set 4, and model set 5, are similar to each other, and will not be described in detail herein.
Further, the network device 31 may also assign a group address to each model group. Specifically, the correspondence relationship among the respective model groups, the models included in each model group, and the group addresses of each model group as described above is shown in table 1 below.
TABLE 1
In addition, in the embodiment of the present application, one model group corresponds to one OCF resource. One model corresponds to one OCF resource type. When a plurality of models in a model group are identical, the resource type of the OCF resource corresponding to the model group may be the OCF resource type corresponding to any one of the plurality of identical models. When a plurality of models in a model group are different, the resource type of the OCF resource corresponding to the model group is a set of OCF resource types respectively corresponding to the different models.
For example, OCF resource types respectively corresponding to the several models described above are shown in table 2 below.
TABLE 2
Model OCF resource type
Brightness model Brightness of light
Switch model Switch
Color temperature model Color temperature
Saturation model Saturation level
Wherein, the switch in the OCF resource type shown in table 2 may be a 01 switch, for example, 1 may represent on, 0 represents off, or 0 represents on, and 1 represents off.
In addition, the network device 31 may also establish a mapping relationship between the group address corresponding to each model group and the identification information of the OCF resource corresponding to the model group. The identification information of the OCF resource may specifically be a uniform resource identifier (Uniform Resource Identifier, URI) of the OCF resource. The URI of the OCF resource may include a group address of a model group corresponding to the OCF resource. Specifically, the mapping relationships among the group addresses corresponding to the model groups, the URIs of the OCF resources corresponding to the model groups, and the resource types of the OCF resources corresponding to the model groups are shown in the following table 3:
TABLE 3 Table 3
Taking model group 1 as an example, the group address of model group 1 is XXX1, and the URI of the OCF resource corresponding to model group 1 is/XXX 1/XXXXXX 1, wherein XXX1 is the group address of model group 1. In addition, the URI of the OCF resource may also include identification information for model group 1, e.g., XXXX1. Since model group 1 includes the saturation model of element 3 of BLE Mesh lamp apparatus 21 and the saturation model of element 1 of BLE Mesh lamp apparatus 22, that is, model group 1 includes a plurality of identical models, it can be seen from table 2 that the resource type of the OCF resource corresponding to model group 1 is the same OCF resource type, i.e., saturation, corresponding to the plurality of identical models.
Taking model group 4 as an example, the group address of model group 4 is XXX4, and the URI of the OCF resource corresponding to model group 4 is/XXX 4, that is, the URI of the OCF resource corresponding to model group 4 may include only the group address XXX4 of model group 4, and not the identification information of model group 4. Since the model set 4 includes the on-off model of the element 1 of the BLE Mesh lamp device 21 and the color temperature model of the element 3 of the BLE Mesh lamp device 21, that is, the model set 4 includes a plurality of different models, the resource types of the OCF resources corresponding to the model set 4 are the sets of the OCF resource types respectively corresponding to the plurality of different models, that is, the on-off and the color temperature. Wherein the switch corresponds to the switch model of element 1 of the BLE Mesh lamp device 21 and the color temperature corresponds to the color temperature model of element 3 of the BLE Mesh lamp device 21.
It is understood that the correspondence relationships as described in table 1, table 2, table 3 may be stored in the network device 31 or may be stored in the terminal device 30.
Further, in the embodiment of the present application, since the network device 31 may support the OCF protocol and the BLE Mesh protocol at the same time, the network device 31 is a server device supporting the OCF protocol for the terminal device 30. For BLE Mesh lamp device 21 and BLE Mesh lamp device 22, network device 31 is a client device supporting the BLE Mesh protocol. Thus, the network device 31 may internally include a server supporting the OCF protocol and a client supporting the BLE Mesh protocol. The network device 31 may specifically be a bridge platform as shown in fig. 6, which may specifically be a bridge platform between the OCF protocol and the BLE Mesh protocol. As shown in fig. 6, the Bridge platform includes a Bridge module (Bridge), a virtual open connection foundation server (Virtual OCF Server), a bluetooth low energy Bridge function module (BLE Bridging Function), and a virtual bluetooth low energy grid client (Virtual BLE Mesh Client). Virtual OCF Server may communicate with an open connection foundation Client (OCF Client), which may specifically be the end device 30 as described above, via an OCF protocol. Virtual BLE Mesh Client may communicate with a bluetooth low energy Mesh Server (BLE Mesh Server), which may specifically be a BLE Mesh light device 21 and a BLE Mesh light device 22 as described above, via a BLE Mesh protocol.
The following describes a specific process for establishing a mapping relationship between a group address corresponding to each model group in the plurality of model groups and identification information of OCF resources corresponding to the model group by using the network device 31 in conjunction with a specific embodiment. As shown in fig. 7, the process specifically includes the following steps:
s701, the virtual Bluetooth low energy grid client discovers a Bluetooth low energy grid server 1 and a Bluetooth low energy grid server 2.
Specifically, the bluetooth low energy Mesh server 1 may be a BLE Mesh lamp device 21 as described above, and the bluetooth low energy Mesh server 2 may be a BLE Mesh lamp device 22 as described above.
S702, the virtual Bluetooth low energy grid client marks a Bluetooth low energy grid server 1 as a Node1, and marks a Bluetooth low energy grid server 2 as a Node2.
For example, when the BLE Mesh light device 21 is discovered by a virtual bluetooth low energy Mesh client, the BLE Mesh light device 21 is noted as Node1. When the BLE Mesh light device 22 is discovered by the virtual bluetooth low energy Mesh client, the BLE Mesh light device 22 is denoted as Node2.
S703, the virtual bluetooth low energy grid client determines the model in Node1 and Node2 that needs to be accessed and/or controlled.
For example, the BLE Mesh light device 21 and the BLE Mesh light device 22 each include a plurality of models, however, some of the plurality of models need to be accessed and/or controlled, and some of the models may not need to be accessed and/or controlled. Therefore, after the virtual bluetooth low energy Mesh client discovers the BLE Mesh light device 21 and the BLE Mesh light device 22, it is further necessary to determine a model that needs to be accessed and/or controlled in the BLE Mesh light device 21 and the BLE Mesh light device 22. For example, the model that the BLE Mesh lamp device 21 needs to be accessed and/or controlled is a model in which element 1, element 2, and element 3 of the BLE Mesh lamp device 21 respectively correspond as shown in fig. 4. The model of the BLE Mesh lamp device 22 that needs to be accessed and/or controlled is a model corresponding to element 1 and element 2 of the BLE Mesh lamp device 22 as shown in fig. 4.
S704, the virtual Bluetooth low-power grid client groups the models which need to be accessed and/or controlled in the Node1 and the Node2 to obtain a plurality of model groups.
The specific grouping process is described in the above embodiments, and is not described herein. The plurality of model sets may be specifically 5 model sets as shown in fig. 4.
S705, the virtual bluetooth low energy grid client assigns a group address and a group model client to each model group.
The virtual bluetooth low energy grid client assigns a group address to each model group, and the correspondence between each model group and the group address is shown in table 1 above. The group model clients assigned by the virtual bluetooth low energy grid client to each model group are specifically shown in table 4 below. That is, the group model client may be created by a virtual bluetooth low energy grid client, and thus, the virtual bluetooth low energy grid client may include the group model client.
TABLE 4 Table 4
Model group Group model client
Model group 1 Group Model Client1
Model group 2 Group Model Client2
Model group 3 Group Model Client3
Model group 4 Group Model Client4
Model group 5 Group Model Client5
S706, the virtual Bluetooth low energy grid client sends a notification message to the Bluetooth low energy bridging function module, wherein the notification message is used for notifying that Node1 and Node2 are successfully created.
And S707, the Bluetooth low-power-consumption bridging function module stores the related information of the Node1 and the Node2 into an OCF equipment list to be created.
The relevant information of Node1 is relevant information of BLE Mesh lamp device 21, and the relevant information of Node2 is relevant information of BLE Mesh lamp device 22.
And S708, the Bluetooth low energy bridging function module sends a notification message to the virtual open connection foundation server, wherein the notification message is used for requesting to create the OCF equipment.
S709, the virtual open connection foundation server creates OCF equipment 1 corresponding to Node1 and OCF equipment 2 corresponding to Node2 according to the to-be-created OCF equipment list.
Specifically, after the virtual open connection foundation server creates the OCF device 1 and the OCF device 2, the identification information of the OCF device 1 and the identification information of the OCF device 2 are generated.
And S710, the virtual open connection foundation server side sends a message of successful creation of the OCF equipment to the Bluetooth low-power bridging function module.
S711, the Bluetooth low-power-consumption bridging function module establishes a corresponding relation between the identification information of the OCF equipment 1 and the Node1, and a corresponding relation between the identification information of the OCF equipment 2 and the Node 2.
Since Node1 corresponds to BLE Mesh lamp device 21 and Node2 corresponds to BLE Mesh lamp device 22, bluetooth low energy bridging function module may also establish a correspondence between identification information of OCF device 1 and BLE Mesh lamp device 21, and a correspondence between identification information of OCF device 2 and BLE Mesh lamp device 22.
S712, the Bluetooth low energy bridging function module establishes a mapping relation between a group address corresponding to each model group in the plurality of model groups and URIs of OCF resources corresponding to the model groups.
The mapping relationship between the group address corresponding to each model group and the URI of the OCF resource corresponding to the model group is specifically shown in table 3.
S713, the Bluetooth low energy bridging function module establishes a mapping relation between each model group in the plurality of model groups and the resource type of the OCF resource.
Wherein the mapping relationship between each model group and the resource type of the OCF resource is specifically shown in the above table 3.
It can be understood that, since the OCF device 1 and the BLE Mesh lamp device 21 correspond, the BLE Mesh lamp device 21 corresponds to the model group 1, the model group 2, the model group 3, the model group 4, and the model group 5, and therefore, the OCF resources of the OCF device 1 include the OCF resources respectively corresponding to the model group 1, the model group 2, the model group 3, the model group 4, and the model group 5.
Since the OCF device 2 and the BLE Mesh lamp device 22 correspond, the BLE Mesh lamp device 22 corresponds to the model group 1, the model group 2, the model group 3, and the model group 5, and therefore, the OCF resources of the OCF device 2 include the OCF resources respectively corresponding to the model group 1, the model group 2, the model group 3, and the model group 5.
Taking model set 1 as an example, since two saturation models in model set 1 are located in BLE Mesh lamp device 21 and BLE Mesh lamp device 22, respectively, OCF resources corresponding to model set 1 exist in OCF device 1 corresponding to BLE Mesh lamp device 21 and OCF device 2 corresponding to BLE Mesh lamp device 22 at the same time. That is, the OCF resource of the OCF device 1 corresponding to the BLE Mesh lamp device 21 and the OCF resource of the OCF device 2 corresponding to the BLE Mesh lamp device 22 each include the OCF resource corresponding to the model group 1. At this time, the terminal device 30 may access and/or control the OCF resource corresponding to the model group 1 through any one of the OCF devices 1 and 2.
Taking model set 4 as an example, since both models in model set 4 are located in BLE Mesh lamp device 21. Therefore, the OCF resource corresponding to the model group 4 exists in the OCF device 1 corresponding to the BLE Mesh lamp device 21, and is not in the OCF device 2 corresponding to the BLE Mesh lamp device 22. That is, the OCF resources of the OCF device 1 corresponding to the BLE Mesh lamp device 21 include the OCF resources corresponding to the model group 4, and the OCF resources of the OCF device 2 corresponding to the BLE Mesh lamp device 22 do not include the OCF resources corresponding to the model group 4. At this time, the terminal device 30 may access and/or control the OCF resource corresponding to the model group 4 through the OCF device 1. The process by which the terminal device 30 accesses and/or controls OCF resources is described in detail below in connection with particular embodiments.
Fig. 8 is a flowchart of an access control method of a BLE Mesh device provided in the present application. The access control method of the BLE Mesh device may be applied to a communication system as shown in fig. 4. As shown in fig. 8, the access control method of the BLE Mesh device includes the following steps:
s801, receiving an access and/or control request of a terminal device to a first BLE Mesh device, wherein the access and/or control request comprises identification information of an OCF resource and a resource type of the OCF resource.
Specifically, in the embodiment of the present application, the first BLE Mesh device may specifically be a BLE Mesh lamp device 21 as described above, and the second BLE Mesh device may specifically be a BLE Mesh lamp device 22 as described above. The first BLE Mesh device may be a BLE Mesh device that is currently accessed and/or controlled by the user. The number of the second BLE Mesh devices may be one or more, and is schematically illustrated here by taking one example.
As shown in fig. 9, an icon 51 corresponding to the BLE Mesh light device 21 and an icon 52 corresponding to the BLE Mesh light device 22 are displayed on the user interface of the terminal device 30. In addition, the user interface also displays icons of resources corresponding to the respective elements of the BLE Mesh light device 21 and the BLE Mesh light device 22, and icons of models corresponding to the respective elements. The user may access and/or control the model of the BLE Mesh light device 21 and/or the BLE Mesh light device 22 through the user interface.
For example, the user may access the current state of the switch model of element 1 of the BLE Mesh light device 21, which may be displayed in the dialog 53, by clicking on the switch icon 91 of resource 1 corresponding to icon 51. Alternatively, the user may input the current state of the switch icon 91 of the resource 1 corresponding to the icon 51 in the dialog box 53, thereby controlling the switch model of the element 1 of the BLE Mesh lamp device 21.
For another example, the user may access the current state of the switch model of element 2 of BLE Mesh light device 21 by clicking on switch icon 92 of resource 2 corresponding to icon 51, which may be displayed in dialog box 54. Alternatively, the user may input the current state of the switch icon 92 of the resource 2 corresponding to the icon 51 in the dialog box 54, thereby controlling the switch model of the element 2 of the BLE Mesh light device 21.
It will be appreciated that the manner of displaying the current state of the model of the BLE Mesh light device 21 or the BLE Mesh light device 22 on the user interface of the terminal device 30 is not limited to being displayed in a dialog box as shown in fig. 9, and may be, for example, a display manner as shown in fig. 10. In addition, the setting manner of the model of the BLE Mesh light device 21 or the BLE Mesh light device 22 by the user is not limited to the manner of inputting information in the dialog box as shown in fig. 9, and for example, may be the manner as shown in fig. 10, for example, the current state of the switch model is controlled by sliding the switch key; the current color temperature or brightness value is set by sliding the sliding bar corresponding to the color temperature or brightness.
The terminal device 30 generates an access and/or control request according to an operation of a user on the user interface, where the access and/or control request may include a URI of an OCF resource corresponding to a model group to which a model of the user access and/or control belongs and a resource type of the OCF resource.
Specifically, the terminal device 30 may store the correspondence relationships of the above tables 1 and 3, or the network device 31 may transmit the correspondence relationships of the above tables 1 and 3 to the terminal device 30. When the user accesses the switch model of element 1 of the BLE Mesh light device 21 and/or sets the switch model of element 1 of the BLE Mesh light device 21, a model group to which the switch model of element 1 of the BLE Mesh light device 21 belongs, for example, model group 4, is determined according to the correspondence described in table 1, and further, the URI (for example, XXX 4) of the OCF resource and the resource type (for example, switch, color temperature) of the OCF resource corresponding to the model group 4 are determined according to the correspondence described in table 3. Accordingly, the access and/or control request may include/XXX 4, switch and color temperature.
Or, when the user accesses the switching model of the element 2 of the BLE Mesh lamp device 21 and/or sets the switching model of the element 2 of the BLE Mesh lamp device 21, a model group to which the switching model of the element 2 of the BLE Mesh lamp device 21 belongs, for example, the model group 2, is determined according to the correspondence described in table 1, and further, according to the correspondence described in table 3, the URI (for example/XXX 2/XXXX 2) of the OCF resource corresponding to the model group 2 and the resource type (for example, switch) of the OCF resource are determined. Accordingly, the access and/or control request may include/XXX 2/XXXX2 and a switch.
Further, the terminal device 30 transmits the access and/or control request to the network device 31, and accordingly, the network device 31 receives the access and/or control request.
S802, determining a model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource, wherein the model group comprises a plurality of models.
For example, when the access and/or control request received by the network device 31 includes/XXX 4, a switch, and a color temperature, the network device 31 may determine, according to/XXX 4, the switch, and the color temperature, a model group corresponding to the OCF resource as a model group 4, where the model group 4 includes a switch model of the element 1 of the BLE Mesh lamp device 21 and a color temperature model of the element 3 of the BLE Mesh lamp device 21.
Alternatively, when the access and/or control request received by the network device 31 includes/XXX 2/XXXX2 and a switch, the network device 31 may determine, according to/XXX 2/XXXX2 and the switch, that the model group corresponding to the OCF resource is a model group 2, where the model group 2 includes a switching model of element 2 of the BLE Mesh lamp device 21, a switching model of element 1 of the BLE Mesh lamp device 22, and a switching model of element 2 of the BLE Mesh lamp device 22.
S803 accessing and/or controlling the plurality of models.
For example, when the model set is model set 4, the network device 31 accesses and/or controls the switching model of element 1 of the BLE Mesh lamp device 21 and the color temperature model of element 3 of the BLE Mesh lamp device 21. That is, the user performs one access and/or control operation on the switching model of the element 1 of the BLE Mesh lamp apparatus 21, so that the network apparatus 31 simultaneously accesses and/or controls the switching model of the element 1 of the BLE Mesh lamp apparatus 21 and the color temperature model of the element 3 of the BLE Mesh lamp apparatus 21. That is, since the model group 4 includes a plurality of models of the same BLE Mesh lamp device, access and/or control of a plurality of models of the same BLE Mesh lamp device can be achieved by a user accessing and/or controlling any model of the model group 4.
For another example, when the model set is model set 2, network device 31 accesses and/or controls the switching model of element 2 of BLE Mesh light device 21, the switching model of element 1 of BLE Mesh light device 22, the switching model of element 2 of BLE Mesh light device 22. That is, the user performs one access and/or control operation on the switching pattern of the element 2 of the BLE Mesh lamp device 21, so that the network device 31 simultaneously accesses and/or controls the switching pattern of the element 2 of the BLE Mesh lamp device 21, the switching pattern of the element 1 of the BLE Mesh lamp device 22, and the switching pattern of the element 2 of the BLE Mesh lamp device 22. That is, since the model group 2 includes the same model of a plurality of BLE Mesh lamp devices, access and/or control of the same model of the plurality of BLE Mesh lamp devices can be achieved by a user accessing and/or controlling any model in the model group 2.
According to the access control method for the BLE Mesh device, the network device receives the access and/or control request of the terminal device to the first BLE Mesh device, the network device can determine the model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource included in the access and/or control request, and access and/or control a plurality of models included in the model group, that is, a user performs one-time access and/or control operation on a certain model of the first BLE Mesh device, so that the network device can access and/or control a plurality of models in the model group to which the model belongs, and compared with the one-time access and/or control operation of the user, only one model can be accessed and/or controlled, and the efficiency of accessing and/or controlling the BLE Mesh device by the terminal device is improved.
The following describes a procedure for a terminal device to access the same model of different BLE Mesh lamp devices through a network device in connection with a specific embodiment. As shown in fig. 11, the process includes the following steps:
s1101, the terminal equipment and the virtual open connection foundation server perform security authentication.
For example, as shown in fig. 9, the user accesses the current state of the switching model of element 2 of the BLE Mesh light device 21 by clicking on the switching icon 92 of resource 2 corresponding to the icon 51.
Since the icon 51 corresponds to the BLE Mesh light device 21, and the BLE Mesh light device 21 corresponds to the OCF device 1 described above, the terminal device determines that the user accesses the OCF device 1 according to the click operation of the user on the switch icon 92 of the resource 2 corresponding to the icon 51, and since the OCF device 1 is created by the virtual open connection foundation server, the terminal device performs security authentication with the OCF device 1 created by the virtual open connection foundation server.
S1102, the virtual open connection foundation server sends URIs of OCF resources corresponding to each model group in the plurality of model groups and resource types of the OCF resources corresponding to the model groups to the terminal equipment.
For example, the virtual open connection foundation server transmits the correspondence relationship described in the above table 3 to the terminal device.
S1103, the terminal equipment sends an access request to the virtual open connection foundation server, wherein the access request comprises/XXX 2/XXXX2 and a switch.
S1104, the virtual open connection foundation server analyzes the identification information of the OCF equipment accessed by the user.
For example, the virtual open connection foundation server analyzes the identification information of the OCF device accessed by the user as the identification information of the OCF device 1. The identification information of the OCF Device 1 may be a Device identification (Device Index) of the OCF Device 1.
S1105, the virtual open connection foundation server acquires a group address (XXX 2) and a resource type (switch) of the OCF resource from the access request.
And S1106, the virtual open connection foundation server side sends identification information, a group address and a resource type of OCF resources of the OCF equipment to the Bluetooth low-power-consumption bridging function module.
S1107, the Bluetooth low energy bridging function module determines a model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 3, that the model group corresponding to XXX2 and the switch is model group 2. The model set 2 comprises a switching model of element 2 of the BLE Mesh lamp device 21, a switching model of element 1 of the BLE Mesh lamp device 22, a switching model of element 2 of the BLE Mesh lamp device 22.
S1108, the Bluetooth low energy bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 4, that the group model client corresponding to the model group 2 is Group Model Client.
S1109, the Bluetooth low energy bridging function module sends the identification information of the group model client to the virtual Bluetooth low energy grid client.
S1110, the virtual bluetooth low energy Mesh client sends an access request to the BLE Mesh lamp device 21 through the group model client.
For example, the virtual bluetooth low energy Mesh client transmits an access request to the BLE Mesh lamp device 21 through Group Model Client2, the access request being for requesting acquisition of state information of the switching model of the element 2 of the BLE Mesh lamp device 21.
S1111, the virtual bluetooth low energy Mesh client sends an access request to the BLE Mesh lamp device 22 through the group model client.
For example, the virtual bluetooth low energy Mesh client sends an access request to the BLE Mesh light device 22 through Group Model Client for requesting to acquire state information of the switching model of element 1 of the BLE Mesh light device 22 and state information of the switching model of element 2 of the BLE Mesh light device 22.
S1112, the BLE Mesh lamp device 22 sends status information of the switching model of the BLE Mesh lamp device 22 to the group model client.
For example, the BLE Mesh light device 22 sends Group Model Client state information of the switching pattern of element1 of the BLE Mesh light device 22 and state information of the switching pattern of element2 of the BLE Mesh light device 22.
S1113, the BLE Mesh lamp device 21 sends status information of the switching model of the BLE Mesh lamp device 21 to the group model client.
For example, the BLE Mesh lamp device 21 sends Group Model Client status information of the switching model of element2 of the BLE Mesh lamp device 21.
S1114, the virtual bluetooth low energy Mesh client sends state information of the switching models of the BLE Mesh light device 21 and the BLE Mesh light device 22 to the bluetooth low energy bridging function module.
For example, the virtual bluetooth low energy Mesh client may form the state information of the switching model of element2 of the BLE Mesh light device 21, the state information of the switching model of element1 of the BLE Mesh light device 22, and the state information of the switching model of element2 of the BLE Mesh light device 22 received by Group Model Client into a set, which may be noted as:
{
“/XX1/element2/XXXXX2”:{
“value”:true
},
“,XX2/element1/XXXXX2”:{
“value”:false
},
“,XX2/element2/XXXXX2”:{
“value”:true
}
}
wherein XX1 may be identification information of the BLE Mesh lamp device 21, XX2 is identification information of the BLE Mesh lamp device 22, element1 is identification information of element1, element2 is identification information of element2, and XXXXX2 is identification information of the switching pattern. "value" indicates the state of the switch model, where true indicates on and false indicates off.
S1115, the Bluetooth low-power-consumption bridging function module sends state information of the switching models of the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 to the virtual open connection foundation server.
S1116, the virtual open connection foundation server sends status information of the switching models of the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 to the terminal device.
According to the access control method for the BLE Mesh device, the network device receives the access request of the terminal device to the first BLE Mesh device, the network device can determine the model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource included in the access request, and access a plurality of models included in the model group, when the models included in the model group are the same, a user can access a certain model in the models at one time, and therefore the efficiency of the terminal device for accessing the BLE Mesh device is improved.
The process of a terminal device accessing different models of different BLE Mesh lamp devices through a network device is described in connection with a specific embodiment. As shown in fig. 12, the process includes the following steps:
S1201, the terminal equipment and the virtual open connection foundation server perform security authentication.
For example, as shown in fig. 9, the user may click on the color temperature icon 93 of the resource 1 corresponding to the icon 51, and access the current state of the color temperature model of the element 1 of the BLE Mesh light device 21.
Since the icon 51 corresponds to the BLE Mesh light device 21, and the BLE Mesh light device 21 corresponds to the OCF device 1 described above, the terminal device determines that the user accesses the OCF device 1 according to the click operation of the color temperature icon 93 of the resource 1 corresponding to the icon 51 by the user, and since the OCF device 1 is created by the virtual open connection foundation server, the terminal device performs security authentication with the OCF device 1 created by the virtual open connection foundation server.
S1202, the virtual open connection foundation server sends URIs of OCF resources corresponding to each model group in the plurality of model groups and resource types of the OCF resources corresponding to the model groups to the terminal equipment.
For example, the virtual open connection foundation server transmits the correspondence relationship described in the above table 3 to the terminal device.
And S1203, the terminal equipment sends an access request to the virtual open connection foundation server, wherein the access request comprises/XXX 5, color temperature and saturation.
S1204, the virtual open connection foundation server analyzes the identification information of the OCF equipment accessed by the user.
For example, the virtual open connection foundation server analyzes the identification information of the OCF device accessed by the user as the identification information of the OCF device 1. The identification information of the OCF Device 1 may be a Device identification (Device Index) of the OCF Device 1.
S1205, the virtual open connection foundation server acquires a group address (XXX 5) and a resource type (color temperature, saturation) of the OCF resource from the access request.
S1206, the virtual open connection foundation service end sends identification information, a group address and a resource type of OCF resources of the OCF equipment to the Bluetooth low-power-consumption bridging function module.
S1207, the Bluetooth low-power-consumption bridging function module determines a model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 3, a model group corresponding to XXX5, color temperature, and saturation as model group 5. The model set 5 comprises a color temperature model of element 1 of the BLE Mesh lamp device 21, a saturation model of element 2 of the BLE Mesh lamp device 22.
S1208, the Bluetooth low-power-consumption bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 4, that the group model client corresponding to the model group 5 is Group Model Client.
S1209, the Bluetooth low energy bridging function module sends the identification information of the group model client to the virtual Bluetooth low energy grid client.
S1210, the virtual Bluetooth low energy grid client sends an access request to the BLE Mesh lamp device 21 through the group model client.
For example, the virtual bluetooth low energy Mesh client transmits an access request to the BLE Mesh lamp device 21 through Group Model Client5, the access request being for requesting acquisition of state information of the color temperature model of element 1 of the BLE Mesh lamp device 21.
S1211, the virtual bluetooth low energy Mesh client sends an access request to the BLE Mesh lamp device 22 through the group model client.
For example, the virtual bluetooth low energy Mesh client sends an access request to the BLE Mesh lamp device 22 via Group Model Client5 requesting to obtain state information of the saturation model of element 2 of the BLE Mesh lamp device 22.
S1212, the BLE Mesh lamp device 22 sends the state information of the saturation model of the element 2 of the BLE Mesh lamp device 22 to the group model client.
For example, the BLE Mesh light device 22 sends Group Model Client status information of the saturation model of element2 of the BLE Mesh light device 22.
S1213, the BLE Mesh lamp device 21 sends status information of the color temperature model of the BLE Mesh lamp device 21 to the group model client.
For example, the BLE Mesh lamp device 21 transmits state information of the color temperature model of the element1 of the BLE Mesh lamp device 21 to Group Model Client.
S1214, the virtual bluetooth low energy Mesh client sends state information of the saturation model of element2 of the BLE Mesh light device 22 and state information of the color temperature model of element1 of the BLE Mesh light device 21 to the bluetooth low energy bridging function module.
For example, the virtual bluetooth low energy Mesh client may construct Group Model Client received state information of the saturation model of element2 of the BLE Mesh light device 22 and state information of the color temperature model of element1 of the BLE Mesh light device 21 into a set, which may be noted as:
{
“/XX1/element1/XXXXX3”:{
“colour temperature”:2800
},
“,XX2/element2/XXXXX4”:{
“range”:8
}
}
wherein XX1 may be identification information of the BLE Mesh lamp device 21, XX2 is identification information of the BLE Mesh lamp device 22, element1 is identification information of element1, element2 is identification information of element2, XXXXX3 is identification information of a color temperature model, and XXXXX4 is identification information of a saturation model. "colour temperature" indicates the state of the color temperature model, 2800 indicates the color temperature value, "range" indicates the state of the saturation model, and 8 indicates the saturation value.
S1215, the bluetooth low energy bridging function module sends the state information of the saturation model of the element 2 of the BLE Mesh lamp device 22 and the state information of the color temperature model of the element 1 of the BLE Mesh lamp device 21 to the virtual open connection foundation server.
S1216, the virtual open connection foundation server sends, to the terminal device, state information of the saturation model of element 2 of the BLE Mesh lamp device 22 and state information of the color temperature model of element 1 of the BLE Mesh lamp device 21.
According to the access control method for the BLE Mesh device, the network device receives the access request of the terminal device to the first BLE Mesh device, the network device can determine the model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource included in the access request, and access a plurality of models included in the model group, when the models included in the model group are different, a user can access a certain model in the models at one time, and therefore the efficiency of the terminal device for accessing the BLE Mesh device is improved.
The above embodiments describe the procedure of the terminal device accessing the BLE Mesh device, and the following describes the procedure of the terminal device controlling the BLE Mesh device through the network device in connection with several embodiments.
The following describes, in a specific embodiment, a procedure in which a terminal device controls the same model of different BLE Mesh lamp devices through a network device. As shown in fig. 13, the process includes the following steps:
s1301, the terminal equipment and the virtual open connection foundation server perform security authentication.
For example, as shown in fig. 10, the switch icon 101 of the resource 2 corresponding to the icon 51 is currently in an on state, and the user can control the switch icon 101 of the resource 2 corresponding to the icon 51 to be turned off by sliding the switch button 102 corresponding to the switch icon 101. Since the icon 51 corresponds to the BLE Mesh light device 21, the BLE Mesh light device 21 corresponds to the OCF device 1 described above, and therefore, the terminal device determines that the user controls the OCF device 1 according to the sliding operation of the switch key 102 by the user, and since the OCF device 1 is created by the virtual open connection foundation server, the terminal device performs security authentication with the OCF device 1 created by the virtual open connection foundation server.
S1302, the virtual open connection foundation server sends URIs of OCF resources corresponding to each model group in the plurality of model groups and resource types of the OCF resources corresponding to the model groups to the terminal equipment.
For example, the virtual open connection foundation server transmits the correspondence relationship described in the above table 3 to the terminal device.
S1303, the terminal equipment sends a setting request to the virtual open connection foundation server, wherein the setting request comprises/XXX 2/XXXX2 and a switch.
Specifically, the setting request is for setting the switching pattern of element 2 of the BLE Mesh lamp apparatus 21 to be off.
For example, the setting request may be expressed as:
SET“/XXX2/XXXX2”,
payload={“value”:false}
because the OCF resource types of each model in the model group 2 corresponding to the group address XXX2 are the same and are all switches, each model can be set once without setting each model separately.
S1304, the virtual open connection foundation server analyzes the identification information of the OCF equipment set by the user.
For example, the virtual open connection foundation server analyzes the identification information of the OCF device set by the user as the identification information of the OCF device 1. The identification information of the OCF Device 1 may be a Device identification (Device Index) of the OCF Device 1.
S1305, the virtual open connection foundation server obtains the group address (XXX 2) and the resource type (switch) of the OCF resource from the setting request.
S1306, the virtual open connection foundation service end sends identification information, a group address and a resource type of OCF resources of the OCF equipment to the Bluetooth low-power-consumption bridging function module.
S1307, the Bluetooth low-power-consumption bridging function module determines a model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 3, that the model group corresponding to XXX2 and the switch is model group 2. The model set 2 comprises a switching model of element 2 of the BLE Mesh lamp device 21, a switching model of element 1 of the BLE Mesh lamp device 22, a switching model of element 2 of the BLE Mesh lamp device 22.
S1308, the Bluetooth low energy bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 4, that the group model client corresponding to the model group 2 is Group Model Client.
S1309, the Bluetooth low energy bridging function module sends the identification information of the group model client to the virtual Bluetooth low energy grid client.
And S1310, the virtual Bluetooth low energy grid client sends a setting request to the BLE Mesh lamp device 21 through the group model client.
For example, the virtual bluetooth low energy Mesh client transmits a setting request to the BLE Mesh lamp device 21 through Group Model Client2, the setting request requesting that the switching model of element 2 of the BLE Mesh lamp device 21 be turned off.
S1311, the virtual bluetooth low energy Mesh client sends a setting request to the BLE Mesh lamp device 22 through the group model client.
For example, the virtual bluetooth low energy Mesh client sends a set request to the BLE Mesh light device 22 through Group Model Client, the set request requesting to set the switching pattern of element 1 of the BLE Mesh light device 22 and the switching pattern of element 2 of the BLE Mesh light device 22 to be turned off.
S1312, the BLE Mesh lamp device 22 sends status information after the switch model of the BLE Mesh lamp device 22 is set to the group model client.
For example, the BLE Mesh lamp device 22 transmits state information after the switching pattern of the element 1 of the BLE Mesh lamp device 22 is set and state information after the switching pattern of the element 2 of the BLE Mesh lamp device 22 is set to Group Model Client.
S1313, the BLE Mesh lamp device 21 sends status information after the switch model of the BLE Mesh lamp device 21 is set to the group model client.
For example, the BLE Mesh lamp device 21 transmits state information after the switching pattern of the element 2 of the BLE Mesh lamp device 21 is set to Group Model Client.
S1314, the virtual Bluetooth low energy Mesh client sends state information after the switch models of the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 are set to the Bluetooth low energy bridging function module.
For example, the virtual bluetooth low energy Mesh client may form the state information after the switching model of element2 of the BLE Mesh light device 21 is set, the state information after the switching model of element1 of the BLE Mesh light device 22 is set, and the state information after the switching model of element2 of the BLE Mesh light device 22 received by Group Model Client into a set, where the set may be expressed as:
{
“/XX1/element2/XXXXX2”:{
“value”:false
},
“,XX2/element1/XXXXX2”:{
“value”:false
},
“,XX2/element2/XXXXX2”:{
“value”:false
}
}
wherein XX1 may be identification information of the BLE Mesh lamp device 21, XX2 is identification information of the BLE Mesh lamp device 22, element1 is identification information of element1, element2 is identification information of element2, and XXXXX2 is identification information of the switching pattern. "value" indicates the state of the switch model, where true indicates on and false indicates off.
S1315, the Bluetooth low-power-consumption bridging function module sends state information after the switching models of the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 are set to the virtual open connection foundation server.
S1316, the virtual open connection foundation server sends state information after the switching models of the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 are set to the terminal device.
According to the access control method for the BLE Mesh device, the network device receives the setting request of the terminal device for the first BLE Mesh device, the network device can determine the model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource included in the setting request, and set a plurality of models included in the model group, when the models included in the model group are the same, one-time setting operation of a certain model in the models by a user can be realized, and therefore the efficiency of setting the BLE Mesh device by the terminal device is improved.
The following describes, in a specific embodiment, a procedure in which a terminal device controls different models of different BLE Mesh lamp devices through a network device. As shown in fig. 14, the process includes the following steps:
s1401, the terminal equipment and the virtual open connection foundation server perform security authentication.
For example, as shown in fig. 10, the user may set the color temperature value of the color temperature model of the resource 1 of the BLE Mesh lamp device 21 through the slider bar 104 corresponding to the color temperature icon 103 of the resource 1 corresponding to the slider icon 51.
Since the icon 51 corresponds to the BLE Mesh light device 21, the BLE Mesh light device 21 corresponds to the OCF device 1 described above, and therefore, the terminal device determines that the user controls the OCF device 1 according to the sliding operation of the sliding bar 104 by the user, and since the OCF device 1 is created by the virtual open connection foundation server, the terminal device performs security authentication with the OCF device 1 created by the virtual open connection foundation server.
S1402, the virtual open connection foundation server sends URI of OCF resource corresponding to each model group and resource type of OCF resource corresponding to the model group to the terminal device.
For example, the virtual open connection foundation server transmits the correspondence relationship described in the above table 3 to the terminal device.
S1403, the terminal equipment sends a setting request to the virtual open connection foundation server, wherein the setting request comprises/XXX 5, color temperature and saturation.
Specifically, the setting request is used to set the color temperature value of the color temperature model of element 1 of the BLE Mesh lamp device 21 and to set the saturation value of the saturation model of element 2 of the BLE Mesh lamp device 22.
For example, the setting request may be expressed as: SET "/XXX5", payload= {
“/XX1/element1/XXXXX3”:{
“colour temperature”:2800},
“/XX2/element2/XXXXX4”{
“range”:8
}
}
That is, the setting request is for setting the color temperature value of the color temperature model of element 1 of the BLE Mesh lamp device 21 to 2800 and the saturation value of the saturation model of element 2 of the BLE Mesh lamp device 22 to 8. Since OCF resource types of the respective models in the model group 5 corresponding to the group address XXX5 are different, it is necessary to set the respective models separately.
S1404, the virtual open connection foundation server analyzes the identification information of the OCF equipment set by the user.
For example, the virtual open connection foundation server analyzes the identification information of the OCF device set by the user as the identification information of the OCF device 1. The identification information of the OCF Device 1 may be a Device identification (Device Index) of the OCF Device 1.
S1405, the virtual open connection foundation server acquires a group address (XXX 5) and a resource type (color temperature, saturation) of the OCF resource from the setting request.
And S1406, the virtual open connection foundation server side sends identification information, a group address and a resource type of OCF resources of the OCF equipment to the Bluetooth low-power-consumption bridging function module.
S1407, the Bluetooth low-power-consumption bridging functional module determines a model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 3, a model group corresponding to XXX5, color temperature and saturation as model group 5. The model set 5 comprises a color temperature model of element 1 of the BLE Mesh lamp device 21, a saturation model of element 2 of the BLE Mesh lamp device 22.
S1408, the Bluetooth low energy bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 4, that the group model client corresponding to the model group 5 is Group Model Client.
S1409, the Bluetooth low energy bridging function module sends the identification information of the group model client to the virtual Bluetooth low energy grid client.
S1410, the virtual bluetooth low energy Mesh client sends a setting request to the BLE Mesh lamp device 21 through the group model client.
For example, the virtual bluetooth low energy Mesh client transmits a setting request for requesting setting of a color temperature value of the color temperature model of element 1 of the BLE Mesh lamp device 21 to 2800 to the BLE Mesh lamp device 21 through Group Model Client5.
S1411, the virtual bluetooth low energy Mesh client sends a setting request to the BLE Mesh lamp device 22 through the group model client.
For example, the virtual bluetooth low energy Mesh client sends a set request to the BLE Mesh lamp device 22 through Group Model Client5 requesting that the saturation value of the saturation model of element 2 of the BLE Mesh lamp device 22 be set to 8.
S1412, the BLE Mesh lamp device 22 sends the state information after the saturation model of the element 2 of the BLE Mesh lamp device 22 is set to the group model client.
For example, the BLE Mesh light device 22 transmits state information after the saturation model of the element 2 of the BLE Mesh light device 22 is set to Group Model Client.
S1413, the BLE Mesh lamp device 21 sends status information after the color temperature model of the element 1 of the BLE Mesh lamp device 21 is set to the group model client.
For example, the BLE Mesh lamp device 21 transmits state information after the color temperature model of the element 1 of the BLE Mesh lamp device 21 is set to Group Model Client.
S1414, the virtual Bluetooth low energy grid client sends state information after the saturation model of the element 2 of the BLE Mesh lamp device 22 is set and state information after the color temperature model of the element 1 of the BLE Mesh lamp device 21 is set to the Bluetooth low energy bridging function module.
For example, the virtual bluetooth low energy Mesh client may form a set of state information received by Group Model Client after the saturation model of element2 of the BLE Mesh light device 22 is set and state information received by the color temperature model of element1 of the BLE Mesh light device 21, where the set may be expressed as:
{
/XX1/element1/XXXXX3”:{
“colour temperature”:2800
},
“,XX2/element2/XXXXX4”:{
“range”:8
}
}
wherein XX1 may be identification information of the BLE Mesh lamp device 21, XX2 is identification information of the BLE Mesh lamp device 22, element1 is identification information of element1, element2 is identification information of element2, XXXXX3 is identification information of a color temperature model, and XXXXX4 is identification information of a saturation model. "colour temperature" indicates the state of the color temperature model, 2800 indicates the color temperature value, "range" indicates the state of the saturation model, and 8 indicates the saturation value.
S1415, the Bluetooth low-power-consumption bridging function module sends state information after the saturation model of the element2 of the BLE Mesh lamp device 22 and state information after the color temperature model of the element1 of the BLE Mesh lamp device 21 are set to the virtual open connection foundation server.
S1416, the virtual open connection foundation server sends, to the terminal device, the state information after the saturation model of the element2 of the BLE Mesh lamp device 22 is set and the state information after the color temperature model of the element1 of the BLE Mesh lamp device 21 is set.
According to the access control method for the BLE Mesh device, the network device receives the setting request of the terminal device for the first BLE Mesh device, the network device can determine the model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource included in the setting request, and set a plurality of models included in the model group, when the models included in the model group are different, one-time setting operation of a certain model in the models by a user can be realized, and therefore the efficiency of setting the BLE Mesh device by the terminal device is improved.
The process of a terminal device accessing multiple models of the same BLE Mesh lamp device through a network device is described in connection with a specific embodiment. As shown in fig. 15, the process includes the following steps:
s1501, the terminal device performs security authentication with the virtual open connection foundation server.
For example, as shown in fig. 10, the user may click on the switch icon 105 of the resource 1 corresponding to the icon 51, and access the current state of the switch model of the resource 1 of the BLE Mesh light device 21. And the terminal equipment performs security authentication with the OCF equipment 1 created by the virtual open connection foundation server.
S1502, the virtual open connection foundation server sends URIs of OCF resources corresponding to each model group in the plurality of model groups and resource types of the OCF resources corresponding to the model groups to the terminal equipment.
For example, the virtual open connection foundation server transmits the correspondence relationship described in the above table 3 to the terminal device.
S1503, the terminal equipment sends an access request to the virtual open connection foundation server, wherein the access request comprises/XXX 4, a switch and a color temperature.
S1504, the virtual open connection foundation server analyzes the identification information of the OCF equipment accessed by the user.
For example, the virtual open connection foundation server analyzes the identification information of the OCF device accessed by the user as the identification information of the OCF device 1. The identification information of the OCF Device 1 may be a Device identification (Device Index) of the OCF Device 1.
S1505, the virtual open connection foundation server obtains the group address (XXX 4) and the resource type (switch, color temperature) of the OCF resource from the access request.
S1506, the virtual open connection foundation service end sends the identification information, the group address and the resource type of the OCF resource of the OCF device to the Bluetooth low-power bridging function module.
S1507, the Bluetooth low-power-consumption bridging function module determines a model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 3, that the model group corresponding to XXX4, switch, and color temperature is model group 4. The model set 4 comprises a switching model of the element 1 of the BLE Mesh lamp device 21, a color temperature model of the element 3 of the BLE Mesh lamp device 21. That is, the model set 4 comprises a plurality of different models of the same BLE Mesh lamp device.
S1508, the Bluetooth low energy bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 4, that the group model client corresponding to the model group 4 is Group Model Client.
S1509, the Bluetooth low energy bridging function module sends the identification information of the group model client to the virtual Bluetooth low energy grid client.
S1510, the virtual bluetooth low energy Mesh client sends an access request to the BLE Mesh lamp device 21 through the group model client.
For example, the virtual bluetooth low energy Mesh client transmits an access request to the BLE Mesh lamp device 21 through Group Model Client for requesting acquisition of state information of the on-off model of the element 1 of the BLE Mesh lamp device 21 and state information of the color temperature model of the element 3 of the BLE Mesh lamp device 21.
S1511, the BLE Mesh lamp device 21 sends, to the group model client, state information of the on-off model of the element1 of the BLE Mesh lamp device 21 and state information of the color temperature model of the element3 of the BLE Mesh lamp device 21.
For example, the BLE Mesh lamp device 21 transmits state information of the on-off model of the element1 of the BLE Mesh lamp device 21 and state information of the color temperature model of the element3 of the BLE Mesh lamp device 21 to Group Model Client.
S1512, the virtual Bluetooth low energy grid client sends state information of a switching model of the element1 of the BLE Mesh lamp device 21 and state information of a color temperature model of the element3 of the BLE Mesh lamp device 21 to the Bluetooth low energy bridging function module.
For example, the virtual bluetooth low energy Mesh client may form the state information of the on-off model of element1 of the BLE Mesh light device 21 and the state information of the color temperature model of element3 of the BLE Mesh light device 21 received by Group Model Client into a set, which may be noted as:
{
“/XX1/element1/XXXXX2”:{
“value”:true
},
“,XX1/element3/XXXXX3”:{
“colour temperature”:200
}
}
wherein XX1 may be identification information of the BLE Mesh lamp device 21, XX2 is identification information of the BLE Mesh lamp device 22, element1 is identification information of element1, element3 is identification information of element3, XXXXX2 is identification information of a switching model, and XXXXX3 is identification information of a color temperature model. "colour temperature" indicates the state of the color temperature model, 200 indicates the color temperature value, "value" indicates the state of the switch model, and true indicates on.
S1513, the bluetooth low energy bridging function module sends, to the virtual open connection foundation server, state information of the on-off model of the element 1 of the BLE Mesh lamp device 21 and state information of the color temperature model of the element 3 of the BLE Mesh lamp device 21.
S1514, the virtual open connection foundation server sends, to the terminal device, state information of the on-off model of the element 1 of the BLE Mesh lamp device 21 and state information of the color temperature model of the element 3 of the BLE Mesh lamp device 21.
According to the access control method for the BLE Mesh device, the network device receives the access request of the terminal device to the first BLE Mesh device, the network device can determine the model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource included in the access request, and access a plurality of models included in the model group, when the model group includes a plurality of different models of the same BLE Mesh device, a user can access a certain model in the different models at one time, and therefore the efficiency of the terminal device for accessing the BLE Mesh device can be improved.
The following describes a procedure for setting multiple models of the same BLE Mesh lamp device by the terminal device through the network device in connection with a specific embodiment. As shown in fig. 16, the process includes the following steps:
And S1601, the terminal equipment and the virtual open connection foundation server perform security authentication.
For example, as shown in fig. 10, the user may also slide the switch button 106 to set the switch model of element 1 of the BLE Mesh light device 21. And the terminal equipment performs security authentication with the OCF equipment 1 created by the virtual open connection foundation server.
S1602, the virtual open connection foundation server sends URI of OCF resource corresponding to each model group and resource type of OCF resource corresponding to the model group to the terminal equipment.
For example, the virtual open connection foundation server transmits the correspondence relationship described in the above table 3 to the terminal device.
S1603, the terminal equipment sends a setting request to the virtual open connection foundation server, wherein the setting request comprises/XXX 4, a switch and a color temperature.
Specifically, the setting request is for setting the on-off model of the element 1 of the BLE Mesh lamp device 21 and setting the color temperature value of the color temperature model of the element 3 of the BLE Mesh lamp device 21.
For example, the setting request may be expressed as: SET "/XXX4", payload = {
“/XX1/element1/XXXXX2”:{
“value”:false},
“/XX1/element3/XXXXX3”:{
“colour temperature”:300
}
}
I.e. the setting request is used to set the state of the on-off model of element 1 of the BLE Mesh lamp device 21 to off and the color temperature value of the color temperature model of element 3 of the BLE Mesh lamp device 21 to 300. Since OCF resource types of the respective models in the model group 4 corresponding to the group address XXX4 are different, it is necessary to set the respective models separately.
S1604, the virtual open connection foundation server analyzes the identification information of the OCF equipment set by the user.
For example, the virtual open connection foundation server analyzes the identification information of the OCF device set by the user as the identification information of the OCF device 1. The identification information of the OCF Device 1 may be a Device identification (Device Index) of the OCF Device 1.
S1605, the virtual open connection foundation server obtains the group address (XXX 4) and the resource type (switch, color temperature) of the OCF resource from the setting request.
S1606, the virtual open connection foundation server side sends the identification information, the group address and the resource type of the OCF resource of the OCF device to the Bluetooth low-power bridging function module.
S1607, the Bluetooth low energy bridging function module determines a model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 3, that the model group corresponding to XXX4, switch, and color temperature is model group 4. The model set 4 comprises a switching model of the element 1 of the BLE Mesh lamp device 21, a color temperature model of the element 3 of the BLE Mesh lamp device 21. That is, the model set 4 comprises a plurality of different models of the same BLE Mesh lamp device.
S1608, the Bluetooth low energy bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridging function module determines, according to the correspondence shown in table 4, that the group model client corresponding to the model group 4 is Group Model Client.
S1609, the Bluetooth low energy bridging function module sends the identification information of the group model client to the virtual Bluetooth low energy grid client.
S1610, the virtual bluetooth low energy Mesh client sends a setting request to the BLE Mesh lamp device 21 through the group model client.
For example, the virtual bluetooth low energy Mesh client transmits a setting request for requesting to set the state of the on-off model of the element 1 of the BLE Mesh lamp device 21 to off and the color temperature value of the color temperature model of the element 3 of the BLE Mesh lamp device 21 to 300 to the BLE Mesh lamp device 21 through Group Model Client.
S1611, the BLE Mesh light device 21 sends, to the group model client, state information after the on-off model of the element 1 of the BLE Mesh light device 21 is set and state information after the color temperature model of the element 3 of the BLE Mesh light device 21 is set.
For example, the BLE Mesh lamp device 21 transmits state information of the switching model after the element 1 of the BLE Mesh lamp device 21 is set and state information after the color temperature model of the element 3 of the BLE Mesh lamp device 21 is set to Group Model Client.
S1612, the virtual Bluetooth low energy grid client sends state information after the on-off model of the element1 of the BLE Mesh lamp device 21 and state information after the color temperature model of the element3 of the BLE Mesh lamp device 21 are set to the Bluetooth low energy bridging function module.
For example, the virtual bluetooth low energy Mesh client may form a set of state information received by Group Model Client4 after the on-off model of element1 of the BLE Mesh light device 21 is set and state information received by the color temperature model of element3 of the BLE Mesh light device 21 is set, where the set may be expressed as:
{
“/XX1/element1/XXXXX2”:{
“value”:false
},
“,XX1/element3/XXXXX3”:{
“colour temperature”:300
}
}
wherein XX1 may be identification information of the BLE Mesh lamp device 21, XX2 is identification information of the BLE Mesh lamp device 22, element1 is identification information of element1, element3 is identification information of element3, XXXXX2 is identification information of a switching model, and XXXXX3 is identification information of a color temperature model. "colour temperature" indicates the state of the color temperature model, 300 indicates the color temperature value, "value" indicates the state of the switch model, and false indicates off.
S1613, the Bluetooth low-power-consumption bridging function module sends state information after the on-off model of the element1 of the BLE Mesh lamp device 21 and state information after the color temperature model of the element3 of the BLE Mesh lamp device 21 are set to the virtual open connection foundation server.
S1614, the virtual open connection foundation server sends, to the terminal device, state information after the on-off model of element 1 of the BLE Mesh lamp device 21 is set and state information after the color temperature model of element 3 of the BLE Mesh lamp device 21 is set.
According to the access control method for the BLE Mesh device, the network device receives the setting request of the terminal device for the first BLE Mesh device, the network device can determine the model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource included in the setting request, and set a plurality of models included in the model group, when the model group includes a plurality of different models of the same BLE Mesh device, a user performs one-time setting operation on a certain model in the plurality of different models, and therefore simultaneous setting of a plurality of different models of the same BLE Mesh device can be achieved, and efficiency of setting the BLE Mesh device by the terminal device is improved.
Fig. 17 is a schematic structural diagram of a network device provided in the present application, as shown in fig. 17, where the network device 170 includes: a receiving module 171, a determining module 172 and an access control module 173. The receiving module 171 is configured to receive an access and/or control request of a terminal device to a first BLE Mesh device, where the access and/or control request includes identification information of an OCF resource and a resource type of the OCF resource; and the determining module 172 is configured to determine a model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource, where the model group includes a plurality of models. The access control module 173 is configured to access and/or control the plurality of models.
The network device provided in this embodiment is configured to execute the technical solution on the network device side in any of the foregoing method embodiments, and its implementation principle and technical effects are similar, and are not repeated herein.
On the basis of the embodiment shown in fig. 17, the plurality of models are a plurality of models of the first BLE Mesh device; the access control module 173 is specifically configured to, when accessing and/or controlling the plurality of models: a plurality of models of the first BLE Mesh device are accessed and/or controlled.
In one implementation, the plurality of models includes at least one model of the first BLE Mesh device and at least one model of a second BLE Mesh device; the access control module 173 is specifically configured to, when the access control module accesses and/or controls the plurality of models: accessing and/or controlling at least one model of the first BLE Mesh device, and accessing and/or controlling a model of the at least one second BLE Mesh device.
In one implementation, the OCF resource type corresponding to the at least one model of the first BLE Mesh device is the same as the OCF resource type corresponding to the model of the at least one second BLE Mesh device.
In one implementation, the OCF resource type corresponding to the at least one model of the first BLE Mesh device is different from the OCF resource type corresponding to the model of the at least one second BLE Mesh device.
In one implementation, the network device 170 further includes: and a sending module 174, configured to send, to the terminal device, state information of the multiple models of the first BLE Mesh device after the access control module accesses and/or controls the multiple models of the first BLE Mesh device.
In one implementation, the sending module 174 is further configured to send, to the terminal device, state information of at least one model of the first BLE Mesh device and state information of the model of the at least one second BLE Mesh device after the access control module accesses and/or controls the at least one model of the first BLE Mesh device and accesses and/or controls the model of the at least one second BLE Mesh device.
In one implementation, the identification information of the OCF resource includes a group address of the model group.
In one implementation, the identification information of the OCF resource further includes identification information of the model group.
In one implementation, the network device 170 further includes: grouping module 175, group address assignment module 176, mapping module 177. The grouping module 175 is configured to group the model of the first BLE Mesh device and/or the model of the at least one second BLE Mesh device before the receiving module receives an access and/or control request of the terminal device to the first BLE Mesh device, so as to obtain a plurality of model groups; the group address assignment module 176 is configured to assign a group address to each model group of the plurality of model groups; the mapping module 177 is configured to establish a mapping relationship between a group address of the model group and identification information of OCF resources corresponding to the model group.
In one implementation, the determination module 172 is further configured to: determining the resource type of the OCF resource corresponding to each model group in the plurality of model groups; the sending module 174 is further configured to send identification information of the OCF resource corresponding to each of the plurality of model groups and a resource type of the OCF resource corresponding to each of the plurality of model groups to the terminal device.
In one implementation, the communication protocol between the network device and the terminal device is a first communication protocol, and the communication protocol between the network device and the first BLE Mesh device or the second BLE Mesh device is a second communication protocol.
In one implementation, the first communication protocol is an OCF protocol and the second communication protocol is a BLE Mesh protocol.
Fig. 18 is another schematic structural diagram of a network device provided in the present application, as shown in fig. 18, where the network device 180 includes: a processor 182, a memory 181, a communication interface 183; the memory 181 stores computer-executable instructions; the processor 182 executes the computer-executable instructions stored in the memory 181, so that the processor 182 executes the technical solution on the network device side in any of the foregoing method embodiments.
Fig. 18 is a simple design of a network device, and the embodiment of the present application does not limit the number of processors and memories in the network device, and fig. 18 only uses the number 1 as an example.
In one specific implementation of the network device shown in fig. 18, the memory, the processor, and the communication interface may be connected by a bus, and optionally, the memory may be integrated within the processor.
The embodiment of the application also provides a computer readable storage medium, in which computer executable instructions are stored, which when executed by a processor are used to implement the access control method of the BLE Mesh device in any of the foregoing method embodiments.
The embodiment of the application also provides a chip, which comprises: and a processor, configured to call and run a computer program from the memory, so that the device on which the chip is mounted performs the access control method of the BLE Mesh device described in any one of the foregoing method embodiments.
The embodiments of the present application also provide a computer program product, which includes computer program instructions, where the computer program instructions cause a computer to execute the access control method of the BLE Mesh device described in any of the foregoing method embodiments.
The embodiment of the application also provides a computer program, which enables a computer to execute the access control method of the BLE Mesh device in any one of the method embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of modules, electrical, mechanical, or other forms.
In the specific implementation of the terminal device and the network device described above, it should be understood that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor or in a combination of hardware and software modules within a processor.
All or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable memory. The program, when executed, performs steps including the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random-access memory (random access memory, RAM), flash memory, hard disk, solid state disk, magnetic tape, floppy disk (floppy disk), optical disk (optical disk), and any combination thereof.

Claims (27)

1. An access control method of a bluetooth low energy Mesh BLE Mesh device, which is characterized by being applied to a network device, the method comprising:
receiving an access and/or control request of terminal equipment to first BLE Mesh equipment, wherein the access and/or control request comprises identification information of Open Connection Foundation (OCF) resources and resource types of the OCF resources;
determining a model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource, wherein the model group comprises a plurality of models;
accessing and/or controlling the plurality of models;
wherein, before the receiving the access and/or control request of the terminal device to the first BLE Mesh device, the method further includes:
Grouping the model of the first BLE Mesh device and/or the model of at least one second BLE Mesh device to obtain a plurality of model groups;
assigning a group address to each of the plurality of model groups;
and establishing a mapping relation between the group address of each model group and the identification information of the OCF resource corresponding to each model group.
2. The method of claim 1, wherein the plurality of models are a plurality of models of the first BLE Mesh device;
the accessing and/or controlling the plurality of models includes:
a plurality of models of the first BLE Mesh device are accessed and/or controlled.
3. The method of claim 1, wherein the plurality of models includes at least one model of the first BLE Mesh device and at least one model of a second BLE Mesh device;
the accessing and/or controlling the plurality of models includes:
accessing and/or controlling at least one model of the first BLE Mesh device, and accessing and/or controlling a model of the at least one second BLE Mesh device.
4. A method according to claim 3, wherein the OCF resource type corresponding to the at least one model of the first BLE Mesh device is the same as the OCF resource type corresponding to the model of the at least one second BLE Mesh device.
5. A method according to claim 3, wherein the OCF resource type corresponding to the at least one model of the first BLE Mesh device is different from the OCF resource type corresponding to the model of the at least one second BLE Mesh device.
6. The method according to claim 2, wherein after said accessing and/or controlling the plurality of models of the first BLE Mesh device, the method further comprises:
and sending state information of a plurality of models of the first BLE Mesh device to the terminal device.
7. A method according to claim 3, wherein after said accessing and/or controlling at least one model of said first BLE Mesh device and accessing and/or controlling a model of said at least one second BLE Mesh device, the method further comprises:
and sending state information of at least one model of the first BLE Mesh device and state information of the model of the at least one second BLE Mesh device to the terminal device.
8. The method of claim 1, wherein the identification information of the OCF resource comprises a group address of the model group.
9. The method of claim 8, wherein the identification information of the OCF resource further comprises identification information of the model group.
10. The method according to claim 1, wherein the method further comprises:
determining the resource type of the OCF resource corresponding to each model group in the plurality of model groups;
and transmitting the identification information of the OCF resources corresponding to each model group in the plurality of model groups and the resource type of the OCF resources corresponding to each model group in the plurality of model groups to the terminal equipment.
11. The method according to claim 1, wherein the communication protocol between the network device and the terminal device is a first communication protocol and the communication protocol between the network device and the first BLE Mesh device or the second BLE Mesh device is a second communication protocol.
12. The method of claim 11, wherein the first communication protocol is OCF protocol and the second communication protocol is BLE Mesh protocol.
13. A network device, comprising:
the system comprises a receiving module, a receiving module and a processing module, wherein the receiving module is used for receiving an access and/or control request of terminal equipment to first Bluetooth low energy grid BLE Mesh equipment, and the access and/or control request comprises identification information of Open Connection Foundation (OCF) resources and resource types of the OCF resources;
The determining module is used for determining a model group corresponding to the OCF resource according to the identification information of the OCF resource and the resource type of the OCF resource, wherein the model group comprises a plurality of models;
an access control module for accessing and/or controlling the plurality of models;
wherein the network device further comprises: the system comprises a grouping module, a group address allocation module and a mapping module;
the grouping module is configured to group the model of the first BLE Mesh device and/or the model of at least one second BLE Mesh device before the receiving module receives the access and/or control request of the terminal device to the first BLE Mesh device, so as to obtain a plurality of model groups;
the group address allocation module is used for allocating a group address to each model group in the plurality of model groups;
the mapping module is used for establishing a mapping relation between the group address of each model group and the identification information of the OCF resource corresponding to each model group.
14. The network device of claim 13, wherein the plurality of models are a plurality of models of the first BLE Mesh device;
the access control module is specifically configured to, when accessing and/or controlling the plurality of models:
A plurality of models of the first BLE Mesh device are accessed and/or controlled.
15. The network device of claim 13, wherein the plurality of models includes at least one model of the first BLE Mesh device and at least one model of a second BLE Mesh device;
the access control module is specifically configured to, when accessing and/or controlling the plurality of models:
accessing and/or controlling at least one model of the first BLE Mesh device, and accessing and/or controlling a model of the at least one second BLE Mesh device.
16. The network device of claim 15, wherein the OCF resource type corresponding to the at least one model of the first BLE Mesh device is the same as the OCF resource type corresponding to the model of the at least one second BLE Mesh device.
17. The network device of claim 15, wherein the OCF resource type corresponding to the at least one model of the first BLE Mesh device is different from the OCF resource type corresponding to the model of the at least one second BLE Mesh device.
18. The network device of claim 14, wherein the network device further comprises: and the sending module is used for sending the state information of the multiple models of the first BLE Mesh device to the terminal device after the access control module accesses and/or controls the multiple models of the first BLE Mesh device.
19. The network device of claim 15, wherein the network device further comprises: and the sending module is used for sending the state information of the at least one model of the first BLE Mesh device and the state information of the model of the at least one second BLE Mesh device to the terminal device after the access control module accesses and/or controls the at least one model of the first BLE Mesh device and the model of the at least one second BLE Mesh device.
20. The network device of claim 13, wherein the identification information of the OCF resource comprises a group address of the model group.
21. The network device of claim 20, wherein the identification information of the OCF resource further comprises identification information of the model group.
22. The network device of claim 13, wherein the determination module is further configured to: determining the resource type of the OCF resource corresponding to each model group in the plurality of model groups;
the network device further includes: and the sending module is used for sending the identification information of the OCF resources corresponding to each model group in the plurality of model groups and the resource type of the OCF resources corresponding to each model group in the plurality of model groups to the terminal equipment.
23. The network device of claim 13, wherein the communication protocol between the network device and the terminal device is a first communication protocol, and wherein the communication protocol between the network device and the first BLE Mesh device or the second BLE Mesh device is a second communication protocol.
24. The network device of claim 23, wherein the first communication protocol is OCF protocol and the second communication protocol is BLE Mesh protocol.
25. A network device, comprising:
a processor, a memory, a communication interface;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of access control of a BLE Mesh device according to any one of claims 1-12.
26. A computer readable storage medium having stored therein computer executable instructions for implementing the BLE Mesh device access control method according to any of claims 1-12 when the computer executable instructions are executed by a processor.
27. A chip, comprising: processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform the access control method of a BLE Mesh device according to any one of claims 1-12.
CN201980097307.9A 2019-11-27 2019-11-27 Access control method, equipment and storage medium of BLE Mesh equipment Active CN113994722B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/121259 WO2021102735A1 (en) 2019-11-27 2019-11-27 Access control method and device for ble mesh apparatus, and storage medium

Publications (2)

Publication Number Publication Date
CN113994722A CN113994722A (en) 2022-01-28
CN113994722B true CN113994722B (en) 2024-03-22

Family

ID=76128589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980097307.9A Active CN113994722B (en) 2019-11-27 2019-11-27 Access control method, equipment and storage medium of BLE Mesh equipment

Country Status (2)

Country Link
CN (1) CN113994722B (en)
WO (1) WO2021102735A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115296989B (en) * 2022-07-01 2024-04-16 浙江艾克斯精灵人工智能科技有限公司 Subscription address configuration method, related equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018208291A1 (en) * 2017-05-09 2018-11-15 Intel Corporation Radio resource scheduling
CN109445950A (en) * 2018-09-30 2019-03-08 青岛海尔科技有限公司 The mutual exclusion access method and system of OCF resource, server-side, medium, equipment
CN110035058A (en) * 2019-02-28 2019-07-19 Oppo广东移动通信有限公司 Resource request method, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11558725B2 (en) * 2016-07-27 2023-01-17 Texas Instruments Incorporated Event clustering for BLE-mesh devices
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
WO2018125053A1 (en) * 2016-12-27 2018-07-05 Intel IP Corporation Framework for iot protocol identification and management
US11284259B2 (en) * 2017-05-12 2022-03-22 Intel Corporation Dynamic access policy provisioning in a device fog

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018208291A1 (en) * 2017-05-09 2018-11-15 Intel Corporation Radio resource scheduling
CN109445950A (en) * 2018-09-30 2019-03-08 青岛海尔科技有限公司 The mutual exclusion access method and system of OCF resource, server-side, medium, equipment
CN110035058A (en) * 2019-02-28 2019-07-19 Oppo广东移动通信有限公司 Resource request method, equipment and storage medium

Also Published As

Publication number Publication date
WO2021102735A1 (en) 2021-06-03
CN113994722A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
EP3247169A1 (en) Method of network slicing and related apparatuses using the same
CN108810993B (en) Network slice selection method, equipment, UE, control plane function entity and medium
US20200367148A1 (en) Method and device for terminal attaching and creating home-routed pdu session in roaming environment supporting network slice
CN104904249B (en) For realizing the method and apparatus of the Direct Model communication between user equipment
CN109041039A (en) The user equipment and its method that equipment is communicated for equipment
WO2022088826A1 (en) Computing service discovery method and communication apparatus
CN104869526A (en) Device-to-device communication and resource allocation method and equipment thereof
CN107431881A (en) Periphery perceives networking data path back and forth and coexisted
US20180049256A1 (en) System and Method for Efficient Connection Setup and Communication for Power Conscious Devices
CN103974408A (en) Mesh net based OFDMA (orthogonal frequency division multiple access) system and control method
CN114666850B (en) QoS control method, qoS control device and readable storage medium
JP2019504518A (en) Connection establishment method and apparatus
CN113727440A (en) Wireless communication method, medium and system
WO2018028436A1 (en) Random access method, network-side device and terminal
CN113994722B (en) Access control method, equipment and storage medium of BLE Mesh equipment
WO2019060108A1 (en) Social mesh networks
EP3534661B1 (en) Internet of vehicles transmission resource acquisition method and terminal
CN114868408A (en) Message forwarding method and device
CN109314999A (en) The method and apparatus for transmitting information
KR102604254B1 (en) Method and apparatus for performing synchronization procedure in new radio vehicle to everything system
WO2016172971A1 (en) Method for determining and indicating user plane cell of service, bearer establishment method and device
CN115396853A (en) Communication method, device and system of terminal equipment
CN112235771A (en) Service downloading method and device for reducing network load
CN114143854A (en) Communication method and device
WO2022088156A1 (en) Service discovery method and apparatus

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