CN115442869A - Method for setting message sending parameters, electronic equipment and storage medium - Google Patents

Method for setting message sending parameters, electronic equipment and storage medium Download PDF

Info

Publication number
CN115442869A
CN115442869A CN202210976166.1A CN202210976166A CN115442869A CN 115442869 A CN115442869 A CN 115442869A CN 202210976166 A CN202210976166 A CN 202210976166A CN 115442869 A CN115442869 A CN 115442869A
Authority
CN
China
Prior art keywords
parameters
message sending
parameter
type
node
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.)
Pending
Application number
CN202210976166.1A
Other languages
Chinese (zh)
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.)
Zhejiang Maojing Artificial Intelligence Technology Co ltd
Original Assignee
Zhejiang Maojing Artificial Intelligence Technology Co 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 Zhejiang Maojing Artificial Intelligence Technology Co ltd filed Critical Zhejiang Maojing Artificial Intelligence Technology Co ltd
Priority to CN202210976166.1A priority Critical patent/CN115442869A/en
Publication of CN115442869A publication Critical patent/CN115442869A/en
Priority to PCT/CN2023/075102 priority patent/WO2024036891A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • H04W16/20Network planning tools for indoor coverage or short range network deployment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

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 a method for setting message sending parameters, electronic equipment and a storage medium, wherein the method comprises the following steps: sending a first broadcast packet to node equipment in a Bluetooth Mesh network, wherein the first broadcast packet is used for setting a first message sending parameter for the node equipment; acquiring a message sent by the node equipment according to the first message sending parameter; determining the number of the node devices in the Bluetooth Mesh network according to the message sent by the node devices; and sending a second broadcast packet to node equipment in the Bluetooth Mesh network, wherein the second broadcast packet is used for setting a second message sending parameter for the node equipment, the second message sending parameter is associated with the number of the node equipment, and the parameter value of the second message sending parameter is different from that of the first message parameter. The embodiment of the application can realize reasonable setting of the message sending parameters of the node equipment.

Description

Method for setting message sending parameters, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a method for setting message sending parameters, electronic equipment and a storage medium.
Background
The Bluetooth Mesh network is a Mesh network for establishing communication between devices based on BLE (Bluetooth Low Energy), and is widely used in smart home, smart office and other intelligent interconnection scenarios of devices. In the bluetooth Mesh network, node devices in a distributed network need to periodically send messages to control device synchronization states such as a bluetooth Mesh gateway and a terminal device. The node device mainly sends the message based on the message sending parameter, so how to reasonably set the message sending parameter of the node device to adapt to the network condition of the bluetooth Mesh network becomes a technical problem that needs to be solved by technical personnel in the field.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an electronic device, and a storage medium for setting message sending parameters, so as to implement reasonable setting of message sending parameters for node devices in a bluetooth Mesh network, and implement optimization of bandwidth and traffic of the bluetooth Mesh network and reduce congestion of the bluetooth Mesh network under the condition of reasonable setting of message sending parameters of the node devices.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions.
In a first aspect, an embodiment of the present application provides a method for setting a message sending parameter, including:
sending a first broadcast packet to node equipment in a Bluetooth Mesh network, wherein the first broadcast packet is used for setting a first message sending parameter for the node equipment;
acquiring a message sent by the node equipment according to the first message sending parameter; determining the number of the node devices in the Bluetooth Mesh network according to the message sent by the node devices;
and sending a second broadcast packet to node equipment in the Bluetooth Mesh network, wherein the second broadcast packet is used for setting a second message sending parameter for the node equipment, the second message sending parameter is associated with the number of the node equipment, and the parameter value of the second message sending parameter is different from that of the first message parameter.
In a second aspect, an embodiment of the present application provides a method for setting message sending parameters, including:
acquiring a first broadcast packet, and setting a first message sending parameter according to the first broadcast packet;
sending a message according to the first message sending parameter;
acquiring a second broadcast packet, and setting a second message sending parameter according to the second broadcast packet; wherein the second messaging parameter is associated with the number of node devices in the Bluetooth Mesh network, and the second messaging parameter is different from the first messaging parameter.
In a third aspect, an embodiment of the present application provides an electronic device, including at least one memory and at least one processor, where the memory stores one or more computer-executable instructions, and the processor invokes the one or more computer-executable instructions to perform a method for setting a message sending parameter as described in the first aspect, or perform a method for setting a message sending parameter as described in the second aspect.
In a fourth aspect, an embodiment of the present application provides a storage medium, where the storage medium stores one or more computer-executable instructions, and when the one or more computer-executable instructions are executed, the method for setting a message sending parameter according to the first aspect is implemented, or the method for setting a message sending parameter according to the second aspect is implemented.
In a fifth aspect, an embodiment of the present application provides a computer program, which when executed, implements the method for setting message transmission parameters according to the first aspect, or the method for setting message transmission parameters according to the second aspect.
According to the method for setting the message sending parameters, a first broadcast packet is sent to node equipment in the Bluetooth Mesh network, the first broadcast packet is used for setting the first message sending parameters for the node equipment, then the message sent by the node equipment according to the first message sending parameters can be obtained, the number of the node equipment in the Bluetooth Mesh network is determined according to the message sent by the node equipment, and therefore a second broadcast packet is sent to the node equipment in the Bluetooth Mesh network, the second broadcast packet is used for setting the second message sending parameters for the node equipment, the second message sending parameters are related to the number of the node equipment, and the parameter values of the second message sending parameters are different from the parameter values of the first message parameters. It can be seen that, in the embodiment of the application, the message sending parameters are associated with the number of the node devices, and the message sending parameters of the node devices can be dynamically and adaptively adjusted based on the number of the node devices in the bluetooth Mesh network, so that the message sending parameters of the node devices can be adapted to the network scale condition of the bluetooth Mesh network, and the message sending parameters of the node devices can be reasonably set; meanwhile, the message sending parameters of the node equipment influence the bandwidth and the flow of the Bluetooth Mesh network, so that the bandwidth and the flow of the Bluetooth Mesh network can be optimized under the condition of reasonably setting the message sending parameters of the node equipment, and the blocking condition of the Bluetooth Mesh network is reduced.
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, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Figure 1 is an alternative example diagram of a bluetooth Mesh network.
Fig. 2 is an alternative flowchart of an apparatus and method for sending parameters in a message according to an embodiment of the present disclosure.
Figure 3 is a diagram of another alternative example of a bluetooth Mesh network.
Fig. 4 is an alternative block diagram of a device for setting message sending parameters according to an embodiment of the present application.
Fig. 5 is another alternative block diagram of a device for setting message sending parameters according to an embodiment of the present application.
Fig. 6 is an alternative block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and 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.
Fig. 1 schematically shows an alternative example of the bluetooth Mesh network, and as shown in fig. 1, the bluetooth Mesh network may include: a plurality of Node devices 101 of a distributed network. In fig. 1, a bluetooth Mesh gateway 102 and a terminal Device 103 are used as control devices, and besides adding a Device (un-provisioned Device) 104 that is not connected to a bluetooth Mesh network through a Provisioning process, the bluetooth Mesh gateway can also configure and control a node Device that has been connected to a network.
The node device 101 may be regarded as a bluetooth Mesh device that has joined a bluetooth Mesh network; the device 104 not connected with the network can be regarded as a bluetooth Mesh device which is not connected with the bluetooth Mesh network; the bluetooth Mesh gateway 102 may be, for example, a smart speaker, a multi-mode gateway, etc. with bluetooth communication capability and internet connection capability; the terminal device 103 may be a user-side device such as a smart phone or a tablet computer used by a user, and has the configuration and control functions of the node device 101, the function of controlling the node device 101 through the bluetooth Mesh gateway 102, and the like. It can be understood that after the non-distribution network device 103 is connected to the bluetooth Mesh network, the non-distribution network device 103 may become a node device in the bluetooth Mesh network, and a user may implement security control on the node device 101 in the bluetooth Mesh network through the bluetooth Mesh gateway 102 and/or the terminal device 103.
In the process of implementing safety control on the node device 101 in the bluetooth Mesh network by the bluetooth Mesh gateway 102 and/or the terminal device 103, the control and device state monitoring on the node device can be implemented by the bluetooth Mesh gateway and/or the terminal device, so as to ensure the user experience of fast and continuous control on the node device, and the device state of each node device can be presented to the user within a certain time. Specifically, the bluetooth Mesh gateway 102 and/or the terminal device 103 may send a broadcast packet to the node device, and if there is an instruction that the node device needs to reply in the broadcast packet, the node device sends a state synchronization message to the bluetooth Mesh gateway and/or the terminal device based on the content of the broadcast packet, where the node device may send the state synchronization message to the bluetooth Mesh gateway and/or the terminal device according to a message sending parameter, and the message sending parameter may be, for example, a state synchronization period of the node device, retransmission times of message sending and Relay, a time range of multicast state reply, a synchronization state delay range of the powered device, and the like.
It should be noted that, there may be a plurality of node devices in the bluetooth Mesh network, so that the number of node devices to be controlled may be multiple, and the target node device to be controlled at one time may also be multiple. Taking a bluetooth Mesh gateway To control N node devices as an example, when N =1, the bluetooth Mesh gateway controls one node device, that is, in a single-control scenario, the data transmission amount is limited, the bluetooth Mesh gateway broadcasts a control message, and the node device can send a state return message To the bluetooth Mesh gateway, where each message may correspond To different data transmission amounts according To different message sending parameters such as TTL (Time To Live) and broadcast Relay retransmission times when sending the message; when N is greater than 1, the bluetooth Mesh gateway controls a plurality of node devices, that is, under a group control scenario, at this time, a direct relationship exists between the data transmission amount and the number of the node devices, the bluetooth Mesh gateway broadcasts a control message, and the N node devices can send N state return messages to the bluetooth Mesh gateway, wherein each message can correspond to different data transmission amounts according to message sending parameters such as TTL and broadcast Relay retransmission times when the node devices send the messages.
However, under the condition that the number of bluetooth Mesh devices in a large-scale bluetooth Mesh network is hundreds, if a plurality of node devices simultaneously send messages to the control device, data collision may occur, which may cause congestion of the bluetooth Mesh network, resulting in that the control device may not receive the messages sent by all the node devices in time, thereby increasing the packet loss rate and affecting the control experience of the user. Therefore, it is necessary to set the message transmission parameters of the node apparatus. As an alternative implementation, random delay of 20-500 milliseconds can be made before each node device sends the message, so as to avoid data collision of a plurality of node devices. However, the inventor finds that the method can achieve the effect of avoiding collision under the condition that the number of the node devices in the bluetooth Mesh network is small, and a large number of transmission collisions still exist in the large-scale bluetooth Mesh network with a large number of node devices. As another optional implementation, a mode of polling and reading the state of the node device by the control device may be used to control all node devices in the bluetooth Mesh network, but based on this mode, the inventor finds that the control device in the bluetooth Mesh network may control multiple node devices, and when the control device needs to control a larger number of node devices, the control device needs to frequently send broadcast packets, and frequently sending broadcast packets may affect messages sent by the receiving node device, so that a mode of polling and reading the state of the device is used, and based on the limitation of the number of node devices supported by a single control device, user experience may also be affected.
Therefore, in the bluetooth Mesh network, it is very important how to reasonably set the message sending parameters of the node device to adapt to the network condition of the bluetooth Mesh network. Based on this, through an improved technical scheme, in the bluetooth Mesh network, the message sending parameters of the node devices are dynamically and adaptively adjusted based on the number of the node devices in the bluetooth Mesh network, so that the message sending parameters of the node devices can adapt to the network scale condition of the bluetooth Mesh network, and the message sending parameters of the node devices are reasonably set; meanwhile, because the message sending parameters of the node equipment influence the bandwidth and the flow of the Bluetooth Mesh network, under the condition of reasonably setting the message sending parameters of the node equipment, the bandwidth and the flow of the Bluetooth Mesh network can be optimized, and the blocking condition of the Bluetooth Mesh network is reduced.
Based on the above-mentioned idea, fig. 2 exemplarily shows an optional flowchart of a setting method of a message sending parameter provided in an embodiment of the present application. The method flow may be executed by the control device (including the bluetooth Mesh gateway or the terminal device) and the node device (i.e. the configured bluetooth Mesh device), and referring to fig. 2, the method flow may include the following steps.
Step S211, the control device sends a first broadcast packet to the node device in the Bluetooth Mesh network, wherein the first broadcast packet is used for setting a first message sending parameter for the node device.
The first broadcast packet in the embodiment of the present application may be used to set a first message sending parameter for the node device, so that the control device can obtain a state synchronization message of the node device in time, and control the node device is implemented. The first message sending parameter may be, for example, a state synchronization period of the node device, retransmission times of message sending and Relay, a time range of multicast state reply, a synchronization state delay range of the powered device, and the like.
Step S212, the node device acquires the first broadcast packet, and sets a first message sending parameter according to the first broadcast packet.
Step S213, the node device sends a message according to the first message sending parameter.
Step S214, the control device obtains the message sent by the node device according to the first message sending parameter; and determining the number of the node devices in the Bluetooth Mesh network according to the message sent by the node devices.
In some embodiments, the first broadcast packet sent by the control device to the node device may include an instruction that the node device needs to return a message, so as to obtain the state of the node device in time, or may include an instruction that the node device does not need to return a message, and then the first broadcast packet may be used as a one-way notification broadcast packet. When the first broadcast packet contains an instruction that the node device needs to return the message, the node device needs to return the message to the control device according to the first message sending parameter, so that the control device can acquire the message sent by the node device according to the first message sending parameter, and determine the number of the node devices in the bluetooth Mesh network according to the message sent by the node device.
It should be noted that the message sent by the node device acquired by the control device may be attribute information of the node device, for example, if the node device is a lamp, the message sent by the node device includes attribute values of a switch, brightness, color temperature, and the like of the lamp, where the message sent by the node device may be sent according to a certain format, for example, the format of the message may be compliant with a bluetooth Mesh model, and each node device sends a message including the attribute information thereof to the control device, and if the node device includes more attribute information, the content to be transmitted may exceed one segment, so the attribute information of the node device may be compressed in one segment for sending.
In some further embodiments, the message sent by the node device includes address information of the node device, where the address information may be information uniquely identifying the node device, such as a unicast address. As an optional implementation, the control device may determine, according to the message sent by the node device, the address information of the node device, so as to record the address information, perform statistics on the recorded address information, determine the number of the address information, and determine, according to the determined number of the address information, the number of the node devices in the bluetooth Mesh network.
It should be noted that, when the control device sends the broadcast packet to the node device according to a certain time period, the address information of the node device that sends the message, which is recorded in the time period, may be counted when the next time period arrives. Taking the bluetooth Mesh gateway as an example, the bluetooth Mesh gateway sends a first broadcast packet to the node device every 30 seconds, so that before the next 30 seconds arrive, the message sent by the node device with the first message sending parameter can be acquired, and the number of unicast addresses recorded in 30 seconds is counted, so as to determine the number of the node devices in the bluetooth Mesh network.
Step S215, the control device sends the second broadcast packet to the node device in the bluetooth Mesh network.
The second broadcast packet is used for setting a second message sending parameter for the node equipment, wherein the second message sending parameter is associated with the number of the node equipment, and the parameter value of the second message sending parameter is different from that of the first message sending parameter.
Step S216, the node device obtains a second broadcast packet, and sets a second message sending parameter according to the second broadcast packet.
Step S217, the node device sends a message according to the second message sending parameter.
In order to enable the first message sending parameters of the node devices to adapt to the network scale condition of the bluetooth Mesh network, the control device may generate a second broadcast packet based on the determined number of the node devices, and send the second broadcast packet to the node devices in the bluetooth Mesh network, so that the node devices set the second message sending parameters according to the second broadcast packet.
In some embodiments, the control device may determine whether the number of node devices changes by determining the number of node devices in the bluetooth Mesh network, where the change in the number of node devices may be obtained by comparing the number of node devices determined by the control device based on the message sent by the node device with the first message sending parameter, where the number of node devices is determined by the control device when sending the first broadcast packet. Therefore, when the number of the node devices changes, the first message sending parameters are correspondingly adjusted based on the determined number of the node devices in the Bluetooth Mesh network, and second message sending parameters suitable for the scale of the Bluetooth Mesh network are obtained, wherein parameter values of the second message sending parameters are obtained after adjustment, so that the parameter values can be different from parameter values of the first message parameters, and therefore, the second message sending parameters are associated with the number of the node devices based on the second message sending parameters, and reasonable configuration of the second message sending parameters is achieved. And under the condition of reasonably setting the second message sending parameters of the node devices, the control device can receive the messages sent by each node device and can hash in the time period, so that the collision probability of each node device can be effectively reduced, the minimum collision is realized in a large-scale Bluetooth Mesh network, the bandwidth and the flow of the Bluetooth Mesh network are optimized, and the blocking condition of the Bluetooth Mesh network is reduced.
It should be noted that, in some embodiments, the first broadcast packet may be a broadcast packet sent to all node devices in an initial state of the bluetooth Mesh network, so as to implement initialization of the node devices. In other embodiments, the first broadcast packet may also be a last broadcast packet used to adjust the messaging parameters of the node device.
As an alternative implementation, the second broadcast packet may be broadcast by the control device based on a preset time period, for example, after the control device broadcasts the first broadcast packet, if the time reaches the preset time period, the control device may broadcast the second broadcast packet.
In other possible implementations, the second broadcast packet may be broadcast based on a preset condition. The preset condition may be a condition that the control device senses that the number of the node devices is changed. In one example, the preset condition may be that the control device senses that a change value of the number of node devices reaches a preset value; the preset value can be a value of increasing or decreasing the number of node devices in the bluetooth Mesh network. For example, the embodiment of the application may determine a preset value that affects the bandwidth flow of the bluetooth Mesh network, that is, a variation value of the number of node devices reaches the preset value, which affects the bandwidth flow of the bluetooth Mesh network; therefore, after the control device broadcasts the first broadcast packet, if the change value of the number of the node devices is sensed to reach the preset value and the change of the number of the node devices has influence on the bandwidth flow of the Bluetooth Mesh network, the control device can broadcast the second broadcast packet to adjust the message sending parameters of the node devices.
In some embodiments, based on the control and monitoring of the control device on all the node devices in the bluetooth Mesh network, as an optional implementation, the second broadcast packet sent by the control device to the node device may include a second message sending parameter set for the node device, so that the node device can perform corresponding setting based on the obtained second message sending parameter in the second broadcast packet. As another optional implementation, based on that the second message sending parameter is associated with the number of node devices, the second broadcast packet sent by the control device to the node device may include the number of node devices, where the number of node devices is used to enable the node device receiving the second broadcast packet to set the second message sending parameter, so that the node device can correspondingly set the second message sending parameter based on the number of node devices in the obtained second broadcast packet.
It can be seen that, in the embodiment of the present application, based on the number of node devices in the bluetooth Mesh network determined by the control device, the message sending parameters of the node devices are dynamically and adaptively adjusted to obtain the second message sending parameters, so that the second message sending parameters of the node devices are adapted to the network scale condition of the bluetooth Mesh network, and the message sending parameters of the node devices are reasonably set; meanwhile, because the message sending parameters of the node equipment influence the bandwidth and the flow of the Bluetooth Mesh network, under the condition of reasonably setting the message sending parameters of the node equipment, the bandwidth and the flow of the Bluetooth Mesh network can be optimized, and the blocking condition of the Bluetooth Mesh network is reduced.
In some embodiments, a bluetooth Mesh gateway in a bluetooth Mesh network and a bluetooth Mesh device (including a node device that has been configured and a device that has not been configured) may interact by directly sending a broadcast packet, and a terminal device such as a smart phone or a tablet computer may establish Proxy connection with a node device in the bluetooth Mesh network because the terminal device does not support the interaction method of directly sending the broadcast packet, and forward the broadcast packet to other node devices in the bluetooth Mesh network by the node device serving as Proxy, so that message sending and Relay retransmission times corresponding to the node device need to be set, and the terminal device may send the broadcast packet to all node devices in the bluetooth Mesh network, and if all the node devices return messages to a control device, the node device may set a certain delay to the sent message, and the sending of the message to the terminal device by the node device may be implemented within a message sending period of the node device. Thus, the second message sending parameters may include at least a first type of parameter and a second type of parameter, where the first type of parameter may be a parameter associated with the number of message sending times of the node device, such as the number of retransmission times of the message sending and relay; the second type of parameter may be a parameter associated with a message sending time of the node device, such as a period of state synchronization, a time range of multicast state reply, a delay range of power device synchronization state, and the like.
In some further embodiments, based on that the first type of parameter in the pair of second message sending parameters is associated with the number of message sending times of the node device, the first type of parameter in the pair of second message sending parameters has a positive correlation with the number of node devices. Optionally, when the number of the node devices is increased, on the basis of the first message sending parameter, the first type parameter in the second message sending parameter is increased, and the increased first type parameter is greater than the first type parameter in the first message sending parameter, for example: the relay node equipment receives and forwards messages of other node equipment in the Bluetooth Mesh network, wherein if the number of the node equipment is increased, the messages of the node equipment which need to be received and forwarded by the relay node are increased, so that the message sending and relay retransmission times in the second message sending parameters corresponding to the relay node equipment are increased; when the number of the node devices is decreased, on the basis of the first message sending parameters, the first type parameters in the second message sending parameters are decreased, and the decreased first type parameters are smaller than the first type parameters in the first message sending parameters, for example: and the relay node equipment receives and forwards the messages of other node equipment in the Bluetooth Mesh network, wherein if the number of the node equipment is reduced, the messages of the node equipment which need to be received and forwarded by the relay node are reduced, so that the message sending and relay retransmission times in the second message sending parameters corresponding to the relay node equipment are reduced.
In some further embodiments, the second type of the second message sending parameters is in a negative correlation with the number of node devices based on the second type of the pair of the second message sending parameters being associated with the message sending time of the node device. Optionally, when the number of the node devices is increased, on the basis of the first message sending parameter, a second type parameter in the second message sending parameter is decreased, and the decreased second type parameter is smaller than the second type parameter in the first message sending parameter, for example: in the bluetooth Mesh network, when the number of node devices is increased, in order to enable the messages sent by all the node devices to be hashed in the time period of the control device, the period of state synchronization of each node device is reduced; when the number of node devices decreases, on the basis of the first message sending parameter, a second type parameter in the second message sending parameter increases, and the increased second type parameter is greater than a second type parameter in the first message sending parameter, for example: in the bluetooth Mesh network, when the number of node devices decreases, in order to enable all messages sent by the node devices to be hashed within the time period of the control device, the period of state synchronization of each node device increases.
It should be noted that, when the control device periodically sends the broadcast packet to each node device in the bluetooth Mesh network according to the broadcast period, the broadcast period based on the control device is fixed, so that the control device obtains the message sent by the node device according to the second message sending parameter, which may be random in the broadcast period of the control device, as long as it is ensured that the messages sent by the plurality of node devices do not generate data collision.
It should be further noted that the first message sending parameter may be selected within a default random delay range, so that during the broadcast period of the control device, an increased or decreased parameter value may be selected within a default parameter value range according to an increase or decrease of the number of node devices in the bluetooth Mesh network. Using the second type of parameters as an example, the Bluetooth alliance SIG Mesh Standard Mesh Profile
Figure BDA0003798449500000111
The Specification relates to that each node carries out 20-500 ms random delay before sending a packet, and the second type of parameter in the first message sending parameter can be a parameter value selected in a default range of 20-500 ms, so that when the number of node devices in the Bluetooth Mesh network is increased or decreased, the second type of parameter in the second message sending parameter can be selected in the random delay range of 20-500 ms to obtain the second type of parameter in the second message sending parameter, wherein when the number of the node devices is increased, the second type of parameter in the second message sending parameter is obtainedThe value of the second type of parameter is smaller than the value of the second type of parameter in the first type of parameter in the range; when the number of the node devices is reduced, the value of the second type of parameters in the second message sending parameters is larger than the value of the second type of parameters in the first type of parameters in the range. Further, when the increment of the node devices in the bluetooth Mesh network is large, the delay range of the message sending parameter can be correspondingly set according to the change of the number of the node devices in the network.
According to the embodiment of the application, the second message sending parameters are associated with the number of the node devices in the Bluetooth Mesh network, so that the set second message sending parameters can adapt to the network scale of the Bluetooth Mesh network, minimum data conflict is realized in a large-scale Bluetooth Mesh network, minimum delay is realized in a small-scale Bluetooth Mesh network, the bandwidth and the flow of the Bluetooth Mesh network are optimized, and the blocking condition of the Bluetooth Mesh network is reduced.
It can be seen that, the node device in the embodiment of the present application can set the message sending parameters according to the broadcast packet based on the broadcast packet sent by the acquisition control device, and is associated with the number of node devices in the bluetooth Mesh network based on the message sending parameters, so that the node device can dynamically and adaptively adjust the message sending parameters according to the determined number of node devices in the bluetooth Mesh network, thereby adapting to the network scale condition of the bluetooth Mesh network and realizing reasonable setting of the message sending parameters of the node devices.
In some embodiments, based on the control operation of the control device on the node device and the monitoring operation of the device state, the node device may send information according to the first message sending parameter, so that the control device can determine the number of node devices in the bluetooth Mesh network, thereby sending the second broadcast packet to the node device.
In an optional implementation in which the node device sets the second message transmission according to the second broadcast packet, the node device may set a second message transmission parameter according to the number of the node devices carried in the second broadcast packet, where the second message transmission parameter is set correspondingly by the node device. In another optional implementation, the node device may set the message sending parameter as a second message sending parameter carried in a second broadcast packet, where the second message sending parameter is set by the control device according to the determined number of the node devices.
In some further embodiments, the second messaging parameters may include at least a first type of parameter associated with a number of times the node device sent a message and a second type of parameter associated with a time of sending the message by the node device.
Optionally, a first-type parameter in the second message sending parameters is in a positive correlation with the number of node devices, when the number of node devices increases, the first-type parameter increases, and the increased first-type parameter is greater than a first-type parameter in the first message sending parameters; when the number of the node devices is reduced, the first type parameters are reduced, and the reduced first type parameters are smaller than the first type parameters in the first message sending parameters.
Optionally, a second type parameter in the second message sending parameters has a negative correlation with the number of the node devices; when the number of the node devices is increased, the first type of parameters are decreased, and the decreased second type of parameters are smaller than the second type of parameters in the first message sending parameters; when the number of the node devices is reduced, the first type of parameters are increased, and the increased second type of parameters are larger than the second type of parameters in the first message sending parameters.
In some embodiments, the node device sets a second message sending parameter according to the second broadcast packet, and further, after the node device acquires the broadcast packet sent by the control device again, the node device may send the message according to the second message sending parameter, and specifically, the node device may determine a random delay corresponding to a second type parameter in the second message sending parameter, so that in a broadcast period of the control device, if a random delay time corresponding to the node device is reached, the message is sent.
In some further embodiments, the random delay of the node device may be associated with the number of node devices based on the broadcast packet periodically broadcast by the control device acquired by the node device. As an optional implementation, if the number of the node devices is increased, the random delay determined by the node device for the second type of parameter in the second message sending parameters is smaller than the random delay determined by the second type of parameter in the first message sending parameters; as another optional implementation, if the number of the node devices is decreased, the random delay determined for the second type of parameter in the second message sending parameters is greater than the random delay determined for the second type of parameter in the first message sending parameters.
It should be noted that, the random delay of each node device in the broadcast period of the control device means that each node device randomly delays according to the broadcast period time of the control device on the premise that the number of node devices is satisfied, so as to avoid data collision of each node device and ensure that the actual transmission time of each node device is hashed in the broadcast period of the control device. For example, the broadcast period of the control device is 30 seconds, which totally controls 50 node devices, and the transmission time for the 50 node devices to transmit messages to the control device is randomly determined within 30 seconds (i.e., the 50 node devices randomly transmit messages to the control device within 30 seconds), thereby reducing the collision probability.
It can be understood that, in the bluetooth Mesh network, the number of the bluetooth Mesh gateways may be multiple, and when the node device belongs to the control range of multiple bluetooth Mesh gateways, the second message sending parameter corresponding to the node device may be set by the number of the node device determined by the bluetooth Mesh gateway that controls the maximum number of the node devices. Figure 3 illustrates another alternative example diagram of a bluetooth Mesh network.
As shown in fig. 3, the bluetooth Mesh network may include: bluetooth Mesh gateways G1 and G2, node devices N1, N2. Wherein, G1 covers 10 node devices, N1 to N10 respectively, G2 covers 92 node devices, N8 to N99 respectively, and node devices N8, N9, and N10 are simultaneously within the coverage range of two gateways of G1 and G2, then G1 and G2 both send broadcast packets to N8, N9, and N10, and N8, N9, and N10 can all obtain the broadcast packets. However, in the process of setting the message transmission parameters by N8, N9, and N10, if the number of node devices controlled in the coverage area based on G2 is greater than the number of node devices controlled in the coverage area based on G1, N8, N9, and N10 set the message transmission parameters according to the contents of the broadcast packet broadcast by G2.
In the following, the device for setting the message sending parameters provided in the embodiment of the present application is introduced, and the content of the device described below may be regarded as a functional module that is required to be set by the control device (including the bluetooth Mesh gateway and the terminal device) to implement the method for setting the message sending parameters provided in the embodiment of the present application. The following description may be referred to in correspondence with the above description.
As an alternative implementation, fig. 4 exemplarily shows an alternative block diagram of a setting apparatus for message sending parameters, which is provided in this application and is applicable to a control device, and referring to fig. 4, the apparatus may include:
a broadcast packet sending module 41, configured to send a first broadcast packet to a node device in a bluetooth Mesh network, where the first broadcast packet is used to set a first message sending parameter for the node device; and the node equipment is used for sending a second broadcast packet to the node equipment in the Bluetooth Mesh network, wherein the second broadcast packet is used for setting a second message sending parameter for the node equipment, the second message sending parameter is associated with the number of the node equipment, and the parameter value of the second message sending parameter is different from that of the first message parameter;
an obtaining module 42, configured to obtain a message sent by a node device according to the first message sending parameter;
a determining module 43, configured to determine, according to the message sent by the node device, the number of node devices in the bluetooth Mesh network.
In some embodiments, the step of setting the second message sending parameter for the node device by the second broadcast packet includes:
the second broadcast packet carries a second message sending parameter set for the node equipment;
or, the second broadcast packet carries the number of the node devices, where the number of the node devices is used to enable the node device receiving the second broadcast packet to set a second message sending parameter.
In some embodiments, the determining module 43 is configured to determine, according to the message sent by the node device, the number of node devices in the bluetooth Mesh network, including:
determining address information of the node equipment according to the message sent by the node equipment;
and determining the number of the node devices in the Bluetooth Mesh network according to the determined number of the address information.
In some embodiments, the second broadcast packet sent by the broadcast packet sending module 41 may be a second broadcast packet sent based on a broadcast period, or a second broadcast packet sent when the number of devices of the node device in the bluetooth Mesh network meets a preset condition. The preset condition may be a condition that the control device senses that the number of node devices changes, for example, a change value of the number of node devices sensed by the control device reaches a preset value.
In the following, from the perspective of a node device (i.e., a distributed bluetooth Mesh device), a setting apparatus for a message sending parameter provided in the embodiment of the present application is introduced, and the contents of the apparatus described below may be regarded as a functional module that is required to be set by the node device to implement the setting method for the message sending parameter provided in the embodiment of the present application. The following description may be referred to in correspondence with the above description.
As an alternative implementation, fig. 5 exemplarily shows another alternative block diagram of a setting apparatus for message sending parameters provided in an embodiment of the present application, where the apparatus is applicable to a node device, and referring to fig. 5, the apparatus may include:
a first broadcast packet obtaining module 51, configured to obtain a first broadcast packet, and set a first message sending parameter according to the first broadcast packet;
a first sending module 52, configured to send a message according to the first message sending parameter;
a second broadcast packet obtaining module 53, configured to obtain a second broadcast packet, and set a second message sending parameter according to the second broadcast packet; wherein the second messaging parameter is associated with the number of node devices in the Bluetooth Mesh network, and the second messaging parameter is different from the first messaging parameter.
In some embodiments, the second broadcast packet obtaining module 53 is configured to obtain the second broadcast packet, and the setting the second message sending parameter according to the second broadcast packet includes:
setting a second message sending parameter according to the number of the node equipment carried in the second broadcast packet;
alternatively, the first and second electrodes may be,
and setting the message sending parameters as second message sending parameters carried in the second broadcast packet.
In some further embodiments, in conjunction with fig. 5, the apparatus further comprises: a second sending module 54, configured to send a message according to the second message sending parameter;
the second sending module 54, configured to send a message according to the second message sending parameter, includes:
determining the random delay corresponding to a second type of parameter in the second message sending parameters; in a broadcast period, if the time of the random delay is reached, sending a message; the random delay is associated with the number of node devices.
The embodiment of the present application further provides an electronic device, and the electronic device may implement the method for setting the message sending parameters, which is provided by the embodiment of the present application, by setting the device for setting the message sending parameters described above. As an alternative implementation, fig. 6 is an alternative block diagram of an electronic device provided in this embodiment, and as shown in fig. 6, the electronic device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4.
In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 complete mutual communication through the communication bus 4.
Alternatively, the communication interface 2 may be an interface of a communication module for performing network communication.
Alternatively, the processor 1 may be a CPU, a GPU (Graphics Processing Unit), an NPU (embedded neural network processor), an FPGA (Field Programmable Gate Array), a TPU (tensor Processing Unit), an AI chip, an Application Specific Integrated Circuit ASIC (Application Specific Integrated Circuit), or one or more Integrated circuits configured to implement the embodiments of the present Application.
The memory 3 may comprise high-speed RAM memory and may also comprise non-volatile memory, such as at least one disk memory.
The memory 3 stores one or more computer-executable instructions, and the processor 1 calls the one or more computer-executable instructions to execute the method for setting the message sending parameters provided in the embodiment of the present application.
Optionally, when the electronic device is a control device, the processor invokes the one or more computer-executable instructions to execute the method for setting the message sending parameter executed by the control device in the embodiment of the present application. When the electronic device is a node device, the processor calls the one or more computer-executable instructions to execute the method for setting the message sending parameters executed by the node device in the embodiment of the present application.
Embodiments of the present application further provide a storage medium, where the storage medium stores one or more computer-executable instructions, and when the one or more computer-executable instructions are executed, the method for setting a message sending parameter performed by a control device as provided in an embodiment of the present application is implemented, or the method for setting a message sending parameter performed by a node device as provided in an embodiment of the present application is implemented.
Embodiments of the present application also provide a computer program, where the computer program is executed to implement the method for setting the message sending parameter executed by the control device as provided in the embodiments of the present application, or to implement the method for setting the message sending parameter executed by the node device as provided in the embodiments of the present application.
While various embodiments have been described above in connection with what are presently considered to be the embodiments of the disclosure, the various alternatives described in the various embodiments can be readily combined and cross-referenced without conflict to extend the variety of possible embodiments that can be considered to be the disclosed and disclosed embodiments of the disclosure.
Although the embodiments of the present application are disclosed above, the present application is not limited thereto. Various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present disclosure, and it is intended that the scope of the present disclosure be defined by the appended claims.

Claims (14)

1. A method for setting message sending parameters comprises the following steps:
sending a first broadcast packet to node equipment in a Bluetooth Mesh network, wherein the first broadcast packet is used for setting a first message sending parameter for the node equipment;
acquiring a message sent by the node equipment by using the first message sending parameter; determining the number of node devices in the Bluetooth Mesh network according to the message sent by the node devices;
and sending a second broadcast packet to the node equipment in the Bluetooth Mesh network, wherein the second broadcast packet is used for setting a second message sending parameter for the node equipment, the second message sending parameter is associated with the number of the node equipment, and the parameter value of the second message sending parameter is different from that of the first message parameter.
2. The method for setting the message sending parameter according to claim 1, wherein the second message sending parameter at least includes a first type parameter and a second type parameter, the first type parameter is a parameter associated with the number of message sending times of the node device, and the second type parameter is a parameter associated with the message sending time of the node device.
3. The method for setting the message sending parameter according to claim 2, wherein the second message sending parameter is associated with the number of node devices, and comprises:
the first type of parameters in the second message sending parameters are in positive correlation with the number of the node devices; when the number of the node devices is increased, the first type parameter is increased, and the increased first type parameter is larger than a first type parameter in the first message sending parameters; when the number of the node devices is reduced, the first type parameters are reduced, and the reduced first type parameters are smaller than the first type parameters in the first message sending parameters;
the second type of parameters in the second message sending parameters and the number of the node devices are in a negative correlation relationship; when the number of the node devices is increased, the second type of parameters are decreased, and the decreased second type of parameters are smaller than the second type of parameters in the first message sending parameters; and when the number of the node devices is reduced, the second type of parameters are increased, and the increased second type of parameters are larger than the second type of parameters in the first message sending parameters.
4. The method for setting the message transmission parameter according to claim 1, wherein the second broadcast packet is used for setting a second message transmission parameter for the node device, and includes:
the second broadcast packet carries a second message sending parameter set for the node equipment;
or, the second broadcast packet carries the number of the node devices, where the number of the node devices is used to enable the node device receiving the second broadcast packet to set a second message sending parameter.
5. The method for setting the message sending parameters according to claim 1, wherein the determining the number of the node devices in the bluetooth Mesh network according to the message sent by the node device comprises:
determining address information of the node equipment according to the message sent by the node equipment;
and determining the number of the node devices in the Bluetooth Mesh network according to the determined number of the address information.
6. The method for setting message transmission parameters according to claim 1, wherein the second broadcast packet is a second broadcast packet transmitted based on a broadcast cycle, or a second broadcast packet transmitted when the number of devices of the node device in the bluetooth Mesh network satisfies a preset condition.
7. A method for setting message sending parameters comprises the following steps:
acquiring a first broadcast packet, and setting a first message sending parameter according to the first broadcast packet;
sending a message according to the first message sending parameter;
acquiring a second broadcast packet, and setting a second message sending parameter according to the second broadcast packet; wherein the second messaging parameter is associated with the number of node devices in the Bluetooth Mesh network, and the second messaging parameter is different from the first messaging parameter.
8. The method of setting message transmission parameters according to claim 7, wherein the setting second message transmission parameters according to the second broadcast packet includes:
setting a second message sending parameter according to the number of the node equipment carried in the second broadcast packet;
alternatively, the first and second electrodes may be,
and setting the message sending parameters as second message sending parameters carried in the second broadcast packet.
9. The method for setting the message sending parameters according to claim 8, wherein the second message sending parameters at least include a first type parameter and a second type parameter, the first type parameter is a parameter associated with the number of message sending times of the node device, and the second type parameter is a parameter associated with the message sending time of the node device.
10. The method for setting the message sending parameter according to claim 9, wherein the second message sending parameter is associated with the number of node devices in the bluetooth Mesh network, and comprises:
the first type of parameters in the second message sending parameters are in positive correlation with the number of the node devices; when the number of the node devices is increased, the first type parameters are increased, and the increased first type parameters are larger than the first type parameters in the first message sending parameters; when the number of the node devices is reduced, the first type parameters are reduced, and the reduced first type parameters are smaller than the first type parameters in the first message sending parameters;
the second type of parameters in the second message sending parameters and the number of the node devices are in a negative correlation relationship; when the number of the node devices is increased, the second type of parameters are decreased, and the decreased second type of parameters are smaller than the second type of parameters in the first message sending parameters; and when the number of the node devices is reduced, the second type of parameters are increased, and the increased second type of parameters are larger than the second type of parameters in the first message sending parameters.
11. The method for setting message transmission parameters according to claim 7, further comprising: sending a message according to the second message sending parameter;
the sending a message according to the second message sending parameter includes:
determining the random delay corresponding to a second type parameter in the second message sending parameters; in a broadcast period, if the time of the random delay is reached, sending a message; the random delay is associated with the number of node devices.
12. The method for setting the message sending parameter according to claim 11, wherein the random delay is associated with the number of node devices, and comprises:
if the number of the node devices is increased, the random delay determined by the second type parameter in the second message sending parameters is smaller than the random delay determined by the second type parameter in the first message sending parameters; if the number of the node devices is reduced, the random delay determined for the second type of parameters in the second message sending parameters is larger than the random delay determined for the second type of parameters in the first message sending parameters.
13. An electronic device comprising at least one memory storing one or more computer-executable instructions and at least one processor, the processor invoking the one or more computer-executable instructions to perform the method of setting messaging parameters of any of claims 1-6 or to perform the method of setting messaging parameters of any of claims 7-12.
14. A storage medium, wherein the storage medium stores one or more computer-executable instructions that, when executed, implement the method of setting messaging parameters of any of claims 1-6 or the method of setting messaging parameters of any of claims 7-12.
CN202210976166.1A 2022-08-15 2022-08-15 Method for setting message sending parameters, electronic equipment and storage medium Pending CN115442869A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210976166.1A CN115442869A (en) 2022-08-15 2022-08-15 Method for setting message sending parameters, electronic equipment and storage medium
PCT/CN2023/075102 WO2024036891A1 (en) 2022-08-15 2023-02-09 Message sending parameter setting method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210976166.1A CN115442869A (en) 2022-08-15 2022-08-15 Method for setting message sending parameters, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115442869A true CN115442869A (en) 2022-12-06

Family

ID=84243567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210976166.1A Pending CN115442869A (en) 2022-08-15 2022-08-15 Method for setting message sending parameters, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN115442869A (en)
WO (1) WO2024036891A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024036891A1 (en) * 2022-08-15 2024-02-22 浙江艾克斯精灵人工智能科技有限公司 Message sending parameter setting method, electronic device, and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180343200A1 (en) * 2017-05-26 2018-11-29 Qualcomm Incorporated Congestion control and message analysis in a wireless mesh network
WO2019177505A1 (en) * 2018-03-16 2019-09-19 Telefonaktiebolaget Lm Ericsson (Publ) Methods and nodes for obtaining information regarding a bluetooth mesh network
CN112055343B (en) * 2020-08-21 2023-12-12 北京小米移动软件有限公司 Bluetooth Mesh network flooding method, device and storage medium
CN115442869A (en) * 2022-08-15 2022-12-06 浙江猫精人工智能科技有限公司 Method for setting message sending parameters, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024036891A1 (en) * 2022-08-15 2024-02-22 浙江艾克斯精灵人工智能科技有限公司 Message sending parameter setting method, electronic device, and storage medium

Also Published As

Publication number Publication date
WO2024036891A1 (en) 2024-02-22

Similar Documents

Publication Publication Date Title
CN110602801B (en) Link configuration method and device
EP3836687A1 (en) Information transmission method and apparatus
US10524298B2 (en) Method and apparatus for sending and receiving data on Bluetooth
Nardelli et al. Experimental evaluation of optimal CSMA
CN102090023A (en) TCP transmission control device and TCP transmission control method
RU2002104934A (en) METHOD AND DEVICE FOR DATA TRANSMISSION BY FEEDBACK IN A MOBILE COMMUNICATION SYSTEM
CN111431816B (en) Distributed flow rate limiting method and system
WO2017020728A1 (en) Wireless communication method and device
CN114666912B (en) Method, device, computer equipment and system for requesting uplink resource
WO2024001190A1 (en) Message sending method, device intelligent interconnection system, related device, and storage medium
CN115442869A (en) Method for setting message sending parameters, electronic equipment and storage medium
CN112437153A (en) Equipment linkage processing method and device
CN110996268A (en) SIG mesh-based broadcast bearer layer message filtering strategy method
CN112887416B (en) Frequency adjustment method and device for sending keep-alive packets
CN101345749B (en) Multi-hop wireless network congestion control method based on RTS/CTS mechanism
CN110661550B (en) Method, device, storage medium and electronic equipment for forwarding message in HPLC communication link
US20170202056A1 (en) Data transmission method and terminal
CN112004216A (en) Method for forwarding and processing Bluetooth Mesh relay node
CN107104813B (en) Information transmission method, gateway and controller
CN107592261A (en) Message processing method, device and router
CN107484128B (en) Communication method and device based on RTS/CTS protocol, computer equipment and storage medium
CN114245317B (en) Data processing method, device and computer readable storage medium
JP2018050348A (en) Data transmission and reception method and device
EP4305823A1 (en) Devices and methods for collaborative learning of a transmission policy in wireless networks
US20190059017A1 (en) Communications resource control by a network node

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
CB02 Change of applicant information

Address after: 311121 room 801, building 2, No. 2699, yuhangtang Road, Cangqian street, Yuhang District, Hangzhou, Zhejiang Province

Applicant after: Zhejiang Aikesi Elf Artificial Intelligence Technology Co.,Ltd.

Address before: 311121 room 801, building 2, No. 2699, yuhangtang Road, Cangqian street, Yuhang District, Hangzhou, Zhejiang Province

Applicant before: Zhejiang Maojing Artificial Intelligence Technology Co.,Ltd.

CB02 Change of applicant information