Test data generation method and device, electronic equipment and storage medium
By pre-storing and sending real position relationship data of the target site area and generating test data, the problem of frequent entry and exit of staff in dangerous areas during positioning engine debugging is solved, debugging safety and efficiency are improved, and human resource consumption is reduced.
Patent Information
- Application Number
- CN202411861893.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-11
AI Technical Summary
In the prior art, debugging of positioning engines requires staff to frequently enter and exit dangerous target site areas, resulting in low debugging safety, low efficiency and high human resources consumption.
By pre-storing the real position relationship data between the preset sampling point and the preset beacon in the target field area, it is sent to the current positioning engine to be debugged to generate test data to avoid repeated sampling.
Improve debugging safety and efficiency, reduce human resource consumption, and avoid frequent entry and exit of staff in dangerous areas.
Smart Images

Figure CN119807500A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular to a test data generating method, device, electronic device and storage medium. Background Art
[0002] The positioning engine has a significant impact on all walks of life, and the continuous upgrading of the positioning engine has become a key link in ensuring the positioning accuracy of the positioning engine.
[0003] In the prior art, before each upgrade of the positioning engine, staff are required to go to the designated test site based on the test requirements, and obtain the positioning data of each collection point in the on-site area through the current positioning engine to be debugged, and use the collected positioning data as test data for the positioning engine to complete the debugging and upgrade of the positioning engine.
[0004] However, in the process of implementing the present invention, it was found that the prior art has at least the following technical problems: the test site is usually complex and dangerous, and it is inconvenient for workers to enter and exit frequently; and each debugging requires workers to go to the designated test site, which consumes a lot of human resources and has low debugging efficiency. Summary of the invention
[0005] The embodiments of the present invention provide a test data generation method, device, electronic device and storage medium to avoid workers from frequently entering and exiting dangerous target site areas, thereby improving debugging safety and debugging efficiency and reducing human resource consumption.
[0006] According to one aspect of the present invention, there is provided a test data generating method, comprising:
[0007] In response to a debugging trigger operation of a current positioning engine to be debugged, sending pre-stored real position relationship data between a preset sampling point in a target field area and at least one preset beacon to the current positioning engine to be debugged;
[0008] Receiving the sampling positioning data of the preset sampling point sent by the current positioning engine, and forming test data for the current positioning engine by the real position data of the preset sampling point acquired in advance and the sampling positioning data;
[0009] The sampled positioning data is the position data reflecting the preset sampling point determined by the current positioning engine based on the received real position relationship data and the real position data of the preset beacon.
[0010] According to another aspect of the present invention, there is provided a test data generating device, the device comprising:
[0011] A data sending module, configured to send the real position relationship data between the preset sampling points and at least one preset beacon in the target field area stored in advance to the current positioning engine to be debugged in response to the debugging trigger operation of the current positioning engine to be debugged;
[0012] A data receiving module, used for receiving the sampling positioning data of the preset sampling point sent by the current positioning engine, and the real position data of the preset sampling point acquired in advance and the sampling positioning data constitute the test data for the current positioning engine;
[0013] The sampled positioning data is the position data reflecting the preset sampling point determined by the current positioning engine based on the received real position relationship data and the real position data of the preset beacon.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the test data generating method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the test data generating method described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention, in response to the debugging trigger operation of the current positioning engine to be debugged, sends the real position relationship data between the preset sampling point and at least one preset beacon in the pre-stored target field area to the current positioning engine to be debugged; since the preset sampling point and the preset beacon are both fixed positions, it means that the real position relationship data between the preset sampling point and the preset beacon is also the relationship data between the real fixed positions, which does not change with time; by receiving the sampled positioning data of the preset sampling point sent by the current positioning engine, the real position data and the sampled positioning data of the preset sampling point obtained in advance are used to form the test data for the current positioning engine. The technical solution provided by this embodiment, since the fixed real position relationship data is pre-stored, each time the current positioning engine to be debugged is debugged, the test data can be determined by the pre-stored real position relationship data, without the need to go to the preset sampling point in the target field area for re-sampling, avoiding the staff from frequently entering and exiting the dangerous target field area, improving the debugging safety and debugging efficiency, and reducing the human resource consumption.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a test data generating method provided according to an embodiment of the present invention;
[0023] Figure 2 is a flow chart of another test data generating method provided according to an embodiment of the present invention;
[0024] Figure 3 is a structural schematic diagram of a test data generating device provided according to an embodiment of the present invention;
[0025] Figure 4 It is a structural schematic diagram of an electronic device for implementing the test data generating method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "etc." and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0028] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.
[0029] Figure 1 This is a flow chart of a test data generation method provided according to an embodiment of the present invention. This embodiment is applicable to the case of generating test data for debugging a positioning engine. The method can be executed by a test data generation device, which can be implemented in the form of hardware and / or software.
[0030] like Figure 1 As shown, the method of this embodiment may specifically include:
[0031] S110 . In response to a debugging trigger operation on a current positioning engine to be debugged, sending pre-stored real position relationship data between a preset sampling point in a target field area and at least one preset beacon to the current positioning engine to be debugged.
[0032] The target site area is the test area specified according to the test requirements; for example, the target site area may include chemical plants and coal mines. The preset sampling point is the location in the preset target site area where the positioning data needs to be determined; the preset beacon is a preset positioning beacon, which is a device composed of radio signals and is used to provide location information. The current positioning engine is the positioning engine that currently needs to be debugged.
[0033] In this embodiment, the debugging trigger operation of the current positioning engine to be debugged includes: clicking the debugging control displayed on the display interface, receiving a voice command to debug the current positioning engine, and the current time being a preset debugging time. Among them, the display interface is used to show the developer an interface of the debugging process of the current positioning engine.
[0034] In this embodiment, the number of preset sampling points and preset beacons can be multiple, and the preset sampling points can be multiple constituent points in the preset sampling trajectory. For each pair of preset sampling points and preset beacons, there is a corresponding real position relationship data. It should be noted that, since the preset sampling points and preset beacons are real and fixed positions, the real position relationship data between the preset sampling points and the preset beacons are also real and fixed data. After the triggering debugging operation is detected, the determined real position relationship data between each preset sampling point and each preset beacon can be sent to the current positioning engine to be debugged.
[0035] The real position relationship data may include distance data and azimuth data; the distance data is used to indicate the distance between the preset sampling point and the preset beacon, and the azimuth data is used to indicate the direction angle between the preset sampling point and the preset beacon. The distance data and azimuth data reflect the real position relationship between the preset sampling point and the preset beacon.
[0036] In a specific implementation, the real position relationship data between the preset sampling points and at least one preset beacon in the pre-stored target field area are sent to the current positioning engine to be debugged, including: when a stress test instruction is received, determining a data replication multiple based on the stress test instruction; performing data replication operations on the real position relationship data between the preset sampling points and different preset beacons according to the data replication multiple to form a position relationship data set.
[0037] Wherein, the data replication multiple is greater than the preset multiple value; the position relationship data set is sent to the current positioning engine to be debugged. Exemplarily, the preset multiple value is set to 1 by default.
[0038] In practical applications, in order to ensure the operational stability of the positioning engine, it is usually necessary to perform a stress test on the positioning engine. In this embodiment, if a stress test instruction is received, the stress test instruction can be parsed to determine the data replication multiple. For example, the data replication multiple can be 10 times. According to the data replication multiple, a data replication operation is performed on the real position relationship data between all preset sampling points and different preset beacons. For example, each real position relationship data is replicated 10 times, and for each set of replicated position relationship data, a simulated terminal identifier of a simulated positioning engine is constructed. The original real position relationship data and the replicated position relationship data obtained after the replication operation are combined into a position relationship data set.
[0039] In order to detect the operating stability of the current positioning engine, the position relationship data in the position relationship data set can be sent to the current positioning engine at the same time to detect whether the current positioning engine can completely receive all the data in the position relationship data, and can perform positioning processing on all the position relationship data in the position relationship data set to obtain the positioning data corresponding to all sampling terminals.
[0040] In this embodiment, the real position relationship data is copied, and the position relationship data set obtained after the copying data is sent to the current positioning engine to implement a stress test on the current positioning engine, which is beneficial to improving the operating stability of the current positioning engine.
[0041] S120: receiving sampling positioning data of preset sampling points sent by the current positioning engine, and forming test data for the current positioning engine from the real position data of the preset sampling points acquired in advance and the sampling positioning data.
[0042] The sampled positioning data is the position data reflecting the preset sampling point determined by the current positioning engine based on the received real position relationship data and the real position data of the preset beacon.
[0043] In a specific implementation, for each preset sampling point, after the real position relationship data between the preset sampling point and at least one preset beacon is sent to the current positioning engine, the current positioning engine determines the position data of the preset sampling point determined by the current positioning engine, i.e., the sampling positioning data, based on the real position relationship data and the real position data of the preset beacon corresponding to the real position relationship data. Exemplarily, the real position data may include the real latitude and longitude data and the real altitude data of the preset beacon.
[0044] In order to accurately test the current positioning engine and improve the debugging results, the real position data of each preset sampling point and the sampled positioning data can be used to form the test data.
[0045] In order to facilitate developers to view test data, optionally, after forming the test data for the current positioning engine, it also includes: displaying the real position of the preset sampling point on a pre-loaded electronic map according to the real position data and the first preset display method; displaying the sampling position of the preset sampling point determined by the current positioning engine on the electronic map according to the sampling positioning data and the second preset display method.
[0046] Among them, the first preset display method is different from the second preset display method, and the first preset display method can be at least one of displaying in a solid circle, displaying in bold, and displaying in a first color; the second preset display method includes at least one of flashing display, displaying in a dotted circle, and displaying in a second color, and the first color is different from the second color.
[0047] Specifically, an electronic map corresponding to the target site area may be preloaded. Based on the real location data, the real location of each preset sampling point on the electronic map is determined, and based on the first preset display method, the real location is displayed on the electronic map, so that the developer can intuitively see the real location of the preset sampling point on the electronic map.
[0048] Furthermore, in order to facilitate the comparison of the deviation between the sampling position determined by the current positioning engine and the actual position, so as to demonstrate the positioning accuracy of the current positioning engine, the sampling position of each preset sampling point on the electronic map can be determined based on the sampling positioning data, and the sampling position can be displayed on the electronic map based on the second preset display method. Since the first preset display method is different from the second preset display method, the actual position and sampling position of the same preset sampling point are displayed differently on the electronic map, which is convenient for developers to distinguish.
[0049] In addition, in the case where there are multiple preset sampling points, in order to distinguish different preset sampling points on the electronic map, for each preset sampling point, the sampling point identifier of the preset sampling point can be marked at the real position and sampling position of the preset sampling point on the electronic map. The sampling point identifiers of different preset sampling points are different. By marking the sampling points, it is convenient for developers to distinguish different preset sampling points, and the real position and sampling position can be displayed more clearly and effectively. Furthermore, the electronic map after displaying the real position and sampling position can be displayed in three dimensions, so that developers can more intuitively understand richer information.
[0050] In this embodiment, the real location and the sampling location are displayed on the electronic map, which is convenient for developers to view and provides convenience for developers to debug the current positioning engine.
[0051] Optionally, the sampling positions of the preset sampling points determined by the current positioning engine are displayed on the electronic map according to the sampling positioning data and the second preset display mode, including: when there are multiple preset sampling points, the sampling positions corresponding to each preset sampling point are displayed on the electronic map in sequence according to the sampling positioning data and the second preset display mode in the order of the sampling moments corresponding to the preset sampling points from the earliest to the latest; and the sampling positions are connected on the electronic map according to the preset connection mode to display the sampling trajectory composed of each sampling position.
[0052] It should be noted that in order to debug the current positioning engine more accurately, a sampling trajectory can be preset, and the sampling trajectory consists of multiple preset sampling points. In order to reflect the sampling trajectory on the electronic map, the sampling time of each preset sampling point can be determined from the pre-stored sampling log file, and the preset sampling points can be sorted in order from the sampling time from the earliest to the latest. In order from the smallest to the largest sorting value, the sampling positions corresponding to the sampling positioning data of each preset sampling point are displayed on the electronic map in sequence.
[0053] Furthermore, after the sampling positions of each preset sampling point are displayed on the electronic map, the sampling positions can be connected in sequence according to the display order and the preset connection method, so as to display the sampling trajectory composed of each sampling position. For example, the preset connection method may include a dotted line connection method and an arrow connection method.
[0054] In this embodiment, the sampling positions corresponding to the multiple preset sampling points are connected to display the sampling trajectory, and the sampling process is dynamically displayed, so that the developers can have a more comprehensive understanding of the sampling process, which is conducive to debugging the positioning effect of the current positioning engine on the dynamic motion process.
[0055] The technical solution of the embodiment of the present invention, in response to the debugging trigger operation of the current positioning engine to be debugged, sends the real position relationship data between the preset sampling point and at least one preset beacon in the pre-stored target field area to the current positioning engine to be debugged; since the preset sampling point and the preset beacon are both fixed positions, it means that the real position relationship data between the preset sampling point and the preset beacon is also the relationship data between the real fixed positions, which does not change with time; by receiving the sampled positioning data of the preset sampling point sent by the current positioning engine, the real position data and the sampled positioning data of the preset sampling point obtained in advance are used to form the test data for the current positioning engine. The technical solution provided by this embodiment, since the fixed real position relationship data is pre-stored, each time the current positioning engine to be debugged is debugged, the test data can be determined by the pre-stored real position relationship data, without the need to go to the preset sampling point in the target field area for re-sampling, avoiding the staff from frequently entering and exiting the dangerous target field area, improving the debugging safety and debugging efficiency, and reducing the human resource consumption.
[0056] Figure 2 It is a flowchart of another test data generation method provided according to an embodiment of the present invention. Based on the above embodiment, this embodiment also includes: receiving signal characteristic data between a preset sampling point and at least one preset beacon in a target field area sent by a sampling terminal within a preset sampling time period; wherein the signal characteristic data includes signal strength data and signal direction data; based on the signal strength data, determining the distance data between the preset sampling point and at least one preset beacon, determining the distance data and the signal direction data as the real position relationship data between the preset sampling point and at least one preset beacon, and storing the real position relationship data. Among them, the explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.
[0057] like Figure 2 As shown, the method includes:
[0058] S210, receiving signal characteristic data between a preset sampling point and at least one preset beacon in a target field area sent by a sampling terminal within a preset sampling time period; wherein the signal characteristic data includes signal strength data and signal direction data.
[0059] It should be noted that the preset sampling time period may be a preset time period for collecting information from the preset sampling points. In order to reduce the impact of the sampling process on the work of the target field area, the preset sampling time period may be set to weekends or nighttime.
[0060] In the actual sampling process, the number of sampling terminals can be multiple, and a staff member or an autonomous driving vehicle carrying a sampling terminal moves to a preset sampling point in the target field area, and collects signal characteristic data between the preset sampling point and at least one preset beacon. Furthermore, if the preset sampling point is a component point of a preset trajectory, the sampling terminal can be moved to each preset sampling point corresponding to the preset trajectory in sequence according to the trajectory sequence of the preset trajectory, and the signal characteristic data corresponding to the preset sampling point can be collected.
[0061] In a specific implementation, the collected signal characteristic data, the terminal identifier of the sampling terminal and the sampling time corresponding to the signal characteristic data can be sent to a test data generating device in sequence from front to back according to the collection time of the signal characteristic data. The test data generating device receives the signal characteristic data sent by at least one sampling terminal.
[0062] S220. Determine distance data between a preset sampling point and at least one preset beacon based on the signal strength data, determine the distance data and the signal direction data as real position relationship data between the preset sampling point and at least one preset beacon, and store the real position relationship data.
[0063] In order to improve the accuracy of the real position relationship data, before determining the distance data between the preset sampling point and at least one preset beacon based on the signal strength data, it also includes: determining the data in the signal characteristic data that meets the preset filtering conditions as abnormal data in the signal characteristic data, and marking or removing the abnormal data.
[0064] The preset screening condition includes at least one of the following: data whose signal strength value is lower than a preset strength threshold; data whose signal direction data exceeds a preset direction range; and data whose data receiving time interval is inconsistent with a preset interval.
[0065] In this embodiment, the signal characteristic data whose signal strength value is lower than the preset strength threshold value can be used as abnormal data in the following manner: determine the signal strength value corresponding to each signal strength data, and use the minimum signal strength value that the preset beacon can generate at a specified distance as the preset strength threshold value, and use the signal characteristic data whose signal strength value is lower than the preset strength threshold value as abnormal data. In addition, the abnormal data can also be determined based on the signal direction data in the signal characteristic data. Exemplarily, based on the location of the preset beacon in the target field area and the regional structure of the target field area, the direction range in which sampling can be performed is determined as the preset direction range. For example, in the direction a, because there is a large chemical equipment, the area cannot be entered, and the direction a is not included in the direction range. Signal characteristic data whose signal direction data exceeds the preset direction range can be used as abnormal data.
[0066] Furthermore, the time interval between the receiving times corresponding to two adjacent received signal characteristic data may be used as the data receiving time interval, and the signal characteristic data whose data receiving time interval is inconsistent with the preset interval may be used as abnormal data.
[0067] After determining the abnormal data, in order not to affect the accuracy of the real position relationship data, the abnormal data can be eliminated to determine the real position relationship data based on the signal feature data remaining after eliminating the abnormal data; or, the abnormal data can be marked, and the anti-interference ability of the positioning engine can be tested by the marked abnormal data.
[0068] This embodiment determines abnormal data in the signal feature data and marks or removes the abnormal data, thereby improving the accuracy of determining the real position relationship data and improving the anti-interference ability of the positioning engine.
[0069] In this embodiment, the distance between the preset sampling point and the preset beacon can be reflected by the magnitude of the signal strength. Specifically, based on each received signal strength data, the distance data between the preset sampling point and the preset beacon corresponding to the signal strength data can be determined. The real position relationship data between the preset sampling point and the preset beacon is composed by the distance data and the signal direction data. Furthermore, the real position relationship data can be stored according to the collection time and terminal identification corresponding to each received signal feature data.
[0070] This embodiment provides a method for obtaining real position relationship data, which can ensure the accuracy and authenticity of the real position relationship data and facilitate the debugging of the current positioning engine.
[0071] In order to be able to store the real position relationship data in an orderly and clear manner, optionally, before storing the real position relationship data, it also includes: establishing a collection folder for each unit collection period included in a preset sampling time period; when there are multiple sampling terminals, generating an independent log file corresponding to each sampling terminal in each pre-established collection folder; storing the real position relationship data, including: based on the collection time and sampling terminal corresponding to the signal characteristic data, determining the storage folder and storage log file of the real position relationship data corresponding to the signal characteristic data; storing the real position relationship data in the storage log file of the storage folder.
[0072] Specifically, the preset sampling time period may include multiple unit sampling cycles. Exemplarily, the preset sampling time period is one week, and the unit sampling period is from 8:00 to 12:00 every day included in the week. Since the number of sampling terminals is large and the preset sampling time period lasts for a long time, the amount of real position relationship data generated is large. In order to facilitate searching, a collection folder can be established for each unit collection period. The collection folder is used to store the real position relationship data determined by the unit collection period.
[0073] Furthermore, for each sampling terminal, an independent log file corresponding to each sampling terminal may be generated in each collection folder, and the file name of the independent log file may be the terminal identifier of the sampling terminal. For any independent log file in any collection folder, it is used to record the real position relationship data determined by the signal feature data collected by the sampling terminal corresponding to the independent log file in the unit collection cycle corresponding to the collection folder.
[0074] In a specific implementation, based on the acquisition time corresponding to the signal characteristic data, a collection folder matching the acquisition time can be determined as a storage folder, that is, the unit acquisition period corresponding to the storage folder includes the acquisition time. Based on the terminal identification of the sampling terminal of the signal characteristic data, an independent log file with a file name consistent with the terminal identification is determined as a storage log file. The determined real position relationship data corresponding to the signal characteristic data is stored in the storage log file of the storage folder. Optionally, when storing the real position relationship data, it can be stored in the order of the acquisition time.
[0075] S230: In response to a debugging trigger operation on the current positioning engine to be debugged, the pre-stored real position relationship data between the preset sampling point in the target field area and at least one preset beacon are sent to the current positioning engine to be debugged.
[0076] S240: Receive sampling positioning data of preset sampling points sent by the current positioning engine, and form test data for the current positioning engine with the real position data of the preset sampling points acquired in advance and the sampling positioning data.
[0077] In this embodiment, the real position relationship data is stored in folders and files according to the different sampling terminals and unit collection cycles, thereby facilitating data search and use; and for each debugging process, there is no need to repeatedly obtain signal characteristic data in the target field area, which improves debugging convenience and saves human resources.
[0078] The embodiments corresponding to the test data generation method are described in detail above. In order to make the technical scheme of the method further clear to those skilled in the art, the working process of the test data generation system that executes the test data generation method is described below.
[0079] In this embodiment, the test data generation system includes a data storage subsystem, a data analysis subsystem, a data display subsystem and a data forwarding subsystem. The working contents of each subsystem are as follows:
[0080] 1. Data storage subsystem
[0081] The data storage subsystem is connected to the current positioning engine. Without affecting the operation of the current positioning engine, it automatically obtains and saves the signal characteristic data uploaded by the sampling terminal, and generates various sampling folders according to the period. In each sampling folder, an independent log file is generated according to the terminal identification of the sampling terminal. The independent log file can store signal characteristic data and signal characteristic data.
[0082] In order to reduce storage pressure and avoid hard disk space being occupied, when the data occupancy of the hard disk space reaches the preset occupancy threshold, the sampling folder corresponding to the preset number of retrospective days can be compressed or deleted according to the preset number of retrospective days; and the hard disk space occupancy information can also be detected in real time.
[0083] 2. Data analysis subsystem
[0084] The data analysis subsystem can load the signal feature data in one or more independent log files, and sort the data based on the acquisition time corresponding to the signal feature data, so as to facilitate data search and detect the integrity of the data. In addition, the recording time and quantity of the signal feature data and the alarm information status of the sampling terminal corresponding to the signal feature data during the sampling process can be recorded. The working status of the sampling terminal is reflected by the alarm information status. After the data loading is completed, the abnormal data in the signal feature data can be determined, and the abnormal data can be marked or removed.
[0085] Furthermore, the data analysis subsystem can search the loaded independent log files through the received keywords to check whether the specified information exists in the signal characteristic data reported by the sampling terminal. For example, the beacon identifier of the specified preset beacon can be searched in the independent log file to check and determine whether the sampling terminal has effectively read and reported the signal characteristic information between the preset beacon and the preset sampling point, so as to determine whether the communication between the sampling terminal and the preset beacon is normal.
[0086] In addition, after receiving the data selection instruction, the data analysis subsystem can determine the collection time, reporting time, distance data and signal direction data corresponding to the data selection instruction and the information of the sampling terminal, wherein the information of the sampling terminal includes power and alarm status.
[0087] 3. Data display subsystem
[0088] The data display subsystem loads an electronic map corresponding to the target site area, and graphically displays the real position and sampling position of the preset sampling point on the electronic map. The data display subsystem supports single display and continuous playback. Single display means that for any preset sampling point, the beacon mark of the preset beacon associated with the preset sampling point is indicated with a bright spot on the electronic map, and the distance between the preset sampling point and the preset beacon is displayed in a circle. The sampling position is marked with a preset specified color, and the sampling position can be the satellite positioning position determined by the current positioning engine. Continuous playback refers to the automatic and continuous display of the real position and sampling position of each preset sampling point in a preset trajectory. By displaying real data and sampling data, the position changes of the sampling terminal during the movement process are very vivid, so that developers can check the scenarios and causes of positioning anomalies and perform targeted optimization.
[0089] 4. Data forwarding subsystem
[0090] The data forwarding subsystem can be connected to the current positioning engine and send the real position relationship data in the independent log file to the current positioning engine. Specifically, the real position relationship data can be sent to the current positioning engine. For each debugging process, when sending the real position relationship data, the terminal identifier of the sampling terminal can be reset to avoid the real position relationship data being sent to the current positioning engine. The data overlaps with the historical position relationship data received during the previous debugging of the current positioning engine, causing interference to the current positioning engine.
[0091] In order to stress test the current positioning engine, multiple independent log files can be loaded, and the data replication multiple can be set; the real position relationship data in the loaded independent log files can be copied according to the data replication multiple; and the simulated terminal identifier corresponding to the copied position relationship data can be set based on the real terminal identifier of the sampling terminal corresponding to the real position relationship data. Exemplarily, when the data replication multiple is 10, if the real terminal identifier is 100, after copying the real position relationship data obtained by the sampling terminal with the real terminal identifier of 100, the simulated terminal identifiers corresponding to the copied position relationship data obtained each time can be 101, 102, 103, ..., 110 respectively; that is, the simulated terminal identifier corresponding to the copied position relationship data obtained each time can be obtained by adding 1 to the real terminal identifier. Through stress testing, the data receiving and sending and data processing capabilities of the current positioning engine are tested. Further, according to the timestamp corresponding to the current moment, the copied position relationship data and the real position relationship data are sent to the current positioning engine.
[0092] The technical solution of this embodiment provides a system independent of the current positioning engine, which performs independent data collection and problem analysis without affecting existing services; determines test data by reflecting the real position relationship data of the real target site area, without the need for multiple collections, reduces duplication of work, and helps to improve the accuracy of the obtained test data; and provides functions such as analysis, display and reporting of data, so as to facilitate accurate positioning of problems existing in the current positioning engine, and tests the data receiving and sending and data processing capabilities of the current positioning engine through stress testing, thereby saving a large amount of human resources, reducing the activities of personnel in dangerous environments, and ensuring work safety.
[0093] Figure 3 1 is a schematic diagram of the structure of a test data generating device provided according to an embodiment of the present invention, and the device is used to execute the test data generating method provided by any of the above embodiments. The device and the test data generating method of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiment of the test data generating device can refer to the embodiment of the above test data generating method. Figure 3 As shown, the device comprises:
[0094] The data sending module 10 is used to send the real position relationship data between the preset sampling point and at least one preset beacon in the target field area stored in advance to the current positioning engine to be debugged in response to the debugging trigger operation of the current positioning engine to be debugged;
[0095] The data receiving module 11 is used to receive the sampling positioning data of the preset sampling point sent by the current positioning engine, and the real position data of the preset sampling point acquired in advance and the sampling positioning data constitute the test data for the current positioning engine;
[0096] The sampled positioning data is the position data reflecting the preset sampling point determined by the current positioning engine based on the received real position relationship data and the real position data of the preset beacon.
[0097] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:
[0098] A signal characteristic data receiving module is used to receive signal characteristic data between a preset sampling point in a target field area and at least one preset beacon sent by a sampling terminal within a preset sampling time period before sending the real position relationship data between the preset sampling point in the target field area and at least one preset beacon in the pre-stored target field area to the current positioning engine to be debugged; wherein the signal characteristic data includes signal strength data and signal direction data;
[0099] The data storage module is used to determine the distance data between the preset sampling point and at least one preset beacon based on the signal strength data, determine the distance data and the signal direction data as the real position relationship data between the preset sampling point and at least one preset beacon, and store the real position relationship data.
[0100] Based on any optional technical solution in the embodiments of the present invention, optionally, the method further includes:
[0101] A collection folder establishment module is used to establish a collection folder for each unit collection period included in a preset sampling time period before storing the real position relationship data;
[0102] A log file generation module, for generating an independent log file corresponding to each sampling terminal in each pre-established collection folder when there are multiple sampling terminals;
[0103] Data storage module, including:
[0104] A file determination unit, used to determine a storage folder and a storage log file of the real position relationship data corresponding to the signal characteristic data based on the collection time and sampling terminal corresponding to the signal characteristic data;
[0105] The data storage unit is used to store the real location relationship data in a storage log file in a storage folder.
[0106] Based on any optional technical solution in the embodiments of the present invention, optionally, the method further includes:
[0107] An abnormal data determination module is used to determine data that meets a preset screening condition in the signal characteristic data as abnormal data in the signal characteristic data before determining the distance data between the preset sampling point and at least one preset beacon based on the signal strength data, and mark or remove the abnormal data;
[0108] The preset screening condition includes at least one of the following: data whose signal strength value is lower than a preset strength threshold; data whose signal direction data exceeds a preset direction range; and data whose data receiving time interval is inconsistent with a preset interval.
[0109] Based on any optional technical solution in the embodiment of the present invention, optionally, the data sending module 10 includes:
[0110] A multiple determination unit, configured to determine a data replication multiple based on the stress test instruction when a stress test instruction is received;
[0111] A data replication unit, used to perform a data replication operation on the real position relationship data between the preset sampling point and different preset beacons according to a data replication multiple to form a position relationship data set; wherein the data replication multiple is greater than a preset multiple value;
[0112] The data sending unit is used to send the position relationship data set to the current positioning engine to be debugged.
[0113] Based on any optional technical solution in the embodiments of the present invention, optionally, the method further includes:
[0114] A first display module is used to display the real position of the preset sampling point on a pre-loaded electronic map according to the real position data and a first preset display mode after forming the test data for the current positioning engine;
[0115] A second display module, used to display the sampling position of the preset sampling point determined by the current positioning engine on the electronic map according to the sampling positioning data and the second preset display mode;
[0116] Among them, the first preset display method is different from the second preset display method. The first preset display method can be at least one of displaying in a solid circle, displaying in bold, and displaying according to a first color; the second preset display method includes at least one of flashing display, displaying in a dotted circle, and displaying according to a second color.
[0117] Based on any optional technical solution in the embodiments of the present invention, optionally, the second display module includes:
[0118] A sampling point display unit, for displaying the sampling position corresponding to each preset sampling point on the electronic map in sequence according to the sampling time corresponding to the preset sampling point from earliest to latest, according to the sampling location data and the second preset display mode, when there are multiple preset sampling points;
[0119] The track display unit is used to connect various sampling positions on the electronic map based on a preset connection method to display the sampling track composed of each sampling position.
[0120] The technical solution of the embodiment of the present invention, in response to the debugging trigger operation of the current positioning engine to be debugged, sends the real position relationship data between the preset sampling point and at least one preset beacon in the pre-stored target field area to the current positioning engine to be debugged; since the preset sampling point and the preset beacon are both fixed positions, it means that the real position relationship data between the preset sampling point and the preset beacon is also the relationship data between the real fixed positions, which does not change with time; by receiving the sampled positioning data of the preset sampling point sent by the current positioning engine, the real position data and the sampled positioning data of the preset sampling point obtained in advance are used to form the test data for the current positioning engine. The technical solution provided by this embodiment, since the fixed real position relationship data is pre-stored, each time the current positioning engine to be debugged is debugged, the test data can be determined by the pre-stored real position relationship data, without the need to go to the preset sampling point in the target field area for re-sampling, avoiding the staff from frequently entering and exiting the dangerous target field area, improving the debugging safety and debugging efficiency, and reducing the human resource consumption.
[0121] It is worth noting that in the embodiment of the above-mentioned test data generating device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0122] Figure 4 It is a schematic diagram of the structure of an electronic device that implements the test data generation method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0123] like Figure 4 As shown, the electronic device 20 includes at least one processor 21, and a memory connected to the at least one processor 21, such as a read-only memory (ROM) 22, a random access memory (RAM) 23, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 21 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 22 or the computer program loaded from the storage unit 28 to the random access memory (RAM) 23. In RAM23, various programs and data required for the operation of the electronic device 20 can also be stored. The processor 21, ROM22 and RAM23 are connected to each other through a bus 24. An input / output (I / O) interface 25 is also connected to the bus 24.
[0124] A number of components in the electronic device 20 are connected to the I / O interface 25, including: an input unit 26, such as a keyboard, a mouse, etc.; an output unit 27, such as various types of displays, speakers, etc.; a storage unit 28, such as a disk, an optical disk, etc.; and a communication unit 29, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 29 allows the electronic device 20 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0125] The processor 21 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 21 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 21 performs the various methods and processes described above, such as a test data generation method.
[0126] In some embodiments, the test data generation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 28. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 20 via the ROM 22 and / or the communication unit 29. When the computer program is loaded into the RAM 23 and executed by the processor 21, one or more steps of the test data generation method described above may be performed. Alternatively, in other embodiments, the processor 21 may be configured to perform the test data generation method in any other appropriate manner (e.g., by means of firmware).
[0127] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0128] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0129] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0130] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0131] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0132] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0133] This embodiment also provides a computer program product, including a computer program, which, when executed by a processor, implements the test data generating method provided in any embodiment of the present application.
[0134] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0135] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0136] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A test data generation method, characterized in that: include: In response to a debugging trigger operation of a current positioning engine to be debugged, sending pre-stored real position relationship data between a preset sampling point in a target field area and at least one preset beacon to the current positioning engine to be debugged; Receiving the sampling positioning data of the preset sampling point sent by the current positioning engine, and forming test data for the current positioning engine by the real position data of the preset sampling point acquired in advance and the sampling positioning data; The sampled positioning data is the position data reflecting the preset sampling point determined by the current positioning engine based on the received real position relationship data and the real position data of the preset beacon.
2. The method according to claim 1, characterized in that Before sending the real position relationship data between the preset sampling point and at least one preset beacon in the pre-stored target field area to the current positioning engine to be debugged, the method further includes: Receiving signal characteristic data between the preset sampling point and at least one preset beacon in the target field area sent by the sampling terminal within a preset sampling time period; wherein the signal characteristic data includes signal strength data and signal direction data; Based on the signal strength data, the distance data between the preset sampling point and at least one preset beacon is determined, the distance data and the signal direction data are determined as the real position relationship data between the preset sampling point and at least one preset beacon, and the real position relationship data is stored.
3. The method according to claim 2, characterized in that Before storing the real position relationship data, the method further includes: For each unit collection period included in the preset sampling time period, create a collection folder; In the case where there are multiple sampling terminals, generating an independent log file corresponding to each sampling terminal in each pre-established collection folder; The storing of the real position relationship data comprises: Based on the collection time and sampling terminal corresponding to the signal characteristic data, determine the storage folder and storage log file of the real position relationship data corresponding to the signal characteristic data; The real position relationship data is stored in the storage log file of the storage folder.
4. The method according to claim 2, characterized in that: Before determining the distance data between the preset sampling point and at least one preset beacon based on the signal strength data, the method further includes: Determine data in the signal feature data that meets a preset screening condition as abnormal data in the signal feature data, and mark or remove the abnormal data; The preset screening condition includes at least one of the following: data whose signal strength value is lower than a preset strength threshold; data whose signal direction data exceeds a preset direction range; and data whose data receiving time interval is inconsistent with a preset interval.
5. The method according to claim 1, characterized in that The method of sending the real position relationship data between the preset sampling point and at least one preset beacon in the pre-stored target field area to the current positioning engine to be debugged includes: In case of receiving a stress test instruction, determining a data replication multiple based on the stress test instruction; According to the data replication multiple, a data replication operation is performed on the real position relationship data between the preset sampling point and different preset beacons to form a position relationship data set; wherein the data replication multiple is greater than a preset multiple value; The position relationship data set is sent to the current positioning engine to be debugged.
6. The method according to claim 1, characterized in that After the test data of the current positioning engine is formed, the method further includes: Displaying the real location of the preset sampling point on a preloaded electronic map according to the real location data and a first preset display mode; Displaying the sampling position of the preset sampling point determined by the current positioning engine on the electronic map according to the sampling positioning data and the second preset display mode; Among them, the first preset display method is different from the second preset display method, and the first preset display method can be at least one of displaying in a solid circle, displaying in bold, and displaying according to a first color; the second preset display method includes at least one of flashing display, displaying in a dotted circle, and displaying according to a second color.
7. The method according to claim 6, characterized in that The step of displaying the sampling position of the preset sampling point determined by the current positioning engine on the electronic map according to the sampling positioning data and the second preset display mode includes: In the case where there are multiple preset sampling points, the sampling position corresponding to each preset sampling point is sequentially displayed on the electronic map according to the sampling positioning data and the second preset display mode in the order of the sampling moments corresponding to the preset sampling points from earliest to latest; Based on a preset connection method, each of the sampling locations is connected on the electronic map to display a sampling trajectory composed of each of the sampling locations.
8. A test data generating device, characterized in that: include: A data sending module, configured to send the real position relationship data between the preset sampling points and at least one preset beacon in the target field area stored in advance to the current positioning engine to be debugged in response to the debugging trigger operation of the current positioning engine to be debugged; A data receiving module, used for receiving the sampling positioning data of the preset sampling point sent by the current positioning engine, and the real position data of the preset sampling point acquired in advance and the sampling positioning data constitute the test data for the current positioning engine; The sampled positioning data is the position data reflecting the preset sampling point determined by the current positioning engine based on the received real position relationship data and the real position data of the preset beacon.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the test data generating method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the test data generating method according to any one of claims 1 to 7 when executed.