CN107390244A - A kind of position information processing method and terminal - Google Patents
A kind of position information processing method and terminal Download PDFInfo
- Publication number
- CN107390244A CN107390244A CN201710423392.6A CN201710423392A CN107390244A CN 107390244 A CN107390244 A CN 107390244A CN 201710423392 A CN201710423392 A CN 201710423392A CN 107390244 A CN107390244 A CN 107390244A
- Authority
- CN
- China
- Prior art keywords
- terminal
- location information
- initial position
- position message
- positioning component
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/42—Determining position
- G01S19/45—Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement
- G01S19/46—Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement the supplementary measurement being of a radio-wave signal type
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S5/00—Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
- G01S5/02—Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
- G01S5/0257—Hybrid positioning
- G01S5/0263—Hybrid positioning by combining or switching between positions derived from two or more separate positioning systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6209—Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of position information processing method and terminal, wherein method includes:Each positioning component set in terminal is detected, at least one target positioning component is chosen from each positioning component;Call at least one target positioning component to obtain initial position message, and the current reliable location information of the terminal is determined according to the initial position message;Call security component that the current reliable location information is encrypted, and the reliable location information after encryption is stored in secure storage section, the reliability and security of positional information can be improved.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of position information processing method and terminal.
Background technology
With the continuous development of the communication technology, terminal (such as smart mobile phone, tablet personal computer, wearable device etc.) increasingly into
For indispensable instrument in people's daily life.
At present, terminal obtains the mode of positional information, is typically directly obtained first with the positioning component in terminal pair
The bottom data answered, and stored the bottom data as the positional information of the terminal, terminal application component passes through tune
The positional information is obtained with the positional information of the terminal storage.
However, the positional information that terminal is got may have larger error, and the positional information is in storing process
Whether also unknown, reduce the reliability and security of the positional information if being maliciously tampered.
The content of the invention
The embodiment of the present invention provides a kind of position information processing method and terminal, can improve positional information reliability and
Security.
In a first aspect, the embodiments of the invention provide a kind of position information processing method, this method includes:
Each positioning component set in terminal is detected, at least one target positioning component is chosen from each positioning component;
At least one target positioning component is called to obtain initial position message, and it is true according to the initial position message
The current reliable location information of the fixed terminal;
Call security component that the current reliable location information is encrypted, and will be described reliable after encryption
Positional information is stored in secure storage section.
Second aspect, the embodiments of the invention provide a kind of terminal, the terminal includes:
Unit is chosen, for detecting each positioning component set in terminal, and at least one is chosen from each positioning component
Individual target positioning component;
Processing unit, for calling at least one target positioning component to obtain initial position message, and according to described
Initial position message determines the current reliable location information of the terminal;
Ciphering unit, for calling security component that the current reliable location information is encrypted, and it will add
The reliable location information after close is stored in secure storage section.
The third aspect, the embodiments of the invention provide another terminal, including processor, input equipment, output equipment and
Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein, the memory is used to store branch
The application code that terminal performs the above method is held, the processor is arranged to the method for performing above-mentioned first aspect.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storage medium
Computer program is stored with, the computer program includes programmed instruction, and described program instruction makes institute when being executed by a processor
State the method that computing device performs above-mentioned first aspect.
The embodiment of the present invention obtains initial position message by calling at least one target positioning component, and by the initial bit
Confidence breath is handled, and obtains current reliable location information, finally calls the security component reliable location information current to this
It is encrypted, the reliable location information after this is encrypted is stored in secure storage section, the position letter that can obtain terminal
Cease relatively reliable, and by being encrypted to reliable location information and being stored in safety zone, the securing position can be prevented
Information is maliciously tampered, and improves the reliability and security of positional information.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of position information processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram for position information processing method that another embodiment of the present invention provides;
Fig. 3 is a kind of scene schematic diagram of position information processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 5 is the schematic block diagram of another terminal provided in an embodiment of the present invention;
Fig. 6 is the schematic block diagram of another terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application
Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use at least one public of such as touch sensitive surface
Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table
The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch
Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
It should be noted that terminal can be mobile phone, and tablet personal computer, notebook computer, mobile internet device (Mobile
Internet Devices, MID) and portable set (intelligent watch, Intelligent bracelet etc.) etc. can be used for the terminal that is positioned,
Certainly, above-mentioned terminal is simply illustrated, and non exhaustive, including but not limited to above-mentioned optional terminal.
It is that the embodiment of the present invention provides a kind of schematic flow diagram of position information processing method, as shown in Figure 1 referring to Fig. 1
Position information processing method may include:
Each positioning component that S101, detection are set in terminal, at least one target positioning is chosen from each positioning component
Component.
It should be noted that each positioning component set in the terminal, can include global positioning system (Global
Positioning System, GPS) positioning component, architecture component, Wireless Fidelity (Wireless Fidelity, WiFi)
Positioning component, one or more in acoustic location component.
Wherein, the GPS location component can be the positioning group to be positioned in real time to terminal using HA Global Positioning Satellite
Part, typically, stationkeeping ability of the GPS location component in outdoor is preferable, and stationkeeping ability indoors is relatively weak.
Wherein, the architecture component can be that the base station throughout set using mobile operator is real to be carried out to terminal
Shi Dingwei positioning component, typically, the architecture component is by neighbouring Base Transmitter signal, the signal root of annex
The real-time position information of the terminal is fed back to the terminal according to the signal intensity detected.
Wherein, the WiFi positioning components can be that (such as mobile operator is disposed using the WiFi equipment of surrounding deployment
Access point AP, the free WiFi wireless routers that market is set) come the positioning component that is positioned in real time to the terminal, it is usual and
Speech, neighbouring WiFi equipment feed back the real-time position of the terminal to the terminal by detecting the signal intensity of the WiFi positioning components
Confidence ceases.
Specifically, the terminal is provided with which or which positioning component, Ran Hougen firstly the need of detecting in the terminal
At least one target positioning component is chosen from the positioning component according to the result of determination.
For example, the terminal detects first is provided with for which positioning component in the terminal, after tested, the terminal is true
Surely GPS location component is provided with, architecture component, WiFi positioning components, then the terminal can be above-mentioned fixed by what is determined
Hyte part is defined as target positioning component.
S102, at least one target positioning component is called to obtain initial position message, and according to the initial position
Information determines the current reliable location information of the terminal.
Wherein, each positioning component set in terminal may each be the target positioning component.
, can be with it should be noted that the initial position message that the terminal is obtained by least one target positioning component
It is position data that is undressed, being directly obtained by the target positioning component.For example, if the target positioning component is
Architecture component, then the initial position message can be that terminal calls one accessed by the architecture component without place
The position data of reason.
It should also be noted that, the terminal can determine the target positioning component according to positioning component calling order.Lift
For example, the terminal can preferentially choose GPS location component as target positioning component, at the beginning of the first of the GPS location component
When beginning positional information is unreliable, then architecture component and/or WiFi positioning components are chosen to obtain the second initial position message.
Further, the first initial position message that the terminal obtains GPS location component, what architecture component obtained
The second initial position message that second initial position message and the WiFi positioning components obtain adds according to corresponding to each of which
Weight coefficient is weighted processing, to obtain the current reliable location information of the terminal.
Similar, the terminal can preferentially choose architecture component as target positioning component, in the origin reference location group
When first initial position message of part is unreliable, then choose GPS location component and/or WiFi positioning components are initial to obtain second
Positional information.
Similar, the terminal can also preferentially choose WiFi positioning components as target positioning component, be positioned in the WiFi
When first initial position message of component is unreliable, then GPS location component and/or architecture component are chosen to obtain at the beginning of second
Beginning positional information.Certainly, above-mentioned selection mode is simply illustrated, and non exhaustive, including but not limited to above-mentioned optional mode.
Again for example, when the first initial position message of the GPS location component is reliable, the terminal can stop choosing
Architecture component and/or WiFi positioning components obtain the second initial position message, and directly by the first initial bit confidence
The breath reliable location information current as terminal.
In some feasible embodiments, all positioning components that the terminal can also be set the terminal are set to mesh
Mark positioning component, then according to the initial position message of each target positioning component corresponding to weight coefficient, will it is each initially
Positional information is weighted processing, to obtain the current reliable location information of terminal.
For example, the terminal can call GPS location component to obtain the first initial position message, call architecture group
Part obtains the second initial position message, and calls WiFi positioning components to obtain the second initial position message, then according to first
Weight coefficient corresponding to initial position message, weight coefficient corresponding to each second initial position message is by first initial position
Letter and each second initial position message are weighted processing, to obtain the current reliable location information of terminal.
S103, call security component that the current reliable location information is encrypted, and by the institute after encryption
Reliable location information is stated to be stored in secure storage section.
It should be noted that the security component can specifically be provided in the encryption chip in terminal, the secure storage areas
It domain, can be specifically the secure storage areas of terminal, can also directly be the security component, it is generally the case that the application in terminal
The secure storage section of terminal can not be accessed, only after verifying, the secure storage section can be accessed.
Specifically, the terminal can call security component, it is current to this using AES corresponding to the security component
Reliable location information is encrypted, and then the reliable location information after encrypting is stored in the secure storage section of terminal.
In embodiments of the present invention, terminal is first by calling at least one target positioning component to obtain initial bit confidence
Breath, and the initial position message is handled, current reliable location information is obtained, then calls security component current to this
Reliable location information be encrypted, the reliable location information after this is encrypted is stored in secure storage section, can make end
Hold obtained positional information relatively reliable, and by being encrypted to reliable location information and being stored in safety zone, can be with
Prevent the reliable location information to be maliciously tampered, improve the reliability and security of positional information.
Referring to Fig. 2, it is a kind of schematic flow diagram for position information processing method that another embodiment of the present invention provides, such as
Position information processing method shown in Fig. 2 may include:
Each positioning component that S201, detection are set in terminal, at least one target positioning is chosen from each positioning component
Component.
S202, the master positioning component in each positioning component of terminal is called to obtain the first initial position message.
It should be noted that the master positioning component in each positioning component of the terminal can be according to each positioning component of terminal
What tab order determined.For example, the tab order of each positioning component of the terminal can be based on GPS location component, next to that base
Stand positioning component, be thirdly WiFi positioning components, at this moment, the terminal can call first GPS location component obtain this
One initial position message.
Or the tab order of each positioning component of the terminal can also be based on architecture, next to that GPS location group
Part, it is thirdly WiFi positioning components.Or the tab order of the terminal each positioning component can also be WiFi positioning components
Based on, next to that GPS location component, is thirdly architecture component.Certainly, above-mentioned tab order is simply illustrated, rather than thoroughly
Lift, including but not limited to above-mentioned optional tab order.
It should also be noted that, first initial position message can be acquired in the master positioning component in the positioning component
The positional information arrived, represent the position data that the master positioning component is directly obtained.
In the specific implementation, terminal obtains the tab order of each positioning component first, then regioselective order first
Master positioning component, the master positioning component is called to obtain first initial position message.
If S203, first initial position message are unsatisfactory for the first preparatory condition, the target auxiliary in terminal is called
Positioning component obtains current supplemental location information.
The history service bit that current supplemental location information and the target auxiliary positioning component described in S204, comparison are got
Confidence ceases.
Optionally, the terminal needs to judge whether the current supplemental location information meets the second preparatory condition, if current auxiliary
Positional information is helped to meet the second preparatory condition, then using the current supplemental location information as the second initial of the target accessory part
Positional information, its concrete mode can be as S204 to described in S206 the step of.
Wherein, the target auxiliary positioning component can be except other any one or more terminals of master positioning component are set
Positioning component.For example, if the master positioning component is GPS location component, the target auxiliary positioning component can be base
Stand positioning component or WiFi positioning components etc..
It should be noted that the history supplemental location information can be the target auxiliary positioning component get it is preceding once
Or preceding supplemental location information several times, wherein, the history supplemental location information can be same with the current supplemental location information
The supplemental location information that individual target auxiliary positioning component is obtained, to be preferably compared.
For example, if the target auxiliary positioning component is architecture component, the current supplemental location information is should
Acquired in architecture component, the history supplemental location information is also acquired in the architecture component.
S205, change in location parameter is obtained according to comparative result.
It should be noted that the history supplemental location information and the current supplemental location information are compared by the terminal,
Time difference and the displacement difference of history supplemental location information and the current supplemental location information are obtained, according to the time difference and displacement difference
The velocity amplitude of supplemental location information change, i.e. position running parameter can be calculated.
For example, it is 2 that the terminal, which compares the history supplemental location information and the time difference of the current supplemental location information,
Second, 60 meters of displacement difference, according to the time difference and displacement difference, be calculated the velocity amplitude of supplemental location information change for 30 meters/
Second, i.e., position running parameter is 30 meter per seconds.
If S206, the change in location parameter are less than or equal to default change threshold, the target auxiliary positioning component
The current supplemental location information obtained meets the second preparatory condition, using the current supplemental location information as the target
Second initial position message of accessory part.
It should be noted that the default change threshold can be the value of terminal acquiescence, or the value of user's setting, no
Same target auxiliary positioning component can correspond to same default change threshold, can also correspond to different default change thresholds,
Its specific numerical value can be 20 meter per seconds, 50 meter per seconds, 70 meter per seconds etc., be not intended to be limited in any herein.
For example, if the change in location parameter that the terminal is calculated is 30 meter per seconds, but its default change threshold is 70
Meter per second, then the terminal judge the target auxiliary positioning component obtain current supplemental location information meet the second preparatory condition, will
Second initial position message of the current supplemental location information as the target accessory part.
If it should also be noted that, the change in location parameter is more than default change threshold, the target auxiliary positioning component
The current supplemental location information obtained is unsatisfactory for the second preparatory condition.Further, terminal can give up the current service bit
Confidence ceases, or, the terminal can also set a weighting for being unsatisfactory for the current supplemental location information of the second preparatory condition
Coefficient, the current supplemental location information for being then unsatisfactory for the second preparatory condition to this according to the weight coefficient make conversion processing.
For example, if the change in location parameter that the terminal is calculated is 300 meter per seconds, but its default change threshold is
70 meter per seconds, then the terminal judge that the current supplemental location information that the target auxiliary positioning component obtains is unsatisfactory for the second default bar
Part, it is possible to directly give up the current supplemental location information.
Or the terminal obtains the corresponding weight coefficient of the current supplemental location information for being unsatisfactory for the second preparatory condition
(for example being 0.3), the current supplemental location information for being unsatisfactory for the second preparatory condition to this according to the weight coefficient make conversion processing.
S207, determine that according to first initial position message and at least one second initial position message the terminal is worked as
Preceding reliable location information.
Specifically, the S207 is specifically included:Obtain first initial position message and each second initial bit confidence
Cease each self-corresponding weight coefficient;The first initial position message and each second initial position message are entered according to each weight coefficient
Row weighting is handled;The positional information obtained after weighting is handled is defined as the current reliable location information of the terminal.
It is specifically, each right to the acquisition first initial position message and each second initial position message below
The step for weight coefficient answered, illustrates.
It should be noted that difference of first initial position message according to master positioning component, its corresponding weight coefficient
Can also be different.Similarly, second initial position message can also be according to the difference of auxiliary positioning component, weighting system corresponding to it
Number can also be different.
For example, if the master positioning component is GPS location component, weighting system corresponding to first initial position message
Number can be 0.5;If the master positioning component is architecture component, the weight coefficient corresponding to first initial position message
Can be 0.4 etc..
Again for example, if the auxiliary positioning component is architecture component, corresponding to second initial position message
Weight coefficient can be 0.3;, should corresponding to second initial position message if the auxiliary positioning component is WiFi positioning components
Weight coefficient can be 0.4 etc..
Specifically, below to it is described according to each weight coefficient to the first initial position message and each second initial bit confidence
The step for breath is weighted processing illustrates.
For example, should as shown in figure 3, first initial position message (GPS) 301 is obtained by GPS location component
Second initial position message (WiFi) 302 is obtained by WiFi positioning components, and second initial position message (base station) 303 is
Obtained by architecture component.Wherein, weight coefficient corresponding to first initial position message (GPS) 301 can be 0.5,
Weight coefficient corresponding to second initial position message (WiFi) 302 can be 0.3, second initial position message (base station)
Weight coefficient corresponding to 303 can be 0.2.
Further, the terminal is by first initial position message (GPS) 301, second initial position message (WiFi)
302, and second initial position message (base station) 303 is weighted, according to formula:First initial position message (GPS) *
Initial position message (WiFi) * the second initial position messages of 0.3+ of 0.5+ second (base station) * 0.2 make weighting processing.
If it should be noted that the feelings for the current supplemental location information for directly giving up auxiliary positioning component in terminal be present
Condition, that is, when some auxiliary positioning components be present and not getting in the case of the second initial position message, then corresponding to it plus
Weight coefficient can be 0, and accordingly, the weight coefficient of other positioning components can also adjust accordingly.
For example, if as shown in figure 3, second initial position message (base station) 303 is not present, the terminal can be by
According to formula:First initial position message (GPS) * the second initial position messages of 0.6+ (WiFi) * 0.4 make weighting processing.
Specifically, below to it is described weighting is handled after obtained positional information be defined as the current reliable bits of the terminal
The step for confidence ceases illustrates.
For example, as shown in figure 3, after all initial position messages do weighting processing in terminal-pair diagram, obtain
Positional information be located at 304 positions indicated, what then the terminal can be current as terminal using 304 position indicated
Reliable location information, you can by positional information 304.
S208, call signing messages of the security component to the current reliable location information addition security component.
It should be noted that the signing messages of the security component is used to call the reliable bits confidence in the application component of terminal
Signing messages during breath with the application component carries out bi-directional verification.
S209, the reliable location information that with the addition of the signing messages is stored in secure storage section
Specifically, when the application component of terminal calls the reliable location information, it can send to call to security component and ask
To ask, the call request includes the signing messages of application component, if the signing messages of the application component is effective, the secure group
Part gets the current location information from the secure storage section, and terminal receives the security component by the application component and sent out
The communication bag for the call request sent, the communication bag include the signing messages and current location letter of the security component
Breath.
Further, if the application component verifies that the signing messages of the security component is effective, the terminal is called and applies group
Part extracts the current location information in the communication bag.
In embodiments of the present invention, terminal is called first by calling master positioning component to obtain the first initial position message
Auxiliary positioning component obtains the second initial position message, then by first initial position message and second initial position message
Processing is weighted jointly, obtains current reliable location information, finally calls the security component reliable bits confidence current to this
Breath is encrypted, and the reliable location information after this is encrypted is stored in secure storage section, and can be handled by weighting makes end
Hold obtained positional information relatively reliable, and by being encrypted to reliable location information and being stored in secure storage section,
The reliable location information can be prevented to be maliciously tampered, improve the reliability and security of positional information.
Fig. 4 is referred to, Fig. 4 is a kind of schematic block diagram for terminal that the embodiment of the present application provides, the present embodiment description
Terminal, including:
Unit 401 is chosen, for detecting each positioning component set in terminal, and is chosen at least from each positioning component
One target positioning component;
Processing unit 402, for calling at least one target positioning component to obtain initial position message, and according to institute
State initial position message and determine the current reliable location information of the terminal;
Ciphering unit 403, for calling security component that the current reliable location information is encrypted, and will
The reliable location information after encryption is stored in secure storage section.
In embodiments of the present invention, first by calling at least one target positioning component to obtain initial position message, and
The initial position message is handled, obtains current reliable location information, then call security component to this it is current can
It is encrypted by positional information, the reliable location information after this is encrypted is stored in secure storage section, can obtain terminal
The positional information arrived is relatively reliable, and by being encrypted to reliable location information and being stored in safety zone, can prevent
The reliable location information is maliciously tampered, and improves the reliability and security of positional information.
Fig. 5 is referred to, Fig. 5 is the schematic block diagram of another terminal provided in an embodiment of the present invention, and the present embodiment describes
Terminal, including choose unit 501, processing unit 502 and ciphering unit 503, wherein:
Unit 501 is chosen, for detecting each positioning component set in terminal, and is chosen at least from each positioning component
One target positioning component.
Processing unit 502, for calling at least one target positioning component to obtain initial position message, and it is first according to this
Beginning positional information determines the current reliable location information of the terminal.
Optionally, the processing unit 502, including:First acquisition unit 5021, for calling in each positioning component of terminal
Master positioning component obtains the first initial position message;Second acquisition unit 5022, if being discontented with for first initial position message
The first preparatory condition of foot, then the auxiliary positioning component in each positioning component of terminal is called to obtain at least one second initial bit confidence
Breath;Determining unit 5023, for determining the end according to first initial position message and at least one second initial position message
Hold current reliable location information.
Optionally, the second acquisition unit 5022, work as specifically for calling the target auxiliary positioning component in terminal to obtain
Preceding supplemental location information, if current supplemental location information meets the second preparatory condition, using the current supplemental location information as
Second initial position message of the target accessory part.
Optionally, the second acquisition unit 5022, aided in specifically for comparing the current supplemental location information and the target
The history supplemental location information that positioning component is got, and change in location parameter is obtained according to comparative result, if the change in location
Parameter is less than or equal to default change threshold, then the current supplemental location information that the target auxiliary positioning component obtains meets the
Two preparatory conditions.
Optionally, determining unit 5023, specifically for obtaining first initial position message and each second initial
Each self-corresponding weight coefficient of positional information, and according to each weight coefficient to the first initial position message and each second initial bit
Confidence breath is weighted processing, and the positional information obtained after weighting is handled is defined as the current reliable bits confidence of the terminal
Breath.
Ciphering unit 503, the reliable location information for calling security component current to this are encrypted, and will add
The reliable location information after close is stored in secure storage section.
Optionally, ciphering unit 503, specifically for calling the security component reliable location information addition current to this should
The signing messages of security component, and the reliable location information that this with the addition of to the signing messages is stored in secure storage section.
Wherein, the signing messages is used for when the application component of terminal calls the reliable location information with the application component
Signing messages carries out bi-directional verification.
In embodiments of the present invention, terminal is called first by calling master positioning component to obtain the first initial position message
Auxiliary positioning component obtains the second initial position message, then by first initial position message and second initial position message
Processing is weighted jointly, obtains current reliable location information, finally calls the security component reliable bits confidence current to this
Breath is encrypted, and the reliable location information after this is encrypted is stored in secure storage section, and can be handled by weighting makes end
Hold obtained positional information relatively reliable, and by being encrypted to reliable location information and being stored in secure storage section,
The reliable location information can be prevented to be maliciously tampered, improve the reliability and security of positional information.
Fig. 6 is referred to, is the schematic block diagram of another terminal provided in an embodiment of the present invention.End described by the present embodiment
End, including:At least one input equipment 1000;At least one processor 2000, such as CPU;At least one memory 3000;Extremely
A few output equipment 4000, above-mentioned input equipment 1000, processor 2000, memory 3000 and output equipment 4000 are by total
Line connects.
It should be appreciated that in embodiments of the present invention, above-mentioned input equipment 1000 can be the equipment to terminal input signal,
Contact panel can be included, can include touch-screen and touch screen etc. in the contact panel, at least positioning component can also be included
1001, master positioning component and at least one auxiliary positioning component can be included in the positioning component.Above-mentioned output equipment 4000 can
With including display (LCD etc.).
Above-mentioned processor 2000 can be CPU (Central Processing Unit, CPU), the processing
Device can also be other general processors, digital signal processor (Digital Signal Processor, DSP), special collection
Into circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.Wherein, security component 2001 can be included in the processor 2000, for doing safe handling to the information in terminal.
Above-mentioned memory 3000 can include read-only storage and random access memory, and provide and refer to processor 2000
Order and data.The a part of of memory 3000 can also include nonvolatile RAM.For example, memory 3000 is also
Can be with the information of storage device type.Wherein, secure storage section 3001 can be included in the memory 3000, for specially depositing
The data of safe handling were done in storage.
Specifically, processor 2000, for detecting each positioning component 1001 set, chooses from each positioning component 1001
At least one target positioning component, and call above-mentioned at least one target positioning component to obtain initial position message, and according to upper
State initial position message and determine the current reliable location information of above-mentioned terminal, and call security component 2001 to it is above-mentioned it is current can
It is encrypted by positional information, and the above-mentioned reliable location information after encryption is stored in secure storage section 3001.
Optionally, above-mentioned processor 2000, specifically for calling the master positioning component in each positioning component 1001 to obtain the
One initial position message, if above-mentioned first initial position message is unsatisfactory for the first preparatory condition, call each positioning component of terminal
In auxiliary positioning component obtain at least one second initial position message, and according to above-mentioned first initial position message and at least
One the second initial position message determines the current reliable location information of above-mentioned terminal.
Optionally, processor 2000, specifically for obtaining first initial position message and each second initial bit
Confidence ceases each self-corresponding weight coefficient, and according to each weight coefficient to the first initial position message and each second initial position
Information is weighted processing, and the positional information obtained after weighting is handled is defined as the current reliable bits confidence of the terminal
Breath.
Optionally, processor 2000, specifically for calling the target auxiliary positioning component in terminal to obtain current auxiliary
Positional information, if current supplemental location information meets the second preparatory condition, using above-mentioned current supplemental location information as above-mentioned
Second initial position message of target accessory part.
Optionally, the processor 2000 be used for judge target auxiliary positioning component obtain current supplemental location information whether
Meet the second preparatory condition, got specifically for more above-mentioned current supplemental location information and above-mentioned target auxiliary positioning component
History supplemental location information, change in location parameter is obtained according to comparative result, if above-mentioned change in location parameter is less than or equal to
Default change threshold, the then above-mentioned current supplemental location information that above-mentioned target auxiliary positioning component obtains meet the second default bar
Part.
Optionally, processor 2000, for calling security component 2001 to carry out above-mentioned current reliable location information
Encryption, and the above-mentioned reliable location information after encryption is stored in secure storage section 3001, pacify specifically for calling
Whole assembly 2001 adds the signing messages of above-mentioned security component 2001 to above-mentioned current reliable location information, and by above-mentioned addition
The reliable location information of above-mentioned signing messages is stored in secure storage section 3001
Wherein, above-mentioned signing messages be used for terminal application component call above-mentioned reliable location information when with above-mentioned application
The signing messages of component carries out bi-directional verification.
In the specific implementation, processor 2000, input equipment 1000, output equipment 4000 described in the embodiment of the present invention
And memory 3000 can perform the first embodiment and second of the method for position information process provided in an embodiment of the present invention in fact
The implementation described in example is applied, also can perform the implementation of the terminal described by the embodiment of the present invention, it is no longer superfluous herein
State.
In embodiments of the present invention, terminal is called first by calling master positioning component to obtain the first initial position message
Auxiliary positioning component obtains the second initial position message, then by first initial position message and second initial position message
Processing is weighted jointly, obtains current reliable location information, finally calls the security component reliable bits confidence current to this
Breath is encrypted, and the reliable location information after this is encrypted is stored in secure storage section, and can be handled by weighting makes end
Hold obtained positional information relatively reliable, and by being encrypted to reliable location information and being stored in secure storage section,
The reliable location information can be prevented to be maliciously tampered, improve the reliability and security of positional information.
A kind of computer-readable recording medium, the computer-readable storage medium are provided in another embodiment of the invention
Matter is stored with computer program, when the computer program is executed by processor, it is possible to achieve calls at least one target to position
Component obtains initial position message, and obtains current reliable location information according to the initial position message, then calls safety
The component reliable location information current to this is encrypted, and the reliable location information after this is encrypted is stored in secure storage section
In, the positional information that can obtain terminal is relatively reliable, and by the way that peace is encrypted and be stored in reliable location information
It is region-wide, the reliable location information can be prevented to be maliciously tampered, improve the reliability and security of positional information.
It should be noted that the detailed process that the computer-readable recording medium is executed by processor can be found in the first implementation
The method of position information process described in example and second embodiment, will not be repeated here.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example
Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, such as
The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both
Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is described for storing
Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily
When store the data that has exported or will export.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially
Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description
End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only
Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase
Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit
Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (14)
- A kind of 1. position information processing method, it is characterised in that including:Each positioning component set in terminal is detected, at least one target positioning component is chosen from each positioning component;Call at least one target positioning component to obtain initial position message, and institute is determined according to the initial position message State the current reliable location information of terminal;Call security component that the current reliable location information is encrypted, and by the securing position after encryption Information is stored in secure storage section.
- 2. the method as described in claim 1, described to call at least one target positioning component to obtain initial position message, And the current reliable location information of the terminal is determined according to the initial position message, including:The master positioning component in each positioning component of terminal is called to obtain the first initial position message;If first initial position message is unsatisfactory for the first preparatory condition, the auxiliary positioning in each positioning component of terminal is called Component obtains at least one second initial position message;Current reliable of the terminal is determined according to first initial position message and at least one second initial position message Positional information.
- 3. method as claimed in claim 2, it is characterised in that according to first initial position message and at least one second Initial position message determines the current reliable location information of the terminal, including:Obtain first initial position message and each self-corresponding weight coefficient of each second initial position message;Processing is weighted to the first initial position message and each second initial position message according to each weight coefficient;The positional information obtained after weighting is handled is defined as the current reliable location information of the terminal.
- 4. method as claimed in claim 2 or claim 3, it is characterised in that the auxiliary positioning called in each positioning component of terminal Component obtains at least one second initial position message, including:The target auxiliary positioning component in terminal is called to obtain current supplemental location information;It is if current supplemental location information meets the second preparatory condition, the current supplemental location information is auxiliary as the target Help the second initial position message of component.
- 5. method as claimed in claim 4, it is characterised in that judge the current aided location that target auxiliary positioning component obtains Whether information meets the second preparatory condition, including:Compare the history supplemental location information that the current supplemental location information and the target auxiliary positioning component are got;Change in location parameter is obtained according to comparative result;If the change in location parameter is less than or equal to default change threshold, the target auxiliary positioning component obtains described Current supplemental location information meets the second preparatory condition.
- 6. the method as described in claim 1, it is characterised in that the calling security component is to the current reliable bits confidence Breath is encrypted, and the reliable location information after encryption is stored in secure storage section, including:Security component is called to add the signing messages of the security component to the current reliable location information;The reliable location information that with the addition of the signing messages is stored in secure storage section;Wherein, the signing messages be used for terminal application component call the reliable location information when with the application component Signing messages carry out bi-directional verification.
- A kind of 7. terminal, it is characterised in that including:Unit is chosen, for detecting each positioning component set in terminal, and at least one mesh is chosen from each positioning component Mark positioning component;Processing unit, for calling at least one target positioning component to obtain initial position message, and according to described initial Positional information determines the current reliable location information of the terminal;Ciphering unit, for calling security component that the current reliable location information is encrypted, and by after encryption The reliable location information be stored in secure storage section.
- 8. terminal as claimed in claim 7, the processing unit, including:First acquisition unit, for calling the master positioning component in each positioning component of terminal to obtain the first initial position message;Second acquisition unit, if being unsatisfactory for the first preparatory condition for first initial position message, call terminal each fixed Auxiliary positioning component in hyte part obtains at least one second initial position message;Determining unit, for determining the end according to first initial position message and at least one second initial position message Hold current reliable location information.
- 9. terminal as claimed in claim 8, it is characterised in that the determining unit, it is initial specifically for obtaining described first Positional information and each self-corresponding weight coefficient of each second initial position message, and according to each weight coefficient to the first initial bit Confidence ceases and each second initial position message is weighted processing, and the positional information obtained after weighting is handled is defined as institute State the current reliable location information of terminal.
- 10. terminal as claimed in claim 8 or 9, it is characterised in that the second acquisition unit, specifically for calling terminal In target auxiliary positioning component obtain current supplemental location information, if current supplemental location information meets the second preparatory condition, Then the second initial position message using the current supplemental location information as the target accessory part.
- 11. terminal as claimed in claim 10, it is characterised in that the second acquisition unit, work as specifically for relatively more described The history supplemental location information that preceding supplemental location information and the target auxiliary positioning component are got, and obtained according to comparative result To position running parameter, if the change in location parameter is less than or equal to default change threshold, the target auxiliary positioning group The current supplemental location information that part obtains meets the second preparatory condition.
- 12. terminal as claimed in claim 7, it is characterised in that the ciphering unit, specifically for calling security component to institute State the signing messages that current reliable location information adds the security component, and by it is described with the addition of the signing messages can It is stored in by positional information in secure storage section;Wherein, the signing messages be used for terminal application component call the reliable location information when with the application component Signing messages carry out bi-directional verification.
- 13. a kind of terminal, it is characterised in that the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein, the memory is used to store application program, the processor quilt It is configured to call described program instruction, performs the position information processing method as described in claim any one of 1-6.
- 14. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In the computer program includes programmed instruction, and described program instruction makes the computing device such as when being executed by a processor Position information processing method described in claim any one of 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710423392.6A CN107390244A (en) | 2017-06-07 | 2017-06-07 | A kind of position information processing method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710423392.6A CN107390244A (en) | 2017-06-07 | 2017-06-07 | A kind of position information processing method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107390244A true CN107390244A (en) | 2017-11-24 |
Family
ID=60332256
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710423392.6A Withdrawn CN107390244A (en) | 2017-06-07 | 2017-06-07 | A kind of position information processing method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107390244A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290521A (en) * | 2019-07-12 | 2019-09-27 | 同盾控股有限公司 | Geographical location tamper Detection method, apparatus, medium and electronic equipment |
CN110907977A (en) * | 2018-09-17 | 2020-03-24 | 中兴通讯股份有限公司 | Information processing method and device and computer storage medium |
-
2017
- 2017-06-07 CN CN201710423392.6A patent/CN107390244A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110907977A (en) * | 2018-09-17 | 2020-03-24 | 中兴通讯股份有限公司 | Information processing method and device and computer storage medium |
CN110907977B (en) * | 2018-09-17 | 2024-05-24 | 深圳市中兴通讯技术服务有限责任公司 | Information processing method, device and computer storage medium |
CN110290521A (en) * | 2019-07-12 | 2019-09-27 | 同盾控股有限公司 | Geographical location tamper Detection method, apparatus, medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102069863B1 (en) | Apparatas and method for controlling a input means of payment function in an electronic device | |
CN107704765A (en) | A kind of interface access method, server and computer-readable recording medium | |
CN107038369A (en) | The method and terminal of a kind of resources accessing control | |
CN106815518B (en) | Application installation method and electronic equipment | |
CN108073346A (en) | A kind of record screen method, terminal and computer readable storage medium | |
CN107181858A (en) | A kind of method and terminal for showing notification message | |
CN106685997A (en) | Method and terminal for transmitting data | |
CN107612901A (en) | One kind applies encryption method and terminal | |
CN107608724A (en) | A kind of method, terminal and computer-readable recording medium for managing application program | |
CN107729781A (en) | The anti-lost method of mobile terminal, mobile terminal and computer-readable recording medium | |
CN107479806A (en) | The method and terminal of a kind of changing interface | |
CN106453904A (en) | Information reminding method and terminal | |
CN107466031A (en) | A kind of method and terminal for protecting data | |
CN107608719A (en) | A kind of interface operation method, terminal and computer-readable recording medium | |
CN106254626A (en) | A kind of incoming display method and terminal | |
CN107370872A (en) | Method, terminal and the control device of a kind of terminal lock machine and control terminal lock machine | |
CN107743164A (en) | A kind of exception falls the processing method and terminal of card | |
CN107463350A (en) | A kind of footmark method of adjustment and terminal | |
CN106657574A (en) | SOS method and terminal | |
CN107390244A (en) | A kind of position information processing method and terminal | |
CN107800776A (en) | A kind of document handling method, terminal, server and computer-readable medium | |
CN106446683A (en) | Detection method for malignant program and terminal | |
CN107517307A (en) | A kind of method and its terminal that alarm clock is set | |
CN107248078A (en) | Mobile payment means of defence, mobile terminal and computer-readable recording medium | |
CN108196670A (en) | A kind of gesture display methods, terminal device and computer readable 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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171124 |