Signal acquisition method, device and computer storage medium
By acquiring signal acquisition configuration information and equipment attributes, determining signal acquisition trigger rules and conditions, and performing format conversion and packaging, the problem of insufficient generalization capabilities of existing signal acquisition solutions is solved, cross-platform signal acquisition methods are realized, and development and maintenance costs are reduced.
Patent Information
- Application Number
- CN202210335817.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2042-03-31
AI Technical Summary
The existing signal acquisition scheme has poor generalization capabilities and high development and maintenance costs, and cannot adapt to changes in different signal types and acquisition conditions.
A signal acquisition method is provided, by obtaining acquisition configuration information, including target positioning signals, acquisition trigger rules and acquisition conditions, determining whether to trigger signal acquisition based on the attribute information of the signal acquisition device, and format conversion and packaging are carried out to realize cross-platform application.
It realizes the universality and cross-platform capabilities of signal acquisition methods, reduces development and maintenance costs, and is suitable for signal acquisition under various acquisition triggering rules and conditions, breaking through the limitations of equipment type.
Smart Images

Figure CN114666735B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of positioning technology, and in particular to a signal acquisition method, device, and computer storage medium. Background Art
[0002] Mobile devices typically receive or scan a variety of signals, such as Wi-Fi, Bluetooth, base station signals, and sensor signals. These signals can be used for network positioning and fault analysis. For example, network positioning operates by collecting signals received or scanned by a mobile device and analyzing and calculating them using a positioning algorithm to determine the mobile device's location.
[0003] Existing signal acquisition solutions are designed for specific acquisition needs, with fixed signal types and acquisition conditions. If the signal type and acquisition conditions change, the existing acquisition solution becomes unusable and requires a redesign. For example, in an existing acquisition solution, the signal type is base station signals, and the acquisition condition is one acquisition per second. If the signal type changes to Wi-Fi signals, and the acquisition condition changes to one acquisition per meter of mobile device movement, the existing acquisition solution becomes unusable and requires a new design.
[0004] In summary, existing signal acquisition solutions have poor generalization capabilities and high development and maintenance costs. Summary of the Invention
[0005] In view of this, an embodiment of the present application provides a signal acquisition solution to at least partially solve the above-mentioned problem.
[0006] According to a first aspect of an embodiment of the present application, a signal acquisition method is provided, comprising: obtaining acquisition configuration information for acquiring a positioning signal, the acquisition configuration information comprising: at least one type of target positioning signal, an acquisition trigger rule, and an acquisition condition; determining whether to trigger the signal acquisition device to acquire the positioning signal based on attribute information of the signal acquisition device and the acquisition trigger rule; if triggered, acquiring the target positioning signal through the signal acquisition device in accordance with the acquisition condition; performing format conversion on the acquired target positioning signal according to the type of the acquisition device to obtain signal data in a preset format, and encapsulating the signal data in the preset format as target data.
[0007] According to a second aspect of an embodiment of the present application, a signal acquisition device is provided, including: a configuration information acquisition module, used to obtain acquisition configuration information for acquiring a positioning signal, the acquisition configuration information including: at least one type of target positioning signal, acquisition triggering rules, and acquisition conditions; a trigger determination module, used to determine whether to trigger the signal acquisition device to acquire a positioning signal based on the attribute information of the signal acquisition device and the acquisition triggering rules; a signal acquisition module, used to acquire the target positioning signal through the signal acquisition device in accordance with the acquisition conditions if triggered; and a data encapsulation module, used to convert the format of the acquired target positioning signal according to the type of the acquisition device to obtain signal data in a preset format, and encapsulate the signal data in the preset format into target data.
[0008] According to a third aspect of an embodiment of the present application, a signal acquisition system is provided, including: a cloud control configuration layer, used to obtain acquisition configuration information for acquiring positioning signals, the acquisition configuration information including: at least one type of target positioning signal, an acquisition trigger rule, and an acquisition condition corresponding to the acquisition trigger rule; an acquisition logic layer, used to determine whether to trigger the signal acquisition device to acquire a positioning signal based on attribute information of the signal acquisition device and the acquisition trigger rule; if triggered, the target positioning signal is acquired by the signal acquisition device according to the acquisition condition; a hardware signal abstraction layer, used to convert the format of the acquired target positioning signal according to the type of the acquisition device, obtain signal data in a preset format, and encapsulate the signal data in the preset format as target data.
[0009] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the signal acquisition method described in the first aspect.
[0010] According to a fifth aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the signal acquisition method as described in the first aspect is implemented.
[0011] According to the signal acquisition scheme provided in the embodiment of the present application, before performing signal acquisition, the target positioning signal including acquisition trigger rules, acquisition conditions and at least one type is first acquired; when the trigger signal acquisition device is determined to acquire the positioning signal based on the attribute information of the signal acquisition device and the acquisition trigger rules, the target positioning signal is acquired according to the acquired acquisition conditions. The acquisition trigger rules, acquisition conditions and target positioning signals to be acquired in the embodiment of the present application can be pre-set in a variety of flexible ways according to actual needs to adapt to various different acquisition scenarios, and when the above-mentioned acquisition configuration information changes, there is no need to redesign a new acquisition scheme. In other words, the signal acquisition method provided in the embodiment of the present application can be applied to the acquisition of different target positioning signals under various different acquisition trigger rules and acquisition conditions, and has good versatility. In summary, the signal acquisition method in the embodiment of the present application has strong generalization capabilities and low development and maintenance costs.
[0012] Furthermore, in the embodiments of the present application, the target positioning signal collected by the signal acquisition device is formatted, ultimately resulting in target data being signal data in a unified format (preset format). This decouples the signal data format from the acquisition device type. Therefore, the signal acquisition method provided by the embodiments of the present application overcomes device type limitations and can be applied to different types of devices, demonstrating strong cross-platform capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0014] Figure 1A This is a flowchart of the steps of a signal acquisition method according to the first embodiment of the present application;
[0015] Figure 1B for Figure 1A A schematic diagram of an example scenario in the illustrated embodiment;
[0016] Figure 2A This is a flowchart of a signal acquisition method according to the second embodiment of the present application;
[0017] Figure 2B A schematic diagram of a signal acquisition process according to the second embodiment of the present application;
[0018] Figure 3 This is a structural block diagram of a signal acquisition device according to the third embodiment of the present application;
[0019] Figure 4 This is a structural diagram of the signal acquisition system in Example 4 of the present application;
[0020] Figure 5 This is a structural diagram of an electronic device according to the fifth embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field should fall within the scope of protection of the embodiments of the present application.
[0022] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0023] Example 1
[0024] Reference Figure 1A , Figure 1A 1 is a flowchart of a signal acquisition method according to Embodiment 1 of the present application. Specifically, the signal acquisition method provided in this embodiment includes the following steps:
[0025] Step 102: Acquire acquisition configuration information for acquiring positioning signals, where the acquisition configuration information includes: at least one type of target positioning signal, acquisition triggering rules, and acquisition conditions.
[0026] The positioning signals in the embodiments of the present application include various types of signals that can be used for position point solution, such as: WIFI signals, base station signals, Bluetooth signals, sensor signals, GPS (Global Positioning System) signals, GNSS (Global Navigation Satellite System) signals, etc.
[0027] In this step, the target positioning signal may be one or more of the above signals. The target positioning signal may be set according to actual acquisition requirements. Here, the specific type of the target positioning signal is not limited.
[0028] Specifically, because the types of signals that a data acquisition device can receive or scan are related to the type of device and its location, the target positioning signal in this step can be determined based on the type of signal acquisition device and / or its location. For example, if the data acquisition device is a tablet computer and is located within the WiFi coverage area of a shopping mall, the target positioning signal can be determined to be a WiFi signal.
[0029] The acquisition trigger rule can be a rule that indicates the start of the signal acquisition process. When the above rule is triggered, the signal acquisition process begins. The acquisition trigger rule in the embodiment of the present application can be determined based on attribute information such as the position and speed of the signal acquisition device, the type of positioning signal that the device can receive or scan, and the specific content of the acquisition trigger rule is not limited.
[0030] Regarding determining the collection trigger rules based on the location information of the signal collection device, for example, specifically: in order to solve the positioning problem when the signal collection device is located in a preset area (for example: overpass, subway station, gas station, oil depot, etc.), the collection trigger rules can be set to: signal collection is performed when the signal collection device is located in the above-mentioned preset area. Correspondingly, since the GPS signal is weak in the above-mentioned preset area, the target positioning signal can be set to other positioning signals in addition to the GPS signal and that the signal collection device can receive or scan, such as: WIFI, base station signal, etc.
[0031] Regarding determining the collection trigger rules based on the speed information of the signal acquisition device, for example, specifically: in order to conduct fault analysis in a timely manner when the signal acquisition device has an abnormal speed phenomenon (such as the acquired speed information of the device drops rapidly from 80m / s to 0m / s within 1s), the collection trigger rules can be set to: when the change in the speed of the acquired signal acquisition device within 1s exceeds a preset threshold (such as 80m / s), signal collection is performed. Correspondingly, since the cause of the above-mentioned abnormal phenomenon may be the acceleration sensor and other sensors in the device, the target positioning signal can be set to: sensor signal. In addition, in order to conduct a comprehensive fault analysis, multiple types of positioning signals can also be collected for analysis. For example, GPS signals, WIFI signals, etc. can also be collected at the same time.
[0032] Regarding determining the collection trigger rules based on the type of positioning signals that the signal collection device can receive or scan, for example, the collection trigger rules can be set to: when the signal collection device cannot receive or scan the GPS signal, or the received or scanned GPS signal is weak, the signal collection process is performed, and the target positioning signal can be set to: WIFI, base station signal, etc.
[0033] In order to improve the accuracy of positioning, the collection trigger rules can also be set as follows: when GPS drift occurs, that is, when the position of the signal collection device obtained through the GPS signal drifts seriously, for example, within a short period of time, the position of the device obtained through the GPS signal is located at two different locations with a large distance between them, other positioning signals are collected, and the target positioning signal can be set to: other positioning signals in addition to the GPS signal that can be scanned by the signal collection device, such as: WIFI, base station signal, etc.
[0034] In addition, the acquisition trigger rule may also be set to: perform signal acquisition when a preset signal acquisition instruction is received, and so on.
[0035] The embodiments of the present application do not limit the specific content of the acquisition conditions, and can be set according to actual conditions. For example, the acquisition conditions can be set from the perspective of distance, for example, the signal acquisition device collects a positioning signal once every 1m of movement; the acquisition conditions can also be set from the perspective of time, for example, the positioning signal is collected once every hour; the acquisition conditions can also be set from the perspective of speed, for example, the signal acquisition device collects a positioning signal once every 1km / h increase in speed; the acquisition conditions can also be set from the perspective of frequency, for example, every 1s, etc.
[0036] In addition, in the embodiments of the present application, there is no limitation on the method for obtaining the acquisition configuration information. For example, the acquisition configuration information may be directly input by a signal acquisition person into an electronic device used to perform the signal acquisition method of the embodiments of the present application, or may be acquired by the electronic device from another control terminal device that is in communication with the device.
[0037] Step 104: Based on the attribute information of the signal acquisition device and the acquisition triggering rule, determine whether to trigger the signal acquisition device to acquire the positioning signal.
[0038] The attribute information of the signal acquisition device may include at least one of the following: position information, speed information, and the type of positioning signals that the signal acquisition device can scan. In this embodiment of the present application, whether to trigger the signal acquisition device to collect positioning signals can be determined based on the attribute information of the signal acquisition device and the collection triggering rule obtained in step 102.
[0039] Furthermore, the collection triggering rule may be that the signal collection device collects the target positioning signal when it is located in a preset signal collection area. Correspondingly, based on the attribute information of the signal collection device and the collection triggering rule, determining whether to trigger the signal collection device to collect the positioning signal may include:
[0040] Obtain the location information of the acquisition device; based on the type of positioning signal that the signal acquisition device can scan, determine whether the acquisition device can scan the target positioning signal; based on the location information of the acquisition device, determine whether the acquisition device is located in a preset signal acquisition area.
[0041] If the signal acquisition device can scan the target positioning signal and, based on the position information of the acquisition device, determines that the acquisition device is located in the preset signal acquisition area, the signal acquisition device is triggered to collect the positioning signal.
[0042] Step 106: If the signal acquisition device is triggered to acquire the positioning signal, the target positioning signal is acquired by the signal acquisition device according to the acquisition conditions.
[0043] Specifically, if it is determined in step 104 that the signal acquisition device is triggered to collect positioning signals, the target positioning signal can be collected by calling the signal acquisition device's API (Application Programming Interface). For example, if the target positioning signal is a Wi-Fi or Bluetooth signal, the Wi-Fi and Bluetooth signals can be collected by calling the signal acquisition device's APIs for obtaining Wi-Fi and Bluetooth signals, respectively.
[0044] Step 108 : performing format conversion on the collected target positioning signal according to the type of the collection device to obtain signal data in a preset format, and encapsulating the signal data in the preset format into target data.
[0045] Since different types of acquisition devices may have different formats for the target positioning signals they collect, in order to improve the cross-platform capability of the signal acquisition method of the embodiment of the present application and enable the signal acquisition method of the embodiment of the present application to be applicable to different types of devices, the collected target positioning signals can be format converted so that the target data is signal data with a unified format (preset format), thereby achieving decoupling of the data format of the signal data from the type of acquisition device.
[0046] The preset format in the embodiments of this application can be any data format set according to actual needs, and the specific form of the preset format is not limited. For example, to reduce the complexity and improve the efficiency of data conversion, the preset format can be set to a simple entity object Bean format. Beans are data formats that conform to a specific structure. By setting this data format, it can contain the corresponding information while shielding data differences caused by different types of collection devices.
[0047] See also Figure 1B , Figure 1B This is a schematic diagram of the scene corresponding to the first embodiment of the present application. Figure 1B The schematic diagram shown in the figure illustrates an embodiment of the present application using a specific scenario as an example:
[0048] Before collecting positioning signals, the collection configuration information is first obtained. Specifically, the target positioning signals are: WIFI and base station signals; the collection trigger rule is: when the collection device is in the oil depot area, the above-mentioned target positioning signals are collected; the specific collection condition is: 1s / time; when it is detected that the collection device is located in the above-mentioned oil depot area, the WIFI and base station signals are collected according to the collection condition of 1s / time to obtain the collected WIFI signal and the collected base station signal; the collected WIFI signal is formatted to obtain a WIFI signal in a preset format, and the collected base station signal is formatted to obtain a base station signal in a preset format; finally, the WIFI signal in the preset format and the base station signal in the preset format are encapsulated to obtain the target data.
[0049] In the embodiment of the present application, before performing signal acquisition, the target positioning signal including acquisition trigger rules, acquisition conditions and at least one type is first acquired; when the trigger signal acquisition device is determined to acquire the positioning signal based on the attribute information of the signal acquisition device and the acquisition trigger rules, the target positioning signal is acquired according to the acquired acquisition conditions. The acquisition trigger rules, acquisition conditions and target positioning signals to be acquired in the embodiment of the present application can all be pre-set in a variety of flexible ways according to actual needs to be applicable to various different acquisition scenarios. And when the above-mentioned acquisition configuration information changes, there is no need to redesign a new acquisition plan, that is, the signal acquisition method provided in the embodiment of the present application can be applied to the acquisition of different target positioning signals under various different acquisition trigger rules and acquisition conditions, and has good versatility. In summary, the signal acquisition method in the embodiment of the present application has a strong generalization ability and low development and maintenance costs.
[0050] Furthermore, in the embodiments of the present application, the target positioning signal collected by the signal acquisition device is formatted, ultimately resulting in target data being signal data in a unified format (preset format). This decouples the signal data format from the acquisition device type. Therefore, the signal acquisition method provided by the embodiments of the present application overcomes device type limitations and can be applied to different types of devices, demonstrating strong cross-platform capabilities.
[0051] The signal acquisition method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: mobile terminals (such as mobile phones, PADs, etc.) and PCs, etc.
[0052] Example 2
[0053] Reference Figure 2A , Figure 2A1 is a flowchart of a signal acquisition method according to Embodiment 2 of the present application. Specifically, the signal acquisition method provided in this embodiment includes the following steps:
[0054] Step 202: Receive acquisition configuration information for acquiring positioning signals sent by the control end device, where the acquisition configuration information includes: at least one type of target positioning signal, acquisition triggering rules, and acquisition conditions; the acquisition triggering rules are that target signal acquisition is performed if the signal acquisition device is located in a preset area.
[0055] The acquisition configuration information in this step can be input into the control terminal device by the signal acquisition personnel according to actual needs, and sent by the control terminal device to the electronic device that executes the signal acquisition method of the embodiment of the present application.
[0056] The positioning signal in the embodiment of the present application includes various types of signals that can be used for position point solution, such as WIFI signals, base station signals, Bluetooth signals, sensor signals, GPS (Global Positioning System) signals, GNSS (Global Navigation Satellite System) signals, etc. In this step, the target positioning signal can be one or more of the above signals, and the target positioning signal can be set according to the actual collection requirements. Here, the specific type of the target positioning signal is not limited. Specifically, since the type of signal that the collection device can scan is related to the type of device and the location of the device, the target positioning signal in this step can be determined according to the type of signal collection device and / or the location information of the signal collection device. For example: when the collection device is a tablet computer, and the tablet computer is located in the WiFi signal coverage area of a shopping mall, the target positioning signal can be determined as a WiFi signal.
[0057] The preset area in the collection trigger rule can be set according to the actual signal collection needs or purposes. For example, if the purpose of signal collection is to optimize the network positioning in areas with weak GPS signals such as overpasses and subways, then the preset area can be the above-mentioned overpasses, subways and other areas with weak GPS signals, etc.
[0058] In addition, since the signal data obtained according to different acquisition configuration information is different, in order to facilitate the differentiation of the final acquired signal data, the acquisition configuration information may also include basic attribute information such as signal data identification information and version information. For example, if the signal acquisition is performed when the signal acquisition device is located in an elevated bridge area, signal data identification information may be added to the issued acquisition configuration information, such as "elevated bridge signal data". After the acquired signal data is finally acquired, the above signal data and signal data identification information may be uploaded to the control end device simultaneously, so that the control end device can store the above signal data according to the signal data identification information.
[0059] Step 204: Acquire the location information of the acquisition device.
[0060] Taking the above step 202 as an example, where the purpose of signal collection is to perform network positioning optimization, assuming that the preset area is a subway area, the location information in this step can be the location information of the collection device obtained by using a related positioning algorithm based on a weaker GPS signal.
[0061] Step 206: Determine whether the data acquisition device is located in the preset area. If the data acquisition device is located in the preset area, execute step 208; otherwise, return to step 204.
[0062] If the acquisition device is already located in the above-mentioned preset area, it means that the signal acquisition device has been triggered to collect the positioning signal, and the corresponding target positioning signal acquisition steps can be executed; if the acquisition device is not located in the above-mentioned preset area, there is no need to execute the corresponding acquisition steps, but instead it is determined again based on the location information of the acquisition device whether the acquisition device is located in the preset area.
[0063] Step 208: According to the acquisition conditions, the target positioning signal is acquired by the signal acquisition device.
[0064] Specifically, the target positioning signal can be collected by calling the API of the signal collection device according to the collection conditions. For example, if the target positioning signal is a Wi-Fi or Bluetooth signal, the Wi-Fi and Bluetooth signals can be collected by calling the APIs for obtaining Wi-Fi and Bluetooth signals in the operating system of the signal collection device, respectively.
[0065] Step 210 : performing format conversion on the collected target positioning signal according to the type of the collection device to obtain signal data in a preset format, and encapsulating the signal data in the preset format into target data.
[0066] Optionally, in some of the embodiments, the format of the collected target positioning signal may be converted according to the type of operating system on which the collection device is based to obtain signal data in a preset format.
[0067] The preset format in the embodiment of the present application can be any data format set according to actual needs, and the specific form of the preset format is not limited. For example, in order to reduce the complexity of data conversion and improve the efficiency of data conversion, the preset format can be set to a simple entity object Bean format.
[0068] For example, if the operating system of the acquisition device is Android and the preset format is Bean format, the target positioning signal in the corresponding format of the Android system collected can be converted into a target positioning signal in Bean format, and then the converted target positioning signal in Bean format can be encapsulated to obtain the target data.
[0069] Step 212: Send the target data to the control end device, so that the control end device performs network positioning or positioning fault analysis based on the target data.
[0070] Corresponding to step 202, if the acquisition configuration information received in step 202 also includes basic attribute information such as signal data identification information and version information, then in this step, the target data and basic attribute information can be uploaded simultaneously to the control terminal device, so that the control terminal device can name and store the target data based on the basic attribute information. When network positioning or fault location analysis is required, the target data can be accurately and quickly retrieved from the database based on the basic attribute information.
[0071] In the embodiment of the present application, before performing signal acquisition, the target positioning signal including acquisition trigger rules, acquisition conditions and at least one type is first acquired; when the trigger signal acquisition device is determined to acquire the positioning signal based on the attribute information of the signal acquisition device and the acquisition trigger rules, the target positioning signal is acquired according to the acquired acquisition conditions. The acquisition trigger rules, acquisition conditions and target positioning signals to be acquired in the embodiment of the present application can be pre-set in a variety of flexible ways according to actual needs to adapt to various acquisition scenarios, and when the above-mentioned acquisition configuration information changes, there is no need to redesign a new acquisition plan. In other words, the signal acquisition method provided in the embodiment of the present application can be applied to the acquisition of different target positioning signals under various acquisition trigger rules and acquisition conditions, and has good versatility. In summary, the signal acquisition method in the embodiment of the present application has a strong generalization ability and low development and maintenance costs.
[0072] At the same time, in the embodiments of the present application, the target positioning signal collected by the signal acquisition device is formatted, ultimately resulting in target data being signal data in a unified format (preset format). This decouples the signal data format from the acquisition device type. Therefore, the signal acquisition method provided by the embodiments of the present application overcomes device type restrictions and can be applied to different types of devices, demonstrating strong cross-platform capabilities.
[0073] In addition, the collection trigger rule in the embodiment of the present application is that if the signal collection device is located in a preset area, target signal collection is performed. When the above-mentioned preset area is an area with weak GPS signals, other positioning signals can be obtained according to the signal collection method provided in the embodiment of the present application. In this way, network positioning can be optimized or positioning faults can be analyzed based on the other collected positioning signals, thereby improving the positioning accuracy in areas with weak GPS signals.
[0074] The signal acquisition method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: mobile terminals (such as mobile phones, PADs, etc.) and PCs, etc.
[0075] See also Figure 2B , Figure 2B This is a schematic diagram of the signal acquisition process provided according to the second embodiment of the present application. Figure 2B The signal acquisition process provided in the second embodiment of the present application is briefly described, which mainly includes:
[0076] The first step is for the cloud control end to send the collection configuration information. Specifically, the collection configuration information is the configuration information used to collect positioning signals. The collection configuration information includes: the target positioning signal, the collection trigger rule (if the collection device is in a preset area, the target signal is collected), and the collection conditions.
[0077] The second step is to parse the above-mentioned collection configuration information sent by the cloud control end.
[0078] The third step is to obtain the location information of the acquisition device and monitor the changes in the location information.
[0079] The fourth step is to determine whether the acquisition device is located in the above-mentioned preset area based on the above-mentioned location information obtained; if not, return to the third step; if the acquisition device is located in the above-mentioned preset area, execute the fifth step.
[0080] The fifth step is to start the acquisition process. Specifically: determine whether the above acquisition conditions are met. If so, collect the target positioning signal.
[0081] The sixth step is to encapsulate the collected data. Specifically, according to the type of the collection device, the collected target positioning signal is converted into a format to obtain signal data in a preset format, and the signal data in the preset format is encapsulated into target data.
[0082] Step 7: Data upload. Specifically, the target data is sent to the cloud control terminal so that the cloud control terminal can perform network positioning or fault analysis based on the target data.
[0083] Example 3
[0084] See also Figure 3 , Figure 3 The present invention is a structural block diagram of a signal acquisition device according to the third embodiment of the present application. The signal acquisition device provided by the embodiment of the present application includes: a configuration information acquisition module 302, which is used to obtain acquisition configuration information for acquiring positioning signals, and the acquisition configuration information includes: at least one type of target positioning signal, acquisition triggering rules, and acquisition conditions; a trigger determination module 304, which is used to determine whether to trigger the signal acquisition device to acquire the positioning signal based on the attribute information and acquisition triggering rules of the signal acquisition device; a signal acquisition module 306, which is used to acquire the target positioning signal through the signal acquisition device according to the acquisition conditions if triggered; and a data encapsulation module 308, which is used to convert the format of the acquired target positioning signal according to the type of acquisition device to obtain signal data in a preset format, and encapsulate the signal data in the preset format into target data.
[0085] Optionally, in some of the embodiments, at least one type of target positioning signal is determined based on the type of the signal acquisition device and / or the location information of the signal acquisition device.
[0086] Optionally, in some embodiments, the attribute information of the signal acquisition device includes at least one of the following: position information, speed information, and types of positioning signals that can be scanned by the signal acquisition device.
[0087] Optionally, in some of the embodiments, the collection triggering rule is to collect the target positioning signal if the signal collection device is located in a preset signal collection area;
[0088] The trigger determination module 304 is specifically used to: obtain the location information of the acquisition device; determine whether the acquisition device can scan the target positioning signal based on the type of positioning signal that the signal acquisition device can scan; and determine whether the acquisition device is located in a preset signal acquisition area based on the location information of the acquisition device.
[0089] Optionally, in some embodiments, when the data encapsulation module 308 executes the step of converting the format of the collected target positioning signal according to the type of the acquisition device to obtain signal data in a preset format, it is specifically used to: convert the format of the collected target positioning signal according to the type of operating system on which the acquisition device is based to obtain signal data in a preset format.
[0090] Optionally, in some of the embodiments, the preset format is a Bean format.
[0091] Optionally, in some embodiments, the configuration information acquisition module 302 is specifically configured to: receive collection configuration information for collecting positioning signals sent by the control terminal device;
[0092] The signal acquisition device also includes: a data sending module; the data sending module is used to send the target data to the control end device after encapsulating the signal data in a preset format into target data, so that the control end device can perform network positioning or positioning fault analysis based on the target data.
[0093] The signal acquisition device of the present embodiment is used to implement any of the signal acquisition methods described in the first or second embodiment above, and has the beneficial effects of the corresponding method embodiments, which are not described in detail here. Furthermore, the functional implementation of each module in the signal acquisition device of this embodiment can refer to the description of the corresponding parts in the first or second embodiment above, and are not described in detail here.
[0094] Example 4
[0095] See also Figure 4 , shows a structural diagram of the signal acquisition system in Example 4 of the present application.
[0096] The signal acquisition system provided in the embodiment of the present application includes: a cloud control configuration layer 402, an acquisition logic layer 404, and a hardware signal abstraction layer 406;
[0097] The cloud control configuration layer 402 is used to obtain collection configuration information for collecting positioning signals, where the collection configuration information includes: at least one type of target positioning signal, collection triggering rules, and collection conditions;
[0098] The acquisition logic layer 404 is used to determine whether to trigger the signal acquisition device to collect positioning signals based on the attribute information of the signal acquisition device and the acquisition trigger rules; if triggered, the signal acquisition device collects the target positioning signal according to the acquisition conditions;
[0099] The hardware signal abstraction layer 406 is used to convert the format of the collected target positioning signal according to the type of the collection device to obtain signal data in a preset format, and encapsulate the signal data in the preset format into target data.
[0100] The following, combined Figure 4 The signal acquisition system provided in the embodiment of the present application is explained as follows:
[0101] The signal acquisition system consists of three parts: cloud control configuration layer 402, acquisition logic layer 404 and hardware signal abstraction layer 406;
[0102] The cloud control configuration layer 402 is used to obtain and parse the collection configuration information for collecting positioning signals from the control terminal device. Figure 4 The acquisition configuration information may specifically include: acquisition trigger rule configuration information, acquisition condition configuration information, and target positioning signal configuration information. Optionally, in other embodiments, the acquisition configuration information may also include: basic attribute information such as signal data identification information and version information.
[0103] The acquisition logic layer 404 is used to determine whether to trigger the signal acquisition device to collect positioning signals based on the attribute information of the signal acquisition device and the acquisition trigger rules; if triggered, the target positioning signal is collected according to the acquisition conditions through the signal acquisition devices in the hardware implementation layer, such as PCs, mobile phones, smart watches, cars, and tablets.
[0104] For example, see Figure 4 The collection trigger rule can be any one of the following: GPS trigger rule, preset area trigger rule (also called fence trigger rule), GPS drift trigger rule, speed anomaly trigger rule and instruction trigger rule. Among them, the GPS trigger rule can refer to: when the signal collection device cannot scan the GPS signal, or the scanned GPS signal is weak, the signal collection process is carried out; the preset area trigger rule can refer to: when the signal collection device is located in the preset area, the signal collection is carried out; the GPS drift trigger rule can refer to: within a short period of time, the position of the device obtained by the GPS signal is located at two different locations with a large distance difference, the collection is carried out; the speed anomaly trigger rule can refer to: when the change in the speed of the acquired signal collection device within 1s exceeds the preset threshold, the signal collection is carried out; the instruction trigger rule can refer to: when the preset signal collection instruction is received, the signal collection is carried out.
[0105] The collection conditions can be set from the perspective of distance, for example: the signal collection device collects a positioning signal once every time it moves 1m; the collection conditions can also be set from the perspective of time, for example: the positioning signal is collected once every hour; it can also be set from the perspective of speed, for example: the signal collection device collects a positioning signal once every time the speed increases by 1km / h; it can also be set from the perspective of frequency, for example: 1s / time.
[0106] The collected data may include: WIFI signal collection, sensor signal collection, GNSS signal collection, Bluetooth signal collection, base station signal collection and cellular network signal collection.
[0107] The hardware signal abstraction layer 406 is used to convert the format of the collected target positioning signal according to the type of acquisition device, obtain signal data in a preset format (Bean format), encapsulate the signal data in the preset format into target data, and upload the target data to the control end device through the acquisition logic layer 404.
[0108] The signal acquisition system of the present embodiment is used to implement any of the signal acquisition methods described in the first or second embodiment above, and has the beneficial effects of the corresponding method embodiments, which are not described in detail here. Furthermore, the functional implementation of each layer in the signal acquisition system of this embodiment can refer to the description of the corresponding parts in the first or second embodiment above, which are not described in detail here.
[0109] Example 5
[0110] Reference Figure 5 , shows a structural diagram of an electronic device according to the fifth embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0111] like Figure 5 As shown, the electronic device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0112] in:
[0113] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .
[0114] The communication interface 504 is used to communicate with other electronic devices or servers.
[0115] The processor 502 is configured to execute the program 510 , and specifically to execute the relevant steps in the above-mentioned signal acquisition method embodiment.
[0116] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0117] The processor 502 may be a CPU, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs, or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0118] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0119] Program 510 can specifically be used to enable the processor 502 to perform the following operations: obtain acquisition configuration information for acquiring positioning signals, the acquisition configuration information including: at least one type of target positioning signal, acquisition triggering rules, and acquisition conditions; determine whether to trigger the signal acquisition device to acquire the positioning signal based on the attribute information and acquisition triggering rules of the signal acquisition device; if triggered, acquire the target positioning signal through the signal acquisition device according to the acquisition conditions; convert the format of the collected target positioning signal according to the type of acquisition device to obtain signal data in a preset format, and encapsulate the signal data in the preset format as target data.
[0120] The specific implementation of each step in program 510 can be found in the corresponding descriptions of the corresponding steps and units in the above-mentioned signal acquisition method embodiment, and will not be repeated here. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding process descriptions in the above-mentioned method embodiment, and will not be repeated here.
[0121] Through the electronic device of this embodiment, before performing signal acquisition, the target positioning signal including acquisition trigger rules, acquisition conditions and at least one type is first acquired; when the trigger signal acquisition device is determined to acquire the positioning signal based on the attribute information of the signal acquisition device and the acquisition trigger rules, the target positioning signal is acquired according to the acquired acquisition conditions. The acquisition trigger rules, acquisition conditions and target signals to be acquired in the embodiment of the present application can be pre-set in a variety of flexible ways according to actual needs to adapt to various different acquisition scenarios, and when the above-mentioned acquisition configuration information changes, there is no need to redesign a new acquisition plan. In other words, the signal acquisition method provided in the embodiment of the present application can be applied to the acquisition of different target positioning signals under various different acquisition trigger rules and acquisition conditions, and has good versatility. In summary, the signal acquisition method of the embodiment of the present application has strong generalization capabilities and low development and maintenance costs.
[0122] Furthermore, in the embodiments of the present application, the target positioning signal collected by the signal acquisition device is formatted, ultimately resulting in target data being signal data in a unified format (preset format). This decouples the signal data format from the acquisition device type. Therefore, the signal acquisition method provided by the embodiments of the present application overcomes device type limitations and can be applied to different types of devices, demonstrating strong cross-platform capabilities.
[0123] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0124] The above-described method according to the embodiment of the present application can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or as computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium and is to be stored in a local recording medium, which is downloaded via a network, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the signal acquisition method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the signal acquisition method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the signal acquisition method shown herein.
[0125] Those skilled in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of this application.
[0126] The above implementation methods are only used to illustrate the embodiments of the present application, and are not intended to limit the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also fall within the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application should be defined by the claims.
Claims
1. A signal acquisition method, comprising: Acquiring acquisition configuration information for acquiring positioning signals, the acquisition configuration information including: at least one type of target positioning signal, acquisition triggering rules, and acquisition conditions; Determining whether to trigger the signal acquisition device to acquire positioning signals based on the attribute information of the signal acquisition device and the acquisition trigger rule; If triggered, the target positioning signal is collected by the signal collection device according to the collection conditions; According to the type of the signal acquisition device, the format of the acquired target positioning signal is converted to obtain signal data in a preset format, and the signal data in the preset format is encapsulated as target data.
2. The method according to claim 1, wherein The at least one type of target positioning signal is determined according to the type of the signal acquisition device and / or the location information of the signal acquisition device.
3. The method according to claim 2, wherein: The attribute information of the signal acquisition device includes at least one of the following: position information, speed information, and the type of positioning signal that can be scanned by the signal acquisition device.
4. The method according to claim 3, wherein: The acquisition trigger rule is that the signal acquisition device acquires target positioning signals when it is located in a preset signal acquisition area. Based on the attribute information of the signal acquisition device and the acquisition trigger rule, determining whether to trigger the signal acquisition device to acquire positioning signals includes: Obtaining location information of the signal acquisition device; Determining whether the signal acquisition device can scan the target positioning signal based on the type of positioning signal that the signal acquisition device can scan; Based on the location information of the signal acquisition device, it is determined whether the signal acquisition device is located in the preset signal acquisition area.
5. The method according to claim 1, wherein The step of converting the format of the collected target positioning signal according to the type of the signal collection device to obtain signal data in a preset format includes: According to the type of operating system on which the signal acquisition device is based, the format of the collected target positioning signal is converted to obtain signal data in a preset format.
6. The method according to any one of claims 1 to 5, wherein: The preset format is Bean format.
7. The method according to any one of claims 1 to 5, wherein: The acquiring of acquisition configuration information for acquiring positioning signals includes: Receiving acquisition configuration information for acquiring positioning signals sent by the control terminal device; After encapsulating the signal data in the preset format into target data, the method further includes: The target data is sent to the control end device, so that the control end device performs network positioning or positioning fault analysis based on the target data.
8. A signal acquisition device comprising: A configuration information acquisition module, configured to acquire acquisition configuration information for acquiring positioning signals, wherein the acquisition configuration information includes: at least one type of target positioning signal, acquisition triggering rules, and acquisition conditions; A trigger determination module, configured to determine whether to trigger the signal acquisition device to acquire a positioning signal based on the attribute information of the signal acquisition device and the acquisition trigger rule; A signal acquisition module, configured to acquire the target positioning signal through a signal acquisition device according to the acquisition conditions if triggered; The data encapsulation module is used to convert the format of the collected target positioning signal according to the type of the signal acquisition device to obtain signal data in a preset format, and encapsulate the signal data in the preset format into target data.
9. A signal acquisition system comprising: The cloud control configuration layer is used to obtain collection configuration information for collecting positioning signals, wherein the collection configuration information includes: at least one type of target positioning signal, collection triggering rules, and collection conditions; The acquisition logic layer is used to determine whether to trigger the signal acquisition device to acquire the positioning signal based on the attribute information of the signal acquisition device and the acquisition trigger rule; if triggered, the signal acquisition device is used to acquire the target positioning signal according to the acquisition conditions; The hardware signal abstraction layer is used to convert the format of the collected target positioning signal according to the type of the signal collection device, obtain signal data in a preset format, and encapsulate the signal data in the preset format into target data.
10. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the signal acquisition method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Intelligent positioning pump communication system based on internet of things
CN109218453A
Indoor locating method and device based on geomagnetic field
CN110296699A