CN108170478A - Data clearing method, device, wearable device and computer readable storage medium - Google Patents

Data clearing method, device, wearable device and computer readable storage medium Download PDF

Info

Publication number
CN108170478A
CN108170478A CN201711209468.1A CN201711209468A CN108170478A CN 108170478 A CN108170478 A CN 108170478A CN 201711209468 A CN201711209468 A CN 201711209468A CN 108170478 A CN108170478 A CN 108170478A
Authority
CN
China
Prior art keywords
wearable device
data
terminal applies
time
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711209468.1A
Other languages
Chinese (zh)
Other versions
CN108170478B (en
Inventor
戴启军
黄图平
张黎明
贺岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kara Payment Ltd By Share Ltd
Original Assignee
Kara Payment Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kara Payment Ltd By Share Ltd filed Critical Kara Payment Ltd By Share Ltd
Priority to CN201711209468.1A priority Critical patent/CN108170478B/en
Publication of CN108170478A publication Critical patent/CN108170478A/en
Application granted granted Critical
Publication of CN108170478B publication Critical patent/CN108170478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present disclosure discloses data clearing method, device, wearable device and computer readable storage medium, the method includes:In response to wearable device and the connection event of terminal applies, determine whether the wearable device with the terminal applies is to connect for the first time;In the wearable device with the terminal applies when connecting for the first time, to remove the preset data stored in the wearable device.Pass through the embodiment of the present disclosure, when user uses wearable device for the first time, by the preset data stored in wearable device such as wearable device in removings such as some sensing datas that manufacture is tested or is generated in transit, the data that user generates in use with user is avoided to clash, so as to eliminate consumer's doubt, user experience is promoted.

Description

Data clearing method, device, wearable device and computer readable storage medium
Technical field
This disclosure relates to field of computer technology, and in particular to a kind of data clearing method, device, wearable device and meter Calculation machine readable storage medium storing program for executing.
Background technology
In order to reduce the maloperation of user, intelligent wearable device such as bracelet in prior art is all subtracted in design The functions of switching on and shutting down.Therefore it after producing line production, assembling, detection has no idea that bracelet is allowed to shut down, and intelligence wearable is set 70% electricity may be reserved during standby manufacture, therefore can not be avoided due to built-in working sensor in transporting and dispensing way (such as rock, manually carry etc. scene) and cause to increase the invalid datas such as meter step, and the invalid data is easily and user Data when in use generate conflict, and user is allowed to produce misunderstandings and feel uncertain, greatly reduces the experience of user.
Invention content
The embodiment of the present disclosure provides a kind of data clearing method, device, wearable device and computer readable storage medium.
In a first aspect, a kind of data clearing method is provided in the embodiment of the present disclosure, including:
In response to wearable device and the connection event of terminal applies, the wearable device and the terminal applies are determined Whether it is to connect for the first time;
In the wearable device with the terminal applies when connecting for the first time, to remove what is stored in the wearable device Preset data.
Optionally, in response to wearable device and the connection event of terminal applies, determine the wearable device with it is described Before whether terminal applies are connection for the first time, the method further includes:
In response to the event of the wiredly and/or wirelessly successful connection on the wearable device, triggering is described wearable to be set The standby connection event with the terminal applies.
Optionally, in response to wearable device and the connection event of terminal applies, determine the wearable device with it is described Before whether terminal applies are connection for the first time, the method further includes:
In response to successfully getting the log-on message of the wearable device from the terminal applies, triggering is described wearable The connection event of equipment and the terminal applies.
Optionally, in response to wearable device and the connection event of terminal applies, determine the wearable device with it is described Whether terminal applies are to connect for the first time, including:
In response to obtaining the identification information of the wearable device for the first time from the terminal applies, described wearable set is determined Whether standby with the terminal applies be to connect for the first time.
Optionally, in response to wearable device and the connection event of terminal applies, determine the wearable device with it is described Whether terminal applies are to connect for the first time, including:
In response to the event of the wiredly and/or wirelessly successful connection on the wearable device, described wearable set is obtained The connection identifier position of standby middle storage;
Determine whether the wearable device with the terminal applies is to connect for the first time according to the connection identifier position.
Optionally, the method further includes:
Be the event connecting for the first time in response to the wearable device and the terminal applies, by the wearable device from First state is switched to the second state.
Optionally, the preset data is included in before the second state, the sensing data generated in the wearable device And/or test data.
Optionally, the method further includes:
In response to the control command from preset data interface, the wearable device is set as first state.
Optionally, the preset data stored in the wearable device is removed, including:
Obtain the preset list that clears data;
According to recorded in the preset list that clears data removing mark and storage location between correspondence, Remove the preset data at the storage location.
Second aspect, the embodiment of the present disclosure also proposed a kind of data dump device, including:
First respond module is configured to respond to wearable device and the connection event of terminal applies, determine it is described can Whether wearable device is to connect for the first time with the terminal applies;
Module is removed, is configured as when it is to connect for the first time that the wearable device is with the terminal applies, described in removing The preset data stored in wearable device.
Optionally, before first respond module, described device further includes:
Second respond module is configured to respond to wiredly and/or wirelessly successful connection on the wearable device Event triggers the connection event of the wearable device and the terminal applies.
Optionally, before first respond module, described device further includes:
Third respond module is configured to respond to successfully get the note of the wearable device from the terminal applies Volume information triggers the connection event of the wearable device and the terminal applies.
Optionally, first respond module includes:
First response submodule is configured to respond to obtain the mark of the wearable device for the first time from the terminal applies Know information, determine whether the wearable device with the terminal applies is to connect for the first time.
Optionally, first respond module includes:
Second response submodule, the wiredly and/or wirelessly successful connection being configured to respond on the wearable device Event, obtain the connection identifier position stored in the wearable device;
Determination sub-module is configured as determining the wearable device and the terminal applies according to the connection identifier position Whether it is to connect for the first time.
Optionally, described device further includes:
Handover module, it is the event connecting for the first time to be configured to respond to the wearable device and the terminal applies, The wearable device is switched to the second state from first state.
Optionally, the preset data is included in before the second state, the sensing data generated in the wearable device And/or test data.
Optionally, described device further includes:
4th respond module is configured to respond to the control command from preset data interface, will be described wearable Equipment is set as first state.
Optionally, the removing module includes:
Acquisition submodule is configured as obtaining the preset list that clears data;
Submodule is removed, is configured as according to the removing mark recorded in the preset list that clears data and storage Correspondence between position removes the preset data at the storage location.
The function by hardware can also be performed corresponding software and be realized by hardware realization.The hardware or Software includes the one or more and corresponding module of above-mentioned function.
In a possible design, the structure of data dump device includes memory and processor, the memory Data dump device is supported to perform the computer instruction of data clearing method in above-mentioned first aspect for storing one or more, The processor is configurable for performing the computer instruction stored in the memory.The data dump device can be with Including communication interface, for data dump device and terminal or communication.
The third aspect, the embodiment of the present disclosure provides a kind of wearable device, including memory and processor;Wherein, institute State memory for store one or more computer instruction, wherein, one or more computer instruction is by the processing Device performs to realize the method and step described in first aspect.
Fourth aspect, the embodiment of the present disclosure provide a kind of computer readable storage medium, for storing data dump dress Computer instruction used is put, it includes refer to for performing the computer in above-mentioned first aspect involved by data clearing method It enables.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
The embodiment of the present disclosure is when wearable device and terminal applies generate connection event, if it is determined that wearable device with Terminal applies then remove the preset data stored in wearable device to connect for the first time.In this way, in user first During secondary use wearable device, the preset data stored in wearable device such as wearable device is tested or transported in manufacture The removings such as some sensing datas generated in way avoid the data that user generates in use with user from clashing, from And consumer's doubt is eliminated, promote user experience.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
With reference to attached drawing, by the detailed description of following non-limiting embodiment, the other feature of the disclosure, purpose and excellent Point will be apparent.In the accompanying drawings:
Fig. 1 shows the flow chart of the data clearing method according to one embodiment of the disclosure;
Fig. 2 shows the flow charts of the step S101 of embodiment according to Fig. 1;
Fig. 3 shows the flow chart of the step S102 of embodiment according to Fig. 1;
Fig. 4 shows the structure diagram of the data dump device according to one embodiment of the disclosure;
Fig. 5 shows the structure diagram of the first respond module 401 according to Fig. 4 illustrated embodiments;
Fig. 6 shows the structure diagram of the removing module 402 according to Fig. 4 illustrated embodiments;
Fig. 7 is adapted for the structure of the wearable device for realizing the data clearing method according to one embodiment of the disclosure Schematic diagram.
Specific embodiment
Hereinafter, the illustrative embodiments that the disclosure will be described in detail with reference to the attached drawings, so that those skilled in the art can Easily realize them.In addition, for the sake of clarity, the portion unrelated with description illustrative embodiments is omitted in the accompanying drawings Point.
In the disclosure, it should be appreciated that the term of " comprising " or " having " etc. is intended to refer to disclosed in this specification Feature, number, step, behavior, the presence of component, part or combination, and be not intended to exclude other one or more features, Number, step, behavior, component, part or combination there is a possibility that or be added.
It also should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure It can be combined with each other.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
One major function of contemporary wearable equipment is exactly to record the life data of user, however existing wearable device The power on/off function of product has generally been simplified for various reasons, this so that generally existing is without cleaning in the data that user obtains " dirty " data, can cause gathered data that can not really reflect the life data of user's reality.It is directed in embodiment of the disclosure The defects of prior art, the data that automatic cleaning non-user generates in due course ensure that the accuracy of user data.
Fig. 1 shows the flow chart of the data clearing method according to one embodiment of the disclosure;As shown in Figure 1, the data Sweep-out method includes the following steps S101-S102:
In step S101, in response to wearable device and the connection event of terminal applies, the wearable device is determined Whether it is to connect for the first time with the terminal applies;
In step s 102, it when it is to connect for the first time that the wearable device is with the terminal applies, can be worn described in removing Wear the preset data stored in equipment.
In the present embodiment, which may operate in wearable device.Wearable device can include intelligence The wearable electronic equipment in arm part, certain wearable devices such as energy bracelet, smartwatch can also be that other can wear In the electronic equipment of human body such as head, neck, ankle etc., such as intelligent glasses, intelligent helmet, intelligent accessories etc..
User during wearable device is used, can by terminal such as mobile phone, tablet computer, on computer should It is controlled with to wearable device.Under normal conditions, the screen of wearable device is smaller or is even not provided with screen, therefore After being connected in use by wired and or wireless communications connection with the application in terminal, user passes through answering in terminal For checking the data inside wearable device, and/or wearable device being controlled etc..Except common USB and/or audio Outside the wired connection of interface etc., wireless communication unit is also provided on wearable device, and is passed through with terminal applies wireless Communication connection communication, such as WIFI communication connections, the connection of bluetooth Trusted channel, NFC near-field communications, ZigBee Trusted channels etc..
In the present embodiment, terminal applies are to install on the terminal device, and exclusively for the application of wearable device exploitation, can To be considered the application matched with the wearable device.After terminal applies are opened, scanning week can be connected by radio communication Whether enclose have wearable device, scanning to wearable device there are when, request establishes wireless connection with wearable device.It can Wearable device and terminal applies are established after connection, if connecting for the first time, data clearing method that can be through this embodiment The preset data of wearable device memory storage is deleted.Preset data can be the survey that wearable device is generated when dispatching from the factory and testing Data are tried, can also be after wearable device manufacture, are rocked or manually due to either dispensing to generate in way in transit Some sensing datas generated during carrying.These data are invalid data for a user, and wearable device is used in user When, since user does not know the real situation of these data, may produce misunderstandings to user and doubt, in some instances it may even be possible to can with The data that family generates clash, and reduce the usage experience of user.Therefore the method for the present embodiment by using for the first time in user During wearable device, the preset data on wearable device is deleted, and then user is avoided to produce misunderstandings and doubt, improves use Family usage experience, while by removing these invalid datas, moreover it is possible to the memory space of wearable device is saved, is further improved The usage experience of user.
In an optional realization method of the present embodiment, the step S101, i.e., in response to wearable device and terminal The connection event of application, determine the wearable device and the terminal applies whether be the step of connection for the first time before, it is described Method further comprises following steps:
In response to the event of the wiredly and/or wirelessly successful connection on the wearable device, triggering is described wearable to be set The standby connection event with the terminal applies.
In the optional realization method, for wearable device, function is more single, and wireless with terminal Connection is usually happened in the connection procedure of the terminal applies of wearable device and pairing.Therefore, wearable device can pass through Judge whether to occur with terminal the event of wiredly and/or wirelessly successful connection, and then judge whether to be connected with terminal applies It connects, and further triggering and the wireless connection event of terminal applies.This mode, wearable device can be only through this embodiment By whether generating the successful event of wireless connection to determine whether to generate the event connecting with terminal applies, judgment mode is simple Directly, real-time is preferable.
In an optional realization method of the present embodiment, the step S101, i.e., in response to wearable device and terminal The connection event of application, determine the wearable device and the terminal applies whether be the step of connection for the first time before, it is described Method further comprises following steps:
In response to successfully getting the log-on message of the wearable device from the terminal applies, triggering is described wearable The connection event of equipment and terminal applies.
In the optional realization method, in order to avoid the terminal that wireless connection occurs with wearable device is not installation Although having the terminal for the application matched with wearable device or wireless connection having occurred with pairing terminal applies, due to Certain reasons such as accident power-off etc. causes and terminal applies Bind Failed.Therefore wearable device can with by whether from its It generates in the terminal applies of wireless connection and obtains the log-on message of wearable device to determine whether to produce terminal applies Connection event.This is because wearable device, once generating wireless connection with the terminal applies matched with it, meeting is automatically in terminal The information of wearable device is registered on, if wearable device can get log-on message, it may be determined that can Wearable device is to produce wireless connection, and binding success with the terminal applies matched with it.Log-on message can be wearable Equipment actively from terminal applies request obtain or terminal applies with after wearable device binding success, actively to Wearable device push.In this way, wearable device can accurately know whether to produce nothing with terminal applies Line connects, and further triggering and the wireless connection event of terminal applies.
In an optional realization method of the present embodiment, in the step S101 determine the wearable device with it is described Whether terminal applies are the step of connection for the first time, to further comprise the steps:
In response to obtaining the identification information of the wearable device for the first time from the terminal applies, described wearable set is determined Whether standby with the terminal applies be to connect for the first time.
In mode can be achieved in this, wearable device is after the terminal applies successful connection with being matched with it, if first Secondary connection, user can register the identification information of wearable device, such as user id in terminal applies, and terminal applies can be with later Identification information is returned into wearable device, wearable device can store the identification information, when being connected so as to next time, directly It is attached using the identification information.As it can be seen that wearable device is when connecting for the first time with terminal applies, it can be from terminal applies Receive the identification information of wearable device.Therefore, wearable device can be with by whether being obtained from terminal applies can wear for the first time The identification information of equipment is worn, to determine whether with terminal applies be to connect for the first time.
In an optional realization method of the present embodiment, as shown in Fig. 2, being determined in the step S101 described wearable Whether equipment is the step of connection for the first time, to further comprise the steps S201-S202 with the terminal applies:
In step s 201, it in response to the event of the wiredly and/or wirelessly successful connection on the wearable device, obtains The connection identifier position stored in the wearable device;
In step S202, according to the connection identifier position determine the wearable device and the terminal applies whether be It connects for the first time.
It, can also be by setting a connection identifier position in wearable device, for identifying in the optional realization method Whether it is to connect for the first time with terminal applies.The default value of connection identifier position set in wearable device could be provided as " without tying up Determine state ", that is, show also with terminal applies bound.It connect, and carries out with terminal applies in wearable device After binding (such as registered in terminal applies to the wearable device, and be bundled with identification information etc.), it can wear It wears equipment and the value of the connection identifier position is revised as " having completed to bind ", show wearable device and terminal applies binding success. Therefore, wearable device can first read above-mentioned connection identifier position after wiredly and/or wirelessly being connect with terminal applies generation, If the value of above-mentioned connection identifier position is default value " no binding state ", it can determine that this is connected as the head with terminal applies Secondary connection, otherwise the value of above-mentioned connection identifier position is " having completed to bind ", then can determine that this does not connect not and terminal applies Connection for the first time.It, can be by connection identifier position to determine whether for the head with terminal applies by the optional realization method Secondary connection, realization method is simple, will not expend excess resource.
In an optional realization method of the present embodiment, the method still further comprises following steps:
Be the event connecting for the first time in response to the wearable device and the terminal applies, by the wearable device from First state is switched to the second state.
In the optional realization method, the state of wearable device can be set as first state and the second state, User using it is preceding i.e. connect for the first time with terminal applies before, wearable device is in first state, such as factory state;And After being connect for the first time with terminal applies after user's use, wearable device is switched into the second state from first state, such as Use state.The optional realization method by wearable device by being arranged to first state and the second state, and then can root It is different with the usage scenario of the second state according to first state, and different settings is carried out to wearable device, for example, in the second shape Under state, some invalid datas generated under first state are removed etc..
In one optional realization method of the present embodiment, the preset data is included in before the second state, described to wear Wear the sensing data generated in equipment and/or test data.In order to avoid the number generated before user is using wearable device According to user is made to produce misunderstandings and doubt, the preset data before the second state, that is, user's use can be removed.Preset data can To be the test data tested wearable device and generated when the cause of the second state is dispatched from the factory, can also be in manufacture Some sensing datas generated in transit afterwards, such as the historical trajectory data of wearable device, meter step data.
In an optional realization method of the present embodiment, the method still further comprises following steps:
In response to the control command from preset data interface, the wearable device is set as first state.
In the optional realization method, in order to receive control command from outside, number can be set on wearable device According to interface, which can be hardware interface such as button.Wearable device after data-interface receives control command, Wearable device is set as first state, first state can be factory state rather than the use state of user.Therefore, Wearable device can be configured to, and generated data are preset data in the first state, and then can be in user for the first time In use, these preset datas generated under first state are removed.
In an optional realization method of the present embodiment, as shown in figure 3, being removed in the step S102 described wearable The step of preset data stored in equipment, further comprise the steps S301-S302:
In step 301, the preset list that clears data is obtained;
In step 302, according to the removing mark and storage location recorded in the preset list that clears data it Between correspondence, remove the preset data at the storage location.
In the optional realization method, the information of the preset data to be removed can be deposited by the list that clears data Storage.For example, the storage location of the preset datas such as test data, the sensing data that can will remove is recorded in the list that clears data In, and identify in each single item for the list that clears data whether be the preset data for needing to remove removing mark.It is obtaining After getting the preset list that clears data, removed by the removing mark and storage location that are recorded in the list that clears data described in Preset data.It in this way, can be to avoid accidentally deleting the significant data in wearable device.
It, can be automatic after user takes wearable device and is bound with terminal applies by above-described embodiment of the disclosure Obtain the wearable device that a sensing data is zero.Compared to traditional wearable device, what the embodiment of the present disclosure was related to One on & off switch of setting is needed not move through on wearable device to close wearable device, to avoid sensor in transit Generate unnecessary interference data.Meanwhile the wearable device that the embodiment of the present disclosure is related to performs one also without in manufacture The process that a test data is removed, all interference data can be automatically cleared in user before so that wearable device Production, conevying efficiency are promoted, while are not had any impact to the usage experience of user.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.
Fig. 4 shows the structure diagram of the data dump device according to one embodiment of the disclosure, which can be by soft Part, hardware or both are implemented in combination with as some or all of of electronic equipment.As shown in figure 4, the data dump dress It puts including the first respond module 401 and removes module 402:
First respond module 401, is configured to respond to wearable device and the connection event of terminal applies, determines described Whether wearable device is to connect for the first time with the terminal applies;
Module 402 is removed, is configured as in the wearable device with the terminal applies when connecting for the first time, to remove institute State the preset data stored in wearable device.
In the present embodiment, which can be included in wearable device.Wearable device can include intelligence The wearable electronic equipment in arm part, certain wearable devices such as energy bracelet, smartwatch can also be that other can wear In the electronic equipment of human body such as head, neck, ankle etc., such as intelligent glasses, intelligent helmet, intelligent accessories etc..
User during wearable device is used, can by terminal such as mobile phone, tablet computer, on computer should It is controlled with to wearable device.Under normal conditions, the screen of wearable device is smaller or is even not provided with screen, therefore After being connected in use by wired and or wireless communications connection with the application in terminal, user passes through answering in terminal For checking the data inside wearable device, and/or wearable device being controlled etc..Except common USB and/or audio Outside the wired connection of interface etc., wireless communication unit is also provided on wearable device, and is passed through with terminal applies wireless Communication connection communication, such as WIFI communication connections, the connection of bluetooth Trusted channel, NFC near-field communications, ZigBee Trusted channels etc..
In the present embodiment, terminal applies are to install on the terminal device, and exclusively for the application of wearable device exploitation, can To be considered the application matched with the wearable device.After terminal applies are opened, scanning week can be connected by radio communication Whether enclose have wearable device, scanning to wearable device there are when, request establishes wireless connection with wearable device.It can Wearable device and terminal applies are established after connection, if connecting for the first time, data dump device that can be through this embodiment The preset data of wearable device memory storage is deleted.Preset data can be the survey that wearable device is generated when dispatching from the factory and testing Data are tried, can also be after wearable device manufacture, are rocked or manually due to either dispensing to generate in way in transit Some sensing datas generated during carrying.These data are invalid data for a user, and wearable device is used in user When, since user does not know the real situation of these data, may produce misunderstandings to user and doubt, in some instances it may even be possible to can with The data that family generates clash, and reduce the usage experience of user.Therefore the present embodiment is wearable by being used for the first time in user During equipment, the preset data on wearable device is deleted, and then user is avoided to produce misunderstandings and doubt, improves user's use Experience, while by removing these invalid datas, moreover it is possible to the memory space of wearable device is saved, further improves user's Usage experience.
In an optional realization method of the present embodiment, before first respond module 401, described device further includes With lower module:
Second respond module is configured to respond to wiredly and/or wirelessly successful connection on the wearable device Event triggers the connection event of the wearable device and the terminal applies.
In the optional realization method, for wearable device, function is more single, and wireless with terminal Connection is usually happened in the connection procedure of the terminal applies of wearable device and pairing.Therefore, wearable device can pass through Judge whether to occur with terminal the event of wiredly and/or wirelessly successful connection, and then judge whether to be connected with terminal applies It connects, and further triggering and the wireless connection event of terminal applies.This mode, wearable device can be only through this embodiment By whether generating the successful event of wireless connection to determine whether to generate the event connecting with terminal applies, judgment mode is simple Directly, real-time is preferable.
In an optional realization method of the present embodiment, before first respond module 401, described device further includes With lower module:
Third respond module is configured to respond to successfully get the note of the wearable device from the terminal applies Volume information, triggers the wearable device and the connection event of terminal applies.
In the optional realization method, in order to avoid the terminal that wireless connection occurs with wearable device is not installation Although having the terminal for the application matched with wearable device or wireless connection having occurred with pairing terminal applies, due to Certain reasons such as accident power-off etc. causes and terminal applies Bind Failed.Therefore wearable device can with by whether from its It generates in the terminal applies of wireless connection and obtains the log-on message of wearable device to determine whether to produce terminal applies Connection event.This is because wearable device, once generating wireless connection with the terminal applies matched with it, meeting is automatically in terminal The information of wearable device is registered on, if wearable device can get log-on message, it may be determined that can Wearable device is to produce wireless connection, and binding success with the terminal applies matched with it.Log-on message can be wearable Equipment actively from terminal applies request obtain or terminal applies with after wearable device binding success, actively to Wearable device push.In this way, wearable device can accurately know whether to produce nothing with terminal applies Line connects, and further triggering and the wireless connection event of terminal applies.
In an optional realization method of the present embodiment, first respond module 401 further comprises following submodule Block:
First response submodule is configured to respond to obtain the mark of the wearable device for the first time from the terminal applies Know information, determine whether the wearable device with the terminal applies is to connect for the first time.
In mode can be achieved in this, wearable device is after the terminal applies successful connection with being matched with it, if first Secondary connection, user can register the identification information of wearable device, such as user id in terminal applies, and terminal applies can be with later Identification information is returned into wearable device, wearable device can store the identification information, when being connected so as to next time, directly It is attached using the identification information.As it can be seen that wearable device is when connecting for the first time with terminal applies, it can be from terminal applies Receive the identification information of wearable device.Therefore, wearable device can be with by whether being obtained from terminal applies can wear for the first time The identification information of equipment is worn, to determine whether with terminal applies be to connect for the first time.
In an optional realization method of the present embodiment, as shown in figure 5, first respond module 401 is further wrapped Include following submodule:
Second response submodule 501, is configured to respond to wiredly and/or wirelessly connecting on the wearable device The event of work(obtains the connection identifier position stored in the wearable device;
Determination sub-module 502 is configured as determining the wearable device and the terminal according to the connection identifier position Using whether being to connect for the first time.
It, can also be by setting a connection identifier position in wearable device, for identifying in the optional realization method Whether it is to connect for the first time with terminal applies.The default value of connection identifier position set in wearable device could be provided as " without tying up Determine state ", that is, show also with terminal applies bound.It connect, and carries out with terminal applies in wearable device After binding (such as registered in terminal applies to the wearable device, and be bundled with identification information etc.), it can wear It wears equipment and the value of the connection identifier position is revised as " having completed to bind ", show wearable device and terminal applies binding success. Therefore, wearable device can first read above-mentioned connection identifier position after wiredly and/or wirelessly being connect with terminal applies generation, If the value of above-mentioned connection identifier position is default value " no binding state ", it can determine that this is connected as the head with terminal applies Secondary connection, otherwise the value of above-mentioned connection identifier position is " having completed to bind ", then can determine that this does not connect not and terminal applies Connection for the first time.It, can be by connection identifier position to determine whether for the head with terminal applies by the optional realization method Secondary connection, realization method is simple, will not expend excess resource.
In an optional realization method of the present embodiment, described device is still further comprised with lower module:
Handover module, it is the event connecting for the first time to be configured to respond to the wearable device and the terminal applies, The wearable device is switched to the second state from first state.
In the optional realization method, the state of wearable device can be set as first state and the second state, User using it is preceding i.e. connect for the first time with terminal applies before, wearable device is in first state, such as factory state;And After being connect for the first time with terminal applies after user's use, wearable device is switched into the second state from first state, such as Use state.The optional realization method by wearable device by being arranged to first state and the second state, and then can root It is different with the usage scenario of the second state according to first state, and different settings is carried out to wearable device, for example, in the second shape Under state, some invalid datas generated under first state are removed etc..
In one optional realization method of the present embodiment, the preset data is included in before the second state, described to wear Wear the sensing data generated in equipment and/or test data.In order to avoid the number generated before user is using wearable device According to user is made to produce misunderstandings and doubt, the preset data before the second state, that is, user's use can be removed.Preset data can To be the test data tested wearable device and generated when the cause of the second state is dispatched from the factory, can also be in manufacture Some sensing datas generated in transit afterwards, such as the historical trajectory data of wearable device, meter step data.
In an optional realization method of the present embodiment, described device is still further comprised with lower module:
4th respond module is configured to respond to the control command from preset data interface, will be described wearable Equipment is set as first state.
In the optional realization method, in order to receive control command from outside, number can be set on wearable device According to interface, which can be hardware interface such as button.Wearable device after data-interface receives control command, Wearable device is set as first state, first state can be factory state rather than the use state of user.Therefore, Wearable device can be configured to, and generated data are preset data in the first state, and then can be in user for the first time In use, these preset datas generated under first state are removed.
In an optional realization method of the present embodiment, as shown in fig. 6, it is described removing module 402 further comprise with Lower submodule:
Acquisition submodule 601 is configured as obtaining the preset list that clears data;
Remove submodule 602, be configured as according to recorded in the preset list that clears data removing mark and Correspondence between storage location removes the preset data at the storage location.
In the optional realization method, the information of the preset data to be removed can be deposited by the list that clears data Storage.For example, the storage location of the preset datas such as test data, the sensing data that can will remove is recorded in the list that clears data In, and identify in each single item for the list that clears data whether be the preset data for needing to remove removing mark.It is obtaining After getting the preset list that clears data, removed by the removing mark and storage location that are recorded in the list that clears data described in Preset data.It in this way, can be to avoid accidentally deleting the significant data in wearable device.
The structure that Fig. 7 is adapted for the wearable device for realizing the data clearing method according to disclosure embodiment is shown It is intended to.
As shown in fig. 7, wearable device 700 includes intelligent control unit (MPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into program in random access storage device (RAM) 703 from storage section 708 and Perform the various processing in above-mentioned embodiment shown in FIG. 1.In RAM703, also it is stored with wearable device 700 and operates institute The various programs and data needed.MPU701, ROM702 and RAM703 are connected with each other by bus 704.Input/output (I/O) Interface 705 is also connected to bus 704.
I/O interfaces 705 are connected to lower component:Importation 706;Including such as cathode-ray tube (CRT), liquid crystal display The output par, c 707 of device (LCD) etc. and loud speaker etc.;Storage section 708 including hard disk etc.;And including such as LAN card, The communications portion 709 of the network interface card of modem etc..Communications portion 709 performs communication via the network of such as internet Processing.Driver 710 is also according to needing to be connected to I/O interfaces 705.Detachable media 711, such as external memory card etc., root According to needing to be mounted on driver 710, in order to be mounted into storage section as needed from the computer program read thereon 708.Certainly, wearable device can also include the various sensing units, battery unit, communication unit of marching into the arena of detection biological characteristic Member, bluetooth-communication unit, Zigbee communication unit etc..
Particularly, according to embodiment of the present disclosure, it is soft to may be implemented as computer above with reference to Fig. 1 methods described Part program.For example, embodiment of the present disclosure includes a kind of computer program product, including being tangibly embodied in and its readable Computer program on medium, the computer program include for perform Fig. 1 data clearing method program code.At this In the embodiment of sample, which can be downloaded and installed from network by communications portion 709 and/or from can Medium 711 is dismantled to be mounted.
Flow chart and block diagram in attached drawing, it is illustrated that according to the system, method and computer of the various embodiments of the disclosure Architectural framework in the cards, function and the operation of program product.In this regard, each box in course diagram or block diagram can be with A part for a module, program segment or code is represented, a part for the module, program segment or code includes one or more The executable instruction of logic function as defined in being used to implement.It should also be noted that in some implementations as replacements, institute in box The function of mark can also be occurred with being different from the sequence marked in attached drawing.For example, two boxes succeedingly represented are practical On can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depended on the functions involved.Also It is noted that the combination of each box in block diagram and/or flow chart and the box in block diagram and/or flow chart, Ke Yiyong The dedicated hardware based systems of functions or operations as defined in execution is realized or can be referred to specialized hardware and computer The combination of order is realized.
Being described in unit or module involved in disclosure embodiment can be realized by way of software, also may be used It is realized in a manner of by hardware.Described unit or module can also be set in the processor, these units or module Title do not form restriction to the unit or module in itself under certain conditions.
As on the other hand, the disclosure additionally provides a kind of computer readable storage medium, the computer-readable storage medium Matter can be computer readable storage medium included in device described in the above embodiment;Can also be individualism, Without the computer readable storage medium in supplying equipment.There are one computer-readable recording medium storages or more than one journey Sequence, described program is used for performing by one or more than one processor is described in disclosed method.
The preferred embodiment and the explanation to institute's application technology principle that above description is only the disclosure.People in the art Member should be appreciated that invention scope involved in the disclosure, however it is not limited to the technology that the specific combination of above-mentioned technical characteristic forms Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature The other technical solutions for arbitrarily combining and being formed.Such as features described above has similar work(with the (but not limited to) disclosed in the disclosure The technical solution that the technical characteristic of energy is replaced mutually and formed.

Claims (20)

1. a kind of data clearing method, which is characterized in that including:
In response to wearable device and the connection event of terminal applies, determine whether are the wearable device and the terminal applies To connect for the first time;
In the wearable device with the terminal applies when connecting for the first time, to remove the default of the interior storage of the wearable device Data.
2. data clearing method according to claim 1, which is characterized in that in response to wearable device and terminal applies Connection event determines whether the wearable device with the terminal applies is before connecting for the first time, to further include:
In response to the event of the wiredly and/or wirelessly successful connection on the wearable device, trigger the wearable device with The connection event of the terminal applies.
3. data clearing method according to claim 1, which is characterized in that in response to wearable device and terminal applies Connection event determines whether the wearable device with the terminal applies is before connecting for the first time, to further include:
In response to successfully getting the log-on message of the wearable device from the terminal applies, the wearable device is triggered With the connection event of the terminal applies.
4. according to claim 1-3 any one of them data clearing methods, which is characterized in that in response to wearable device and end The connection event of application is held, determines whether the wearable device with the terminal applies is to connect for the first time, including:
In response to obtaining the identification information of the wearable device for the first time from the terminal applies, determine the wearable device with Whether the terminal applies are to connect for the first time.
5. according to claim 1-3 any one of them data clearing methods, which is characterized in that in response to wearable device and end The connection event of application is held, determines whether the wearable device with the terminal applies is to connect for the first time, including:
In response to the event of the wiredly and/or wirelessly successful connection on the wearable device, obtain in the wearable device The connection identifier position of storage;
Determine whether the wearable device with the terminal applies is to connect for the first time according to the connection identifier position.
6. data clearing method according to claim 1, which is characterized in that further include:
It is the event connecting for the first time in response to the wearable device and the terminal applies, by the wearable device from first State is switched to the second state.
7. data clearing method according to claim 6, which is characterized in that the preset data be included in the second state it Before, the sensing data and/or test data that are generated in the wearable device.
8. according to claim 1,6-7 any one of them data clearing methods, which is characterized in that further include:
In response to the control command from preset data interface, the wearable device is set as first state.
9. data clearing method according to claim 1, which is characterized in that remove the pre- of the interior storage of the wearable device If data, including:
Obtain the preset list that clears data;
According to the correspondence between the removing mark and storage location recorded in the preset list that clears data, remove Preset data at the storage location.
10. a kind of data dump device, which is characterized in that including:
First respond module is configured to respond to wearable device and the connection event of terminal applies, determines described wearable Whether equipment is to connect for the first time with the terminal applies;
Module is removed, is configured as in the wearable device with the terminal applies as that when connecting for the first time, can be worn described in removing Wear the preset data stored in equipment.
11. data dump device according to claim 10, which is characterized in that before first respond module, also wrap It includes:
Second respond module is configured to respond to the event of the wiredly and/or wirelessly successful connection on the wearable device, Trigger the connection event of the wearable device and the terminal applies.
12. data dump device according to claim 10, which is characterized in that before first respond module, also wrap It includes:
Third respond module is configured to respond to successfully get the registration letter of the wearable device from the terminal applies Breath triggers the connection event of the wearable device and the terminal applies.
13. according to claim 10-13 any one of them data dump devices, which is characterized in that first respond module Including:
First response submodule is configured to respond to obtain the mark letter of the wearable device for the first time from the terminal applies Breath determines whether the wearable device with the terminal applies is to connect for the first time.
14. according to claim 10-13 any one of them data dump devices, which is characterized in that first respond module Including:
Second response submodule is configured to respond to the thing of the wiredly and/or wirelessly successful connection on the wearable device Part obtains the connection identifier position stored in the wearable device;
Determination sub-module is configured as determining whether are the wearable device and the terminal applies according to the connection identifier position To connect for the first time.
15. data dump device according to claim 10, which is characterized in that further include:
Handover module, it is the event connecting for the first time to be configured to respond to the wearable device and the terminal applies, by institute It states wearable device and is switched to the second state from first state.
16. data dump device according to claim 15, which is characterized in that the preset data is included in the second state Before, the sensing data and/or test data generated in the wearable device.
17. according to claim 10,15-16 any one of them data dump devices, which is characterized in that further include:
4th respond module is configured to respond to the control command from preset data interface, by the wearable device It is set as first state.
18. data dump device according to claim 10, which is characterized in that the removing module includes:
Acquisition submodule is configured as obtaining the preset list that clears data;
Submodule is removed, is configured as according to the removing mark and storage location recorded in the preset list that clears data Between correspondence, remove the preset data at the storage location.
19. a kind of wearable device, which is characterized in that including memory and processor;Wherein, the memory is for storage one Item or a plurality of computer instruction, wherein, one or more computer instruction is performed to realize that right will by the processor Seek 1-9 any one of them method and steps.
20. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction quilt Claim 1-9 any one of them method and steps are realized when processor performs.
CN201711209468.1A 2017-11-27 2017-11-27 Data clearing method and device, wearable device and computer readable storage medium Active CN108170478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711209468.1A CN108170478B (en) 2017-11-27 2017-11-27 Data clearing method and device, wearable device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711209468.1A CN108170478B (en) 2017-11-27 2017-11-27 Data clearing method and device, wearable device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108170478A true CN108170478A (en) 2018-06-15
CN108170478B CN108170478B (en) 2020-07-24

Family

ID=62524526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711209468.1A Active CN108170478B (en) 2017-11-27 2017-11-27 Data clearing method and device, wearable device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108170478B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111085999A (en) * 2019-12-18 2020-05-01 深圳前海达闼云端智能科技有限公司 Robot control method, device and system and robot controller

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120111330A (en) * 2011-03-31 2012-10-10 한국과학기술원 Remote controller and system using motion recognition and remote controlling method thereof
CN103414689A (en) * 2013-07-12 2013-11-27 深圳Tcl新技术有限公司 Connection method and connection device of digital living network alliance (DLNA) equipment
CN104219038A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Method and device for synchronizing data
CN104639655A (en) * 2015-03-09 2015-05-20 上海万达全程健康门诊部有限公司 Health sign monitoring data acquisition method based on mobile gateway
CN105516965A (en) * 2015-11-20 2016-04-20 小米科技有限责任公司 Data processing method and device
CN105812584A (en) * 2016-05-26 2016-07-27 宇龙计算机通信科技(深圳)有限公司 Wearable device-based information anti-theft method, device and apparatus
CN105920786A (en) * 2016-06-08 2016-09-07 深圳市元征科技股份有限公司 Method for controlling treadmill through intelligent wearable equipment and intelligent wearable equipment
US20160287166A1 (en) * 2015-04-03 2016-10-06 Bao Tran Personal monitoring system
CN106253936A (en) * 2016-09-26 2016-12-21 北京奇虎科技有限公司 Wearable device data access control and with inter-terminal data moving method, system
CN106406747A (en) * 2015-08-03 2017-02-15 中兴通讯股份有限公司 Hard disk storage management method and apparatus for mobile terminal
CN106909646A (en) * 2017-02-21 2017-06-30 青岛海信电器股份有限公司 SD card clears up the method and device of invalid data after changing

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120111330A (en) * 2011-03-31 2012-10-10 한국과학기술원 Remote controller and system using motion recognition and remote controlling method thereof
CN103414689A (en) * 2013-07-12 2013-11-27 深圳Tcl新技术有限公司 Connection method and connection device of digital living network alliance (DLNA) equipment
CN104219038A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Method and device for synchronizing data
CN104639655A (en) * 2015-03-09 2015-05-20 上海万达全程健康门诊部有限公司 Health sign monitoring data acquisition method based on mobile gateway
US20160287166A1 (en) * 2015-04-03 2016-10-06 Bao Tran Personal monitoring system
CN106406747A (en) * 2015-08-03 2017-02-15 中兴通讯股份有限公司 Hard disk storage management method and apparatus for mobile terminal
CN105516965A (en) * 2015-11-20 2016-04-20 小米科技有限责任公司 Data processing method and device
CN105812584A (en) * 2016-05-26 2016-07-27 宇龙计算机通信科技(深圳)有限公司 Wearable device-based information anti-theft method, device and apparatus
CN105920786A (en) * 2016-06-08 2016-09-07 深圳市元征科技股份有限公司 Method for controlling treadmill through intelligent wearable equipment and intelligent wearable equipment
CN106253936A (en) * 2016-09-26 2016-12-21 北京奇虎科技有限公司 Wearable device data access control and with inter-terminal data moving method, system
CN106909646A (en) * 2017-02-21 2017-06-30 青岛海信电器股份有限公司 SD card clears up the method and device of invalid data after changing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111085999A (en) * 2019-12-18 2020-05-01 深圳前海达闼云端智能科技有限公司 Robot control method, device and system and robot controller
CN111085999B (en) * 2019-12-18 2022-11-15 达闼机器人股份有限公司 Robot control method, device and system and robot controller

Also Published As

Publication number Publication date
CN108170478B (en) 2020-07-24

Similar Documents

Publication Publication Date Title
US11169613B2 (en) Augmented reality task flow optimization systems
CN104025560B (en) Method and apparatus for providing data entry content to a remote environment
CN108415739A (en) A kind of the hook method, apparatus and storage medium of Dynamic Link Library Function
EP3472897B1 (en) Electronic device and method thereof for grip recognition
CN104899731B (en) The transmission method of mobile payment data, device and system
JP2012239172A (en) Feature license management system
CN104484114A (en) Data transfer method, mobile terminal and data transfer system
CN106296152A (en) Realize method, system, Cash collecting equipment and the client paid
CN108810741A (en) A kind of method, apparatus and wireless headset of double wireless headset connections
CN107179978A (en) A kind of method, terminal and computer-readable recording medium for sending daily record
CN105338550A (en) Method and device for managing connection of wireless network
CN105979076A (en) Pushing information processing method used for mobile phone and device thereof, and the mobile phone
EP3232732A1 (en) Communication device, communication device control method, and program
CN107835984A (en) Heat mitigates Consumer's Experience
CN108170478A (en) Data clearing method, device, wearable device and computer readable storage medium
CN103500056A (en) Display method and system for data transmission
CN106413032A (en) Hotspot establishing method and terminal equipment
CN109946980A (en) Intelligent device management method, platform, system and computer readable storage medium
CN105190575B (en) Information processing equipment, information processing method and information processing system
KR20180003334A (en) Smart electric outlet
CN103873514B (en) Application installation file obtaining method, system and user equipment
CN108536267A (en) Information processing method and electronic equipment
CN106547485A (en) Data migration method and device
US10073762B2 (en) Debug device, debug method, and debug program
JP6535536B2 (en) Group monitoring system and monitoring device

Legal Events

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