CN114363939B - 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
CN114363939B
CN114363939B CN202111645562.8A CN202111645562A CN114363939B CN 114363939 B CN114363939 B CN 114363939B CN 202111645562 A CN202111645562 A CN 202111645562A CN 114363939 B CN114363939 B CN 114363939B
Authority
CN
China
Prior art keywords
bluetooth mesh
node
nodes
mesh network
virtual space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111645562.8A
Other languages
Chinese (zh)
Other versions
CN114363939A (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

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a node simulation test method, a device, a storage medium, a processor and equipment. Wherein the method comprises the following steps: simulating a plurality of Bluetooth mesh network nodes and a simulation target virtual space on the terminal equipment, wherein the plurality of Bluetooth mesh network nodes are a plurality of virtual Bluetooth mesh network equipment, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh network nodes; in the target virtual space, a test report is generated based on communication interactions between some or all of the plurality of bluetooth mesh nodes. The invention solves the technical problem of low testing 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 communications technologies, and in particular, to a node simulation test method, a device, a storage medium, a processor, and a processor device.
Background
The wireless mesh network is one of 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 keep wireless interconnection.
Parameters and density of the bluetooth mesh nodes have a great influence on performance and stability of the bluetooth mesh network, in related schemes, in order to obtain proper parameter configuration, manual setting parameters are generally adopted for testing, but the testing process is complex in operation, and a great amount of time cost and labor cost are required to be consumed.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a node simulation test method, a device, a storage medium, a processor and equipment, which are used for at least solving the technical problem of low test efficiency of a Bluetooth mesh node in the related technology.
According to one embodiment of the present application, there is provided a node simulation test method, including: 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 devices, and the target virtual space is used for determining a coverage range of networking of the plurality of Bluetooth mesh nodes; in the target virtual space, a test report is generated based on communication interactions between some or all of the plurality of bluetooth mesh nodes.
Optionally, simulating the plurality of bluetooth mesh nodes on the terminal device and simulating the target virtual space includes: obtaining configuration information, wherein the configuration information comprises: the method comprises the steps of determining the number of nodes of a plurality of blue tooth mesh network nodes and area information, wherein 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 network nodes in the target virtual space according to the quantity information.
Optionally, the node simulation test method further comprises: 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 within the target virtual space; the radio frequency receiving and transmitting range of each Bluetooth mesh network node; the lifetime of each bluetooth mesh node; whether each bluetooth mesh node opens a relay; the number of network retransmissions per bluetooth mesh node.
Optionally, generating the test report based on communication interactions between some or all of the plurality of bluetooth mesh nodes within the target virtual space includes: acquiring a request message sent by a first bluetooth mesh network node, wherein the first bluetooth mesh network node is any one of a plurality of bluetooth mesh network nodes, and the first bluetooth mesh network node is a source node of the request message, and the information carried in the request message at least comprises: at least one second bluetooth mesh node, the mesh address and message data of the at least one second bluetooth mesh node being a destination node requesting the message; inquiring network parameters of at least one second Bluetooth mesh network node and network parameters of at least one third Bluetooth mesh network node from a database in response to the request message, wherein the at least one third Bluetooth mesh network node is a relay node of the request message; and carrying out message transmission between the first Bluetooth mesh network node and at least one second Bluetooth mesh network node based on the inquired network parameters, and generating a test report.
Optionally, the node simulation test method further comprises: analyzing the test report to obtain an evaluation parameter corresponding to the target virtual space, wherein the evaluation parameter comprises: network traffic and message arrival rate for bluetooth mesh; network parameters of some or all of the plurality of bluetooth mesh nodes are adjusted based on the evaluation parameters.
According to one 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 network nodes and simulating a target virtual space on the terminal equipment, wherein the plurality of Bluetooth mesh network nodes are a plurality of virtual Bluetooth mesh network equipment, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh network nodes; and the test module is used for generating a test report based on communication interaction among part or all 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 system comprises quantity information and area information, wherein the quantity information is used for determining the node quantity of a plurality of Bluetooth mesh network 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 network nodes in the target virtual space according to the quantity information.
Optionally, the node simulation test device further comprises: the system comprises a setting module for setting a management center, wherein the management center is provided with a database for storing network parameters of each of 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 within the target virtual space; the radio frequency receiving and transmitting range of each Bluetooth mesh network node; the lifetime of each bluetooth mesh node; whether each bluetooth mesh node opens a relay; the number of network retransmissions per bluetooth mesh node.
Optionally, the test module is further configured to: acquiring a request message sent by a first bluetooth mesh network node, wherein the first bluetooth mesh network node is any one of a plurality of bluetooth mesh network nodes, and the first bluetooth mesh network node is a source node of the request message, and the information carried in the request message at least comprises: at least one second bluetooth mesh node, the mesh address and message data of the at least one second bluetooth mesh node being a destination node for the request message; inquiring network parameters of at least one second Bluetooth mesh network node and network parameters of at least one third Bluetooth mesh network node from a database in response to the request message, wherein the at least one third Bluetooth mesh network node is a relay node of the request message; and carrying out message transmission between the first Bluetooth mesh network node and at least one second Bluetooth mesh network node based on the inquired network parameters, and generating a test report.
Optionally, the node simulation test device further comprises: the analysis module is used for analyzing the test report and obtaining an evaluation parameter corresponding to the target virtual space, wherein the evaluation parameter comprises: network traffic and message arrival rate for bluetooth mesh; and the adjusting module is used for adjusting network parameters of part or all of the Bluetooth mesh network nodes in the plurality of Bluetooth mesh network nodes based on the evaluation parameters.
According to one embodiment of the present application, there is also provided a non-volatile storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the node simulation test method of any one of the above when run.
According to one embodiment of the present application, there is further provided a processor for running a program, wherein the program is configured to execute the node simulation test method of any one of the above at runtime.
According to one embodiment of the present application, there is also provided a terminal device including a memory and a processor, the memory having stored therein a computer program, the processor being arranged to run the computer program to perform the node simulation test method of any of the above.
In the embodiment of the application, a plurality of bluetooth mesh nodes are simulated on a terminal device and a target virtual space is simulated, 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 coverage range of networking of the plurality of bluetooth mesh nodes; and then, in the target virtual space, based on communication interaction among part or all of the plurality of Bluetooth mesh network nodes, a test report is generated, 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 achieved, 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 embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation. In the drawings:
FIG. 1 is a flow chart of a node simulation test method according to one embodiment of the present application;
FIG. 2 is a flow chart of yet another node simulation test method in accordance with one embodiment of the present application;
fig. 3 is a block diagram of a node simulation test apparatus according to one embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The parameters and the density of the Bluetooth mesh node have great influence on the performance and the stability of the Bluetooth mesh network, wherein the parameters of the Bluetooth mesh node comprise: whether To turn on the relay function, time To Live (TTL), the number of network retransmissions. These node parameters affect 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 become higher.
Therefore, it is necessary to test the impact of node parameters on network performance and eventually find an optimal parameter configuration to achieve an optimal balance between network performance and stability.
In the related scheme, a manual mode is adopted to test the Bluetooth mesh node, and the specific process is as follows: a bluetooth mesh environment is created, comprising 100 nodes, each node being a bluetooth device. In order to test the performance of density versus mesh network, it is necessary to prepare various rooms with different areas and arrange bluetooth mesh nodes according to the corresponding density. The configuration information is required to be downloaded for each node at each test node point, so that parameters of all nodes are changed, manual configuration is required for the parameters tested each time, the test process is complex, the cost is high, and the test efficiency for the mesh node is low.
According to one embodiment of the present application, there is provided an embodiment of a node simulation test method, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order other than that shown or described herein.
The method embodiment can be executed in a node simulation test system. The node simulation test system comprises: and a terminal device. The terminal device may be a personal computer (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 palmtop computer, and a mobile internet device (Mobile Internet Devices, MID). A bluetooth mesh network may be emulated on the terminal device. The Bluetooth mesh network comprises a first Bluetooth mesh network node, a second Bluetooth mesh network node, a third Bluetooth mesh network node and a management center. The first Bluetooth mesh network node is a source node for requesting information, the second Bluetooth mesh network node is a destination node for requesting information, and the third Bluetooth mesh network node is a relay node for requesting information. The management center is provided with a database for storing network parameters of each of the plurality of bluetooth mesh nodes.
By the method, a plurality of Bluetooth mesh network nodes are simulated on the terminal equipment, the plurality of Bluetooth mesh network nodes are virtual Bluetooth mesh network equipment, and a target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh network nodes; and further, in the target virtual space, based on communication interaction among part or all of the plurality of Bluetooth mesh network nodes, a test report is generated, so that an actual Bluetooth mesh network can be accurately simulated, and automatic test on the mesh network is realized.
The internal body structure of the terminal device will be described as an example.
The terminal device may include one or more processors (the processors may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processor (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a 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 appreciated by those of ordinary skill in the art that the foregoing structural descriptions are merely exemplary and are not intended to limit the structures of the mobile terminals described above. For example, the mobile terminal may also include more or fewer components than the above structural description, or have a different configuration than the above structural description.
The memory may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to the method described in the embodiments of the present application, and the processor executes the computer program stored in the memory, thereby performing various functional applications and data processing, that is, implementing the method 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 remotely located with respect to the processor, the remote memory being connectable 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 for receiving or transmitting 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 (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through the 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 wirelessly.
Display devices may be, for example, touch screen type Liquid Crystal Displays (LCDs) and touch displays (also referred to as "touch screens" or "touch display screens"). 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), and the user may interact with the GUI by touching finger contacts and/or gestures on the touch-sensitive surface, where the man-machine interaction functions optionally include the following interactions: executable instructions for performing the above-described human-machine interaction functions, such as creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving electronic mail, talking interfaces, playing digital video, playing digital music, and/or web browsing, are configured/stored in a computer program product or readable storage medium executable by one or more processors.
FIG. 1 is a flow chart of a node simulation test method according to one embodiment of the present application, as shown in FIG. 2, the flow includes the following steps:
step S11, simulating a plurality of Bluetooth mesh network nodes and a simulated target virtual space on the terminal equipment, wherein the plurality of Bluetooth mesh network nodes are a plurality of virtual Bluetooth mesh network equipment, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh network nodes;
in particular, the process of simulating a plurality of bluetooth mesh nodes and simulating a target virtual space on the terminal device may be further described with reference to the embodiments of the present application, which will not be repeated.
Step S12, generating a test report based on communication interaction among some or all of the plurality of Bluetooth mesh nodes in the target virtual space.
Specifically, based on communication interaction between some or all of 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, which is not repeated.
Through the steps S11 to S12, a plurality of bluetooth mesh nodes are simulated on the terminal device and a target virtual space is simulated, wherein the plurality of bluetooth mesh nodes are a plurality of virtual bluetooth mesh devices, and the target virtual space is used for determining a coverage range of networking of the plurality of bluetooth mesh nodes; and then in the target virtual space, based on communication interaction among part or all of the plurality of Bluetooth mesh network nodes, a test report is generated, 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 achieved, 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 embodiment is further described below.
Optionally, at step S11, simulating the plurality of bluetooth mesh nodes and the simulation target virtual space on the terminal device includes:
step S111, obtaining configuration information, where the configuration information includes: the system comprises a number information and area information, wherein the number information is used for determining the node number of a plurality of Bluetooth mesh network 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;
step S113, a plurality of Bluetooth mesh nodes are randomly arranged in the target virtual space according to the quantity information.
Specifically, the number of 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 arranged 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 can simulate the Bluetooth mesh network environment of each area and the density of Bluetooth mesh nodes.
Based on the steps S111 to S113, the configuration information is obtained, and then the target virtual space is generated based on the area information in the configuration information, and a plurality of bluetooth mesh nodes are randomly set in the target virtual space according to the quantity information of good quality products 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 set in the physical space when the nodes are tested, the cost is high, the number of the nodes which can be tested is limited, and the embodiment of the application can directly simulate a large number of Bluetooth mesh nodes through terminal equipment, so that the test cost can be effectively reduced.
Optionally, the node simulation test method further comprises:
step S10, a management center is provided, wherein the management center is provided with a database for storing network parameters of each of 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 within the target virtual space; the radio frequency receiving and transmitting range of each Bluetooth mesh network node; the lifetime of each bluetooth mesh node; whether each bluetooth mesh node opens a relay; the number of network retransmissions per bluetooth mesh node.
Optionally, at step S12, generating the test report based on communication interactions between some or all of the plurality of bluetooth mesh nodes within the target virtual space includes:
step S121, a request message sent by a first bluetooth mesh node is obtained, where the first bluetooth mesh node is any bluetooth mesh node in a 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: at least one second bluetooth mesh node, the mesh address and message data of the at least one second bluetooth mesh node being a destination node for the request message;
the mesh address of the at least one second bluetooth mesh node includes any one of a unicast address, a multicast address, and a broadcast address.
Step S122, inquiring network parameters of at least one second Bluetooth mesh network node and network parameters of at least one third Bluetooth mesh network node from a database in response to the request message, wherein the at least one third Bluetooth mesh network node is a relay node of the request message;
step S123, performing message transfer between the first bluetooth mesh node and at least one second bluetooth mesh node based on the queried network parameters, and generating a test report.
As an alternative embodiment, information of the bluetooth mesh network, such as the number of relays, the number of data packets per unit time, etc., may be displayed on the terminal device in real time.
As an alternative embodiment, the terminal device generates the test report by running an automation configuration script.
For example, the first bluetooth mesh node sends a request message by broadcasting, and the TTL value is 0, the management center responds to the request message, and queries network parameters of at least one third bluetooth mesh node existing in a radio frequency range of the management center by taking the first bluetooth mesh node as a center from the database, and performs message transmission between the first bluetooth mesh node and the at least one second bluetooth mesh node by taking the at least one third bluetooth mesh node as a relay node, and the terminal device runs an automatic configuration script according to the network parameters in the simulated message transmission process so as to output a test report.
Based on the steps S121 to S123, by acquiring the request message sent by the first bluetooth mesh node, further responding to the request message, inquiring 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 transfer between the first bluetooth mesh node and the at least one second bluetooth mesh node based on the inquired network parameters to generate a test report, the communication interaction process of the bluetooth mesh network can be simulated based on the bluetooth mesh node simulated on the terminal device, further based on the transmission data packet in the communication interaction process, the test report is quickly generated, the automatic test of the bluetooth mesh node is realized, and the test efficiency is improved.
Optionally, the node simulation test method further comprises:
step S13, analyzing the test report to obtain an evaluation parameter corresponding to the target virtual space, wherein the evaluation parameter comprises: network traffic and message arrival rate for bluetooth mesh;
step S14, adjusting network parameters of some or all bluetooth mesh nodes of 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 above steps S13 to S14, by analyzing the test report, the evaluation parameters corresponding to the target virtual space are obtained, and then based on the evaluation parameters, the network parameters of some or all bluetooth mesh nodes in the plurality of bluetooth mesh nodes are adjusted, so that the corresponding evaluation parameters in the test report can be analyzed, and based on the evaluation parameters, the network parameters of the bluetooth mesh nodes are adjusted, so as to obtain the optimal parameter configuration.
FIG. 2 is a flow chart of yet another node simulation test method according to one embodiment of the present application, as shown in FIG. 2, the flow 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, configuration information is acquired, wherein the configuration information comprises: the system comprises a number information and area information, wherein the number information is used for determining the node number of a plurality of Bluetooth mesh network 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 a target virtual space according to the quantity information;
step S205, obtaining a request message sent by a first Bluetooth mesh node;
step S206, inquiring network parameters of at least one second Bluetooth mesh node and network parameters of at least one third Bluetooth mesh node from the database in response to the request message;
step S207, message transmission is carried out between the first Bluetooth mesh network node and at least one second Bluetooth mesh network node based on the inquired network parameters, 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, adjusting network parameters of some or all bluetooth mesh nodes of the plurality of bluetooth mesh nodes based on the evaluation parameters.
Based on the steps S201 to S209, the purposes of simulating the Bluetooth mesh node and efficiently generating the test report are 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 technology is solved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiment also provides a node simulation test device, which is used for implementing the above embodiment and the preferred implementation, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, 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 one 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 the terminal device, a plurality of bluetooth mesh nodes and simulate a 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 by the plurality of bluetooth mesh nodes;
the test module 302 is configured to generate a test report based on communication interactions between 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 system comprises quantity information and area information, wherein the quantity information is used for determining the node quantity of a plurality of Bluetooth mesh network 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 network nodes in the target virtual space according to the quantity information.
Optionally, the node simulation test device further comprises: a setting module 303, configured to set a management center, where the management center is configured with a database, and the database is configured to store network parameters of each bluetooth mesh node 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 within the target virtual space; the radio frequency receiving and transmitting range of each Bluetooth mesh network node; the lifetime of each bluetooth mesh node; whether each bluetooth mesh node opens a relay; the number of network retransmissions per bluetooth mesh node.
Optionally, the test module 302 is further configured to: acquiring a request message sent by a first bluetooth mesh network node, wherein the first bluetooth mesh network node is any one of a plurality of bluetooth mesh network nodes, and the first bluetooth mesh network node is a source node of the request message, and the information carried in the request message at least comprises: at least one second Bluetooth mesh node serving as a destination node for the request message; inquiring network parameters of at least one second Bluetooth mesh network node and network parameters of at least one third Bluetooth mesh network node from a database in response to the request message, wherein the at least one third Bluetooth mesh network node is a relay node for the request message; and carrying out message transmission between the first Bluetooth mesh network node and at least one second Bluetooth mesh network node based on the inquired network parameters, and generating a test report.
Optionally, the node simulation test device further comprises: the analysis module 304 is 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 bluetooth mesh; an adjustment module 305 is configured to adjust network parameters of some or all of the plurality of bluetooth mesh nodes based on the evaluation parameters.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the modules may be located in different processors in any combination.
Embodiments of the present application also provide a non-volatile storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described nonvolatile storage medium may be configured to store a computer program for performing the steps of:
s1, simulating a plurality of Bluetooth mesh network nodes and a simulated target virtual space on a terminal device, wherein the plurality of Bluetooth mesh network nodes are a plurality of virtual Bluetooth mesh network devices, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh network nodes;
s2, generating a test report based on communication interaction among part or all of the plurality of Bluetooth mesh nodes in the target virtual space.
Alternatively, in the present embodiment, the above-described nonvolatile storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Embodiments of the present application also provide a terminal device comprising a memory, a processor, the memory having stored therein a computer program, the processor being arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, simulating a plurality of Bluetooth mesh network nodes and a simulated target virtual space on a terminal device, wherein the plurality of Bluetooth mesh network nodes are a plurality of virtual Bluetooth mesh network devices, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh network nodes;
s2, generating a test report based on communication interaction among part or all of the plurality of Bluetooth mesh nodes in the target virtual space.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, units or modules, and may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods 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, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or the like, which can store program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (7)

1. A method for node simulation testing, comprising:
simulating a plurality of Bluetooth mesh network nodes and a simulated target virtual space on a terminal device, wherein the plurality of Bluetooth mesh network nodes are a plurality of virtual Bluetooth mesh network devices, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh network nodes;
generating a test report in the target virtual space based on communication interaction among some or all of the plurality of bluetooth mesh nodes, wherein the test report is used for reflecting bluetooth mesh network performance among some or all of the plurality of bluetooth mesh nodes in the target virtual space;
wherein simulating the plurality of bluetooth mesh nodes and the target virtual space on the terminal device comprises:
acquiring configuration information, wherein the configuration information comprises: quantity information for determining the number of nodes of the plurality of bluetooth mesh nodes and area information for determining a coverage area of the target virtual space; generating the target virtual space based on the area information; randomly setting a plurality of Bluetooth mesh network nodes in the target virtual space according to the quantity information;
wherein generating the test report based on communication interactions between 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 network node, wherein the first bluetooth mesh network node is any bluetooth mesh network node in the plurality of bluetooth mesh network nodes, and the first bluetooth mesh network node is a source node of the request message, and the information carried in the request message at least comprises: mesh address and message data of at least one second bluetooth mesh node, said at least one second bluetooth mesh node being a destination node of said request message; inquiring network parameters of the at least one second Bluetooth mesh network node and network parameters of at least one third Bluetooth mesh network node from a database in response to the request message, wherein the at least one third Bluetooth mesh network node is a relay node of the request message; message passing is carried out between the first Bluetooth mesh network node and the at least one second Bluetooth mesh network node based on the inquired network parameters, and the test report is generated;
the node simulation test method further comprises the following steps: analyzing the test report to obtain an evaluation parameter corresponding to the target virtual space, wherein the evaluation parameter comprises: network traffic and message arrival rate for bluetooth mesh; network parameters of some or all of the plurality of bluetooth mesh nodes are adjusted based on the evaluation parameters.
2. The node simulation test method according to claim 1, further comprising:
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.
3. The node simulation test method according to claim 2, wherein the network parameters include:
a mesh address of each bluetooth mesh node;
coordinates of each bluetooth mesh node within the target virtual space;
the radio frequency receiving and transmitting range of each Bluetooth mesh network node;
the lifetime of each bluetooth mesh node;
whether each bluetooth mesh node opens a relay;
the number of network retransmissions per bluetooth mesh node.
4. A node simulation test device, comprising:
the simulation module is used for simulating a plurality of Bluetooth mesh network nodes and simulating a target virtual space on the terminal equipment, wherein the plurality of Bluetooth mesh network nodes are a plurality of virtual Bluetooth mesh network equipment, and the target virtual space is used for determining the coverage range of networking of the plurality of Bluetooth mesh network nodes;
the testing module is used for generating a testing report based on communication interaction among part or all of the plurality of Bluetooth mesh nodes in the target virtual space, wherein the testing report is used for reflecting Bluetooth mesh network performance among the part or all of the plurality of Bluetooth mesh nodes in the target virtual space;
wherein the simulation module is further configured to: acquiring configuration information, wherein the configuration information comprises: quantity information for determining the number of nodes of the plurality of bluetooth mesh nodes and area information for determining a coverage area of the target virtual space; generating the target virtual space based on the area information; randomly setting a plurality of Bluetooth mesh network nodes in the target virtual space according to the quantity information;
wherein, the test module is further for:
acquiring a request message sent by a first bluetooth mesh network node, wherein the first bluetooth mesh network node is any bluetooth mesh network node in the plurality of bluetooth mesh network nodes, and the first bluetooth mesh network node is a source node of the request message, and the information carried in the request message at least comprises: mesh address and message data of at least one second bluetooth mesh node, said at least one second bluetooth mesh node being a destination node of said request message; inquiring network parameters of the at least one second Bluetooth mesh network node and network parameters of at least one third Bluetooth mesh network node from a database in response to the request message, wherein the at least one third Bluetooth mesh network node is a relay node of the request message; message passing is carried out between the first Bluetooth mesh network node and the at least one second Bluetooth mesh network node based on the inquired network parameters, and the test report is generated;
wherein, the node simulation test device further comprises: the analysis module is used for analyzing the test report and obtaining an evaluation parameter corresponding to the target virtual space, wherein the evaluation parameter comprises: network traffic and message arrival rate for bluetooth mesh; and the adjusting module is used for adjusting network parameters of part or all of the Bluetooth mesh network nodes in the plurality of Bluetooth mesh network nodes based on the evaluation parameters.
5. A non-volatile storage medium, characterized in that a computer program is stored in the storage medium, wherein the computer program is arranged to perform the node simulation test method of any of the claims 1 to 3 at run-time.
6. A processor, characterized in that the processor is adapted to run a program, wherein the program is arranged to execute the node simulation test method of any of the claims 1 to 3 at run-time.
7. A terminal device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the node simulation test method of any of the claims 1 to 3.
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 CN114363939A (en) 2022-04-15
CN114363939B true 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 (15)

* 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
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10251120B2 (en) * 2016-05-20 2019-04-02 7Signal Solutions, Inc. System and method for wireless network performance measurement and management using remote devices
EP3766276B1 (en) * 2018-03-16 2023-11-15 Telefonaktiebolaget Lm Ericsson (Publ) Methods and nodes for obtaining information regarding a bluetooth mesh network

Patent Citations (16)

* 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
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
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
Internet of Things: A Survey on Enabling Technologies, Protocols, and Applications;A. Al-Fuqaha, M. Guizani, M. Mohammadi, M. Aledhari and M. Ayyash;IEEE Communications Surveys & Tutorials;全文 *
基于嵌入式无线局域网接入控制器协议模型研究;杨向东, 王培东, 任相花, 江英;哈尔滨理工大学学报(01);全文 *

Also Published As

Publication number Publication date
CN114363939A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN111181801B (en) Node cluster testing method and device, electronic equipment and storage medium
CN102740342B (en) The analog detection method of Network Management Equipment performance and system
CN100471139C (en) System and method for network test
CN108696399B (en) Business service test method and device
CN109921947B (en) Network flow simulation method, device, equipment and network equipment test system
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
CN109525461A (en) A kind of test method of the network equipment, device, equipment and storage medium
CN104253869A (en) Blacklist sharing method, blacklist updating method, blacklist sharing device and blacklist updating device
CN101334739A (en) System and method for managing evolving user preferences
CN112988608B (en) Data testing method and device, computer equipment and storage medium
Ahmed et al. A flexible testbed architecture for VANET
CN103605549A (en) Interface exit display method and device
CN109701278A (en) A kind of play instruction method, apparatus, equipment and storage medium
CN104468281A (en) Routing information protocol simulator and routing information protocol communication test method thereof
CN112202739B (en) Flow monitoring method and device
CN111683372B (en) Attribute information processing method, attribute information processing device, processor and terminal
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN114363939B (en) Node simulation test method, device, storage medium, processor and equipment
CN105337810A (en) Method and system for constructing network testing data
CN113704765A (en) Operating system identification method and device based on artificial intelligence and electronic equipment
CN114253823A (en) Distributed test method and related equipment
US6597694B1 (en) System and method for generating bulk calls and emulating applications
CN114337896B (en) Equipment state processing method and device, storage medium and electronic device
CN105610698A (en) Event result processing method and device
CN116319492A (en) Switch testing method and device, storage medium and electronic equipment

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