CN114363939A - Node simulation test method, device, storage medium, processor and equipment - Google Patents

Node simulation test method, device, storage medium, processor and equipment Download PDF

Info

Publication number
CN114363939A
CN114363939A CN202111645562.8A CN202111645562A CN114363939A CN 114363939 A CN114363939 A CN 114363939A CN 202111645562 A CN202111645562 A CN 202111645562A CN 114363939 A CN114363939 A CN 114363939A
Authority
CN
China
Prior art keywords
bluetooth mesh
node
virtual space
nodes
target virtual
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
CN202111645562.8A
Other languages
Chinese (zh)
Other versions
CN114363939B (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.)
Shanghai Mxchip Information Technology Co Ltd
Original Assignee
Shanghai Mxchip Information 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 Shanghai Mxchip Information Technology Co Ltd filed Critical Shanghai Mxchip Information Technology Co Ltd
Priority to CN202111645562.8A priority Critical patent/CN114363939B/en
Publication of CN114363939A publication Critical patent/CN114363939A/en
Application granted granted Critical
Publication of CN114363939B publication Critical patent/CN114363939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a node simulation test method, a node simulation test device, a storage medium, a processor and equipment. Wherein, the method comprises the following steps: simulating a plurality of Bluetooth mesh nodes and a simulated target virtual space on a terminal device, wherein the plurality of Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh devices, and the target virtual space is used for determining the networking coverage of the plurality of Bluetooth mesh nodes; and generating a test report based on communication interaction among part or all of the plurality of Bluetooth mesh nodes in the target virtual space. The invention solves the technical problem of low test efficiency of the Bluetooth mesh node in the related technology.

Description

Node simulation test method, device, storage medium, processor and equipment
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a node simulation test method, apparatus, storage medium, processor, and device.
Background
The wireless mesh (mesh) network is one of the key technologies of wireless communication, can cooperatively communicate with other networks, is a network architecture capable of continuously and dynamically expanding, and any two devices in the wireless mesh network can be wirelessly interconnected.
Parameters and density of the bluetooth mesh node greatly affect performance and stability of the bluetooth mesh network, and in related schemes, in order to obtain appropriate parameter configuration, parameters are usually set manually for testing, but the testing process is complex to operate, and a large amount of time cost and labor cost are consumed.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a node simulation test method, a node simulation test device, a storage medium, a processor and equipment, and at least solves the technical problem that the test efficiency of a Bluetooth mesh node in the related technology is low.
According to an embodiment of the present application, a node simulation test method is provided, including: simulating a plurality of Bluetooth mesh nodes and a simulated target virtual space on a terminal device, wherein the plurality of Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh devices, and the target virtual space is used for determining the networking coverage of the plurality of Bluetooth mesh nodes; and generating a test report based on communication interaction among part or all of the nodes of the plurality of Bluetooth mesh nodes in the target virtual space.
Optionally, simulating a plurality of bluetooth mesh nodes and simulating a target virtual space on the terminal device comprises: obtaining configuration information, wherein the configuration information comprises: the method comprises the steps that quantity information and area information are obtained, the quantity information is used for determining the number of nodes of a plurality of Bluetooth mesh nodes, and the area information is used for determining the coverage area of a target virtual space; generating a target virtual space based on the area information; and randomly setting a plurality of Bluetooth mesh nodes in the target virtual space according to the quantity information.
Optionally, the node simulation test method further includes: a management center is provided, wherein the management center is provided with a database for storing network parameters of each of the plurality of bluetooth mesh nodes.
Optionally, the network parameters include: a mesh address of each bluetooth mesh node; coordinates of each bluetooth mesh node in the target virtual space; the radio frequency transceiving range of each bluetooth mesh node; a lifetime of each bluetooth mesh node; whether each bluetooth mesh node opens a relay; the number of network retransmissions for each bluetooth mesh node.
Optionally, generating a test report based on communication interactions among some or all of the plurality of bluetooth mesh nodes in the target virtual space includes: acquiring a request message sent by a first bluetooth mesh node, wherein the first bluetooth mesh node is any one of a plurality of bluetooth mesh nodes, the first bluetooth mesh node is a source node of the request message, and information carried in the request message at least comprises: mesh address and message data of at least one second bluetooth mesh node, the at least one second bluetooth mesh node being a destination node of the request message; querying a database for network parameters of at least one second bluetooth mesh node and network parameters of at least one third bluetooth mesh node in response to the request message, wherein the at least one third bluetooth mesh node is a relay node of the request message; and performing message transmission between the first Bluetooth mesh node and at least one second Bluetooth mesh node based on the inquired network parameters, and generating a test report.
Optionally, the node simulation test method further includes: analyzing the test report to obtain evaluation parameters corresponding to the target virtual space, wherein the evaluation parameters comprise: network traffic and message arrival rate for a bluetooth mesh network; network parameters of some or all of the plurality of Bluetooth mesh nodes are adjusted based on the evaluation parameters.
According to an embodiment of the present application, there is also provided a node simulation test apparatus, including: the simulation module is used for simulating a plurality of Bluetooth mesh nodes and a simulation target virtual space on the terminal equipment, wherein the plurality of Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh equipment, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh nodes; and the test module is used for generating a test report based on the communication interaction among part or all of the nodes of the plurality of Bluetooth mesh network nodes in the target virtual space.
Optionally, the simulation module is further configured to: acquiring configuration information, wherein the configuration information comprises: the method comprises the steps that quantity information and area information are obtained, the quantity information is used for determining the number of nodes of a plurality of Bluetooth mesh nodes, and the area information is used for determining the coverage area of a target virtual space; generating a target virtual space based on the area information; and randomly setting a plurality of Bluetooth mesh nodes in the target virtual space according to the quantity information.
Optionally, the node simulation test apparatus further includes: the system comprises a setting module and a management center, wherein the management center is provided with a database, and the database is used for storing network parameters of each Bluetooth mesh node in a plurality of Bluetooth mesh nodes.
Optionally, the network parameters include: a mesh address of each bluetooth mesh node; coordinates of each bluetooth mesh node in the target virtual space; the radio frequency transceiving range of each bluetooth mesh node; a lifetime of each bluetooth mesh node; whether each bluetooth mesh node opens a relay; the number of network retransmissions for each bluetooth mesh node.
Optionally, the test module is further configured to: acquiring a request message sent by a first bluetooth mesh node, wherein the first bluetooth mesh node is any one of a plurality of bluetooth mesh nodes, the first bluetooth mesh node is a source node of the request message, and information carried in the request message at least comprises: mesh address and message data of at least one second bluetooth mesh node, the at least one second bluetooth mesh node being a destination node of the request message; querying a database for network parameters of at least one second bluetooth mesh node and network parameters of at least one third bluetooth mesh node in response to the request message, wherein the at least one third bluetooth mesh node is a relay node of the request message; and performing message transmission between the first Bluetooth mesh node and at least one second Bluetooth mesh node based on the inquired network parameters, and generating a test report.
Optionally, the node simulation test apparatus further includes: the analysis module is used for analyzing the test report and obtaining evaluation parameters corresponding to the target virtual space, wherein the evaluation parameters comprise: network traffic and message arrival rate for a bluetooth mesh network; and the adjusting module is used for adjusting the network parameters of part or all of the Bluetooth mesh nodes in the plurality of Bluetooth mesh nodes based on the evaluation parameters.
According to an embodiment of the present application, there is further provided a non-volatile storage medium having a computer program stored therein, where the computer program is configured to execute the node simulation testing method in any one of the above methods when running.
There is further provided, according to an embodiment of the present application, a processor configured to run a program, where the program is configured to perform the node simulation testing method in any one of the above methods when running.
According to an embodiment of the present application, there is further provided a terminal device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the node simulation testing method in any one of the above.
In the embodiment of the application, a plurality of Bluetooth mesh nodes and a simulated target virtual space are simulated on a terminal device, the plurality of Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh devices, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh nodes; and then in the target virtual space, a test report is generated based on communication interaction among part or all of the nodes of the plurality of Bluetooth mesh nodes, so that the purposes of simulating the Bluetooth mesh nodes and efficiently generating the test report are achieved, the technical effect of improving the test efficiency of the Bluetooth mesh nodes is realized, and the technical problem of low test efficiency of the Bluetooth mesh nodes in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of a method for node simulation testing according to an embodiment of the present application;
FIG. 2 is a flow chart of yet another method for node simulation testing according to one embodiment of the present application;
FIG. 3 is a block diagram of a node simulation test apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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 only partial 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.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above 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 capable of operation in sequences other than those illustrated or 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.
The parameters and density of the bluetooth mesh node have great influence on the performance and stability of the bluetooth mesh network, wherein the parameters of the bluetooth mesh node include: whether To open the relay function, Time To Live (TTL), and the number of network retransmissions. The node parameters may have an influence on each other, for example, increasing the number of network retransmissions may reduce the packet loss rate of the current node, but may increase network congestion, which may cause the packet loss rate of other nodes to be high.
Therefore, it is necessary to test the influence of the node parameters on the network performance and finally find a most suitable parameter configuration to achieve an optimal balance point between the network performance and the stability.
In the relevant scheme, adopt artifical mode to test bluetooth mesh node, specific process is: a bluetooth mesh environment is created comprising 100 nodes, each node being a bluetooth device. In order to test the performance of the density on the mesh network, various rooms with different areas need to be prepared, and bluetooth mesh nodes are arranged according to the corresponding density. The configuration information needs to be downloaded for each node at each testing node point, so that the parameters of all the nodes are changed, the parameters of each test need to be manually configured, the testing process is complex, the cost is high, and the testing efficiency of the mesh node is low.
In accordance with one embodiment of the present application, there is provided an embodiment of a node simulation test method, where the steps illustrated in the flowchart of the figure may be performed in a computer system, such as a set of computer-executable instructions, and where a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that illustrated or described herein.
The method embodiment can be executed in a node simulation test system. The node simulation test system comprises: and (4) terminal equipment. The terminal device may be a Personal Computer (PC) or a Mobile terminal, and the first terminal device may also be a Mobile terminal such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet Computer, a palm Computer, and a Mobile Internet Device (MID). A bluetooth mesh network can be simulated on the terminal device. The Bluetooth mesh network comprises a first Bluetooth mesh node, a second Bluetooth mesh node, a third Bluetooth mesh node and a management center. The first Bluetooth mesh node is a source node requesting for a message, the second Bluetooth mesh node is a destination node requesting for a message, and the third Bluetooth mesh node is a relay node requesting for a message. The management center is provided with a database for storing network parameters of each of the plurality of bluetooth mesh nodes.
According to the method, a plurality of Bluetooth mesh nodes and a simulated target virtual space are simulated on the terminal equipment, the Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh equipment, and the target virtual space is used for determining the coverage range of networking of the Bluetooth mesh nodes; and then in the target virtual space, based on the communication interaction among part or all of the nodes of the plurality of Bluetooth mesh network nodes, a test report is generated, so that the actual Bluetooth mesh network can be accurately simulated, and the automatic test of the mesh network is realized.
The following description will be given taking the internal body structure of the terminal device as an example.
The terminal device may include one or more processors (which may include, but are not limited to, processing devices such as Central Processing Units (CPUs), Graphics Processing Units (GPUs), Digital Signal Processing (DSP) chips, Microprocessors (MCUs), programmable logic devices (FPGAs), neural Network Processors (NPUs), Tensor Processors (TPUs), Artificial Intelligence (AI) type processors, etc.) and memory for storing data. Optionally, the mobile terminal may further include a transmission device, an input/output device, and a display device for a communication function. It will be understood by those of ordinary skill in the art that the above structural description is only illustrative and is not intended to limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than described above, or have a different configuration than described above.
The memory can be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the methods described in the embodiments of the present application, and the processor executes the computer programs stored in the memory so as to execute various functional applications and data processing, i.e., implement the methods described in the embodiments of the present application. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display device may be, for example, a touch screen type Liquid Crystal Display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI) with which a user can interact by touching finger contacts and/or gestures on a touch-sensitive surface, where the human-machine interaction functions optionally include the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, emailing, call interfacing, playing digital video, playing digital music, and/or web browsing, etc., for performing the above-described human-computer interaction functions, are configured/stored in one or more processor-executable computer program products or readable storage media.
Fig. 1 is a flowchart of a node simulation test method according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S11, simulating a plurality of Bluetooth mesh nodes and a simulated target virtual space on the terminal equipment, wherein the plurality of Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh equipment, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh nodes;
specifically, the implementation process of simulating a plurality of bluetooth mesh nodes and simulating a target virtual space on the terminal device may refer to further description of the embodiments of the present application, and is not repeated herein.
Step S12, generating a test report based on the communication interaction among some or all of the plurality of bluetooth mesh nodes in the target virtual space.
Specifically, based on the communication interaction among some or all of the nodes in the plurality of bluetooth mesh nodes, the implementation process of generating the test report may refer to further description of the embodiments of the present application, and is not repeated herein.
Through the steps S11 to S12, simulating a plurality of bluetooth mesh nodes and a simulated target virtual space on the terminal device, where the bluetooth mesh nodes are a plurality of virtual bluetooth mesh devices, and the target virtual space is used to determine a coverage area of networking performed by the bluetooth mesh nodes; and then in the target virtual space, a test report is generated based on communication interaction among part or all of the nodes in the plurality of Bluetooth mesh nodes, so that the purposes of simulating the Bluetooth mesh nodes and efficiently generating the test report are achieved, the technical effect of improving the test efficiency of the Bluetooth mesh nodes is realized, and the technical problem of low test efficiency of the Bluetooth mesh nodes in the related technology is solved.
The node simulation test method described in the above embodiments is further described below.
Optionally, in step S11, simulating the plurality of bluetooth mesh nodes and simulating the target virtual space on the terminal device includes:
step S111, obtaining configuration information, where the configuration information includes: the method comprises the steps that quantity information and area information are obtained, the quantity information is used for determining the number of nodes of a plurality of Bluetooth mesh nodes, and the area information is used for determining the coverage area of a target virtual space;
step S112, generating a target virtual space based on the area information;
and step S113, randomly setting a plurality of Bluetooth mesh nodes in the target virtual space according to the quantity information.
Specifically, the number of the bluetooth mesh nodes preset by a tester is 1000, room area information is obtained, a corresponding target virtual space is generated based on the room area information, and 1000 bluetooth mesh nodes are set at random positions in the target virtual space. The quantity information can be flexibly set according to the performance and the memory of the terminal equipment, and the Bluetooth mesh network environment with each area and the Bluetooth mesh node density can be simulated.
Based on the above steps S111 to S113, a target virtual space is generated based on the area information in the configuration information by obtaining the configuration information, and a plurality of bluetooth mesh nodes are randomly arranged in the target virtual space according to the quantity information of the good quality of the configuration information, so that a plurality of bluetooth mesh nodes can be directly simulated on the terminal device. Compared with the prior art that the Bluetooth mesh nodes can only be arranged in the entity space when the nodes are tested, the cost is high, the number of the nodes capable of being tested is limited, the embodiment of the application can directly simulate a large number of Bluetooth mesh nodes through the terminal equipment, and the test cost can be effectively reduced.
Optionally, the node simulation test method further includes:
step S10, a management center is provided, wherein the management center is equipped with a database for storing network parameters of each of the plurality of bluetooth mesh nodes.
Optionally, the network parameters include: a mesh address of each bluetooth mesh node; coordinates of each bluetooth mesh node in the target virtual space; the radio frequency transceiving range of each bluetooth mesh node; a lifetime of each bluetooth mesh node; whether each bluetooth mesh node opens a relay; the number of network retransmissions for each bluetooth mesh node.
Optionally, in step S12, generating the test report based on the communication interaction among some or all of the plurality of bluetooth mesh nodes in the target virtual space includes:
step S121, obtaining a request message sent by a first bluetooth mesh node, where the first bluetooth mesh node is any one of the plurality of bluetooth mesh nodes, and the first bluetooth mesh node is a source node of the request message, and information carried in the request message at least includes: mesh address and message data of at least one second bluetooth mesh node, the at least one second bluetooth mesh node being a destination node of the request message;
the mesh address of the at least one second bluetooth mesh node may include any one of a unicast address, a multicast address, and a broadcast address.
Step S122, responding to the request message, inquiring the network parameters of at least one second Bluetooth mesh node and at least one third Bluetooth mesh node from the database, wherein the at least one third Bluetooth mesh node is a relay node of the request message;
step S123, performing message transmission between the first bluetooth mesh node and at least one second bluetooth mesh node based on the queried network parameter, and generating a test report.
As an alternative implementation, information of the bluetooth mesh network, such as the number of relays, the number of packets in a unit time, etc., may be displayed in real time on the terminal device.
As an alternative embodiment, the terminal device generates the test report by running an automation configuration script.
For example, a first bluetooth mesh node sends a request message through broadcasting, and the TTL value is 0, a management center responds to the request message, queries, from a database, network parameters of at least one third bluetooth mesh node existing within a radio frequency range of the first bluetooth mesh node, performs message transfer between the first bluetooth mesh node and at least one second bluetooth mesh node by using the at least one third bluetooth mesh node as a relay node, and a terminal device runs an automation configuration script according to the simulated network parameters in a message transfer process to output a test report.
Based on the steps S121 to S123, by acquiring the request message sent by the first bluetooth mesh node, and then responding to the request message, querying the network parameter of at least one second bluetooth mesh node and the network parameter of at least one third bluetooth mesh node from the database, and finally performing message transmission between the first bluetooth mesh node and the at least one second bluetooth mesh node based on the queried network parameters, and generating a test report.
Optionally, the node simulation test method further includes:
step S13, analyzing the test report to obtain an evaluation parameter corresponding to the target virtual space, where the evaluation parameter includes: network traffic and message arrival rate for a bluetooth mesh network;
step S14, adjusting network parameters of some or all of the bluetooth mesh nodes in the plurality of bluetooth mesh nodes based on the evaluation parameters.
For example, the network parameters of one bluetooth mesh node may be individually adjusted based on the evaluation parameters, or the network parameters of all bluetooth mesh nodes may be uniformly adjusted based on the evaluation parameters.
Based on the steps S13 to S14, the test report is analyzed to obtain the evaluation parameters corresponding to the target virtual space, and then the network parameters of some or all of the bluetooth mesh nodes in the plurality of bluetooth mesh nodes are adjusted based on the evaluation parameters, so that the corresponding evaluation parameters in the test report can be analyzed, and the network parameters of the bluetooth mesh nodes are adjusted based on the evaluation parameters to obtain the optimal parameter configuration.
Fig. 2 is a flowchart of a node simulation test method according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S201, a management center is set, wherein the management center is provided with a database, and the database is used for storing network parameters of each Bluetooth mesh node in a plurality of Bluetooth mesh nodes;
step S202, obtaining configuration information, wherein the configuration information comprises: the method comprises the steps that quantity information and area information are obtained, the quantity information is used for determining the number of nodes of a plurality of Bluetooth mesh nodes, and the area information is used for determining the coverage area of a target virtual space;
step S203, generating a target virtual space based on the area information;
step S204, a plurality of Bluetooth mesh network nodes are randomly arranged in the target virtual space according to the quantity information;
step S205, acquiring a request message sent by a first Bluetooth mesh node;
step S206, responding to the request message, inquiring the network parameters of at least one second Bluetooth mesh node and the network parameters of at least one third Bluetooth mesh node from the database;
step S207, based on the inquired network parameters, message transmission is carried out between the first Bluetooth mesh node and at least one second Bluetooth mesh node, and a test report is generated;
step S208, analyzing the test report to obtain an evaluation parameter corresponding to the target virtual space;
step S209, based on the evaluation parameters, adjusting the network parameters of some or all of the plurality of Bluetooth mesh nodes.
Based on the steps S201 to S209, the purpose of simulating the bluetooth mesh node and efficiently generating the test report is achieved, so that the technical effect of improving the test efficiency of the bluetooth mesh node is achieved, and the technical problem of low test efficiency of the bluetooth mesh node in the related art is solved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method described in the embodiments of the present application.
In this embodiment, a node simulation test apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a node simulation test apparatus according to an embodiment of the present application, and as shown in fig. 3, the node simulation test apparatus 300 includes:
the simulation module 301 is configured to simulate, on a terminal device, a plurality of bluetooth mesh nodes and a simulated target virtual space, where the plurality of bluetooth mesh nodes are a plurality of virtual bluetooth mesh devices, and the target virtual space is used to determine a coverage area of networking of the plurality of bluetooth mesh nodes;
a testing module 302, configured to generate a test report based on communication interaction among some or all of the plurality of bluetooth mesh nodes in the target virtual space.
Optionally, the simulation module 301 is further configured to: acquiring configuration information, wherein the configuration information comprises: the method comprises the steps that quantity information and area information are obtained, the quantity information is used for determining the number of nodes of a plurality of Bluetooth mesh nodes, and the area information is used for determining the coverage area of a target virtual space; generating a target virtual space based on the area information; and randomly setting a plurality of Bluetooth mesh nodes in the target virtual space according to the quantity information.
Optionally, the node simulation test apparatus further includes: a setting module 303, configured to set a management center, where the management center is equipped with a database, and the database is used to store a network parameter of each bluetooth mesh node in the plurality of bluetooth mesh nodes.
Optionally, the network parameters include: a mesh address of each bluetooth mesh node; coordinates of each bluetooth mesh node in the target virtual space; the radio frequency transceiving range of each bluetooth mesh node; a lifetime of each bluetooth mesh node; whether each bluetooth mesh node opens a relay; the number of network retransmissions for each bluetooth mesh node.
Optionally, the test module 302 is further configured to: acquiring a request message sent by a first bluetooth mesh node, wherein the first bluetooth mesh node is any one of a plurality of bluetooth mesh nodes, the first bluetooth mesh node is a source node of the request message, and information carried in the request message at least comprises: mesh address and message data of at least one second bluetooth mesh node, the at least one second bluetooth mesh node being a destination node of the request message; querying a database for network parameters of at least one second bluetooth mesh node and network parameters of at least one third bluetooth mesh node in response to the request message, wherein the at least one third bluetooth mesh node is a relay node of the request message; and performing message transmission between the first Bluetooth mesh node and at least one second Bluetooth mesh node based on the inquired network parameters to generate a test report.
Optionally, the node simulation test apparatus further includes: an analysis module 304, configured to analyze the test report and obtain an evaluation parameter corresponding to the target virtual space, where the evaluation parameter includes: network traffic and message arrival rate for a bluetooth mesh network; an adjusting module 305, configured to adjust network parameters of some or all bluetooth mesh nodes in the plurality of bluetooth mesh nodes based on the evaluation parameter.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present application further provide a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned nonvolatile storage medium may be configured to store a computer program for executing the steps of:
s1, simulating a plurality of Bluetooth mesh nodes and a simulated target virtual space on the terminal equipment, wherein the plurality of Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh equipment, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh nodes;
and S2, generating a test report based on the communication interaction among part or all of the nodes in the plurality of Bluetooth mesh nodes in the target virtual space.
Optionally, in this embodiment, the nonvolatile storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present application further provide a terminal device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the above method embodiments.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, simulating a plurality of Bluetooth mesh nodes and a simulated target virtual space on the terminal equipment, wherein the plurality of Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh equipment, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh nodes;
and S2, generating a test report based on the communication interaction among part or all of the nodes in the plurality of Bluetooth mesh nodes in the target virtual space.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components 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 through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A node simulation test method is characterized by comprising the following steps:
simulating a plurality of Bluetooth mesh nodes and a simulated target virtual space on a terminal device, wherein the plurality of Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh devices, and the target virtual space is used for determining the networking coverage of the plurality of Bluetooth mesh nodes;
and generating a test report based on communication interaction among part or all of the plurality of Bluetooth mesh nodes in the target virtual space.
2. The node simulation test method of claim 1, wherein simulating the plurality of bluetooth mesh nodes and simulating the target virtual space on the terminal device comprises:
acquiring configuration information, wherein the configuration information comprises: quantity information and area information, wherein the quantity information is used for determining the number of nodes of the plurality of Bluetooth mesh nodes, and the area information is used for determining the coverage area of the target virtual space;
generating the target virtual space based on the area information;
and randomly setting the plurality of Bluetooth mesh nodes in the target virtual space according to the quantity information.
3. The node simulation test method of claim 1, further comprising:
setting a management center, wherein the management center is provided with a database used for storing the network parameters of each Bluetooth mesh node in the plurality of Bluetooth mesh nodes.
4. The node simulation test method of claim 3, wherein the network parameters comprise:
a mesh address of each bluetooth mesh node;
coordinates of each bluetooth mesh node within the target virtual space;
the radio frequency transceiving range of each bluetooth mesh node;
a lifetime of each bluetooth mesh node;
whether each bluetooth mesh node opens a relay;
the number of network retransmissions for each bluetooth mesh node.
5. The node simulation test method of claim 3, wherein generating the test report based on communication interactions among some or all of the plurality of Bluetooth mesh nodes within the target virtual space comprises:
acquiring a request message sent by a first bluetooth mesh node, wherein the first bluetooth mesh node is any one of the plurality of bluetooth mesh nodes, the first bluetooth mesh node is a source node of the request message, and information carried in the request message at least includes: mesh address and message data of at least one second bluetooth mesh node, the at least one second bluetooth mesh node being a destination node of the request message;
querying the database for network parameters of the at least one second bluetooth mesh node and network parameters of at least one third bluetooth mesh node in response to the request message, wherein the at least one third bluetooth mesh node is a relay node of the request message;
and performing message transmission between the first Bluetooth mesh node and the at least one second Bluetooth mesh node based on the inquired network parameters, and generating the test report.
6. The node simulation test method of claim 3, further comprising:
analyzing the test report to obtain evaluation parameters corresponding to the target virtual space, wherein the evaluation parameters comprise: network traffic and message arrival rate for a bluetooth mesh network;
adjusting network parameters of some or all of the plurality of Bluetooth mesh nodes based on the evaluation parameters.
7. A node simulation test device, comprising:
the simulation module is used for simulating a plurality of Bluetooth mesh nodes and a simulation target virtual space on the terminal equipment, wherein the Bluetooth mesh nodes are a plurality of virtual Bluetooth mesh equipment, and the target virtual space is used for determining the coverage range of networking of the Bluetooth mesh nodes;
and the test module is used for generating a test report based on the communication interaction among part or all of the plurality of Bluetooth mesh nodes in the target virtual space.
8. A non-volatile storage medium, characterized in that a computer program is stored in the storage medium, wherein the computer program is arranged to execute the node simulation test method of any of claims 1 to 6 when running.
9. A processor for running a program, wherein the program is arranged to perform the node simulation test method of any of claims 1 to 6 when run.
10. A terminal device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the node simulation testing method of any of claims 1 to 6.
CN202111645562.8A 2021-12-29 2021-12-29 Node simulation test method, device, storage medium, processor and equipment Active CN114363939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111645562.8A CN114363939B (en) 2021-12-29 2021-12-29 Node simulation test method, device, storage medium, processor and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111645562.8A CN114363939B (en) 2021-12-29 2021-12-29 Node simulation test method, device, storage medium, processor and equipment

Publications (2)

Publication Number Publication Date
CN114363939A true CN114363939A (en) 2022-04-15
CN114363939B CN114363939B (en) 2024-01-19

Family

ID=81102926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111645562.8A Active CN114363939B (en) 2021-12-29 2021-12-29 Node simulation test method, device, storage medium, processor and equipment

Country Status (1)

Country Link
CN (1) CN114363939B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102858023A (en) * 2011-06-30 2013-01-02 安移通网络公司 Method and equipment for role discovery and automatic wireless configuration of grid nodes
CN104486167A (en) * 2014-12-31 2015-04-01 无锡儒安科技有限公司 Concurrence network performance and network trending direction testing method based on MESH network
CN105930261A (en) * 2016-01-16 2016-09-07 平安科技(深圳)有限公司 Test method and test terminal
CN107359944A (en) * 2017-08-28 2017-11-17 中国信息通信研究院 Bluetooth equipment radio frequency test system
US20170339630A1 (en) * 2016-05-20 2017-11-23 7Signal Solutions, Inc. System and method for wireless network performance measurement and management using remote devices
CN107885674A (en) * 2017-10-18 2018-04-06 北京明华联盟科技有限公司 Bluetooth equipment simulator and its method of work, bluetooth equipment operating system
KR20180092357A (en) * 2017-02-09 2018-08-20 충남대학교산학협력단 System and method for analysing Robustness test of Bluetooth Low Energy
EP3461166A1 (en) * 2017-09-22 2019-03-27 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. A method to classify a neighbor in an ad-hoc network, a classification device, a vehicle comprising a classification device and a computer program
CN109890019A (en) * 2018-07-05 2019-06-14 深圳贝仕达克技术股份有限公司 A kind of bluetooth test method, test equipment and the storage medium of terminal
CN110876155A (en) * 2018-08-31 2020-03-10 阿里巴巴集团控股有限公司 Simulation system and method for wireless mesh network
CN111742505A (en) * 2019-12-16 2020-10-02 深圳市汇顶科技股份有限公司 Method for testing low-power-consumption Bluetooth BLE product and BLE device
CN112055343A (en) * 2020-08-21 2020-12-08 北京小米移动软件有限公司 Bluetooth Mesh network flooding method, device and storage medium
CN112584364A (en) * 2019-09-30 2021-03-30 阿里巴巴集团控股有限公司 Bluetooth network, communication method, device and storage medium thereof
CN112839323A (en) * 2020-12-31 2021-05-25 Tcl通力电子(惠州)有限公司 Bluetooth device testing method and device, terminal and computer readable storage medium
US20210211905A1 (en) * 2018-03-16 2021-07-08 Telefonaktiebolaget Lm Ericsson (Publ) Methods and nodes for obtaining information regarding a bluetooth mesh network
CN113473427A (en) * 2021-06-11 2021-10-01 苏州集萃智造大数据科技有限公司 Bluetooth Mesh network flooding redundancy optimization method based on neighbor information
CN113784455A (en) * 2021-09-18 2021-12-10 深圳市久通物联科技股份有限公司 Bluetooth matrix networking method, system, terminal and storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102858023A (en) * 2011-06-30 2013-01-02 安移通网络公司 Method and equipment for role discovery and automatic wireless configuration of grid nodes
CN104486167A (en) * 2014-12-31 2015-04-01 无锡儒安科技有限公司 Concurrence network performance and network trending direction testing method based on MESH network
CN105930261A (en) * 2016-01-16 2016-09-07 平安科技(深圳)有限公司 Test method and test terminal
US20170339630A1 (en) * 2016-05-20 2017-11-23 7Signal Solutions, Inc. System and method for wireless network performance measurement and management using remote devices
KR20180092357A (en) * 2017-02-09 2018-08-20 충남대학교산학협력단 System and method for analysing Robustness test of Bluetooth Low Energy
CN107359944A (en) * 2017-08-28 2017-11-17 中国信息通信研究院 Bluetooth equipment radio frequency test system
EP3461166A1 (en) * 2017-09-22 2019-03-27 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. A method to classify a neighbor in an ad-hoc network, a classification device, a vehicle comprising a classification device and a computer program
CN107885674A (en) * 2017-10-18 2018-04-06 北京明华联盟科技有限公司 Bluetooth equipment simulator and its method of work, bluetooth equipment operating system
US20210211905A1 (en) * 2018-03-16 2021-07-08 Telefonaktiebolaget Lm Ericsson (Publ) Methods and nodes for obtaining information regarding a bluetooth mesh network
CN109890019A (en) * 2018-07-05 2019-06-14 深圳贝仕达克技术股份有限公司 A kind of bluetooth test method, test equipment and the storage medium of terminal
CN110876155A (en) * 2018-08-31 2020-03-10 阿里巴巴集团控股有限公司 Simulation system and method for wireless mesh network
CN112584364A (en) * 2019-09-30 2021-03-30 阿里巴巴集团控股有限公司 Bluetooth network, communication method, device and storage medium thereof
CN111742505A (en) * 2019-12-16 2020-10-02 深圳市汇顶科技股份有限公司 Method for testing low-power-consumption Bluetooth BLE product and BLE device
WO2021119922A1 (en) * 2019-12-16 2021-06-24 深圳市汇顶科技股份有限公司 Bluetooth low energy ble product testing method and ble apparatus
CN112055343A (en) * 2020-08-21 2020-12-08 北京小米移动软件有限公司 Bluetooth Mesh network flooding method, device and storage medium
CN112839323A (en) * 2020-12-31 2021-05-25 Tcl通力电子(惠州)有限公司 Bluetooth device testing method and device, terminal and computer readable storage medium
CN113473427A (en) * 2021-06-11 2021-10-01 苏州集萃智造大数据科技有限公司 Bluetooth Mesh network flooding redundancy optimization method based on neighbor information
CN113784455A (en) * 2021-09-18 2021-12-10 深圳市久通物联科技股份有限公司 Bluetooth matrix networking method, system, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A. AL-FUQAHA, M. GUIZANI, M. MOHAMMADI, M. ALEDHARI AND M. AYYASH: "Internet of Things: A Survey on Enabling Technologies, Protocols, and Applications", IEEE COMMUNICATIONS SURVEYS & TUTORIALS *
杨向东, 王培东, 任相花, 江英: "基于嵌入式无线局域网接入控制器协议模型研究", 哈尔滨理工大学学报, no. 01 *

Also Published As

Publication number Publication date
CN114363939B (en) 2024-01-19

Similar Documents

Publication Publication Date Title
CN111181801B (en) Node cluster testing method and device, electronic equipment and storage medium
CN108696399B (en) Business service test method and device
CN100471139C (en) System and method for network test
CN109408132A (en) A kind of configuration file processing method and server, user terminal, storage medium
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
CN105468513B (en) Test method, device and system based on mobile terminal
CN110519127B (en) Network delay detection method, device and storage medium
CN104253869A (en) Blacklist sharing method, blacklist updating method, blacklist sharing device and blacklist updating device
CN112584422B (en) Method and device for acquiring performance of 5G terminal
CN113268243B (en) Memory prediction method and device, storage medium and electronic equipment
CN103209103A (en) Testing method and testing apparatus of network device
CN103605549A (en) Interface exit display method and device
CN114095567A (en) Data access request processing method and device, computer equipment and medium
CN107086937A (en) A kind of monitoring method and equipment
CN109144837B (en) User behavior pattern recognition method supporting accurate service push
CN104468281A (en) Routing information protocol simulator and routing information protocol communication test method thereof
CN111683372B (en) Attribute information processing method, attribute information processing device, processor and terminal
CN105337810A (en) Method and system for constructing network testing data
CN104937613A (en) Heuristics to quantify data quality
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN109639494B (en) Statistical method, device, server and storage medium of interface information
CN114363939B (en) Node simulation test method, device, storage medium, processor and equipment
CN113704765A (en) Operating system identification method and device based on artificial intelligence and electronic equipment
CN116319492A (en) Switch testing method and device, storage medium and electronic equipment
CN109768897B (en) Server deployment method and device

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