CN113994722A - Access control method and device of BLE Mesh device and storage medium - Google Patents

Access control method and device of BLE Mesh device and storage medium Download PDF

Info

Publication number
CN113994722A
CN113994722A CN201980097307.9A CN201980097307A CN113994722A CN 113994722 A CN113994722 A CN 113994722A CN 201980097307 A CN201980097307 A CN 201980097307A CN 113994722 A CN113994722 A CN 113994722A
Authority
CN
China
Prior art keywords
model
ble mesh
ocf
group
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201980097307.9A
Other languages
Chinese (zh)
Other versions
CN113994722B (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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides an access control method of BLE Mesh equipment, equipment and a storage medium, receiving, by a network device, an access and/or control request of a terminal device for a first BLE Mesh device, where the network device may determine, according to identification information of an OCF resource and a resource type of the OCF resource included in the access and/or control request, a model group corresponding to the OCF resource, and access and/or control a plurality of models comprised by the set of models, that is, one access and/or control operation by the user on a certain model of the first BLE Mesh device, the method and the device have the advantages that the network device can access and/or control a plurality of models in the model group to which the models belong, and compared with the method and the device in which only one model can be accessed and/or controlled by one-time access and/or control operation of a user, the efficiency of accessing and/or controlling the BLE Mesh device by the terminal device is improved.

Description

Access control method and device of BLE Mesh device and storage medium Technical Field
The embodiment of the application relates to a communication technology, and in particular relates to an access control method and device for a BLE Mesh device and a storage medium.
Background
In the prior art, a device using a Bluetooth Low Energy (BLE) Mesh (Mesh) as a server may be accessed and/or controlled by a device using a BLE Mesh as a Client (Client), that is, both the BLE Mesh server and the BLE Mesh Client conform to a BLE Mesh Protocol (Protocol).
In order to extend the range of access and/or control of the BLE Mesh server device, a conversion between an Open Connectivity Foundation (OCF) protocol and the BLE Mesh protocol is proposed, so that an OCF client device following the OCF protocol can also access and/or control the BLE Mesh server device.
However, current OCF client devices are inefficient at accessing and/or controlling BLE Mesh server devices.
Disclosure of Invention
The embodiment of the application provides an access control method and device of BLE Mesh equipment and a storage medium, 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 for a BLE Mesh device, which is applied to a network device, and the method includes:
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 (optical clock frequency) resource and a resource type of the OCF resource;
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, an embodiment 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 for 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;
a determining module, configured to determine a model group corresponding to the OCF resource according to the identifier information of the OCF resource and the resource type of the OCF resource, where the model group includes multiple models;
an access control module for accessing and/or controlling the plurality of models.
In a third aspect, an embodiment 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 by the memory, causing the processor to perform the method of 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 implementing the method according to the first aspect when the computer-executable instructions are executed by a processor.
In a fifth aspect, an embodiment of the present application provides a chip, including: a processor for calling and running the computer program from the memory so that the device on which the chip is installed performs 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, this application embodiment also provides a computer program, where the computer program makes a computer execute the method described in the first aspect above.
The access control method, the device and the storage medium of the BLE Mesh device provided by the embodiment of the application, receiving, by a network device, an access and/or control request of a terminal device for a first BLE Mesh device, where the network device may determine, according to identification information of an OCF resource and a resource type of the OCF resource included in the access and/or control request, a model group corresponding to the OCF resource, and access and/or control a plurality of models comprised by the set of models, that is, one access and/or control operation by the user on a certain model of the first BLE Mesh device, the method and the device have the advantages that the network device can access and/or control a plurality of models in the model group to which the models belong, and compared with the mode that only one model can be accessed and/or controlled by one-time access and/or control operation of a user, the efficiency of accessing and/or controlling the BLE Mesh device by the terminal device is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a communication system provided herein;
FIG. 2 is a 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 view 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 process for establishing a mapping relationship between a group address corresponding to each model group in a plurality of model groups and identification information of an OCF resource corresponding to the model group, provided by the present application;
figure 8 is a flowchart of an access control method of a BLE Mesh device provided in the present application;
FIG. 9 is a schematic view of another user interface provided herein;
FIG. 10 is a schematic illustration of yet another user interface provided herein;
figure 11 is a flowchart of another access control method for a BLE Mesh device provided in the present application;
figure 12 is a flowchart of a further method for controlling access to a BLE Mesh device according to the present application;
figure 13 is a flowchart of another method for controlling access to a BLE Mesh device according to the present application;
figure 14 is a flowchart of another method for controlling access to a BLE Mesh device according to the present application;
figure 15 is a flowchart of another method for controlling access to a BLE Mesh device according to the present application;
figure 16 is a flowchart of another method for controlling access to a BLE Mesh device according to the present application;
fig. 17 is a schematic structural diagram of a network device provided in the present application;
fig. 18 is a schematic structural diagram of another network device provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in 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 obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and in the claims, and in the drawings, of the embodiments of the application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. 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.
Technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical scheme of the embodiment of the application can be applied to various communication systems, for example: a Global System for Mobile communications (GSM) System, a Code Division Multiple Access (CDMA) System, a Wideband Code Division Multiple Access (WCDMA) System, a General Packet Radio Service (GPRS), a Long Term Evolution (Long Term Evolution, LTE) System, a LTE Frequency Division Duplex (FDD) System, a LTE Time Division Duplex (TDD) System, a Long Term Evolution (Advanced) Evolution (LTE-A) System, a New Radio (New Radio, NR) System, an Evolution System of an NR System, a non-licensed-channel-Access (LTE-N) System, a non-licensed-U-NR System, a non-licensed-Universal-NR (NR) System, UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, Wireless Local Area Network (WLAN), Wireless Fidelity (WiFi), next generation communication system, or other communication system.
Generally, conventional communication systems support a limited number of connections and are 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 (M2M) Communication, Machine Type Communication (MTC), and Vehicle to Vehicle (V2V) Communication, and the embodiments of the present application can also be applied to these Communication systems.
Illustratively, a communication system 100 applied in the embodiment of the present application 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, a terminal). Network device 110 may provide communication coverage for a particular geographic area and may communicate with terminal devices located within that coverage area. Optionally, the Network device 110 may be a Base Transceiver Station (BTS) in a GSM system or a CDMA system, a Base Station (NodeB, NB) in a WCDMA system, an evolved Node B (eNB or eNodeB) in an LTE system, or a wireless controller in a Cloud Radio Access Network (CRAN), or may be a Network device in a Mobile switching center, a relay Station, an Access point, a vehicle-mounted 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 Public Land Mobile Network (PLMN) for future evolution, or the like.
The communication system 100 further comprises at least one terminal device 120 located within the coverage area of the network device 110. As used herein, "terminal equipment" includes, but is not limited to, connections via wireline, such as Public Switched Telephone Network (PSTN), Digital Subscriber Line (DSL), Digital cable, direct cable connection; and/or another data connection/network; and/or via a wireless interface, e.g., for a cellular network, a WLAN, a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter; and/or means of another terminal device arranged to receive/transmit communication signals; and/or Internet of Things (IoT) devices. A terminal device arranged to communicate over a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal", or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; personal Communications Systems (PCS) terminals that may combine cellular radiotelephones with data processing, facsimile, and data Communications capabilities; personal Digital Assistant (PDA) devices that may include radiotelephones, pagers, internet/intranet access, Web browsers, notepads, calendars, and/or Global Positioning System (GPS) receivers; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver. Terminal Equipment 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 (SIP) phone, a 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, a vehicle mounted device, a wearable device, a terminal device in a 5G network or a terminal device in a future evolved PLMN, etc.
Optionally, D2D communication may be performed between terminal devices 120.
Alternatively, 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 exemplarily shows one network device and two terminal devices, and optionally, the communication system 100 may include a plurality of network devices and may include other numbers of terminal devices within the coverage of each network device, which is not limited in this embodiment of the present application.
In fig. 1, the network device may be an access device, for example, an access device in an NR-U system, such as a next generation Node B (gNB) or a small station of a 5G, a micro station, a relay station, a Transmission and Reception Point (TRP), a Road Side Unit (RSU), and so on.
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 smartphone, 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, an in-vehicle device, a wearable device, etc. In an embodiment of the application, the terminal device has an interface for communicating with a network device (e.g., a cellular network).
Optionally, the communication system 100 may further include other network entities such as a network controller, a mobility management entity, and the like, which is not limited in this embodiment.
It should be understood that a device having a communication function in a network/system in the embodiments 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 having a communication function, and the network device 110 and the terminal device 120 may be the 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 other network entities, for example, a network controller, a mobility management entity, and the like, which is not limited in this embodiment.
It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The method of the embodiment of the present application may be applied to the communication system shown in fig. 1, and may also be applied to other communication scenarios. For example, the method of the embodiment of the present application may be applied to a Mesh network, as shown in fig. 2, 20 denotes 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 conforming to a Mesh protocol, such as a BLE Mesh socket, a BLE Mesh lamp device, and the like. The present embodiment is schematically illustrated by taking a BLE Mesh lamp device as a BLE Mesh server device. As shown in fig. 2, 21 and 22 represent BLE Mesh lamp devices, respectively, and 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 element1, element2, and element3, where element1 may be a master element of the BLE Mesh lamp device 21, the master element may have an address denoted as addr1, and addr1 may be an address of the BLE Mesh lamp device 21 in the Mesh network. Element2 and element3 may be slave elements of the BLE lamp device 21, and the address corresponding to element2 may be denoted as addr2, and the address corresponding to element3 may be denoted as addr 3. Wherein, addr2 may be a fixed offset added on the basis of addr1, and addr3 may be two fixed offsets added on the basis of addr 1. In addition, each element of the BLE Mesh lamp device 21 may further include one or more models, for example, element1 includes a brightness model and a switching model, element2 includes a switching model, and element3 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 lamp device 21.
Similarly, the BLE Mesh lamp device 22 may also include one or more elements, for example, the BLE Mesh lamp device 22 includes element1 and element2, where element1 is a main element of the BLE Mesh lamp device 22, the corresponding address of the main element is denoted as addr4, and addr4 may be an address of the BLE Mesh lamp device 22 in the Mesh network. Element2 of the BLE Mesh lamp device 22 is a slave element of the BLE Mesh lamp device 22, the address corresponding to element2 of the BLE Mesh lamp device 22 is denoted as addr5, and addr5 may be added with a fixed offset on the basis of addr 4. Similarly, the BLE Mesh client device 20 may access and/or control a model of the BLE Mesh lamp device 22.
To make BLE Mesh server devices accessible and/or controllable by more types of client devices, the network architecture as shown in figure 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 an OCF protocol. The network device 31 is a device supporting an OCF protocol and a BLE Mesh protocol, and the network device 31 may specifically be a bridging 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 data packets of the OCF protocol into data packets of the BLE Mesh protocol, or translate data packets of the BLE Mesh protocol into data packets of the OCF protocol.
Specifically, an Application program (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 of a user on the APP, and send the access and/or control request conforming to the OCF protocol to the network device 31, and the network device 31 may translate the access and/or control request conforming to the BLE Mesh protocol into an access and/or control request conforming to the BLE Mesh protocol, and access and/or control 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, one access and/or control operation of the user can only access and/or control one model of one BLE Mesh lamp device, which may result in a low efficiency of the end device 30 accessing and/or controlling the BLE Mesh lamp device 21 or the BLE Mesh lamp device 22, i.e. a low efficiency of the OCF client device accessing and/or controlling the BLE Mesh server device. In order to solve the problem, this embodiment provides an access control method for a BLE Mesh device, and the access control method for the BLE Mesh device is described below with reference to a specific embodiment.
Fig. 4 is a communication system to which the access control method for BLE Mesh devices provided in the present application is applied. The communication system comprises an OCF client device (e.g. end device 30), a network device (e.g. network device 31) supporting both OCF protocol and BLE Mesh protocol, and a plurality of BLE Mesh devices (e.g. BLE Mesh lamp device 21 and BLE Mesh lamp device 22), in particular BLE Mesh serving end devices as described above. Specifically, the BLE Mesh lamp device 21 may be denoted as a first BLE Mesh device, and the BLE Mesh lamp device 22 may be denoted as a second BLE Mesh device. Wherein the first BLE Mesh device may be a BLE Mesh device currently accessed and/or controlled by the user. The number of the second BLE Mesh devices may be one or more, and is illustrated schematically here by way of an example.
Specifically, the network device 31 may actively discover the peripheral BLE Mesh devices, for example, when the network device 31 discovers the BLE Mesh device 21 and the BLE Mesh device 22, the BLE Mesh device 21 and the BLE Mesh device 22 may respectively send the elements and the models included in them to the network device 31, and the network device 31 may divide the models of the BLE Mesh device 21 and/or the BLE Mesh device 22 into a plurality of model groups.
Specifically, the network device 31 may divide the same model of different BLE Mesh lamp devices into a model group. For example, the saturation model of element3 of the BLE Mesh lamp device 21 and the saturation model of element1 of the BLE Mesh lamp device 22 are divided into model group 1, the switching model of element2 of the BLE Mesh lamp device 21, the switching model of element1 of the BLE Mesh lamp device 22, and the switching model of element2 of the BLE Mesh lamp device 22 are divided into model group 2, and the luminance model of element1 of the BLE Mesh lamp device 21 and the luminance model of element2 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 a plurality of models of the same element of the same BLE Mesh lamp device into one model group, and may also divide a plurality of models of different elements of the same BLE Mesh lamp device into one model group. For example, the switching model of element1 of the BLE Mesh lamp device 21 and the color temperature model of element3 of the BLE Mesh lamp device 21 are divided into model group 4.
Furthermore, the network device 31 may divide the different models of the different BLE Mesh lamp devices into one model group. For example, the color temperature model of element1 of the BLE Mesh lamp device 21 and the saturation model of element2 of the BLE Mesh lamp device 22 are divided into a model group 5.
It is to be understood that the terminal device 30 may also divide the model of the BLE Mesh lamp device 21 and/or the BLE Mesh lamp device 22 into a plurality of model groups. Specifically, when the network device 31 finds 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 respectively send the element and the model included in each to the network device 31, and the network device 31 further sends the element and the model included in each of the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 to the terminal device 30, where the element is a concept in the BLE Mesh protocol and the element corresponds to a concept of a resource in the terminal device 30 because the BLE Mesh lamp device is a device conforming to the BLE Mesh protocol and the terminal device 30 is a device conforming to the OCF protocol. The end device 30 may display the elements and models comprised by the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22, respectively, on the APP as shown in fig. 5. Wherein, element1 in the BLE Mesh light device corresponds to resource 1 displayed by terminal device 30, element2 in the BLE Mesh light device corresponds to resource 2 displayed by terminal device 30, element3 in the BLE Mesh light device corresponds to resource 3 displayed by terminal device 30, and so on. An icon corresponding to the BLE Mesh lamp device 21 is denoted by 51, and an icon corresponding to the BLE Mesh lamp device 22 is denoted by 52. The user may divide the saturation model of element3 of BLE Mesh lamp device 21 and the saturation model of element1 of BLE Mesh lamp device 22 into one model group by continuously clicking the saturation icon of resource 3 corresponding to icon 51 and the saturation icon of resource 1 corresponding to 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 element3 of the BLE Mesh lamp device 21 and the saturation model of the element1 of the BLE Mesh lamp device 22 into one model group according to the model group division instruction, and the model group may be marked as the model group 1. The division methods of other model groups, such as model group 2, model group 3, model group 4, and model group 5, are similar to those described above, and are not described in detail here.
Further, the network device 31 may also assign a group address to each model group. Specifically, the correspondence between the 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
Figure PCTCN2019121259-APPB-000001
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 the same, 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 models. When a plurality of models in a model group are different, the resource types of the OCF resources corresponding to the model group are a set of OCF resource types corresponding to the different models respectively.
For example, the types of OCF resources corresponding to the several models described above are shown in table 2 below.
TABLE 2
Model (model) OCF resource type
Luminance model Brightness of light
Switch model Switch with a switch body
Color temperature model Color temperature
Saturation model Degree of saturation
The switch in the OCF resource type shown in table 2 may be specifically a 01 switch, for example, 1 may represent on, and 0 represents off, or 0 represents on and 1 represents off.
In addition, the network device 31 may also establish a mapping relationship between a group address corresponding to each model group and identification information of an OCF resource corresponding to the model group. The identification information of the OCF Resource may specifically be a 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 relationship among the group addresses corresponding to several 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 is shown in table 3 below:
TABLE 3
Model set Group address URI for OCF resources Resource type of OCF resource
Model set
1 XXX1 /XXX1/XXXX1 Degree of saturation
Model group 2 XXX2 /XXX2/XXXX2 Switch with a switch body
Model group 3 XXX3 /XXX3/XXXX3 Brightness of light
Model group 4 XXX4 /XXX4 Switch, color temperature
Model set 5 XXX5 /XXX5 Color temperature, saturation
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/XXXX1, where XXX1 is the group address of model group 1. In addition, the URI of the OCF resource may also include identification information of model group 1, e.g., XXXX 1. Since the model group 1 includes the saturation model of the element3 of the BLE Mesh lamp device 21 and the saturation model of the element1 of the BLE Mesh lamp device 22, that is, the model group 1 includes a plurality of models which are the same, it can be known from table 2 that the resource type of the OCF resource corresponding to the model group 1 is the same OCF resource type, that is, the saturation, corresponding to the plurality of 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 only include the group address XXX4 of model group 4, but not include the identification information of model group 4. Since the model group 4 includes the switch model of element1 of the BLE Mesh lamp device 21 and the color temperature model of element3 of the BLE Mesh lamp device 21, that is, the model group 4 includes a plurality of different models, the resource types of the OCF resources corresponding to the model group 4 are sets of OCF resource types respectively corresponding to the different models, that is, the switch and the color temperature. Wherein the switch corresponds to the switch model of element1 of BLE Mesh lamp device 21 and the color temperature corresponds to the color temperature model of element3 of BLE Mesh lamp device 21.
It is understood that the correspondence relationships as described in table 1, table 2, and table 3 may be stored in the network device 31 or may also be stored in the terminal device 30.
In addition, in this embodiment of the present application, since the network device 31 may simultaneously support the OCF protocol and the BLE Mesh protocol, for the terminal device 30, the network device 31 is a server device that supports the OCF protocol. For BLE Mesh lamp devices 21 and 22, the network device 31 is a client device supporting the BLE Mesh protocol. Therefore, the network device 31 may include a service end supporting the OCF protocol and a client end supporting the BLE Mesh protocol. The network device 31 may specifically be a bridging platform as shown in fig. 6, and the bridging platform may specifically be a bridging platform between an OCF protocol and a 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 (BLE Bridging Function), and a Virtual bluetooth low energy Mesh Client (Virtual Mesh Client). The Virtual OCF Server may communicate with an open connection fund Client (OCF Client) through an OCF protocol, where the OCF Client may specifically be the terminal device 30 as described above. The Virtual BLE Mesh Client may communicate with a bluetooth low energy Mesh service terminal (BLE Mesh Server) through a BLE Mesh protocol, and the BLE Mesh Server may specifically be the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 as described above.
A specific process of the network device 31 for establishing a mapping relationship between a group address corresponding to each model group in a plurality of model groups and identification information of an OCF resource corresponding to the model group is described below with reference to a specific embodiment. As shown in fig. 7, the process specifically includes the following steps:
s701, the virtual Bluetooth low-power grid client discovers a Bluetooth low-power grid server 1 and a Bluetooth low-power 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 records the Bluetooth low energy grid server 1 as Node1, and records the Bluetooth low energy grid server 2 as Node 2.
For example, when the BLE Mesh lamp device 21 is discovered by a virtual bluetooth low energy Mesh client, the BLE Mesh lamp device 21 is marked as Node 1. When the BLE Mesh lamp device 22 is discovered by the virtual bluetooth low energy Mesh client, the BLE Mesh lamp device 22 is marked as Node 2.
S703, the virtual Bluetooth low energy grid client determines the model of Node1 and Node2 that needs to be accessed and/or controlled.
For example, the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 each comprise a plurality of models, however, some of the models may or may not need to be accessed and/or controlled. Therefore, after discovering the BLE Mesh device 21 and the BLE Mesh device 22, the virtual bluetooth low energy Mesh client needs to determine a model of the BLE Mesh device 21 and the BLE Mesh device 22 that needs to be accessed and/or controlled. For example, the model that the BLE Mesh lamp device 21 needs to be accessed and/or controlled is a model corresponding to element1, element2, and element3 of the BLE Mesh lamp device 21 as shown in fig. 4. The model to be accessed and/or controlled in the BLE Mesh lamp device 22 is a model corresponding to element1 and element2, respectively, of the BLE Mesh lamp device 22 as shown in fig. 4.
S704, the virtual Bluetooth low-power grid client groups models which need to be accessed and/or controlled in Node1 and Node2 to obtain a plurality of model groups.
The specific grouping process is as described in the above embodiments, and is not described herein again. The plurality of model groups may specifically be 5 model groups as shown in fig. 4.
S705, the virtual Bluetooth low energy grid client allocates a group address and a group model client to each model group.
The virtual bluetooth low energy mesh 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 to each model group by the virtual bluetooth low energy mesh client are specifically shown in table 4 below. That is, the group model client may be created by a virtual bluetooth low energy mesh client, and thus, the virtual bluetooth low energy mesh client may include the group model client.
TABLE 4
Model set Group model client
Model set 1 Group Model Client1
Model group 2 Group Model Client2
Model group 3 Group Model Client3
Model group 4 Group Model Client4
Model set 5 Group Model Client5
S706, the virtual Bluetooth low energy grid client sends a notification message to the Bluetooth low energy bridge function module, and the notification message is used for notifying that the Node1 and the Node2 are successfully created.
And S707, the Bluetooth low energy bridge function module stores the relevant information of the Node1 and the Node2 into an OCF equipment list to be created.
The information related to the Node1 is related to the BLE Mesh lamp device 21, and the information related to the Node2 is related to the BLE Mesh lamp device 22.
And S708, the Bluetooth low-power bridge function module sends a notification message to the virtual open connection fund server, wherein the notification message is used for requesting to create the OCF equipment.
And S709, the virtual open connection foundation service end creates OCF equipment 1 corresponding to Node1 and OCF equipment 2 corresponding to Node2 according to the OCF equipment list to be created.
Specifically, after creating the OCF device 1 and the OCF device 2, the virtual open connection foundation server generates identification information of the OCF device 1 and identification information of the OCF device 2.
And S710, the virtual open connection fund service end sends a message that the OCF equipment is successfully established to the Bluetooth low-power-consumption bridge function module.
S711, the Bluetooth low-power bridging function module establishes a corresponding relation between the identification information of the OCF device 1 and the Node1, and a corresponding relation between the identification information of the OCF device 2 and the Node 2.
Since Node1 corresponds to BLE Mesh lamp device 21 and Node2 corresponds to BLE Mesh lamp device 22, the bluetooth low energy bridging function module may further establish a corresponding relationship between the identification information of OCF device 1 and BLE Mesh lamp device 21 and a corresponding relationship between the identification information of OCF device 2 and BLE Mesh lamp device 22.
S712, the Bluetooth low-power bridging function module establishes a mapping relation between a group address corresponding to each model group in the plurality of model groups and a URI of an OCF resource corresponding to the model group.
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 above.
S713, the Bluetooth low-power 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.
The mapping relationship between each model group and the resource type of the OCF resource is specifically shown in table 3 above.
It can be understood that, since the OCF device 1 corresponds to the BLE Mesh lamp device 21, and 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, the OCF resources of the OCF device 1 include OCF resources corresponding to the model group 1, the model group 2, the model group 3, the model group 4, and the model group 5, respectively.
Because the OCF device 2 corresponds to the BLE Mesh lamp device 22, and 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, the OCF resources of the OCF device 2 include OCF resources corresponding to the model group 1, the model group 2, the model group 3, and the model group 5, respectively.
Taking the model group 1 as an example, since the two saturation models in the model group 1 are respectively located in the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22, the OCF resource corresponding to the model group 1 simultaneously exists in the OCF device 1 corresponding to the BLE Mesh lamp device 21 and in the OCF device 2 corresponding to the BLE Mesh lamp device 22. That is to say, 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 both 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 device 1 and the OCF device 2.
Taking model group 4 as an example, since both models in model group 4 are located in BLE Mesh lamp device 21. Therefore, the OCF resources corresponding to the model group 4 exist in the OCF device 1 corresponding to the BLE Mesh lamp device 21, and do not exist in the OCF device 2 corresponding to the BLE Mesh lamp device 22. That is to say, 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 following describes in detail the process of accessing and/or controlling OCF resources by the terminal device 30 according to a specific embodiment.
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 includes identification information of an OCF resource and a resource type of the OCF resource.
Specifically, in this embodiment of the 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. Wherein the first BLE Mesh device may be a BLE Mesh device currently accessed and/or controlled by the user. The number of the second BLE Mesh devices may be one or more, and is illustrated schematically here by way of an example.
As shown in fig. 9, an icon 51 corresponding to the BLE Mesh lamp device 21 and an icon 52 corresponding to the BLE Mesh lamp device 22 are displayed on the user interface of the terminal device 30. In addition, the user interface displays icons of resources corresponding to the elements of the BLE Mesh lamp devices 21 and 22 and icons of models corresponding to the elements. The user may access and/or control the model of BLE Mesh lamp device 21 and/or BLE Mesh lamp device 22 through the user interface.
For example, the user may access the current state of the switch model of element1 of BLE Mesh lamp device 21 by clicking on switch icon 91 of resource 1 corresponding to icon 51, which may be displayed in dialog box 53. Alternatively, the user may enter 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 element1 of the BLE Mesh lamp device 21.
As another example, the user may access the current state of the switch model of element2 of BLE Mesh lamp 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 enter 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 element2 of the BLE Mesh lamp device 21.
It is to be understood that the manner of displaying the current state of the model of BLE Mesh light device 21 or BLE Mesh light device 22 on the user interface of terminal device 30 is not limited to the display in the dialog box as shown in fig. 9, and may also be the display manner as shown in fig. 10, for example. In addition, the setting manner of the model of the BLE Mesh lamp device 21 or the BLE Mesh lamp device 22 by the user is not limited to the manner of inputting information in the dialog box as shown in fig. 9, for example, the current state of the switch model may also be controlled by the manner as shown in fig. 10, for example, by sliding the switch button; and setting the current color temperature or brightness value by sliding a sliding bar corresponding to the color temperature or brightness.
The terminal device 30 generates an access and/or control request according to the operation of the user on the user interface, where the access and/or control request may include the URI of the OCF resource corresponding to the model group to which the model accessed and/or controlled by the user belongs and the resource type of the OCF resource.
Specifically, the terminal device 30 may store the correspondence relationship between tables 1 and 3, or the network device 31 may send the correspondence relationship between tables 1 and 3 to the terminal device 30. When a user accesses the switch model of the element1 of the BLE Mesh lamp device 21 and/or sets the switch model of the element1 of the BLE Mesh lamp device 21, a model group to which the switch model of the element1 of the BLE Mesh lamp device 21 belongs is determined according to the correspondence described in table 1, for example, the model group 4, and further, according to the correspondence described in table 3, the URI (for example/XXX 4) of the OCF resource corresponding to the model group 4 and the resource type (for example, switch, color temperature) of the OCF resource are determined. Accordingly, the access and/or control request may include/XXX 4, a switch, and a color temperature.
Alternatively, when the user accesses the switch model of element2 of BLE Mesh lamp device 21 and/or sets the switch model of element2 of BLE Mesh lamp device 21, the model group to which the switch model of element2 of BLE Mesh lamp device 21 belongs is determined according to the correspondence described in table 1, for example, model group 2, and further, according to the correspondence described in table 3, the URI (for example/XXX 2/XXX 2) of the OCF resource corresponding to 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 network device 31 includes/XXX 4, a switch, and a color temperature, network device 31 may determine, according to/XXX 4, the switch, and the color temperature, that the model group corresponding to the OCF resource is model group 4, where model group 4 includes a switch model of element1 of Mesh lamp device 21 and a color temperature model of element3 of 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 model group 2, where the model group 2 includes a switch model of element2 of the BLE Mesh lamp device 21, a switch model of element1 of the BLE Mesh lamp device 22, and a switch model of element2 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 element1 of the BLE Mesh lamp device 21 and the color temperature model of element3 of the BLE Mesh lamp device 21. That is, a user performing one access and/or control operation on the switch model of element1 of BLE Mesh lamp device 21 may cause network device 31 to simultaneously access and/or control the switch model of element1 of BLE Mesh lamp device 21 and the color temperature model of element3 of BLE Mesh lamp device 21. That is, since the model group 4 includes multiple models of the same BLE Mesh lamp device, access to and/or control of the multiple models of the same BLE Mesh lamp device may be achieved by a user accessing and/or controlling any one of the models in the model group 4.
As another example, when the model group is model group 2, network device 31 accesses and/or controls a switching model of element2 of BLE Mesh lamp device 21, a switching model of element1 of BLE Mesh lamp device 22, and a switching model of element2 of BLE Mesh lamp device 22. That is, a user performing one access and/or control operation on the switch model of element2 of BLE Mesh lamp device 21 may cause network device 31 to simultaneously access and/or control the switch model of element2 of BLE Mesh lamp device 21, the switch model of element1 of BLE Mesh lamp device 22, and the switch model of element2 of BLE Mesh lamp device 22. That is, since the model group 2 includes the same models of a plurality of BLE Mesh lamp devices, access to and/or control of the same models of the plurality of BLE Mesh lamp devices may be achieved by a user accessing and/or controlling any one of the models in the model group 2.
In the access control method for BLE Mesh devices provided in this embodiment, a network device receives an access and/or control request from a terminal device to a first BLE Mesh device, and the network device may determine, according to identifier information of an OCF resource and a resource type of the OCF resource included in the access and/or control request, a model group corresponding to the OCF resource, and access and/or control a plurality of models comprised by the set of models, that is, one access and/or control operation by the user on a certain model of the first BLE Mesh device, the method and the device have the advantages that the network device can access and/or control a plurality of models in the model group to which the models belong, and compared with the method and the device in which only one model can be accessed and/or controlled by one-time access and/or control operation of a user, the efficiency of accessing and/or controlling the BLE Mesh device by the terminal device is improved.
The following describes a process of accessing the same model of different BLE Mesh lamp devices by a terminal device through a network device, with reference to a specific embodiment. As shown in fig. 11, the process includes the following steps:
s1101, the terminal equipment and the virtual open connection fund service side conduct safety certification.
For example, as shown in fig. 9, the user accesses the current state of the switch model of element2 of BLE Mesh lamp device 21 by clicking on switch icon 92 of resource 2 corresponding to icon 51.
Since the icon 51 corresponds to the BLE Mesh lamp device 21, and the BLE Mesh lamp device 21 corresponds to the OCF device 1 as 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 fund service end, the terminal device performs security authentication with the OCF device 1 created by the virtual open connection fund service end.
And S1102, the virtual open connection foundation server sends the URI of the OCF resource corresponding to each model group in the plurality of model groups and the resource type of the OCF resource corresponding to the model group to the terminal equipment.
For example, the virtual open connection foundation server sends the correspondence as described in table 3 above to the terminal device.
S1103, the terminal equipment sends an access request to the virtual open connection fund service end, wherein the access request comprises/XXX 2/XXXX2 and a switch.
And S1104, the virtual open connection fund service end analyzes the identification information of the OCF equipment accessed by the user.
For example, the virtual open connection foundation server resolves the identification information of the OCF device accessed by the user to be 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 fund service end obtains the group address (XXX2) and the resource type (switch) of the OCF resource from the access request.
And S1106, the virtual open connection foundation server 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.
S1107, the Bluetooth low-power bridging function module determines the model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridge function module determines the model group corresponding to XXX2 and the switch as model group 2 according to the correspondence shown in table 3. This model group 2 includes a switching model of element2 of BLE Mesh lamp device 21, a switching model of element1 of BLE Mesh lamp device 22, and a switching model of element2 of BLE Mesh lamp device 22.
And S1108, the Bluetooth low-power bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridge function module determines that the Group Model Client corresponding to the Model Group 2 is the Group Model Client2 according to the corresponding relationship shown in table 4.
S1109, the Bluetooth low-power bridging function module sends the identification information of the group model client to the virtual Bluetooth low-power 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 sends an access request to the BLE Mesh lamp device 21 through the Group Model Client2, where the access request is used to request to obtain state information of the switch Model of element2 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 lamp device 22 through the Group Model Client2, where the access request is used to request to obtain state information of a switch Model of element1 of the BLE Mesh lamp device 22 and state information of a switch Model of element2 of the BLE Mesh lamp device 22.
S1112, the BLE Mesh lamp device 22 sends the state information of the switch model of the BLE Mesh lamp device 22 to the group model client.
For example, the BLE Mesh lamp device 22 sends the state information of the switch Model of element1 of the BLE Mesh lamp device 22 and the state information of the switch Model of element2 of the BLE Mesh lamp device 22 to the Group Model Client 2.
S1113, the BLE Mesh lamp device 21 sends the state information of the switch model of the BLE Mesh lamp device 21 to the group model client.
For example, the BLE Mesh lamp device 21 sends state information of the switching Model of element2 of the BLE Mesh lamp device 21 to the Group Model Client 2.
S1114, the virtual bluetooth low energy grid client sends the state information of the switch models of the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 to the bluetooth low energy bridge function module.
For example, the virtual bluetooth low energy Mesh Client may form the state information of the switch Model of element2 of the BLE Mesh lamp device 21, the state information of the switch Model of element1 of the BLE Mesh lamp device 22, and the state information of the switch Model of element2 of the BLE Mesh lamp device 22, which are received by Group Model Client2, into a set, which may be written as:
{
“/XX1/element2/XXXXX2”:{
“value”:true
},
“/XX2/element1/XXXXX2”:{
“value”:flase
},
“/XX2/element2/XXXXX2”:{
“value”:true
}
}
where XX1 may be identification information of BLE Mesh light device 21, XX2 is identification information of BLE Mesh light device 22, element1 is identification information of element1, element2 is identification information of element2, and xxxx2 is identification information of a switch model. "value" represents the state of the switch model, where true represents on and flip represents off.
And S1115, the Bluetooth low-power-consumption bridge function module sends state information of switch models of the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 to the virtual open connection fund service end.
S1116, the virtual open connection foundation service end sends state information of the switch models of the BLE Mesh lamp device 21 and the BLE Mesh lamp device 22 to the end device.
In the access control method for BLE Mesh devices provided in this embodiment, an access request of a terminal device to a first BLE Mesh device is received by a network device, and the network device may determine, according to identification information of an OCF resource included in the access request and a resource type of the OCF resource, a model group corresponding to the OCF resource, and access a plurality of models included in the model group, and when the plurality of models included in the model group are the same, a user performs one access operation on a certain model in the plurality of models, that is, can implement simultaneous access to the plurality of models, thereby improving efficiency of the terminal device in accessing the BLE Mesh devices.
The following describes a process of accessing different models of different BLE Mesh lamp devices by a terminal device through a network device, with reference to a specific embodiment. As shown in fig. 12, the process includes the following steps:
and S1201, the terminal equipment and the virtual open connection fund server side perform security authentication.
For example, as shown in fig. 9, the user may also click on the color temperature icon 93 of the resource 1 corresponding to the icon 51 to access the current state of the color temperature model of the element1 of the BLE Mesh lamp device 21.
Since the icon 51 corresponds to the BLE Mesh lamp device 21, and the BLE Mesh lamp device 21 corresponds to the OCF device 1 as described above, the terminal device determines that the user accesses the OCF device 1 according to the click operation of the user on the color temperature icon 93 of the resource 1 corresponding to the icon 51, and since the OCF device 1 is created by the virtual open connection fund service end, the terminal device performs security authentication with the OCF device 1 created by the virtual open connection fund service end.
S1202, the virtual open connection foundation server sends the URI of the OCF resource corresponding to each model group in the plurality of model groups and the resource type of the OCF resource corresponding to the model group to the terminal equipment.
For example, the virtual open connection foundation server sends the correspondence as described in table 3 above to the terminal device.
S1203, the terminal device sends an access request to the virtual open connection fund server, wherein the access request comprises/XXX 5, color temperature and saturation.
And S1204, the virtual open connection fund server analyzes the identification information of the OCF equipment accessed by the user.
For example, the virtual open connection foundation server resolves the identification information of the OCF device accessed by the user to be 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 service end obtains the group address (XXX5) and the resource type (color temperature and saturation) of the OCF resource from the access request.
And S1206, 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 equipment to the Bluetooth low-power-consumption bridging function module.
S1207, the Bluetooth low-power 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 bridge function module determines a model group corresponding to XXX5, color temperature and saturation as model group 5 according to the correspondence shown in table 3. The model set 5 comprises a color temperature model of element1 of the BLE Mesh lamp device 21, a saturation model of element2 of the BLE Mesh lamp device 22.
And S1208, the Bluetooth low-power bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridge function module determines that the Group Model Client corresponding to the Model Group 5 is the Group Model Client5 according to the corresponding relationship shown in table 4.
S1209, the Bluetooth low-power bridging function module sends the identification information of the group model client to the virtual Bluetooth low-power 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 sends an access request to the BLE Mesh lamp device 21 through the Group Model Client5, where the access request is used to request to obtain the state information of the color temperature Model of element1 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 through the Group Model Client5, where the access request is used to request to obtain state information of the saturation Model of element2 of the BLE Mesh lamp device 22.
S1212, the BLE Mesh lamp device 22 sends state information of the saturation model of element2 of the BLE Mesh lamp device 22 to the group model client.
For example, the BLE Mesh lamp device 22 sends status information of the saturation Model of element2 of the BLE Mesh lamp device 22 to the Group Model Client 5.
S1213, the BLE Mesh lamp device 21 sends the state information of the switch model of the BLE Mesh lamp device 21 to the group model client.
For example, the BLE Mesh lamp device 21 sends status information of the color temperature Model of element1 of the BLE Mesh lamp device 21 to the Group Model Client 2.
S1214, the virtual bluetooth low energy Mesh client sends the state information of the saturation model of element2 of BLE Mesh lamp device 22 and the state information of the color temperature model of element1 of BLE Mesh lamp device 21 to the bluetooth low energy bridge function module.
For example, the virtual bluetooth low energy Mesh Client may form the state information of the saturation Model of element2 of the BLE Mesh lamp device 22 and the state information of the color temperature Model of element1 of the BLE Mesh lamp device 21 received by the Group Model Client5 into a set, which may be written as:
{
“/XX1/element1/XXXXX3”:{
“colour temperature”:2800
},
“/XX2/element2/XXXXX4”:{
“range”:8
}
}
where XX1 may be identification information of BLE Mesh lamp device 21, XX2 is identification information of BLE Mesh lamp device 22, element1 is identification information of element1, element2 is identification information of element2, xxxxxx 3 is identification information of a color temperature model, and xxxx4 is identification information of a saturation model. "color temperature" represents the state of the color temperature model, 2800 represents the color temperature value, "range" represents the state of the saturation model, and 8 represents the saturation value.
S1215, the bluetooth low energy bridging function module sends the state information of the saturation model of the element2 of the BLE Mesh lamp device 22 and the state information of the color temperature model of the element1 of the BLE Mesh lamp device 21 to the virtual open connection foundation service end.
S1216, the virtual open connection foundation service end sends, to the terminal device, the state information of the saturation model of element2 of the BLE Mesh lamp device 22 and the state information of the color temperature model of element1 of the BLE Mesh lamp device 21.
In the access control method for BLE Mesh devices provided in this embodiment, a network device receives an access request of a terminal device to a first BLE Mesh device, and the network device may determine, according to identification information of an OCF resource included in the access request and a resource type of the OCF resource, a model group corresponding to the OCF resource and access a plurality of models included in the model group, and when the plurality of models included in the model group are different, a user performs one access operation on a certain model in the plurality of models, that is, can implement simultaneous access to the plurality of models, thereby improving efficiency of the terminal device in accessing the BLE Mesh devices.
The above embodiments describe the procedure of accessing the BLE Mesh device by the terminal device, and the following describes the procedure of controlling the BLE Mesh device by the terminal device through the network device in combination with several embodiments.
The following describes a specific embodiment of a process 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:
and S1301, the terminal equipment and the virtual open connection fund server side 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 key 102 corresponding to the switch icon 101. Since the icon 51 corresponds to the BLE Mesh lamp device 21 and the BLE Mesh lamp device 21 corresponds to the OCF device 1 as described above, the terminal device determines that the user controls the OCF device 1 according to the sliding operation of the user on the switch button 102, and since the OCF device 1 is created by the virtual open connection fund service end, the terminal device performs security authentication with the OCF device 1 created by the virtual open connection fund service end.
S1302, the virtual open connection foundation server sends the URI of the OCF resource corresponding to each model group in the plurality of model groups and the resource type of the OCF resource corresponding to the model group to the terminal device.
For example, the virtual open connection foundation server sends the correspondence as described in table 3 above to the terminal device.
S1303, the terminal equipment sends a setting request to the virtual open connection fund server, wherein the setting request comprises/XXX 2/XXXX2 and a switch.
Specifically, the setting request is for setting the switch model of element2 of the BLE Mesh lamp device 21 to be off.
For example, the setup request may be expressed as:
SET“/XXX2/XXXX2”,
payload={“value”:flase}
since the OCF resource types of the models in the model group 2 corresponding to the group address XXX2 are the same and are all switches, the models can be set once without setting the models separately.
And S1304, the virtual open connection fund service side analyzes the identification information of the OCF equipment set by the user.
For example, the virtual open connection foundation server parses 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 (XXX2) and the resource type (switch) of the OCF resource from the setup request.
S1306, 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-consumption bridge function module.
And S1307, the Bluetooth low-power bridging function module determines the model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridge function module determines the model group corresponding to XXX2 and the switch as model group 2 according to the correspondence shown in table 3. This model group 2 includes a switching model of element2 of BLE Mesh lamp device 21, a switching model of element1 of BLE Mesh lamp device 22, and a switching model of element2 of BLE Mesh lamp device 22.
And S1308, the Bluetooth low-power bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridge function module determines that the Group Model Client corresponding to the Model Group 2 is the Group Model Client2 according to the corresponding relationship shown in table 4.
S1309, the Bluetooth low energy bridge function module sends the identification information of the group model client to the virtual Bluetooth low energy grid client.
S1310, 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 sends a setting request to the BLE Mesh lamp device 21 through the Group Model Client2, where the setting request is used to request that the switch Model of element2 of the BLE Mesh lamp device 21 be set to off.
S1311, the virtual bluetooth low energy grid 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 setup request to the BLE Mesh lamp device 22 through the Group Model Client2, where the setup request is used to request that the switch Model of element1 of the BLE Mesh lamp device 22 and the switch Model of element2 of the BLE Mesh lamp device 22 be set off.
S1312, the BLE Mesh lamp device 22 sends the state 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 sends state information after the switch Model of element1 of the BLE Mesh lamp device 22 is set and state information after the switch Model of element2 of the BLE Mesh lamp device 22 is set to the Group Model Client 2.
S1313, the BLE Mesh lamp device 21 sends, to the group model client, state information after the switch model of the BLE Mesh lamp device 21 is set.
For example, the BLE Mesh lamp device 21 sends status information to the Group Model Client2 that the switch Model of element2 of the BLE Mesh lamp device 21 is set.
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 bridge function module.
For example, the virtual bluetooth low energy Mesh Client may configure the state information received by Group Model Client2 after the switch Model of element2 of BLE Mesh lamp device 21 is set, the state information after the switch Model of element1 of BLE Mesh lamp device 22 is set, and the state information after the switch Model of element2 of Mesh lamp device 22 is set into a set, which may be recorded as:
{
“/XX1/element2/XXXXX2”:{
“value”:flase
},
“/XX2/element1/XXXXX2”:{
“value”:flase
},
“/XX2/element2/XXXXX2”:{
“value”:flase
}
}
where XX1 may be identification information of BLE Mesh light device 21, XX2 is identification information of BLE Mesh light device 22, element1 is identification information of element1, element2 is identification information of element2, and xxxx2 is identification information of a switch model. "value" represents the state of the switch model, where true represents on and flip represents off.
S1315, the bluetooth low energy bridge function module 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 virtual open connection foundation service end.
S1316, the virtual open connection foundation service end 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 terminal device.
In the access control method for BLE Mesh devices provided in this embodiment, a setting request of a terminal device to a first BLE Mesh device is received by a network device, and the network device may determine, according to identification information of an OCF resource included in the setting request and a resource type of the OCF resource, a model group corresponding to the OCF resource, and set a plurality of models included in the model group, when the plurality of models included in the model group are the same, a user performs one setting operation on a certain model in the plurality of models, that is, simultaneous setting of the plurality of models may be achieved, so that efficiency of setting BLE Mesh devices by the terminal device is improved.
The following describes a specific embodiment of a process 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 fund service side perform security authentication.
For example, as shown in fig. 10, the user may set the color temperature value of the color temperature model of resource 1 of the BLE Mesh lamp device 21 by sliding the slider 104 corresponding to the color temperature icon 103 of resource 1 corresponding to the icon 51.
Since the icon 51 corresponds to the BLE Mesh lamp device 21 and the BLE Mesh lamp device 21 corresponds to the OCF device 1 as described above, the terminal device determines that the user controls the OCF device 1 according to the sliding operation of the user on the sliding bar 104, and since the OCF device 1 is created by the virtual open connection fund server, the terminal device performs security authentication with the OCF device 1 created by the virtual open connection fund server.
S1402, the virtual open connection foundation server sends the URI of the OCF resource corresponding to each model group in the plurality of model groups and the resource type of the OCF resource corresponding to the model group to the terminal equipment.
For example, the virtual open connection foundation server sends the correspondence as described in table 3 above to the terminal device.
And S1403, the terminal equipment sends a setting request to the virtual open connection fund service end, wherein the setting request comprises/XXX 5, color temperature and saturation.
Specifically, the setting request is used to set a color temperature value of a color temperature model of element1 of the BLE Mesh lamp device 21 and set a saturation value of a saturation model of element2 of the BLE Mesh lamp device 22.
For example, the setup request may be expressed as: SET "/XXX 5", payload ═ coarse leaf
“/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 element1 of the BLE Mesh lamp device 21 to 2800 and the saturation value of the saturation model of element2 of the BLE Mesh lamp device 22 to 8. Since the OCF resource types of the respective models in the model group 5 corresponding to the group address XXX5 are different, the respective models need to be set separately.
And S1404, the virtual open connection fund server analyzes the identification information of the OCF equipment set by the user.
For example, the virtual open connection foundation server parses 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 fund service end acquires the group address (XXX5) and the resource type (color temperature and saturation) of the OCF resource from the setting request.
S1406, the virtual open connection foundation server 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.
And S1407, the Bluetooth low-power bridging function module determines the model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridge function module determines the model group corresponding to XXX5, color temperature and saturation as model group 5 according to the correspondence shown in table 3. The model set 5 comprises a color temperature model of element1 of the BLE Mesh lamp device 21, a saturation model of element2 of the BLE Mesh lamp device 22.
And S1408, the Bluetooth low-power bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridge function module determines that the Group Model Client corresponding to the Model Group 5 is the Group Model Client5 according to the corresponding relationship shown in table 4.
S1409, the Bluetooth low-power bridging function module sends the identification information of the group model client to the virtual Bluetooth low-power grid client.
S1410, 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 sends a setting request to the BLE Mesh lamp device 21 through the Group Model Client5, where the setting request is used to request that the color temperature value of the color temperature Model of element1 of the BLE Mesh lamp device 21 be set to 2800.
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 setting request to the BLE Mesh lamp device 22 through the Group Model Client5, where the setting request is used to request that the saturation value of the saturation Model of element2 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 element2 of the BLE Mesh lamp device 22 is set to the group model client.
For example, the BLE Mesh lamp device 22 sends status information to the Group Model Client5 that the saturation Model of element2 of the BLE Mesh lamp device 22 is set.
S1413, the BLE Mesh lamp device 21 sends status information that the color temperature model of the element1 of the BLE Mesh lamp device 21 is set to the group model client.
For example, the BLE Mesh lamp device 21 sends status information that the color temperature Model of element1 of the BLE Mesh lamp device 21 is set to the Group Model Client 5.
S1414, the virtual bluetooth low energy Mesh client sends, to the bluetooth low energy bridge function module, the state information after the saturation model of element2 of the BLE Mesh lamp device 22 is set and the state information after the color temperature model of element1 of the BLE Mesh lamp device 21 is set.
For example, the virtual bluetooth low energy Mesh Client may configure the state information received by the Group Model Client5 after the saturation Model of element2 of the BLE Mesh lamp device 22 is set and the state information received by the Group Model Client5 after the color temperature Model of element1 of the BLE Mesh lamp device 21 is set into a set, which may be:
{
/XX1/element1/XXXXX3”:{
“colour temperature”:2800
},
“/XX2/element2/XXXXX4”:{
“range”:8
}
}
where XX1 may be identification information of BLE Mesh lamp device 21, XX2 is identification information of BLE Mesh lamp device 22, element1 is identification information of element1, element2 is identification information of element2, xxxxxx 3 is identification information of a color temperature model, and xxxx4 is identification information of a saturation model. "color temperature" represents the state of the color temperature model, 2800 represents the color temperature value, "range" represents the state of the saturation model, and 8 represents the saturation value.
S1415, the bluetooth low energy bridging function module sends the state information after the saturation model of element2 of the BLE Mesh lamp device 22 is set and the state information after the color temperature model of element1 of the BLE Mesh lamp device 21 is set to the virtual open connection foundation service end.
S1416, the virtual open connection foundation service end sends, to the terminal device, the state information after the saturation model of element2 of the BLE Mesh lamp device 22 is set and the state information after the color temperature model of element1 of the BLE Mesh lamp device 21 is set.
In the access control method for BLE Mesh devices provided in this embodiment, a setting request of a terminal device to a first BLE Mesh device is received through a network device, the network device may determine, according to identification information of an OCF resource included in the setting request and a resource type of the OCF resource, a model group corresponding to the OCF resource, and set a plurality of models included in the model group, when the plurality of models included in the model group are different, a user performs one setting operation on a certain model in the plurality of models, that is, simultaneous setting of the plurality of models may be implemented, so that efficiency of setting BLE Mesh devices by the terminal device is improved.
The following describes a process of accessing multiple models of the same BLE Mesh lamp device by a terminal device through a network device, with reference to a specific embodiment. As shown in fig. 15, the process includes the following steps:
s1501, the terminal device and the virtual open connection fund server side conduct safety certification.
For example, as shown in fig. 10, the user may also click on the switch icon 105 of resource 1 corresponding to the icon 51 to access the current state of the switch model of resource 1 of the BLE Mesh lamp device 21. And the terminal equipment performs security authentication with the OCF equipment 1 established by the virtual open connection fund server.
S1502, the virtual open connection foundation server sends the URI of the OCF resource corresponding to each model group in the plurality of model groups and the resource type of the OCF resource corresponding to the model group to the terminal device.
For example, the virtual open connection foundation server sends the correspondence as described in table 3 above to the terminal device.
S1503, the terminal device sends an access request to the virtual open connection fund service end, wherein the access request comprises/XXX 4, a switch and a color temperature.
S1504, the virtual open connection fund service end analyzes the identification information of the OCF equipment accessed by the user.
For example, the virtual open connection foundation server resolves the identification information of the OCF device accessed by the user to be 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 fund service end obtains the group address (XXX4) and the resource type (switch, color temperature) of the OCF resource from the access request.
And 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 bridging function module determines the model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridge function module determines the model group corresponding to XXX4, switch, and color temperature as model group 4 according to the correspondence shown in table 3. The model set 4 comprises a switching model of element1 of the BLE Mesh lamp device 21, a color temperature model of element3 of the BLE Mesh lamp device 21. That is, the model set 4 comprises a plurality of different models of the same BLE Mesh light device.
And S1508, the Bluetooth low-power bridging function module determines a group model client according to the model group.
For example, the bluetooth low energy bridge function module determines that the Group Model Client corresponding to the Model Group 4 is the Group Model Client4 according to the corresponding relationship shown in table 4.
S1509, the Bluetooth low-power bridging function module sends the identification information of the group model client to the virtual Bluetooth low-power 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 sends an access request to the BLE Mesh lamp device 21 through the Group Model Client4, where the access request is used to request to obtain the state information of the switch Model of element1 of the BLE Mesh lamp device 21 and the state information of the color temperature Model of element3 of the BLE Mesh lamp device 21.
S1511, the BLE Mesh lamp device 21 sends the state information of the switch model of element1 of the BLE Mesh lamp device 21 and the state information of the color temperature model of element3 of the BLE Mesh lamp device 21 to the group model client.
For example, the BLE Mesh lamp device 21 sends the state information of the switching Model of element1 of the BLE Mesh lamp device 21 and the state information of the color temperature Model of element3 of the BLE Mesh lamp device 21 to the Group Model Client 4.
S1512, the virtual bluetooth low energy Mesh client sends the state information of the switch model of element1 of the BLE Mesh device 21 and the state information of the color temperature model of element3 of the BLE Mesh device 21 to the bluetooth low energy bridge function module.
For example, the virtual bluetooth low energy grid Client may form the state information of the switch Model of element1 of the BLE Mesh lamp device 21 and the state information of the color temperature Model of element3 of the BLE Mesh lamp device 21 received by the Group Model Client4 into a set, which may be written as:
{
“/XX1/element1/XXXXX2”:{
“value”:true
},
“/XX1/element3/XXXXX3”:{
“colour temperature”:200
}
}
where XX1 may be identification information of BLE Mesh lamp device 21, XX2 is identification information of BLE Mesh lamp device 22, element1 is identification information of element1, element3 is identification information of element3, xxxxxx 2 is identification information of a switch model, and xxxx3 is identification information of a color temperature model. "color temperature" represents the state of the color temperature model, 200 represents the color temperature value, "value" represents the state of the switch model, and true represents on.
S1513, the bluetooth low energy bridging function module sends the state information of the switch model of element1 of the BLE Mesh lamp device 21 and the state information of the color temperature model of element3 of the BLE Mesh lamp device 21 to the virtual open connection foundation service end.
S1514, the virtual open connection foundation service end sends, to the terminal device, the state information of the switch model of element1 of the BLE Mesh lamp device 21 and the state information of the color temperature model of element3 of the BLE Mesh lamp device 21.
In the access control method for BLE Mesh devices provided in this embodiment, an access request of a terminal device to a first BLE Mesh device is received by a network device, and the network device may determine, according to identification information of an OCF resource included in the access request and a resource type of the OCF resource, a model group corresponding to the OCF resource, and access a plurality of models included in the model group, and when the model group includes a plurality of different models of the same BLE Mesh device, a user performs one access operation on a certain model in the plurality of different models, that is, simultaneous access to the plurality of different models of the BLE Mesh device may be achieved, so that efficiency of accessing the BLE Mesh device by the terminal device is improved.
The following describes a process in which a terminal device sets multiple models of the same BLE Mesh lamp device through a network device, with reference to a specific embodiment. As shown in fig. 16, the process includes the following steps:
s1601, the terminal equipment and the virtual open connection fund server side conduct safety certification.
For example, as shown in fig. 10, the user may also slide switch button 106 to set the switch model of element1 of BLE Mesh light device 21. And the terminal equipment performs security authentication with the OCF equipment 1 established by the virtual open connection fund server.
S1602, the virtual open connection foundation server sends the URI of the OCF resource corresponding to each model group in the plurality of model groups and the resource type of the OCF resource corresponding to the model group to the terminal equipment.
For example, the virtual open connection foundation server sends the correspondence as described in table 3 above to the terminal device.
S1603, the terminal equipment sends a setting request to the virtual open connection foundation service end, wherein the setting request comprises/XXX 4, a switch and a color temperature.
Specifically, the setting request is used to set a switch model of element1 of the BLE Mesh lamp device 21 and set a color temperature value of a color temperature model of element3 of the BLE Mesh lamp device 21.
For example, the setup request may be expressed as: SET "/XXX 4", payload ═ coarse leaf
“/XX1/element1/XXXXX2”:{
“value”:flase},
“/XX1/element3/XXXXX3”:{
“colour temperature”:300
}
}
That is, the setting request is for setting the state of the switch model of element1 of the BLE Mesh lamp device 21 to off, and setting the color temperature value of the color temperature model of element3 of the BLE Mesh lamp device 21 to 300. Since the OCF resource types of the respective models in the model group 4 corresponding to the group address XXX4 are different, the respective models need to be set separately.
And S1604, the virtual open connection fund service side analyzes the identification information of the OCF equipment set by the user.
For example, the virtual open connection foundation server parses 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 fund service end obtains the group address (XXX4) and the resource type (switch, color temperature) of the OCF resource from the setting request.
S1606, the virtual open connection fund 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 bridge function module.
And S1607, the Bluetooth low-power bridging function module determines the model group according to the group address and the resource type of the OCF resource.
For example, the bluetooth low energy bridge function module determines the model group corresponding to XXX4, switch, and color temperature as model group 4 according to the correspondence shown in table 3. The model set 4 comprises a switching model of element1 of the BLE Mesh lamp device 21, a color temperature model of element3 of the BLE Mesh lamp device 21. That is, the model set 4 comprises a plurality of different models of the same BLE Mesh light device.
S1608, the Bluetooth low-power bridging function module determines the group model client according to the model group.
For example, the bluetooth low energy bridge function module determines that the Group Model Client corresponding to the Model Group 4 is the Group Model Client4 according to the corresponding relationship shown in table 4.
S1609, the Bluetooth low-power bridging function module sends the identification information of the group model client to the virtual Bluetooth low-power grid client.
S1610, 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 sends a setting request to the BLE Mesh lamp device 21 through the Group Model Client4, where the setting request is used to request that the state of the switch Model of element1 of the BLE Mesh lamp device 21 is set to off, and the color temperature value of the color temperature Model of element3 of the BLE Mesh lamp device 21 is set to 300.
S1611, the BLE Mesh lamp device 21 sends, to the group model client, the state information after the switch model of the element1 of the BLE Mesh lamp device 21 is set and the state information after the color temperature model of the element3 of the BLE Mesh lamp device 21 is set.
For example, the BLE Mesh lamp device 21 sends to the Group Model Client4 status information of a switch Model after element1 of the BLE Mesh lamp device 21 is set and status information after a color temperature Model of element3 of the BLE Mesh lamp device 21 is set.
S1612, the virtual bluetooth low energy grid client sends the state information after the switch model of element1 of the BLE Mesh device 21 is set and the state information after the color temperature model of element3 of the BLE Mesh device 21 is set to the bluetooth low energy bridge function module.
For example, the virtual bluetooth low energy grid Client may configure the state information received by the Group Model Client4 after the switch Model of element1 of the BLE Mesh lamp device 21 is set and the state information after the color temperature Model of element3 of the BLE Mesh lamp device 21 is set into a set, which may be:
{
“/XX1/element1/XXXXX2”:{
“value”:flase
},
“/XX1/element3/XXXXX3”:{
“colour temperature”:300
}
}
where XX1 may be identification information of BLE Mesh lamp device 21, XX2 is identification information of BLE Mesh lamp device 22, element1 is identification information of element1, element3 is identification information of element3, xxxxxx 2 is identification information of a switch model, and xxxx3 is identification information of a color temperature model. "color temperature" represents the state of the color temperature model, 300 represents the color temperature value, "value" represents the state of the switch model, and flase represents off.
S1613, the bluetooth low energy bridging function module sends the state information after the switch model of element1 of the BLE Mesh lamp device 21 is set and the state information after the color temperature model of element3 of the BLE Mesh lamp device 21 is set to the virtual open connection foundation service end.
S1614, the virtual open connection foundation service end sends, to the terminal device, the state information after the switch model of the element1 of the BLE Mesh device 21 is set and the state information after the color temperature model of the element3 of the BLE Mesh device 21 is set.
In the access control method for BLE Mesh devices provided in this embodiment, a setting request of a terminal device to a first BLE Mesh device is received through a network device, and the network device may determine, according to identification information of an OCF resource included in the setting request and a resource type of the OCF resource, a model group corresponding to the OCF resource, and set a plurality of models included in the model group.
Fig. 17 is a schematic structural diagram of a network device provided in the present application, and as shown in fig. 17, 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 for 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; a determining module 172, configured to determine, according to the identification information of the OCF resource and the resource type of the OCF resource, a model group corresponding to the OCF resource, where the model group includes multiple models. The access control module 173 is used 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 the implementation principle and the technical effect are similar, which are not described herein again.
On the basis of the embodiment shown in fig. 17 above, the plurality of models are a plurality of models of the first BLE Mesh device; when the access control module 173 accesses and/or controls the plurality of models, it is specifically configured to: accessing and/or controlling a plurality of models of the first BLE Mesh device.
Optionally, the plurality of models comprises 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, when the access control module accesses and/or controls the plurality of models, is specifically configured to: 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.
Optionally, the type of OCF resource corresponding to the at least one model of the first BLE Mesh device is the same as the type of OCF resource corresponding to the model of the at least one second BLE Mesh device.
Optionally, the type of OCF resource corresponding to the at least one model of the first BLE Mesh device is different from the type of OCF resource corresponding to the model of the at least one second BLE Mesh device.
Optionally, the network device 170 further includes: a sending module 174, configured to send, to the terminal device, status information of the plurality of models of the first BLE Mesh device after the access control module accesses and/or controls the plurality of models of the first BLE Mesh device.
Optionally, the transmitting module 174 is further configured to transmit, to the terminal device, 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 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.
Optionally, the identification information of the OCF resource includes a group address of the model group.
Optionally, the identification information of the OCF resource further includes identification information of the model group.
Optionally, the network device 170 further includes: grouping module 175, group address assignment module 176, and 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 to obtain a plurality of model groups before the receiving module receives an access and/or control request from a terminal device to the first BLE Mesh device; a group address assignment module 176 for assigning 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 the group address of the model group and the identification information of the OCF resource corresponding to the model group.
Optionally, the determining module 172 is further configured to: determining a resource type of OCF resources corresponding to each model group in the plurality of model groups; the sending module 174 is further configured to send the identification information of the OCF resource corresponding to each model group in the multiple model groups and the resource type of the OCF resource corresponding to each model group in the multiple model groups to the terminal device.
Optionally, a communication protocol between the network device and the terminal device is a first communication protocol, and a communication protocol between the network device and the first BLE Mesh device or the second BLE Mesh device is a second communication protocol.
Optionally, 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, and as shown in fig. 18, the network device 180 includes: processor 181, memory 182, communication interface 183; the memory 182 stores computer-executable instructions; the processor 181 executes the computer execution instructions stored in the memory 182, so that the processor 181 executes the technical solution of any one of the foregoing method embodiments on the network device side.
Fig. 18 is a simple design of a network device, and the number of processors and memories in the network device is not limited in the embodiments of the present application, and fig. 18 only illustrates the number as 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 via a bus, and optionally, the memory may be integrated within the processor.
An embodiment of the present application further provides a computer-readable storage medium, where a computer executable instruction is stored in the computer-readable storage medium, and when the computer executable instruction is executed by a processor, the computer-readable storage medium is configured to implement the access control method for a BLE Mesh device in any one of the foregoing method embodiments.
An embodiment of the present application further provides a chip, including: and a processor, configured to call and run a computer program from a memory, so that the device on which the chip is installed performs the access control method of the BLE Mesh device in any method embodiment described above.
Embodiments of the present application further provide a computer program product, which includes computer program instructions, where the computer program instructions enable a computer to execute the access control method for a BLE Mesh device described in any of the foregoing method embodiments.
Embodiments of the present application further provide a computer program, where the computer program enables a computer to execute the access control method for a BLE Mesh device described in any of the foregoing method embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of modules through some interfaces, and may be in an electrical, mechanical or other form.
In the above Specific implementation of the terminal device and the network device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an 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 the hardware and software modules in the processor.
All or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (optical disk), and any combination thereof.

Claims (31)

  1. An access control method of a BLE Mesh device, applied to a network device, the method comprising:
    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 (optical clock frequency) resource and a resource type of the OCF resource;
    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.
  2. The method according to 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 comprises:
    accessing and/or controlling a plurality of models of the first BLE Mesh device.
  3. The method according to claim 1, wherein the plurality of models comprises 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 comprises:
    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. The 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. The 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:
    sending, to the terminal device, state information of a plurality of models of the first BLE Mesh device.
  7. The method according to claim 3, wherein after accessing and/or controlling the at least one model of the first BLE Mesh device and accessing and/or controlling the model of the at least one second BLE Mesh device, the method further comprises:
    sending, to the terminal device, state information of at least one model of the first BLE Mesh device and state information of a model of the at least one second BLE Mesh 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 resources further comprises identification information of the model group.
  10. The method according to claim 1, wherein prior to receiving the request for access and/or control by the terminal device for the first BLE Mesh device, the method further comprises:
    grouping the models of the first BLE Mesh device and/or the models of the at least one second BLE Mesh device to obtain a plurality of model groups;
    assigning a group address to each model group of the plurality of model groups;
    and establishing a mapping relation between the group address of the model group and the identification information of the OCF resources corresponding to the model group.
  11. The method of claim 10, further comprising:
    determining a resource type of OCF resources corresponding to each model group in the plurality of model groups;
    and sending the identification information of the OCF resources corresponding to each model group in the plurality of model groups and the resource types of the OCF resources corresponding to each model group in the plurality of model groups to the terminal equipment.
  12. 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 or second BLE Mesh device is a second communication protocol.
  13. The method according to claim 12, wherein the first communication protocol is an OCF protocol and the second communication protocol is a BLE Mesh protocol.
  14. A network device, comprising:
    a receiving module, configured to receive an access and/or control request of a terminal device for 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;
    a determining module, configured to determine a model group corresponding to the OCF resource according to the identifier information of the OCF resource and the resource type of the OCF resource, where the model group includes multiple models;
    an access control module for accessing and/or controlling the plurality of models.
  15. The network device of claim 14, wherein the plurality of models are a plurality of models of the first BLE Mesh device;
    when the access control module accesses and/or controls the plurality of models, the access control module is specifically configured to:
    accessing and/or controlling a plurality of models of the first BLE Mesh device.
  16. The network device of claim 14, wherein the plurality of models comprises at least one model of the first BLE Mesh device and at least one model of a second BLE Mesh device;
    when the access control module accesses and/or controls the plurality of models, the access control module is specifically configured to:
    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.
  17. The network device of claim 16, wherein the type of OCF resource corresponding to the at least one model of the first BLE Mesh device is the same as the type of OCF resource corresponding to the model of the at least one second BLE Mesh device.
  18. The network device of claim 16, wherein the type of OCF resource corresponding to the at least one model of the first BLE Mesh device is different from the type of OCF resource corresponding to the model of the at least one second BLE Mesh device.
  19. The network device of claim 15, wherein the network device further comprises: a sending module, 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.
  20. The network device of claim 16, wherein the network device further comprises: a sending module, configured to send, to the terminal device, state information of the 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.
  21. The network device of claim 14, wherein the identification information of the OCF resource comprises a group address of the model group.
  22. The network device of claim 21, wherein the identification information of the OCF resources further comprises identification information of the model group.
  23. The network device of claim 14, wherein the network device further comprises: the device comprises a grouping module, a group address allocation module and a mapping module;
    the grouping module is used for 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 before the receiving module receives the access and/or control request of the terminal device to the first BLE Mesh device;
    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 the model group and the identification information of the OCF resource corresponding to the model group.
  24. The network device of claim 23, wherein the determining module is further configured to: determining a resource type of OCF resources corresponding to each model group in the plurality of model groups;
    the network device further includes: a sending module, configured to send the identification information of the OCF resource corresponding to each model group in the multiple model groups and the resource type of the OCF resource corresponding to each model group in the multiple model groups to the terminal device.
  25. The network device according to claim 14, 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 or second BLE Mesh device is a second communication protocol.
  26. The network device of claim 25, wherein the first communication protocol is an OCF protocol and the second communication protocol is a BLE Mesh protocol.
  27. A network device, comprising:
    a processor, a memory, a communication interface;
    the memory stores computer-executable instructions;
    the processor executing the memory-stored computer-executable instructions cause the processor to perform the method of access control of a BLE Mesh device of any of claims 1 to 13.
  28. A computer-readable storage medium having stored therein computer-executable instructions for implementing the method for access control of a BLE Mesh device according to any one of claims 1-13, when executed by a processor.
  29. A chip, comprising: a processor for calling and running a computer program from a memory so that a device on which the chip is installed performs the access control method of a BLE Mesh device according to any one of claims 1 to 13.
  30. A computer program product comprising computer program instructions to cause a computer to perform the method of access control of a BLE Mesh device according to any of claims 1-13.
  31. A computer program, wherein the computer program causes a computer to perform the method of access control of a BLE Mesh device according to any of claims 1-13.
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 true CN113994722A (en) 2022-01-28
CN113994722B 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
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 (3)

* 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
CN115051884A (en) * 2016-12-27 2022-09-13 英特尔公司 Method and apparatus for IOT protocol identification and management
WO2018209323A1 (en) * 2017-05-12 2018-11-15 Intel Corporation Dynamic access policy provisioning in a device fog

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
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
CN113994722B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
EP3908020B1 (en) Method and apparatus for selecting an access and mobility management function in a mobile communication system
CN108810993B (en) Network slice selection method, equipment, UE, control plane function entity and medium
EP3247169A1 (en) Method of network slicing and related apparatuses using the same
CN111787590B (en) Session management method, terminal device and network device
JP6174250B2 (en) Communication method for dual card user equipment and apparatus
US10306579B2 (en) User plane for fifth generation cellular architecture
WO2022088826A1 (en) Computing service discovery method and communication apparatus
CN109041039A (en) The user equipment and its method that equipment is communicated for equipment
CN105122893A (en) Systems and methods for implementing multiple band service discovery
US20220151013A1 (en) Communication method and apparatus
CN109769412A (en) Configure method, terminal device, base station and the equipment of the core network of frequency priority
CN107113816B (en) System and method for hidden connection merging
CN113727440A (en) Wireless communication method, medium and system
CN114666850B (en) QoS control method, qoS control device and readable storage medium
US11606700B2 (en) Spatial reuse for wireless communications
CN113994722B (en) Access control method, equipment and storage medium of BLE Mesh equipment
CN110461023A (en) District staying method, device, storage medium and the master base station of voice service
US10499443B2 (en) Data transmission method, related device, and system
CN114868408A (en) Message forwarding method and device
EP3534661B1 (en) Internet of vehicles transmission resource acquisition method and terminal
CN117560726A (en) Method, device and system for managing network resources
CN115396853A (en) Communication method, device and system of terminal equipment
CN108702727A (en) Communication means, equipment of the core network and controller equiment
WO2022088156A1 (en) Service discovery method and apparatus
CN116671137A (en) Method and device for determining MEC access point

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