CN114067851A - Signal source processing method and device and nonvolatile storage medium - Google Patents

Signal source processing method and device and nonvolatile storage medium Download PDF

Info

Publication number
CN114067851A
CN114067851A CN202111163531.9A CN202111163531A CN114067851A CN 114067851 A CN114067851 A CN 114067851A CN 202111163531 A CN202111163531 A CN 202111163531A CN 114067851 A CN114067851 A CN 114067851A
Authority
CN
China
Prior art keywords
signal source
source data
thread
data
recording
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111163531.9A
Other languages
Chinese (zh)
Other versions
CN114067851B (en
Inventor
刘沙
刘博�
方兴
李永军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Autonavi Software Co Ltd
Original Assignee
Autonavi Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Autonavi Software Co Ltd filed Critical Autonavi Software Co Ltd
Priority to CN202111163531.9A priority Critical patent/CN114067851B/en
Publication of CN114067851A publication Critical patent/CN114067851A/en
Application granted granted Critical
Publication of CN114067851B publication Critical patent/CN114067851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The application discloses a signal source processing method and device and a nonvolatile storage medium. Wherein, the method comprises the following steps: acquiring signal source data generated by a signal source currently scanned by terminal equipment, wherein the signal source data is used for predicting a positioning result corresponding to the current environment; recording signal source data generated by a signal source to obtain a recording result; and playing back the recording result to obtain a positioning result. The method and the device solve the technical problem that in the related technology, when the environment of the object to be positioned changes, the object to be positioned cannot be accurately positioned.

Description

Signal source processing method and device and nonvolatile storage medium
Technical Field
The present application relates to the field of positioning technologies, and in particular, to a signal source processing method and apparatus, and a non-volatile storage medium.
Background
At present, when people go out, especially when people walk or drive in a strange environment, application software with a map navigation function installed on a terminal device is usually used, and the application software can guide a user using the terminal device to smoothly arrive at a destination along a corresponding navigation route based on the positioning position of the terminal device.
In the prior art, a terminal device (e.g., a mobile phone or a vehicle) can be located through a GNSS module carried by the terminal device, but a GNSS signal is blocked to cause a failure in location, and for this reason, the prior art provides a multi-source fusion location technology that continuously outputs a location position of the terminal device through various signal source (GNSS, base station, Wifi, bluetooth, sensor, etc.) data received or scanned by the terminal device, an online location algorithm deployed on a service side, an offline location algorithm deployed on the terminal device side, and a related scheduling policy. It can be seen that the source data is the basis for the localization algorithm to continuously output the localization position.
In the case where the positioning algorithm and the positioning logic are not changed, the accuracy of the positioning position of the terminal device (referred to as positioning accuracy for short) may be affected by the accuracy of the signal source data received or scanned by the terminal device. The self state of the terminal equipment and the environmental factors of the area where the terminal equipment is located can affect the accuracy of signal source data received or scanned by the terminal equipment, the accuracy reduction of the signal source data can cause the reduction of positioning accuracy, and once the positioning accuracy is reduced, various services (navigation service, network appointment service, life service and the like) based on the positioning position can be affected. Therefore, in the situation that the state of the terminal device itself or environmental factors are uncontrollable and unpredictable, how to ensure the predictability of the positioning position is a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides a signal source processing method and device and a nonvolatile storage medium, which are used for at least solving the technical problem that in the related technology, when the environment of an object to be positioned changes, the object to be positioned cannot be accurately positioned.
According to an aspect of an embodiment of the present application, there is provided a signal source processing method, including: acquiring signal source data generated by a signal source currently scanned by terminal equipment, wherein the signal source data is used for predicting a positioning result corresponding to the current environment; recording signal source data generated by a signal source to obtain a recording result; and playing back the recording result to obtain a positioning result.
According to another aspect of the embodiments of the present application, there is also provided a signal source processing apparatus, including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring signal source data generated by a signal source currently scanned by terminal equipment, and the signal source data is used for predicting a positioning result corresponding to a current environment; the recording module is used for recording the signal source data generated by the signal source to obtain a recording result; and the processing module is used for playing back the recording result to obtain the positioning result.
According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to execute the signal source processing method when running.
In the embodiment of the application, a method of recording signal source data generated by a signal source currently scanned by a terminal device is adopted, after signal source data generated by the signal source currently scanned by the terminal device and used for predicting a positioning result corresponding to a current environment is obtained, the signal source data generated by the signal source is recorded to obtain a recording result, and then the recording result is played back to obtain the positioning result.
In the process, the signal source data is data generated by a signal source currently scanned by the terminal device, that is, the signal source data generated by the signal source currently scanned by the terminal device is related to the current environment of the terminal device, so that in the process of recording the signal source data generated by the signal source, a variable environment can be fixed in a recording mode, and then when the signal source data is used, the recording result is played back in a playback mode, so that the situation that an uncontrollable system signal source is replaced by a played back signal source is realized, the upper-layer service can play back the current scene for an unlimited time through the played back signal source, the influence of environment change on the positioning result is reduced, and the certainty (predictability) and the accuracy of the positioning result are ensured.
Therefore, the purpose of ensuring the accuracy of the positioning result when the environment changes is achieved by the scheme provided by the application, the technical effect of accurately positioning the object to be positioned is achieved, and the technical problem that in the related technology, when the environment of the object to be positioned changes, the object to be positioned cannot be accurately positioned is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware structure of an alternative computing device for implementing a signal source processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a signal source processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an alternative recording initialization according to an embodiment of the present application;
fig. 4 is a flow chart of an alternative start recording according to an embodiment of the present application;
fig. 5 is a flow chart of an alternative ending recording according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an alternative playback initialization according to an embodiment of the present application;
FIG. 7 is a schematic flow chart diagram illustrating an alternative playback of a signal source according to an embodiment of the present application;
FIG. 8 is a flow chart of an optional end of playback according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a signal source processing device according to an embodiment of the present application;
fig. 10 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
There is also provided, in accordance with an embodiment of the present application, an embodiment of a signal source processing method, to note that the steps illustrated in the flowchart of the figure may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
The signal source processing method provided by the first embodiment of the present application may be executed in a mobile terminal, a computing device, or a similar computing device. Fig. 1 shows a hardware configuration block diagram of a computing device (or mobile device) for implementing the signal source processing method. As shown in fig. 1, computing device 10 (or mobile device 10) may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 104 for storing data, and transmission module 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, computing device 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computing device 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 can be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the signal source processing method in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the signal source processing method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to computing device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by a communications provider of computing device 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computing device 10 (or mobile device).
It should be noted here that in some alternative embodiments, the computer device (or mobile device) shown in fig. 1 described above may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the computer device (or mobile device) described above.
In the above operating environment, the present application provides a signal source processing method as shown in fig. 2. Fig. 2 is a flowchart of a signal source processing method according to a first embodiment of the present application, and as can be seen from fig. 2, the method at least includes the following steps:
step S202, signal source data generated by a signal source scanned by the terminal equipment currently is obtained, wherein the signal source data is used for predicting a positioning result corresponding to the current environment.
In step S202, the current environment may be an environment in which the object to be positioned is located, where the object to be positioned may be a vehicle, a person, an animal, or the like. Optionally, when the object to be located is a vehicle, the terminal device may be set in the vehicle, and the terminal device may acquire multiple types of signal sources in the current environment, for example, the terminal device may be a navigation system in the vehicle, or may be a device (e.g., a mobile phone) with a navigation function held by a person in the vehicle; in the case that the object to be positioned is a person, the person holds a terminal device which can acquire multiple types of signal sources in the current environment, wherein the terminal device is a device (for example, a mobile phone) with a navigation function held by the person.
In step S202, the signal source is a System signal that is required to be used for positioning, and includes, but is not limited to, information collected by a GNSS (Global Navigation Satellite System), information collected by a base station, WIFI information, bluetooth information, and information collected by a related sensor.
In an optional embodiment, the vehicle is provided with a terminal device, and the terminal device acquires multiple types of scanned signal sources in the driving process of the vehicle in real time, for example, the terminal device is provided with a WIFI module, which can acquire WIFI information (for example, the number of WIFI signals, the intensity of the WIFI signals, and the like) that can be detected around the vehicle; the terminal equipment can also be provided with a Bluetooth module which can detect the equipment needing Bluetooth connection around the vehicle; the terminal device may also have a temperature sensor, a humidity sensor, etc., which may acquire environmental information (e.g., ambient temperature, humidity, etc.) around the vehicle. In addition, the terminal device may also acquire the location information of the vehicle based on the GNSS, and may also acquire information such as location information of the base station, device information, and the like.
It should be noted that, in the above description, the current environment is taken as an outdoor environment as an example, in practical applications, the current environment may also be an indoor environment, for example, a user holds a terminal device (e.g., a mobile phone) to move indoors, and at this time, the terminal device acquires signal source data generated by a signal source scanned in the indoor environment.
And step S204, recording the signal source data generated by the signal source to obtain a recording result.
In step S204, the required signal source data may be recorded in a database manner, optionally, the database may be a cloud database, and in this scenario, after the terminal device records the signal source data, the recording result is sent to the cloud database for storage.
It should be noted that, by the recording method in step S204, the variable environment can be fixed, thereby reducing the influence of the environmental change on the positioning result.
And step S206, playing back the recording result to obtain a positioning result.
In step S206, the playback of the recording result is the playback of the recorded signal source data, and optionally, the playback of the recording result may be performed according to the recording sequence of the signal source data. And the recording result can be played back to the positioning software development kit so as to realize the position positioning of the terminal equipment through the positioning software development kit.
It should be noted that, through step S206, uncontrollable system signal source data can be replaced by played-back signal source data, so that the predictability of the positioning result output can be ensured with a high probability, and after the recording result is played back for multiple times, the obtained positioning result is the same, so that the accuracy of the positioning result determined based on the playback result is ensured.
In addition, it should be noted that, in the conventional navigation system, only the signal source data in the navigation scene can be played back by means of the positioning engine log, and the signal source data of other scenes (for example, indoor scenes) cannot be played back. The signal source data of the current scene is recorded, the current scene can be an outdoor scene, an indoor scene or a main scene, and in practical application, an application method of an upper layer service and an application scene of the upper layer service do not need to be considered, so that playback of the signal source data of the whole scene is realized, and the scheme provided by the application has a wider application scene.
Based on the schemes defined in steps S202 to S206, it can be known that, in the embodiment of the present application, a method of recording signal source data generated by a signal source currently scanned by a terminal device is adopted, and after signal source data generated by a signal source currently scanned by the terminal device and used for predicting a positioning result corresponding to a current environment is generated, signal source data generated by the signal source is recorded to obtain a recording result, and then the recording result is played back to obtain the positioning result.
It is easy to note that, in the above process, the signal source data is data generated by the signal source currently scanned by the terminal device, that is, the signal source data generated by the signal source currently scanned by the terminal device is related to the current environment of the terminal device, therefore, in the process of recording the signal source data generated by the signal source, the variable environment can be fixed in a recording manner, and then when the signal source data is used, the recording result is played back in a playback manner, so that the uncontrollable system is replaced by the signal source for playback, the upper layer service can play back the current scene for an unlimited number of times through the played back signal source, the influence of the environment change on the positioning result is reduced, and the certainty (predictability) and accuracy of the positioning result are ensured.
Therefore, the purpose of ensuring the accuracy of the positioning result when the environment changes is achieved by the scheme provided by the application, the technical effect of accurately positioning the object to be positioned is achieved, and the technical problem that in the related technology, when the environment of the object to be positioned changes, the object to be positioned cannot be accurately positioned is solved.
In an alternative embodiment, in the process of recording the signal source data generated by the signal source, three processes of initializing the recording of the signal source, starting the recording and ending the recording are mainly involved.
Optionally, in an initialization process of recording the signal source, first, the recording configuration information is obtained, then, a database file is created based on the recording configuration information, corresponding signal source data tables are created in the database file for the different types of signal sources, respectively, a signal source manager is initialized based on the recording configuration information, the initialized signal source manager is called to add corresponding signal source recorders for the different types of signal sources, and finally, a monitoring thread corresponding to each type of signal source is initialized based on the recording configuration information.
As can be seen from fig. 3, in the process of performing recording initialization, first, the control terminal device reads recording configuration information, and optionally, the recording configuration information may be used to configure a database storing signal source data, where the recording configuration information includes, but is not limited to, a static data request frequency, a database entry type, a database file name, and the like.
Optionally, the static data is data that is continuously kept unchanged, and the data may be directly accessed by a terminal device or a server, for example, data of the WIFI switch (for example, 1 indicates that the WIFI switch is in an on state; 0 indicates that the WIFI switch is in an off state), memory data (for example, 1 indicates that the memory is in an occupied state, and 0 indicates that the memory is in an idle state), and power data (for example, remaining power).
In addition, the warehousing type represents the type of data written into the database file, such as a GPS data type, a WIFI data type, and the like. When the signal source data is played back, the signal source data needing to be played back can be selected through the warehousing type, and all the signal source data do not need to be played back, so that the signal source data can be played back more flexibly.
After the recording configuration information is obtained, a database file is created based on the recording configuration information, optionally, the data type stored in the database file is the data type written into the database, and the name of the database file is the name of the database file.
Further, after creating the database file, initializing a signal source manager, wherein the signal source manager can manage the signal source data, for example, the signal source manager can select a signal source of a target type to be monitored from different types of signal sources. Then, adding different types of signal source recorders, wherein the different types of signal sources are recorded by the corresponding types of signal source recorders. Optionally, the signal source recorder may write the signal source of the corresponding type into the buffer queue, and the signal source in the buffer queue is finally written into the database file.
Further, as can be seen from fig. 3, after adding different types of signal sources, different types of signal source data tables are created, and likewise, the signal source data of the different types of signal sources are stored in the different types of signal source data tables. And finally, initializing the monitoring threads corresponding to the types of the signal sources of different types, thereby realizing the initialization of the signal source recording.
In an optional embodiment, after initializing the signal source recording, recording signal source data generated by the signal source may be started, specifically, first, a monitoring thread corresponding to the type of the signal source is invoked, the signal source data generated by the signal source is monitored by the monitoring thread, then, a signal source recorder corresponding to the type of the signal source is invoked, the signal source recorder records the signal source data monitored by the monitoring thread corresponding to the type of the signal source to a cache queue corresponding to the type of the signal source, and finally, the signal source recorder writes the signal source stored in the cache queue into a signal source data table corresponding to the type of the signal source.
Optionally, fig. 4 shows an optional flowchart for starting recording, where the terminal device has a timer, and when starting to record signal source data, the terminal device starts the timer to record the time for starting recording. Then, the terminal device calls dynamic data and static data of a signal source selected from the plurality of types of signal sources through the signal source manager, wherein the dynamic data is data which continuously changes along with the movement of the object to be positioned, for example, data in a GPS list, a WIFI list and the like continuously increase along with the movement of the object to be positioned.
Then, the signal source recorder corresponding to the type of the selected signal source records the signal source data (i.e., the dynamic data and the static data) into the corresponding buffer queue through the signal source interface of each type of signal source, and finally, the signal source data in the buffer queue is written into the corresponding signal source data table in batch through the signal source recorder.
It should be noted that different types of signal sources correspond to different types of signal source interfaces, different types of signal sources correspond to different signal source recorders, and different types of signal sources correspond to different signal source data tables, wherein signal source data are recorded into corresponding buffer queues through the signal source interfaces, the signal source interfaces have universality, and a problem that different systems can only be compatible with corresponding data formats can be avoided.
In an alternative embodiment, as shown in fig. 4, before writing the signal source data stored in the buffer queue into the signal source data table corresponding to the type of the signal source, it is necessary to determine the storage amount of the signal source data in the buffer queue and the size of the preset threshold. Specifically, in the process of monitoring the signal source data by calling the monitoring thread corresponding to the type of the signal source, whether the storage amount of the cache queue is greater than a preset threshold value is judged, and when the storage amount of the cache queue is determined to be greater than the preset threshold value, the signal source data stored in the cache queue is written into the signal source data table, and the signal source data written into the signal source data table is deleted from the cache queue.
In another optional embodiment, when the duration that the storage amount of the buffer queue is not greater than the preset threshold exceeds the preset duration, the signal source data stored in the buffer queue may also be written into the signal source data table in batch, for example, a timer of the terminal device starts to time when the signal source data starts to be recorded, and when the signal source manager detects that the storage amount in the buffer queue of a certain type of signal source does not reach the preset threshold for a long time, the signal source recorder corresponding to the type of signal source writes the signal source data in the buffer queue of the corresponding type into the signal source data table of the corresponding type. The process can avoid the problem that the signal source data is stored in the buffer queue for a long time, so that the memory is occupied for a long time and the system performance is influenced.
Optionally, fig. 5 shows an optional flowchart for ending recording, and as can be seen from fig. 5, before ending recording, when a listening thread corresponding to the type of the signal source stops listening to signal source data, it needs to first determine whether there is remaining signal source data that has not been written into the signal source data table in the cache queue; when determining that the residual signal source data exist in the buffer queue, writing the residual signal source data into a signal source data table, and deleting the residual signal source data written into the signal source data table from the buffer queue; and when determining that the residual signal source data does not exist in the cache queue, releasing the monitoring thread and the cache queue corresponding to the type of the signal source.
It should be noted that, as can be seen from fig. 5, before the call of the listening thread corresponding to the type of the signal source is stopped, the data corresponding to the signal source manager needs to be unregistered, where the unregistering of the data corresponding to the signal source manager is implemented by stopping various signal acquisition modes.
In an optional embodiment, when the terminal device receives a control instruction for stopping data acquisition, the terminal device stops de-registering data corresponding to the signal source manager. In another optional embodiment, when the terminal device cannot acquire data, for example, the terminal device fails, or a component that acquires or receives data in the terminal device fails, the terminal device stops de-registering the data corresponding to the signal source manager, so as to avoid the problem that the acquired data has an error due to continuous data acquisition when the terminal device fails, or the component that acquires or receives data in the terminal device fails.
In an alternative embodiment, three phases are involved in the playback of the source data, namely, the initialization of the playback of the source data, the start of the playback, and the end of the playback.
Optionally, fig. 6 shows a schematic diagram of an optional playback initialization, in the process of playing back the signal source data, first obtaining playback configuration information, and initializing a database, where the playback configuration information includes, but is not limited to, a selected database file to be played back, a size of a blocking queue, a warehousing type, and the like.
It should be noted that the block queue includes signal source data waiting for playback, for example, GPS signal source data needs to be played back, and only after the playback time corresponding to the GPS signal source data reaches, the GPS signal source data is obtained from the block queue and played back, and signal source data whose playback time does not reach needs to continue waiting in the block queue until the playback time reaches, and then is taken out from the block queue.
Optionally, as can be seen from fig. 6, after the playback configuration information is obtained, the signal source manager is further initialized based on the playback configuration information, corresponding signal source playback devices are respectively added to different types of signal sources through the signal source manager, and then a working thread corresponding to each type of signal source is initialized based on the playback configuration information.
It should be noted that the signal source working thread includes: the method comprises a signal source reading thread, a signal source queue thread, a signal source distributing thread, a signal source processing thread and a signal source callback thread. The signal source reading thread is used for reading signal source data to be distributed in the database file; the signal source queue thread is used for acquiring signal source data to be distributed from the blocking queue; the signal source distribution thread is used for acquiring signal source data to be distributed; the signal source processing thread is used for processing signal source data to be distributed; the signal source callback thread is used for performing data callback on signal source data to be distributed.
In an optional embodiment, in the process of playing back the recording result, a signal source reading thread is called to read signal source data to be distributed from a database file, the signal source data to be distributed is cached to a blocking queue, then a signal source queue thread is called, the signal source queue thread acquires the signal source data to be distributed from the blocking queue according to the writing time sequence of the signal source data to be distributed when being written into the database file, and stores the signal source data to a message queue, and then the signal source distribution thread is called, and the signal source data to be distributed is acquired from the message queue according to the writing time sequence. Then determining whether the signal source data to be distributed is callback data, calling a signal source processing thread to perform byte sequence conversion processing on the signal source data to be distributed to obtain a processing result when the signal source data to be distributed is determined not to be the callback data, and storing the processing result to a memory; when the signal source data to be distributed is determined to be callback data, the signal source distribution thread is called to distribute the signal source data to be distributed to the signal source callback thread, and the signal source callback thread is called to perform data callback after the byte sequence conversion processing is performed on the signal source data to be distributed so as to obtain a positioning result.
It should be noted that the signal source processing thread at least includes a static data processing thread, where when the signal source data to be distributed is not callback data, the static data processing thread may be called to perform byte sequence conversion processing on the signal source data to be distributed, where the byte sequence conversion processing may be, but is not limited to, data deserialization processing.
In addition, it should be noted that, the signal source data to be distributed of each type of signal source has a separate blocking queue, and when the signal source data is played back, the signal source data to be distributed of the same type of signal source is played back separately. In addition, the signal source data to be distributed of each type of signal source independently has a corresponding signal source working thread, that is, the signal source reading thread, the signal source queue thread, the signal source distribution thread, the signal source processing thread and the signal source playback thread of the signal source data to be distributed of different types of signal sources are all different, so that when the corresponding signal source working thread is called to process the signal source data to be distributed of the signal source of the corresponding type of signal source, the signal source data to be distributed of other types of signal sources cannot be affected, and the independence between the signal source data to be distributed of the different types of signal sources is ensured.
Optionally, fig. 7 shows a schematic flow chart of the signal source playback described above, and as can be seen from fig. 7, before the signal source reading thread is called to read the signal source data to be distributed from the database file, it is also necessary to record a playback start time.
In an alternative embodiment, fig. 8 shows a flowchart of an alternative playback end, and as can be seen from fig. 8, in the process of ending playback, first, invoking of the signal source worker thread is stopped, then, the signal source worker thread and the storage resource occupied by the signal source data to be distributed are released, and after the signal source worker thread and the storage resource are released, playback of the signal source data is ended.
Furthermore, in the process of replaying the signal source data, the replayed signal source data can be replayed to the positioning service interface of the terminal device, so that the upper layer service can replay the current scene by using the replayed signal source data for infinite times, and further the influence of a variable environment on the positioning result is avoided.
According to the above, the scheme provided by the application can record all signal source data used for positioning, namely record the environment where the signal source data is located at that time, then select a signal source to be played back from the recorded multiple signal sources, and then play back the selected signal source data to be played back according to the recording sequence. The whole process does not need to consider the use scene of the upper-layer service, the data playback of the full-scene signal source can be carried out, and the application scene is wider.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the signal source processing method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation manner in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
Example 2
According to an embodiment of the present application, there is also provided a signal source processing apparatus for implementing the signal source processing method, as shown in fig. 9, the apparatus 90 includes: an acquisition module 901, a recording module 903, and a processing module 905.
The acquiring module 901 is configured to acquire signal source data generated by a signal source currently scanned by a terminal device, where the signal source data is used to predict a positioning result corresponding to a current environment; the recording module 903 is used for recording signal source data generated by a signal source to obtain a recording result; the processing module 905 is configured to play back the recording result to obtain a positioning result.
It should be noted here that the acquiring module 901, the recording module 903, and the processing module 905 correspond to steps S202 to S206 in embodiment 1, and the three modules are the same as the corresponding steps in the implementation example and the application scenario, but are not limited to the disclosure in the first embodiment. It should be noted that the modules described above as part of the apparatus may be run in the computing device 10 provided in the first embodiment.
Optionally, the recording module includes: the device comprises a first calling module, a second calling module and a first processing module. The first calling module is used for calling a monitoring thread corresponding to the type of the signal source, and the monitoring thread monitors signal source data generated by the signal source; the second calling module is used for calling a signal source recorder corresponding to the type of the signal source, and the signal source recorder records the signal source data monitored by the monitoring thread corresponding to the type of the signal source to a cache queue corresponding to the type of the signal source; and the first processing module is used for writing the signal source stored in the buffer queue into a signal source data table corresponding to the type of the signal source by the signal source recorder.
Optionally, the first processing module includes: the device comprises a first judgment module, a second processing module, a second judgment module and a third processing module. The first judging module is used for judging whether the storage capacity of the cache queue is greater than a preset threshold value or not in the process of calling the monitoring thread corresponding to the type of the signal source to monitor the signal source data; the second processing module is used for writing the signal source data stored in the buffer queue into the signal source data table and deleting the signal source data written into the signal source data table from the buffer queue when the storage capacity of the buffer queue is determined to be larger than a preset threshold value; the second judgment module is used for judging whether residual signal source data which are not written into the signal source data table exist in the cache queue or not when the monitoring thread corresponding to the type of the signal source is stopped from monitoring the signal source data; and the third processing module is used for writing the residual signal source data into the signal source data table and deleting the residual signal source data written into the signal source data table from the buffer queue when the residual signal source data are determined to exist in the buffer queue.
Optionally, the signal source processing apparatus further includes: and the fourth processing module is used for releasing the monitoring thread and the cache queue corresponding to the type of the signal source when determining that no residual signal source data exists in the cache queue.
Optionally, the signal source processing apparatus further includes: the device comprises a first acquisition module, a first creation module, a second creation module, a fifth processing module and a sixth processing module. The first acquisition module is used for acquiring recording configuration information; the first creating module is used for creating a database file based on the recording configuration information; the second establishing module is used for respectively establishing corresponding signal source data tables for different types of signal sources in the database file; the fifth processing module is used for initializing the signal source manager based on the recording configuration information and calling the initialized signal source manager to add corresponding signal source recorders for different types of signal sources respectively; and the sixth processing module is used for initializing the monitoring thread corresponding to each type of signal source based on the recording configuration information.
Optionally, the processing module includes: the device comprises a third calling module, a cache module, a fourth calling module, a fifth calling module, a first determining module, a sixth calling module and a seventh calling module. The third calling module is used for calling a signal source reading thread to read signal source data to be distributed from the database file; the buffer module is used for buffering the signal source data to be distributed to the blocking queue; the fourth calling module is used for calling the signal source queue thread, and the signal source queue thread acquires the signal source data to be distributed from the blocking queue according to the writing time sequence when the signal source data to be distributed is written into the database file and stores the signal source data to be distributed to the message queue; the fifth calling module is used for calling the signal source distribution thread, and the signal source distribution thread acquires signal source data to be distributed from the message queue according to the sequence of the writing time; the first determining module is used for determining whether the signal source data to be distributed is callback data; the sixth calling module is used for calling the signal source processing thread to perform byte sequence conversion processing on the signal source data to be distributed to obtain a processing result and storing the processing result into the memory when the signal source data to be distributed is determined not to be callback data; and the seventh calling module is used for calling the signal source distribution thread to distribute the signal source data to be distributed to the signal source callback thread when the signal source data to be distributed is determined to be callback data, and calling the signal source callback thread to perform data callback after the byte sequence conversion processing is performed on the signal source data to be distributed so as to obtain the positioning result.
Optionally, the recorded result is played back to the positioning software development kit.
Optionally, the signal source processing apparatus further includes: the device comprises a second acquisition module, a seventh processing module and an eighth processing module. The second acquisition module is used for acquiring playback configuration information; the seventh processing module is used for initializing the signal source manager based on the playback configuration information and respectively adding corresponding signal source playback devices for different types of signal sources through the signal source manager; an eighth processing module, configured to initialize a worker thread corresponding to each type of signal source based on the playback configuration information, where the worker thread includes: the method comprises a signal source reading thread, a signal source queue thread, a signal source distributing thread, a signal source processing thread and a signal source callback thread.
Example 3
According to an embodiment of the present application, there is also provided an electronic device for implementing the signal source processing method, where the electronic device includes: a processor and a memory.
The memory is connected with the processor and used for providing instructions for the processor to process the following processing steps: acquiring signal source data generated by a signal source currently scanned by terminal equipment, wherein the signal source data is used for predicting a positioning result corresponding to the current environment; recording signal source data generated by a signal source to obtain a recording result; and playing back the recording result to obtain a positioning result.
As can be seen from the above, in the embodiment of the present application, after the multiple types of signal sources in the current environment are obtained, the recording result is obtained by recording the multiple types of signal sources, and the positioning result is obtained by playing back the recording result.
It is easy to notice that, in the above process, multiple types of signal sources in the current environment are recorded, so that the variable environment is fixed in a recording mode, and then when the signal sources of the corresponding types are used, the playback is performed in a playback mode, so that the uncontrollable system signal source is replaced by the played back signal source, the upper layer service can play back the current scene for an unlimited time through the played back signal source, the influence of the environment change on the positioning result is reduced, and the accuracy of the positioning result output is ensured.
Therefore, the purpose of ensuring the accuracy of the positioning result when the environment changes is achieved by the scheme provided by the application, the technical effect of accurately positioning the object to be positioned is achieved, and the technical problem that in the related technology, when the environment of the object to be positioned changes, the object to be positioned cannot be accurately positioned is solved.
It should be noted that the processor in this embodiment may execute the signal source processing method in embodiment 1, where relevant contents of the signal source processing method are already described in embodiment 1, and are not described herein again.
Example 4
Embodiments of the present application may provide a computing device that may be any one of a group of computing devices. Optionally, in this embodiment, the computing device may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computing device may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the above-mentioned computing device may execute the program code of the following steps in the signal source processing method: acquiring signal source data generated by a signal source currently scanned by terminal equipment, wherein the signal source data is used for predicting a positioning result corresponding to the current environment; recording signal source data generated by a signal source to obtain a recording result; and playing back the recording result to obtain a positioning result.
Optionally, fig. 10 is a block diagram of a computing device according to an embodiment of the present application. As shown in fig. 10, the computing device 10 may include: one or more processors 1002 (only one of which is shown), memory 1004, and peripheral interfaces 1006.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the signal source processing method and apparatus in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the signal source processing method. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memories may further include a memory located remotely from the processor, which may be connected to computing device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: acquiring signal source data generated by a signal source currently scanned by terminal equipment, wherein the signal source data is used for predicting a positioning result corresponding to the current environment; recording signal source data generated by a signal source to obtain a recording result; and playing back the recording result to obtain a positioning result.
Optionally, the processor may further execute the program code of the following steps: calling a monitoring thread corresponding to the type of the signal source, and monitoring signal source data generated by the signal source by the monitoring thread; calling a signal source recorder corresponding to the type of the signal source, and recording signal source data monitored by a monitoring thread corresponding to the type of the signal source to a cache queue corresponding to the type of the signal source by the signal source recorder; and writing the signal source stored in the buffer queue into a signal source data table corresponding to the type of the signal source by the signal source recorder.
Optionally, the processor may further execute the program code of the following steps: in the process of monitoring signal source data by calling a monitoring thread corresponding to the type of the signal source, judging whether the storage capacity of a cache queue is greater than a preset threshold value or not; when the storage capacity of the buffer queue is determined to be larger than a preset threshold value, writing the signal source data stored in the buffer queue into a signal source data table, and deleting the signal source data written into the signal source data table from the buffer queue; when the monitoring thread corresponding to the type of the signal source is stopped to monitor the signal source data, judging whether residual signal source data which are not written into a signal source data table exist in a cache queue; and when determining that the residual signal source data exist in the buffer queue, writing the residual signal source data into the signal source data table, and deleting the residual signal source data written into the signal source data table from the buffer queue.
Optionally, the processor may further execute the program code of the following steps: and when determining that the residual signal source data does not exist in the cache queue, releasing the monitoring thread and the cache queue corresponding to the type of the signal source.
Optionally, the processor may further execute the program code of the following steps: acquiring recording configuration information; creating a database file based on the recording configuration information; respectively creating corresponding signal source data tables for different types of signal sources in a database file; initializing a signal source manager based on the recording configuration information, and calling the initialized signal source manager to add corresponding signal source recorders for different types of signal sources respectively; and initializing the monitoring thread corresponding to each type of signal source based on the recording configuration information.
Optionally, the processor may further execute the program code of the following steps: calling a signal source reading thread to read signal source data to be distributed from a database file; caching signal source data to be distributed to a blocking queue; calling a signal source queue thread, and acquiring signal source data to be distributed from a blocking queue by the signal source queue thread according to the writing time sequence when the signal source data to be distributed is written into a database file, and storing the signal source data to be distributed to a message queue; calling a signal source distribution thread, and acquiring signal source data to be distributed from the message queue by the signal source distribution thread according to the sequence of the writing time; determining whether signal source data to be distributed is callback data; when the signal source data to be distributed is determined not to be callback data, calling a signal source processing thread to perform byte sequence conversion processing on the signal source data to be distributed to obtain a processing result, and storing the processing result in a memory; when the signal source data to be distributed is determined to be callback data, the signal source distribution thread is called to distribute the signal source data to be distributed to the signal source callback thread, and the signal source callback thread is called to perform data callback after the byte sequence conversion processing is performed on the signal source data to be distributed so as to obtain a positioning result. And the recording result is played back to the positioning software development kit.
Optionally, the processor may further execute the program code of the following steps: acquiring playback configuration information; initializing a signal source manager based on playback configuration information, and adding corresponding signal source playback devices for different types of signal sources through the signal source manager; initializing a working thread corresponding to each type of signal source based on the playback configuration information, wherein the working thread comprises: the method comprises a signal source reading thread, a signal source queue thread, a signal source distributing thread, a signal source processing thread and a signal source callback thread.
It will be understood by those skilled in the art that the structure shown in fig. 10 is merely an illustration, and the computing device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 10 is a diagram illustrating a structure of the electronic device. For example, computing device 10 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 5
Embodiments of the present application also provide a storage medium. Optionally, in this embodiment, the storage medium may be configured to store a program code executed by the signal source processing method provided in the first embodiment.
Optionally, in this embodiment, the storage medium may be located in any one of computing devices in a computing device group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: acquiring signal source data generated by a signal source currently scanned by terminal equipment, wherein the signal source data is used for predicting a positioning result corresponding to the current environment; recording signal source data generated by a signal source to obtain a recording result; and playing back the recording result to obtain a positioning result.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: calling a monitoring thread corresponding to the type of the signal source, and monitoring signal source data generated by the signal source by the monitoring thread; calling a signal source recorder corresponding to the type of the signal source, and recording signal source data monitored by a monitoring thread corresponding to the type of the signal source to a cache queue corresponding to the type of the signal source by the signal source recorder; and writing the signal source stored in the buffer queue into a signal source data table corresponding to the type of the signal source by the signal source recorder.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: in the process of monitoring signal source data by calling a monitoring thread corresponding to the type of the signal source, judging whether the storage capacity of a cache queue is greater than a preset threshold value or not; when the storage capacity of the buffer queue is determined to be larger than a preset threshold value, writing the signal source data stored in the buffer queue into a signal source data table, and deleting the signal source data written into the signal source data table from the buffer queue; when the monitoring thread corresponding to the type of the signal source is stopped to monitor the signal source data, judging whether residual signal source data which are not written into a signal source data table exist in a cache queue; and when determining that the residual signal source data exist in the buffer queue, writing the residual signal source data into the signal source data table, and deleting the residual signal source data written into the signal source data table from the buffer queue.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: and when determining that the residual signal source data does not exist in the cache queue, releasing the monitoring thread and the cache queue corresponding to the type of the signal source.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: acquiring recording configuration information; creating a database file based on the recording configuration information; respectively creating corresponding signal source data tables for different types of signal sources in a database file; initializing a signal source manager based on the recording configuration information, and calling the initialized signal source manager to add corresponding signal source recorders for different types of signal sources respectively; and initializing the monitoring thread corresponding to each type of signal source based on the recording configuration information.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: calling a signal source reading thread to read signal source data to be distributed from a database file; caching signal source data to be distributed to a blocking queue; calling a signal source queue thread, and acquiring signal source data to be distributed from a blocking queue by the signal source queue thread according to the writing time sequence when the signal source data to be distributed is written into a database file, and storing the signal source data to be distributed to a message queue; calling a signal source distribution thread, and acquiring signal source data to be distributed from the message queue by the signal source distribution thread according to the sequence of the writing time; determining whether signal source data to be distributed is callback data; when the signal source data to be distributed is determined not to be callback data, calling a signal source processing thread to perform byte sequence conversion processing on the signal source data to be distributed to obtain a processing result, and storing the processing result in a memory; when the signal source data to be distributed is determined to be callback data, the signal source distribution thread is called to distribute the signal source data to be distributed to the signal source callback thread, and the signal source callback thread is called to perform data callback after the byte sequence conversion processing is performed on the signal source data to be distributed so as to obtain a positioning result. And the recording result is played back to the positioning software development kit.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: acquiring playback configuration information; initializing a signal source manager based on playback configuration information, and adding corresponding signal source playback devices for different types of signal sources through the signal source manager; initializing a working thread corresponding to each type of signal source based on the playback configuration information, wherein the working thread comprises: the method comprises a signal source reading thread, a signal source queue thread, a signal source distributing thread, a signal source processing thread and a signal source callback thread.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A signal source processing method, comprising:
acquiring signal source data generated by a signal source currently scanned by terminal equipment, wherein the signal source data is used for predicting a positioning result corresponding to the current environment;
recording signal source data generated by the signal source to obtain a recording result;
and playing back the recording result to obtain the positioning result.
2. The signal source processing method of claim 1, wherein recording the signal source data generated by the signal source comprises:
calling a monitoring thread corresponding to the type of the signal source, and monitoring signal source data generated by the signal source by the monitoring thread;
calling a signal source recorder corresponding to the type of the signal source, and recording signal source data monitored by a monitoring thread corresponding to the type of the signal source to a cache queue corresponding to the type of the signal source by the signal source recorder;
and the signal source recorder writes the signal source stored in the buffer queue into a signal source data table corresponding to the type of the signal source.
3. The signal source processing method according to claim 2, wherein writing, by the signal source recorder, the signal sources stored in the buffer queue into the signal source data table corresponding to the type of the signal source comprises:
in the process of calling the monitoring thread corresponding to the type of the signal source to monitor the signal source data, judging whether the storage capacity of the cache queue is greater than a preset threshold value;
when the storage capacity of the cache queue is determined to be larger than the preset threshold value, writing the signal source data stored in the cache queue into the signal source data table, and deleting the signal source data written into the signal source data table from the cache queue;
when the monitoring thread corresponding to the type of the signal source is stopped to be called to monitor the signal source data, judging whether residual signal source data which are not written into the signal source data table exist in the cache queue;
and when the residual signal source data exist in the buffer queue, writing the residual signal source data into the signal source data table, and deleting the residual signal source data written into the signal source data table from the buffer queue.
4. The signal source processing method of claim 3, wherein the method further comprises:
and when determining that the residual signal source data does not exist in the cache queue, releasing the monitoring thread corresponding to the type of the signal source and the cache queue.
5. The signal source processing method of claim 2, wherein the method further comprises:
acquiring recording configuration information;
creating a database file based on the recording configuration information;
respectively creating corresponding signal source data tables for different types of signal sources in the database file;
initializing a signal source manager based on the recording configuration information, and calling the initialized signal source manager to add corresponding signal source recorders for the different types of signal sources respectively;
and initializing the monitoring thread corresponding to each type of signal source based on the recording configuration information.
6. The signal source processing method according to claim 5, wherein the playing back the recording result and the obtaining the positioning result comprises:
calling a signal source reading thread to read signal source data to be distributed from the database file;
caching the signal source data to be distributed to a blocking queue;
calling a signal source queue thread, and acquiring the signal source data to be distributed from the blocking queue by the signal source queue thread according to the writing time sequence when the signal source data to be distributed is written into the database file, and storing the signal source data to be distributed into a message queue;
calling a signal source distribution thread, and acquiring the signal source data to be distributed from the message queue by the signal source distribution thread according to the sequence of the writing time;
determining whether the signal source data to be distributed is callback data;
when the signal source data to be distributed is determined not to be callback data, calling a signal source processing thread to perform byte sequence conversion processing on the signal source data to be distributed to obtain a processing result, and storing the processing result in a memory;
and when the signal source data to be distributed is determined to be callback data, calling the signal source distribution thread to distribute the signal source data to be distributed to a signal source callback thread, and calling the signal source callback thread to perform data callback after performing byte sequence conversion processing on the signal source data to be distributed so as to obtain the positioning result.
7. The signal source processing method of claim 1, wherein the recorded results are played back to a localization software development kit.
8. The signal source processing method of claim 6, wherein the method further comprises:
acquiring playback configuration information;
initializing a signal source manager based on the playback configuration information, and adding corresponding signal source playback devices for different types of signal sources respectively through the signal source manager;
initializing a working thread corresponding to each type of signal source based on the playback configuration information, wherein the working thread comprises: the signal source reading thread, the signal source queue thread, the signal source distributing thread, the signal source processing thread and the signal source callback thread.
9. A signal source processing apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring signal source data generated by a signal source currently scanned by terminal equipment, and the signal source data is used for predicting a positioning result corresponding to a current environment;
the recording module is used for recording the signal source data generated by the signal source to obtain a recording result;
and the processing module is used for playing back the recording result to acquire the positioning result.
10. A non-volatile storage medium, wherein a computer program is stored in the non-volatile storage medium, wherein the computer program is arranged to perform the signal source processing method of any one of claims 1 to 8 when executed.
CN202111163531.9A 2021-09-30 2021-09-30 Signal source processing method and device and nonvolatile storage medium Active CN114067851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111163531.9A CN114067851B (en) 2021-09-30 2021-09-30 Signal source processing method and device and nonvolatile storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111163531.9A CN114067851B (en) 2021-09-30 2021-09-30 Signal source processing method and device and nonvolatile storage medium

Publications (2)

Publication Number Publication Date
CN114067851A true CN114067851A (en) 2022-02-18
CN114067851B CN114067851B (en) 2023-07-21

Family

ID=80234057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111163531.9A Active CN114067851B (en) 2021-09-30 2021-09-30 Signal source processing method and device and nonvolatile storage medium

Country Status (1)

Country Link
CN (1) CN114067851B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6329946B1 (en) * 2000-05-31 2001-12-11 Mitsubishi Denki Kabushiki Kaisha GPS position measuring system and GPS position measuring apparatus
US20100222075A1 (en) * 2007-09-26 2010-09-02 Kyocera Corporation Portable Terminal, Base Station, and Method of Specifying Position of Portable Terminal
CN103024154A (en) * 2012-11-29 2013-04-03 北京风驰韦尔科技有限公司 Indoor positioning method for mobile intelligent equipment
CN103309732A (en) * 2013-05-15 2013-09-18 中国矿业大学(北京) Method for preventing data overflow in data collecting system of ground penetrating radar
CN104768224A (en) * 2015-04-09 2015-07-08 浙江嘉兴掌通网络科技有限公司 System and method for achieving positioning and navigating based on low-power-consumption Bluetooth
CN105444771A (en) * 2014-08-18 2016-03-30 北京国基科技股份有限公司 Navigation processing method
CN106028098A (en) * 2016-05-26 2016-10-12 努比亚技术有限公司 Video recording method, device, and terminal
CN107786739A (en) * 2017-10-18 2018-03-09 维沃移动通信有限公司 A kind of information acquisition method and mobile terminal
CN107783164A (en) * 2017-09-13 2018-03-09 深圳先进技术研究院 The indoor and outdoor localization method and system of a kind of terminal device
CN109783543A (en) * 2019-01-14 2019-05-21 广州虎牙信息科技有限公司 Data query method, apparatus, equipment and storage medium
CN110377341A (en) * 2019-06-10 2019-10-25 北京字节跳动网络技术有限公司 A kind of method, apparatus, medium and electronic equipment of the monitoring without response abnormality
CN110636446A (en) * 2019-10-17 2019-12-31 众虎物联网(广州)有限公司 Indoor positioning-based signal recording and playback method and system
CN112218148A (en) * 2020-09-11 2021-01-12 杭州易现先进科技有限公司 Screen recording method and device, computer equipment and computer readable storage medium
CN112817866A (en) * 2021-02-25 2021-05-18 北京百家科技集团有限公司 Recording playback method, device, system, computer equipment and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6329946B1 (en) * 2000-05-31 2001-12-11 Mitsubishi Denki Kabushiki Kaisha GPS position measuring system and GPS position measuring apparatus
US20100222075A1 (en) * 2007-09-26 2010-09-02 Kyocera Corporation Portable Terminal, Base Station, and Method of Specifying Position of Portable Terminal
CN103024154A (en) * 2012-11-29 2013-04-03 北京风驰韦尔科技有限公司 Indoor positioning method for mobile intelligent equipment
CN103309732A (en) * 2013-05-15 2013-09-18 中国矿业大学(北京) Method for preventing data overflow in data collecting system of ground penetrating radar
CN105444771A (en) * 2014-08-18 2016-03-30 北京国基科技股份有限公司 Navigation processing method
CN104768224A (en) * 2015-04-09 2015-07-08 浙江嘉兴掌通网络科技有限公司 System and method for achieving positioning and navigating based on low-power-consumption Bluetooth
CN106028098A (en) * 2016-05-26 2016-10-12 努比亚技术有限公司 Video recording method, device, and terminal
CN107783164A (en) * 2017-09-13 2018-03-09 深圳先进技术研究院 The indoor and outdoor localization method and system of a kind of terminal device
CN107786739A (en) * 2017-10-18 2018-03-09 维沃移动通信有限公司 A kind of information acquisition method and mobile terminal
CN109783543A (en) * 2019-01-14 2019-05-21 广州虎牙信息科技有限公司 Data query method, apparatus, equipment and storage medium
CN110377341A (en) * 2019-06-10 2019-10-25 北京字节跳动网络技术有限公司 A kind of method, apparatus, medium and electronic equipment of the monitoring without response abnormality
CN110636446A (en) * 2019-10-17 2019-12-31 众虎物联网(广州)有限公司 Indoor positioning-based signal recording and playback method and system
CN112218148A (en) * 2020-09-11 2021-01-12 杭州易现先进科技有限公司 Screen recording method and device, computer equipment and computer readable storage medium
CN112817866A (en) * 2021-02-25 2021-05-18 北京百家科技集团有限公司 Recording playback method, device, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114067851B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN111176549B (en) Data storage method and device based on cloud storage and storage medium
CN110704202B (en) Multimedia recording data sharing method and terminal equipment
CN104063305A (en) Pressure testing method, device and system for intelligent terminal software
US11816200B2 (en) Terminal and method for managing launch of an application of a terminal
CN110297658B (en) Function component sharing method and device and computer equipment
CN112291082B (en) Disaster recovery processing method, terminal and storage medium for machine room
CN111198859A (en) Data processing method and device, electronic equipment and computer readable storage medium
CA2710416C (en) Method and device for application archiving
CN111198777A (en) Data processing method, device, terminal and storage medium
CN112218115A (en) Control method and device for streaming media audio and video synchronization and computer equipment
CN114584480A (en) Method and apparatus for service degradation handling
CN116627333A (en) Log caching method and device, electronic equipment and computer readable storage medium
CN114443189B (en) Image processing method and electronic equipment
CN114936189A (en) Application program operation method and device, computer equipment and readable storage medium
CN111694703A (en) Cache region management method and device and computer equipment
CN113760081A (en) Power consumption processing method based on service and terminal equipment
CN113076288A (en) File processing method and device, electronic equipment and storage medium
CN114067851A (en) Signal source processing method and device and nonvolatile storage medium
CN110851430B (en) Method for storing movement track information, server and computer storage medium
CN107688498B (en) Application program processing method and device, computer equipment and storage medium
CN115225950A (en) Video playing control method and device
US10397772B2 (en) Nomination of a primary cell phone from a pool of cell phones
CN112689152B (en) Scheduling method, scheduling device, electronic equipment and storage medium
CN112053707B (en) Recording method and device for multimedia equipment, storage medium and electronic device
CN107992626A (en) Cache cleaner method, apparatus, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant