CN109817334A - Detection method, device, equipment and the readable storage medium storing program for executing in workout data source - Google Patents
Detection method, device, equipment and the readable storage medium storing program for executing in workout data source Download PDFInfo
- Publication number
- CN109817334A CN109817334A CN201711172967.8A CN201711172967A CN109817334A CN 109817334 A CN109817334 A CN 109817334A CN 201711172967 A CN201711172967 A CN 201711172967A CN 109817334 A CN109817334 A CN 109817334A
- Authority
- CN
- China
- Prior art keywords
- data source
- workout data
- terminal
- workout
- source
- 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.)
- Pending
Links
Abstract
The invention discloses detection method, device, equipment and the computer readable storage medium in a kind of workout data source, the detection method in the workout data source includes: that terminal obtains workout data source;Terminal carries out legitimacy detection to workout data source;When detecting workout data source is valid data source, terminal parses workout data source based on the format classification in workout data source, to obtain third party's workout data;When detecting workout data source is invalid data source, terminal is filtered workout data source, and reacquires new workout data source.The present invention is detected by the legitimacy to workout data, filters out not third party's workout data, is avoided being applied to the workout data forged and played tricks, is improved the reliability and referential of workout data.
Description
Technical field
The present invention relates to Data Detection Technology field more particularly to a kind of detection method, device, the equipment in workout data source
And computer readable storage medium.
Background technique
It with the promotion of more and more people's health perceptions, runs, rope skipping, lifting the dumbbell etc. is increasingly becoming people's body-building shape
Most common motion mode in formula.User can be detected by mobile phone, bracelet, tablet terminal equipment or third party software app to be remembered
Record the workout data of itself.
But in real life, third party's workout data received by device end, which can be forged, plays tricks, such as
Program code is subjected to customized editor in third party's body-building software, equipment or terminal and distorts generation invalid data.And these
Illegal third party's workout data can not reflect true body-building situation, belong to invalid data, will cause accessed
Third party's workout data inaccuracy is untrue, to user or other using object have no referential.
Summary of the invention
The main purpose of the present invention is to provide detection method, device, equipment and the computers in a kind of workout data source can
Read storage medium, it is intended to which it is untrue to solve third party's workout data inaccuracy, without informative technical problem.
To achieve the above object, the embodiment of the present invention provides a kind of detection method in workout data source, the workout data
The detection method in source includes:
Terminal obtains workout data source;
Terminal carries out legitimacy detection to workout data source;
When detecting workout data source is valid data source, terminal is based on the format classification in workout data source to body-building number
It is parsed according to source, to obtain third party's workout data;
When detecting workout data source is invalid data source, terminal is filtered workout data source, and obtains terminal
Local terminal workout data.
Preferably, if third party's workout data accessed by terminal is the first data, if the third in terminal database
Square workout data is the second data,
Described when detecting workout data source is valid data source, terminal parses workout data source, to obtain
After the step of third party's workout data further include:
Terminal obtains all second data in terminal database;
When detecting the third party's workout data for existing in the second data and matching with the first data, described in terminal deletion
First data.
Preferably, the terminal includes: to the step of workout data source progress legitimacy detection
The platform identifier in terminal acquisition workout data source;
When detecting that terminal determines that workout data source is there are when the platform identifier in the compatible list of preset platform
Valid data source;
When detecting in the compatible list of preset platform that terminal determines workout data source there is no when the platform identifier
For invalid data source.
Preferably, the terminal includes: to the step of workout data source progress legitimacy detection
The device identifier in terminal acquisition workout data source;
When detecting in preset hardware compatibility list there are when the device identifier, terminal determines that workout data source is
Valid data source;
When detecting in preset hardware compatibility list there is no the device identifier, terminal determines workout data source
For invalid data source.
Preferably, the terminal includes: to the step of workout data source progress legitimacy detection
The software identifiers in terminal acquisition workout data source;
When detecting in preset software compatibility list there are when the software identifiers, terminal determines that workout data source is
Valid data source;
When detecting in preset software compatibility list there is no the software identifiers, terminal determines workout data source
For invalid data source.
Preferably, the detection method in the workout data source further include:
When that can not get workout data source, terminal obtains the local workout data of terminal.
Preferably, described when terminal can not get workout data source, the step of obtaining the local workout data of terminal
Later further include:
When local workout data is not detected, terminal output lacks the prompt information of local workout data.
The present invention also provides a kind of detection device, the detection device includes:
First obtains module, for obtaining workout data source;
Detection module, for carrying out legitimacy detection to workout data source;
Parsing module, for being parsed to workout data source when detecting workout data source is valid data source, with
Obtain third party's workout data;
Filtering module, for being filtered to workout data source when detecting workout data source is invalid data source, and
Obtain the local terminal workout data of terminal.
Preferably, if third party's workout data accessed by terminal is the first data, if the third in terminal database
Square workout data is the second data, the detection device further include:
Second obtains module, for obtaining all second data in terminal database;
Removing module, for working as the third party's workout data for detecting and existing in the second data and matching with the first data
When, delete first data.
Preferably, the detection module includes:
First acquisition unit, for obtaining the platform identifier in workout data source;
First judging unit, for sentencing when detecting in the compatible list of preset platform there are when the platform identifier
Determining workout data source is valid data source;
Second judging unit, for when detecting in the compatible list of preset platform there is no when the platform identifier,
Determine that workout data source is invalid data source.
Preferably, the detection module includes:
Second acquisition unit, for obtaining the device identifier in workout data source;
Third judging unit, for sentencing when detecting in preset hardware compatibility list there are when the device identifier
Determining workout data source is valid data source;
4th judging unit, for when detecting in preset hardware compatibility list there is no the device identifier,
Determine that workout data source is invalid data source.
Preferably, the detection module includes:
Third acquiring unit, for obtaining the software identifiers in workout data source;
5th judging unit, for sentencing when detecting in preset software compatibility list there are when the software identifiers
Determining workout data source is valid data source;
6th judging unit, for when detecting in preset software compatibility list there is no the software identifiers,
Determine that workout data source is invalid data source.
Preferably, the detection method in the workout data source further include:
Third obtains module, for when that can not get workout data source, obtaining the local workout data of terminal.
Preferably, the detection device further include:
Output module, for when local workout data is not detected, output to lack the prompt information of local workout data.
In addition, to achieve the above object, the present invention also provides a kind of detection device, the detection device include: memory,
The detection program in processor, communication bus and the workout data source being stored on the memory,
The communication bus is for realizing the communication connection between processor and memory;
The processor is used to execute the detection program in the workout data source, to perform the steps of
Terminal obtains workout data source;
Terminal carries out legitimacy detection to workout data source;
When detecting workout data source is valid data source, terminal is based on the format classification in workout data source to body-building number
It is parsed according to source, to obtain third party's workout data;
When detecting workout data source is invalid data source, terminal is filtered workout data source, and obtains terminal
Local terminal workout data.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Storage medium be stored with one perhaps more than one program the one or more programs can by one or one with
On processor execute to be used for:
Terminal obtains workout data source;
Terminal carries out legitimacy detection to workout data source;
When detecting workout data source is valid data source, terminal is based on the format classification in workout data source to body-building number
It is parsed according to source, to obtain third party's workout data;
When detecting workout data source is invalid data source, terminal is filtered workout data source, and obtains terminal
Local terminal workout data.
In technical solution of the present invention, terminal obtains workout data source;Terminal carries out legitimacy detection to workout data source;
When detecting workout data source is valid data source, terminal carries out workout data source based on the format classification in workout data source
Parsing, to obtain third party's workout data;When detect workout data source be invalid data source when, terminal to workout data source into
Row filtering, and obtain the local terminal workout data of terminal.The present invention gets workout data source, for the data for preventing workout data source
Belong to false data, carries out true or false identification using to workout data source, detected by the legitimacy to workout data, mistake
Filter underproof illegal third party's workout data, it would be possible to which the application scenarios that there is the workout data source for being tampered probability are whole
Gear only carries out the acquisition in workout data source except terminal from the equipment of certification, thus avoid being applied to forge play tricks it is strong
Body data ensure the true of workout data received by terminal, improve the reliability and referential of workout data.
Detailed description of the invention
Fig. 1 is one flow diagram of detection method in workout data source of the present invention;
Fig. 2 is the another flow diagram of detection method in workout data source of the present invention;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to;
Fig. 4 is one scene flow chart of present invention method.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of detection method in workout data source, the detection method first embodiment in workout data source
In, referring to Fig.1, the detection method in the workout data source includes:
Step S10, terminal obtain workout data source;
In the present embodiment, the workout data source is referred to by sports equipment, terminal (such as motion bracelet) or movement
The workout data packet that inspection software etc. is detected and generated.Normally, the type of workout data includes heart rate data, step counting step
Number, energy consumption etc..Have the sensor of detection function by carrying, terminal can real-time detection to user workout data
And it is stored as workout data packet.Generally, as long as the terminal for carrying motion sensor is available to arrive workout data packet, when
So, terminal can also carry out multiterminal linkage statistics by the workout data source imported on other terminal devices or software.
It is understood that terminal can get multiple workout data sources simultaneously, and subsequent operation is executed to it.
Step S20, terminal carry out legitimacy detection to workout data source;
In real life, external data source is belonged to by the workout data source that other terminal devices or software import, counted
It is verified according to the real reliability in source.Due to workout data source reflection be user real motion amount, it is assumed that disliked
Meaning is distorted, then the workout data source can not then reflect the true amount of exercise of user, so that the body-building number in workout data source
According to losing referential.For example, businessman carry out body-building, it is assumed that aprowl, player using outside workout data source as
Workout data, and the workout data source is artificially distorted, if the true pedometer in player one week is 100, and by distorting
Step counting step in the player one week is revised as 50000 by data, then the player can be by modified false step counting step
Number obtains this movable reward;Or body-building personnel pass through the energy consumption data in modification workout data source, so that repairing
Energy consumption data and true energy consumption situation after changing mismatch, and cause fitness can not be according to the true of body-building personnel
Body-building situation formulates accurate fitness program.
Therefore, current embodiment require that carrying out legitimacy detection to workout data source, the feature in workout data source can be passed through
Identifier is verified.
Optionally, step S20 can be refined are as follows:
Step S21, terminal obtain the platform identifier in workout data source;
The platform identifier refers to the mark of the mother system platform in workout data source, represents the workout data source
Platform source.Workout data source can generally be stored in certain platforms, that is to say, that workout data source is based on certain system platforms
Equipment, what the motion state detected by various sensors generated, and correspond to equipment and approved by the system platform.Such as
A equipment is the product under A platform, then the workout data source of the detected generation of a equipment then includes the platform identification of A platform
Symbol, indicates that the workout data source relies on A platform.Part system platform has certain fairness and influence power, the i.e. system
The data of platform are just transparent, have stronger referential.That is, the workout data source of the system platform can be used as ginseng
It examines.At this point, terminal can get the platform identifier in workout data source, to know the support platform in the workout data source.
Step S22, when detecting in the compatible list of preset platform that terminal determines body-building there are when the platform identifier
Data source is valid data source;
Step S23, when detecting in the compatible list of preset platform that terminal determines strong there is no when the platform identifier
Body data source is invalid data source.
In the database of terminal, the compatible list of platform can be preset, the compatible list of the platform refers to that the terminal is recognized
The list of the other systems platform of card belongs to the workout data packet of the system platform in the compatible list of platform, all it is considered that
Belong to true workout data source.The platform in the compatible list of platform is set trusted platform module architecture by terminal, assert the trusted platform module architecture
Data source it is authentic and valid.
And detect that there are when the platform identifier in the compatible list of the platform in terminal, it was demonstrated that the workout data source institute
Belong to the trusted platform module architecture of terminal authentication in system platform, also implies that current workout data source belongs to the legal of the trusted platform module architecture
Authentication data, terminal can directly determine the workout data source for valid data source.Conversely, if terminal detects the compatible list of platform
In when the platform identifier is not present, it was demonstrated that system platform where workout data source is not belonging to the trusted platform module architecture of terminal authentication,
Mean that current workout data source is not belonging to the legitimate authentication data in the trusted platform module architecture that terminal is authenticated, at this point, terminal will
Determine the workout data source for invalid data source.
Optionally, step S20 can also be refined are as follows:
Step S24, terminal obtain the device identifier in workout data source;
The device identifier refers to the device identification in workout data source, and the acquisition that represent the workout data source comes
Source.Workout data source can be acquired generation by acquiring equipment, and terminal can be carried out by the acquisition equipment to workout data source
Certification, to recognize the legitimate origin that fixable equipment is workout data source.Such as terminal acquires the body-building number of equipment to part
Do not approve according to source, and the workout data source of another part acquisition equipment is approved, then can be set by the acquisition in workout data source
The standby legitimacy detection to carry out workout data source.Alternatively, the different acquisition equipment under identical platform can be defined, such as
The workout data source for only approving A model acquisition equipment, the workout data source without approving Type B number acquisition equipment.And device identification
Symbol can be used as the model or classification logotype of acquisition equipment, and terminal is facilitated to detect it.
Step S25, when detecting in preset hardware compatibility list that there are when the device identifier, terminal determines body-building
Data source is valid data source;
Step S26, when detecting in preset hardware compatibility list there is no the device identifier, terminal determines strong
Body data source is invalid data source.
In the database of terminal, hardware compatibility list can be preset, the hardware compatibility list refers to that the terminal is recognized
Card other acquisition equipment set, that is, belong to the workout data packet of the acquisition equipment in hardware compatibility list, all it is considered that
Belong to effective workout data source.The acquisition equipment in hardware compatibility list is set trusted devices by terminal, assert the acquisition
The data source of equipment is authentic and valid.
And detect that there are when the device identifier in the hardware compatibility list in terminal, it was demonstrated that the workout data source
Equipment is acquired to belong to the trusted devices of terminal authentication, also implies that current workout data source belongs to the legal of the trusted devices
Authentication data, terminal can directly determine the workout data source for valid data source.Conversely, if terminal detects hardware compatibility list
In be not present the device identifier when, it was demonstrated that the acquisition equipment in workout data source is not belonging to the trusted devices of terminal authentication, anticipate
Taste current workout data source be not belonging to the legitimate authentication data in the trusted devices that terminal is authenticated, at this point, terminal will be sentenced
The fixed workout data source is invalid data source.
Optionally, step S20 can also be refined are as follows:
Step S27, terminal obtain the software identifiers in workout data source;
The software identifiers refer to workout data source by third party application, represent the workout data source
Platform source.Workout data source can generally be stored in certain platforms, that is to say, that workout data source is based on certain system platforms
Equipment, what the motion state detected by various sensors generated, and correspond to equipment and approved by the system platform.Such as
A equipment is the product under A platform, then the workout data source of the detected generation of a equipment then includes the software identification of A platform
Symbol, indicates that the workout data source relies on A platform.Part system platform has certain fairness and influence power, the i.e. system
The data of platform are just transparent, have stronger referential.That is, the workout data source of the system platform can be used as ginseng
It examines.At this point, terminal can get the software identifiers in workout data source, to know the support platform in the workout data source.
Step S28, when detecting in preset software compatibility list that there are when the software identifiers, terminal determines body-building
Data source is valid data source;
Step S29, when detecting in preset software compatibility list there is no the software identifiers, terminal determines strong
Body data source is invalid data source.
In the database of terminal, can the compatible list of predetermined software, the software compatibility list refers to that the terminal is recognized
The list of the third party software of card belongs to the software workout data packet generated in software compatibility list, all it is considered that
Belong to true workout data source.Terminal sets the third party software in software compatibility list to trust software, assert the letter
Appoint the data source of software authentic and valid.
And detect that there are when the software identifiers in the software compatibility list in terminal, it was demonstrated that the workout data source
Software source belongs to the trust software of terminal authentication, also implies that current workout data source belongs to the legal of the trust software and recognizes
Data are demonstrate,proved, terminal can directly determine the workout data source for valid data source.Conversely, if terminal detects in software compatibility list
There is no when the software identifiers, it was demonstrated that the corresponding trust software for generating software and being not belonging to terminal authentication in workout data source,
Mean that current workout data source is not belonging to the legitimate authentication data trusted in software that terminal is authenticated, at this point, terminal will
Determine the workout data source for invalid data source.
Optionally, the present embodiment can make simultaneously platform identifier, three identifiers of device identifier and software identifiers
For the legitimacy judging standard in workout data source, i.e. terminal must get the platform identifier in workout data source simultaneously, if
Standby identifier and software identifiers, and from the compatible list of platform in database, hardware compatibility list and software compatibility list
The platform identifier, device identifier and software identifiers are retrieved respectively.Only in platform identifier, device identifier and soft
Part identifier three is respectively present the compatible list of platform of terminal, hardware compatibility list and software compatibility list three compatible lists
When middle, terminal just determines that the workout data source belongs to valid data source.
Step S30, when detecting workout data source is valid data source, format classification of the terminal based on workout data source
Workout data source is parsed, to obtain third party's workout data;
Step S40, when detecting workout data source is invalid data source, terminal is filtered workout data source, and
Obtain the local terminal workout data of terminal.
After terminal identifies the legitimacy in workout data source, alignment processing can be carried out to workout data source.
When the current workout data source of terminal is valid data source, then terminal can call directly the workout data source,
And the workout data source is parsed, the analyzing step can carry out corresponding parsing according to the format classification in workout data source,
To get third party's workout data.
Since the workout data source of separate sources may be from a variety of canals such as different platform, terminal device, software or manufacturer
Road, therefore different workout data sources may exist in a different format, such as have general format from zip, rar, 7z, can also be with
There is specific format, such as different channels there may be the specific format for being specific to the channel, such as a company proprietary formats aa, b public affairs
Take charge of proprietary formats bb etc..Corresponding workout data source can just only be unlocked using the distinctive analysis mode of the said firm at this time,
That is terminal need to obtain corresponding analysis mode according to the format classification in workout data source, and with corresponding analysis mode solution
The workout data source is analysed, to obtain third party's workout data.
Third party's workout data includes rate data, pedometer, energy consumption etc..It is strong to third party to complete
Body data carry out various call operations, such as call, and show, statistics, operation etc. is not limited thereto.Terminal only need to by its into
Row parsing, without limiting the function and usage of third party's workout data.
If terminal detects that workout data source belongs to invalid data source, then proving that current workout data source can not
It leans on, confidence level is lower, it is understood that there may be the phenomenon that third party's workout data is tampered.To avoid terminal applies to unreliable untrue
Real third party's workout data, terminal will be filtered the workout data source for currently belonging to invalid data source, i.e., will illegally count
Deleted according to source, be isolated and closed etc..
It is a scene flow chart of the invention referring to Fig. 4, Fig. 4, it is assumed that terminal is mobile phone, and mobile phone can import third-party " strong
The pedometer of health " application program, and mobile phone itself can detect that step counting walks by " sport and fitness " based on motion sensor
Number.So, mobile phone can first read inquiry pedometer from " health ", and carry out legitimacy detection to pedometer, if " strong
Pedometer in health " application program belongs to valid data, then whether effective, if step number is zero, i.e., if detecting the pedometer
Current pedometer is invalid.When the pedometer in " health " is illegal, or can not provide valid data, mobile phone be can be read
" sport and fitness " data of mobile phone itself, and pedometer therein is extracted, as reference data.
In technical solution of the present invention, terminal obtains workout data source;Terminal carries out legitimacy detection to workout data source;
When detecting workout data source is valid data source, terminal carries out workout data source based on the format classification in workout data source
Parsing, to obtain third party's workout data;When detect workout data source be invalid data source when, terminal to workout data source into
Row filtering, and obtain the local terminal workout data of terminal.The present invention gets workout data source, for the data for preventing workout data source
Belong to false data, carries out true or false identification using to workout data source, detected by the legitimacy to workout data, mistake
Filter underproof illegal third party's workout data, it would be possible to which the application scenarios that there is the workout data source for being tampered probability are whole
Gear only carries out the acquisition in workout data source except terminal from the equipment of certification, thus avoid being applied to forge play tricks it is strong
Body data ensure the true of workout data received by terminal, improve the reliability and referential of workout data.
Further, on the basis of the detection method first embodiment in workout data source of the present invention, propose that the present invention is strong
The detection method second embodiment of body data source, referring to Fig. 2, the difference with previous embodiment is, if accessed by terminal
Third party's workout data is the first data, described when detection if third party's workout data in terminal database is the second data
To workout data source be valid data source when, terminal workout data source is parsed, to obtain the step of third party's workout data
After rapid further include:
Step S50, terminal obtain all second data in terminal database;
Corresponding database, in store accessed all third party's body-building numbers are stored in the storage unit of terminal
According to i.e. the second data;And third party's workout data that present terminal is analyzed and acquired by is set as the first data.The present embodiment is main
It is by retrieving in the second data with the presence or absence of third party's workout data identical with the first data.
In real life, the distinct device in identical platform or same local area network may be captured simultaneously with a body-building
Data source, and with the data in platform or same local area network may intercommunication, such that terminal is when obtaining workout data source,
Same a workout data source of the distinct device in identical platform or same local area network is got, and with a workout data
If source is repeated statistics, it will cause the multi-calls of truthful data.That is, repeating to receive with a body-building
Data source is unnecessary.
Step S60, when detecting the third party's workout data for existing in the second data and matching with the first data, terminal
Delete first data.
The present embodiment obtains all second data in terminal database, and carries out query and search based on the second data, looks into
Third party's workout data that is identical as current first data or matching is found out, duplicate removal processing is carried out.Detecting inquiry mode can benefit
This characteristic is captured to retrieve at same time point with same a workout data, i.e. the generation time of workout data or generation is remembered
Record if it is at same time point, due in terminal database the second data and the first data be all in identical platform or same
Intercommunication in local area network then proves that the first data and the second data can be matched by data characteristics, including time point, data lattice
Formula etc..When terminal detects the third party's workout data for existing in the second data and matching with the first data, it was demonstrated that middle end
Third party's workout data as the first data being currently received has been preserved at end, therefore can delete the first data, is kept away
Exempt from Data duplication.
Further, on the basis of the detection method first embodiment in workout data source of the present invention, propose that the present invention is strong
The detection method 3rd embodiment of body data source, the difference with previous embodiment be, the detection method in the workout data source
Further include:
Step S70, when that can not get workout data source, terminal obtains the local workout data of terminal.
Assuming that terminal breaks down, such as can not import workout data source or data receiving channel exception etc. can not be normal
The case where obtaining workout data source then can complete the calling of workout data by the local workout data of importing terminal storage.
The program needs terminal itself to have motion sensor, and by the motion state of real-time detection to user, or
Start motion state detection function, such as step function, when heart rate detecting function, to obtain the local body-building for belonging to terminal in user
Data.The effect for obtaining local workout data is, when terminal can not normally get workout data source, enables the sheet of terminal
Ground workout data.
Further, on the basis of the detection method 3rd embodiment in workout data source of the present invention, propose that the present invention is strong
The detection method fourth embodiment of body data source, the difference with previous embodiment are, described when terminal can not get body-building
When data source, after the step of obtaining the local workout data of terminal further include:
Step S80, when local workout data is not detected, terminal output lacks the prompt information of local workout data.
Assuming that terminal can not detect local workout data, then prove that user does not carry out any body building, or work as
Preceding terminal can not store local workout data.In the third party's workout data for failing to get workout data source and local body-building number
In the case of, terminal needs to export the prompt information informing user for lacking local workout data, avoids user that from wasting the time
In the process for waiting local workout data load.
The present invention also provides a kind of detection device, the detection device includes:
Module is obtained, for obtaining workout data source;
Detection module, for carrying out legitimacy detection to workout data source;
Parsing module, for when detect workout data source be valid data source when, the format class based on workout data source
It is other that workout data source is parsed, to obtain third party's workout data;
Filtering module, for being filtered to workout data source when detecting workout data source is invalid data source, and
Obtain the local terminal workout data of terminal.
Further, if third party's workout data accessed by terminal is the first data, if the in terminal database
Tripartite's workout data is the second data, the detection device further include:
Second obtains module, for obtaining all second data in terminal database;
Removing module, for working as the third party's workout data for detecting and existing in the second data and matching with the first data
When, delete first data.
Further, the detection module includes:
First acquisition unit, for obtaining the platform identifier in workout data source;
First judging unit, for sentencing when detecting in the compatible list of preset platform there are when the platform identifier
Determining workout data source is valid data source;
Second judging unit, for when detecting in the compatible list of preset platform there is no when the platform identifier,
Determine that workout data source is invalid data source.
Further, the detection module includes:
Second acquisition unit, for obtaining the device identifier in workout data source;
Third judging unit, for sentencing when detecting in preset hardware compatibility list there are when the device identifier
Determining workout data source is valid data source;
4th judging unit, for when detecting in preset hardware compatibility list there is no the device identifier,
Determine that workout data source is invalid data source.
Further, the detection module includes:
Third acquiring unit, for obtaining the software identifiers in workout data source;
5th judging unit, for sentencing when detecting in preset software compatibility list there are when the software identifiers
Determining workout data source is valid data source;
6th judging unit, for when detecting in preset software compatibility list there is no the software identifiers,
Determine that workout data source is invalid data source.
Further, the detection method in the workout data source further include:
Third obtains module, for when that can not get workout data source, obtaining the local workout data of terminal.
Further, the detection device further include:
Output module, for when local workout data is not detected, output to lack the prompt information of local workout data.
Referring to Fig. 3, Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to.
The terminal of that embodiment of the invention can be PC, be also possible to smart phone, tablet computer, E-book reader, MP3
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3)
Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound
Frequency level 4) terminal devices such as player, portable computer.
As shown in figure 3, the detection device may include: processor 1001, such as CPU, memory 1005, communication bus
1002.Wherein, communication bus 1002 is for realizing the connection communication between processor 1001 and memory 1005.Memory 1005
It can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.
Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Optionally, which can also include user interface, network interface, camera, RF (Radio
Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..User interface may include display screen
(Display), input unit such as keyboard (Keyboard), optional user interface can also include wireline interface, the nothing of standard
Line interface.Network interface optionally may include standard wireline interface and wireless interface (such as WI-FI interface).
It will be understood by those skilled in the art that assay device structures shown in Fig. 3 do not constitute the limit to detection device
It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in figure 3, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe the detection program in module and workout data source.Operating system is to manage and control the journey of detection device hardware and software resource
Sequence supports the detection program in workout data source and the operation of other softwares and/or program.Network communication module is for realizing depositing
Communication between the 1005 each component in inside of reservoir, and communicated between hardware and softwares other in detection device.
In detection device shown in Fig. 3, processor 1001 is for executing the workout data source stored in memory 1005
Detection program, perform the steps of
Terminal obtains workout data source;
Terminal carries out legitimacy detection to workout data source;
When detecting workout data source is valid data source, terminal is based on the format classification in workout data source to body-building number
It is parsed according to source, to obtain third party's workout data;
When detecting workout data source is invalid data source, terminal is filtered workout data source, and obtains terminal
Local terminal workout data.
Preferably, if third party's workout data accessed by terminal is the first data, if the third in terminal database
Square workout data is the second data,
Described when detecting workout data source is valid data source, terminal parses workout data source, to obtain
After the step of third party's workout data further include:
Terminal obtains all second data in terminal database;
When detecting the third party's workout data for existing in the second data and matching with the first data, described in terminal deletion
First data.
Preferably, the terminal includes: to the step of workout data source progress legitimacy detection
The platform identifier in terminal acquisition workout data source;
When detecting that terminal determines that workout data source is there are when the platform identifier in the compatible list of preset platform
Valid data source;
When detecting in the compatible list of preset platform that terminal determines workout data source there is no when the platform identifier
For invalid data source.
Preferably, the terminal includes: to the step of workout data source progress legitimacy detection
The device identifier in terminal acquisition workout data source;
When detecting in preset hardware compatibility list there are when the device identifier, terminal determines that workout data source is
Valid data source;
When detecting in preset hardware compatibility list there is no the device identifier, terminal determines workout data source
For invalid data source.
Preferably, the terminal includes: to the step of workout data source progress legitimacy detection
The software identifiers in terminal acquisition workout data source;
When detecting in preset software compatibility list there are when the software identifiers, terminal determines that workout data source is
Valid data source;
When detecting in preset software compatibility list there is no the software identifiers, terminal determines workout data source
For invalid data source.
Preferably, the detection method in the workout data source further include:
When that can not get workout data source, terminal obtains the local workout data of terminal.
Preferably, described when terminal can not get workout data source, the step of obtaining the local workout data of terminal
Later further include:
When local workout data is not detected, terminal output lacks the prompt information of local workout data.
The basic phase of each embodiment of detection method of the specific embodiment of detection device of the present invention and above-mentioned workout data source
Together, details are not described herein.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has one
Perhaps more than one program the one or more programs can also be executed by one or more than one processor with
For:
Terminal obtains workout data source;
Terminal carries out legitimacy detection to workout data source;
When detecting workout data source is valid data source, terminal is based on the format classification in workout data source to body-building number
It is parsed according to source, to obtain third party's workout data;
When detecting workout data source is invalid data source, terminal is filtered workout data source, and obtains terminal
Local terminal workout data.
Computer readable storage medium specific embodiment of the present invention and the detection method in above-mentioned workout data source are respectively implemented
Example is essentially identical, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of detection method in workout data source, which is characterized in that the detection method in the workout data source includes:
Terminal obtains workout data source;
Terminal carries out legitimacy detection to workout data source;
When detecting workout data source is valid data source, terminal is based on the format classification in workout data source to workout data source
It is parsed, to obtain third party's workout data;
When detecting workout data source is invalid data source, terminal is filtered workout data source, and obtains the sheet of terminal
Hold workout data.
2. the detection method in workout data source as described in claim 1, which is characterized in that set third party accessed by terminal
Workout data is the first data, if third party's workout data in terminal database is the second data,
It is described when detect workout data source be valid data source when, terminal is based on the format classification in workout data source to body-building number
Parsed according to source, the step of to obtain third party's workout data after further include:
Terminal obtains all second data in terminal database;
When detecting the third party's workout data for existing in the second data and matching with the first data, first described in terminal deletion
Data.
3. the detection method in workout data source as described in claim 1, which is characterized in that the terminal to workout data source into
Row legitimacy detect the step of include:
The platform identifier in terminal acquisition workout data source;
When detecting that terminal determines that workout data source is legal there are when the platform identifier in the compatible list of preset platform
Data source;
When detecting that terminal determines that workout data source is non-there is no when the platform identifier in the compatible list of preset platform
Method data source.
4. the detection method in workout data source as described in claim 1, which is characterized in that the terminal to workout data source into
Row legitimacy detect the step of include:
The device identifier in terminal acquisition workout data source;
When detecting in preset hardware compatibility list there are when the device identifier, terminal determines that workout data source is legal
Data source;
When detecting in preset hardware compatibility list there is no the device identifier, terminal determines that workout data source is non-
Method data source.
5. the detection method in workout data source as described in claim 1, which is characterized in that the terminal to workout data source into
Row legitimacy detect the step of include:
The software identifiers in terminal acquisition workout data source;
When detecting in preset software compatibility list there are when the software identifiers, terminal determines that workout data source is legal
Data source;
When detecting in preset software compatibility list there is no the software identifiers, terminal determines that workout data source is non-
Method data source.
6. the detection method in workout data source as described in claim 1, which is characterized in that the detection side in the workout data source
Method further include:
When that can not get workout data source, terminal obtains the local workout data of terminal.
7. the detection method in workout data source as claimed in claim 6, which is characterized in that described can not to get body-building number
When according to source, terminal obtain terminal local workout data the step of after further include:
When local workout data is not detected, terminal output lacks the prompt information of local workout data.
8. a kind of detection device, which is characterized in that the detection device includes:
Module is obtained, for obtaining workout data source;
Detection module, for carrying out legitimacy detection to workout data source;
Parsing module, for when detect workout data source be valid data source when, the format classification pair based on workout data source
Workout data source is parsed, to obtain third party's workout data;
Filtering module, for being filtered to workout data source, and obtain when detecting workout data source is invalid data source
The local terminal workout data of terminal.
9. a kind of detection device, which is characterized in that the detection device includes: memory, processor, communication bus and storage
The detection program in the workout data source on the memory,
The communication bus is for realizing the communication connection between processor and memory;
The processor is used to execute the detection program in the workout data source, to realize such as any one of claims 1 to 7 institute
The step of detection method in the workout data source stated.
10. a kind of computer readable storage medium, which is characterized in that be stored with body-building number on the computer readable storage medium
It is realized according to the detection program in source, when the detection program in the workout data source is executed by processor as any in claim 1 to 7
The step of detection method in the workout data source described in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711172967.8A CN109817334A (en) | 2017-11-21 | 2017-11-21 | Detection method, device, equipment and the readable storage medium storing program for executing in workout data source |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711172967.8A CN109817334A (en) | 2017-11-21 | 2017-11-21 | Detection method, device, equipment and the readable storage medium storing program for executing in workout data source |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109817334A true CN109817334A (en) | 2019-05-28 |
Family
ID=66600168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711172967.8A Pending CN109817334A (en) | 2017-11-21 | 2017-11-21 | Detection method, device, equipment and the readable storage medium storing program for executing in workout data source |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109817334A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111669406A (en) * | 2020-06-28 | 2020-09-15 | 山东大学 | Safe data transmission method and system for noninvasive ventilator |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242880A (en) * | 2005-07-25 | 2008-08-13 | 耐克国际有限公司 | Interfaces and systems for displaying athletic performance information on electronic devices |
CN104436615A (en) * | 2013-09-17 | 2015-03-25 | 索尼公司 | Effort monitoring device and method |
CN106156656A (en) * | 2015-04-02 | 2016-11-23 | 腾讯科技(深圳)有限公司 | The cross-system implementation method of data platform and data platform |
CN106170783A (en) * | 2014-03-14 | 2016-11-30 | 三星电子株式会社 | For the method determining data source |
US20160358310A1 (en) * | 2015-06-08 | 2016-12-08 | Blue Goji Corp. | Automated multi-factor prioritization and visualization |
CN106227861A (en) * | 2016-07-29 | 2016-12-14 | 珠海善乐生健康信息咨询有限公司 | Individual health data Mobile medical system |
CN107205661A (en) * | 2015-01-05 | 2017-09-26 | 耐克创新有限合伙公司 | Energy expenditure calculating is carried out using the data from multiple equipment |
-
2017
- 2017-11-21 CN CN201711172967.8A patent/CN109817334A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242880A (en) * | 2005-07-25 | 2008-08-13 | 耐克国际有限公司 | Interfaces and systems for displaying athletic performance information on electronic devices |
CN104436615A (en) * | 2013-09-17 | 2015-03-25 | 索尼公司 | Effort monitoring device and method |
CN106170783A (en) * | 2014-03-14 | 2016-11-30 | 三星电子株式会社 | For the method determining data source |
CN107205661A (en) * | 2015-01-05 | 2017-09-26 | 耐克创新有限合伙公司 | Energy expenditure calculating is carried out using the data from multiple equipment |
CN106156656A (en) * | 2015-04-02 | 2016-11-23 | 腾讯科技(深圳)有限公司 | The cross-system implementation method of data platform and data platform |
US20160358310A1 (en) * | 2015-06-08 | 2016-12-08 | Blue Goji Corp. | Automated multi-factor prioritization and visualization |
CN106227861A (en) * | 2016-07-29 | 2016-12-14 | 珠海善乐生健康信息咨询有限公司 | Individual health data Mobile medical system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111669406A (en) * | 2020-06-28 | 2020-09-15 | 山东大学 | Safe data transmission method and system for noninvasive ventilator |
CN111669406B (en) * | 2020-06-28 | 2021-05-28 | 山东大学 | Safe data transmission method and system for noninvasive ventilator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104143078B (en) | Living body faces recognition methods, device and equipment | |
CN105100366B (en) | Harassing call number determines methods, devices and systems | |
CN104239535B (en) | A kind of method, server, terminal and system for word figure | |
CN103814380B (en) | For strengthening the method and apparatus of the security in equipment using multiple-factor password or dynamic password | |
CN106446797B (en) | Image clustering method and device | |
CN104185141B (en) | The detecting system and method for user area residence time based on Bluetooth beacon equipment | |
CN104143097B (en) | Classification function obtaining method and device, face age recognition method and device and equipment | |
WO2015127825A1 (en) | Expression input method and apparatus and electronic device | |
CN108062533A (en) | Analytic method, system and the mobile terminal of user's limb action | |
CN106126174A (en) | The control method of a kind of scene audio and electronic equipment | |
CN107705251A (en) | Picture joining method, mobile terminal and computer-readable recording medium | |
CN107277230A (en) | The voice broadcast method and Related product of message | |
CN106203235A (en) | Live body discrimination method and device | |
CN108121736A (en) | A kind of descriptor determines the method for building up, device and electronic equipment of model | |
CN108573064A (en) | Information recommendation method, mobile terminal, server and computer readable storage medium | |
CN108197215A (en) | A kind of recommendation method, server and computer readable storage medium | |
CN108512625A (en) | Anti-interference method, mobile terminal and the storage medium of camera | |
CN110889036A (en) | Multi-dimensional information processing method and device and terminal equipment | |
CN110210299A (en) | Voice training data creation method, device, equipment and readable storage medium storing program for executing | |
Brandenburg et al. | The development and accuracy testing of CommFit™, an iPhone application for individuals with aphasia | |
CN108897846A (en) | Information search method, equipment and computer readable storage medium | |
CN107909011A (en) | Face identification method and Related product | |
CN109065017B (en) | Voice data generation method and related device | |
CN104038832A (en) | Video playing method and device | |
CN101996230B (en) | Information processing apparatus, reference value determination method, and program |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |
|
RJ01 | Rejection of invention patent application after publication |