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

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

Info

Publication number
CN108170478B
CN108170478B CN201711209468.1A CN201711209468A CN108170478B CN 108170478 B CN108170478 B CN 108170478B CN 201711209468 A CN201711209468 A CN 201711209468A CN 108170478 B CN108170478 B CN 108170478B
Authority
CN
China
Prior art keywords
wearable device
terminal application
data
response
clearing
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.)
Active
Application number
CN201711209468.1A
Other languages
Chinese (zh)
Other versions
CN108170478A (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.)
Lakala Payment Co ltd
Original Assignee
Lakala Payment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lakala Payment Co ltd filed Critical Lakala Payment Co 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

Images

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

Abstract

The embodiment of the disclosure discloses a data clearing method, a data clearing device, wearable equipment and a computer readable storage medium, wherein the method comprises the following steps: in response to a connection event of a wearable device and a terminal application, determining whether the wearable device and the terminal application are connected for the first time; when the wearable device is connected with the terminal application for the first time, preset data stored in the wearable device are cleared. Through the embodiment of the disclosure, when a user uses the wearable device for the first time, the preset data stored in the wearable device, such as some sensing data and the like generated by the wearable device in factory test or transportation, is cleared, and the conflict between the user and the data generated by the user in the use process is avoided, so that the doubtful worry of the consumer is eliminated, and the user experience is improved.

Description

Data clearing method and device, wearable device and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data clearing method and apparatus, a wearable device, and a computer-readable storage medium.
Background
In order to reduce misoperation of a user, the intelligent wearable device in the prior art, such as a bracelet, is designed to be reduced with the function of turning on and off the device. Therefore, after production line production, assembly and detection, the bracelet cannot be shut down, 70% of electric quantity can be reserved when the intelligent wearable device leaves a factory, invalid data such as step counting increase caused by work of a built-in sensor (such as shaking, manual carrying and the like) cannot be avoided in transportation and distribution, the invalid data easily conflicts with data of a user in use, misunderstandings and confusion are caused to the user, and user experience is greatly reduced.
Disclosure of Invention
The embodiment of the disclosure provides a data clearing method, a data clearing device, wearable equipment and a computer-readable storage medium.
In a first aspect, an embodiment of the present disclosure provides a data clearing method, including:
in response to a connection event of a wearable device and a terminal application, determining whether the wearable device and the terminal application are connected for the first time;
when the wearable device is connected with the terminal application for the first time, preset data stored in the wearable device are cleared.
Optionally, in response to a connection event of a wearable device and a terminal application, determining whether the wearable device and the terminal application are connected for the first time, the method further includes:
triggering a connection event of the wearable device with the terminal application in response to an event that the wired and/or wireless connection on the wearable device is successful.
Optionally, in response to a connection event of a wearable device and a terminal application, determining whether the wearable device and the terminal application are connected for the first time, the method further includes:
and triggering a connection event of the wearable device and the terminal application in response to the registration information of the wearable device being successfully acquired from the terminal application.
Optionally, in response to a connection event of a wearable device and a terminal application, determining whether the wearable device and the terminal application are connected for the first time includes:
in response to obtaining the identification information of the wearable device from the terminal application for the first time, determining whether the wearable device and the terminal application are connected for the first time.
Optionally, in response to a connection event of a wearable device and a terminal application, determining whether the wearable device and the terminal application are connected for the first time includes:
in response to an event that a wired and/or wireless connection on the wearable device is successful, obtaining a connection identification bit stored in the wearable device;
and determining whether the wearable equipment is connected with the terminal application for the first time or not according to the connection identification bit.
Optionally, the method further comprises:
and responding to an event that the wearable device is connected with the terminal application for the first time, and switching the wearable device from a first state to a second state.
Optionally, the preset data comprises sensory data and/or test data generated in the wearable device prior to the second state.
Optionally, the method further comprises:
setting the wearable device to a first state in response to a control command received from a preset data interface.
Optionally, clearing preset data stored in the wearable device includes:
acquiring a preset clearing data list;
and clearing the preset data at the storage position according to the corresponding relation between the clearing identification recorded in the preset clearing data list and the storage position.
In a second aspect, an embodiment of the present disclosure further provides a data clearing apparatus, including:
a first response module configured to determine whether a wearable device is connected with a terminal application for the first time in response to a connection event of the wearable device with the terminal application;
the clearing module is configured to clear preset data stored in the wearable device when the wearable device is connected with the terminal application for the first time.
Optionally, before the first response module, the apparatus further includes:
a second response module configured to trigger a connection event of the wearable device with the terminal application in response to an event that the wired and/or wireless connection on the wearable device is successful.
Optionally, before the first response module, the apparatus further includes:
a third response module configured to trigger a connection event of the wearable device with the terminal application in response to successfully acquiring the registration information of the wearable device from the terminal application.
Optionally, the first response module includes:
a first response submodule configured to determine whether the wearable device and the terminal application are connected for the first time in response to identification information of the wearable device being obtained from the terminal application for the first time.
Optionally, the first response module includes:
a second response submodule configured to obtain a connection identification bit stored in the wearable device in response to an event that a wired and/or wireless connection on the wearable device is successful;
a determination submodule configured to determine whether the wearable device and the terminal application are connected for the first time according to the connection identification bits.
Optionally, the apparatus further comprises:
a switching module configured to switch the wearable device from a first state to a second state in response to an event that the wearable device is connected to the terminal application for the first time.
Optionally, the preset data comprises sensory data and/or test data generated in the wearable device prior to the second state.
Optionally, the apparatus further comprises:
a fourth response module configured to set the wearable device to the first state in response to a control command received from a preset data interface.
Optionally, the purge module comprises:
the acquisition submodule is configured to acquire a preset clearing data list;
and the clearing submodule is configured to clear the preset data at the storage position according to the clearing identification recorded in the preset clearing data list and the corresponding relation between the storage positions.
The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible design, the data clearing apparatus includes a memory and a processor, the memory is used for storing one or more computer instructions for supporting the data clearing apparatus to execute the data clearing method in the first aspect, and the processor is configured to execute the computer instructions stored in the memory. The data cleaning apparatus may further include a communication interface for the data cleaning apparatus to communicate with a terminal or a communication network.
In a third aspect, embodiments of the present disclosure provide a wearable device, including a memory and a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium for storing computer instructions for a data clearing apparatus, which contains computer instructions for executing the data clearing method in the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when the wearable device and the terminal application generate a connection event, if the wearable device and the terminal application are determined to be connected for the first time, preset data stored in the wearable device are cleared. Through the mode, when the user uses the wearable device for the first time, the preset data stored in the wearable device, such as some sensing data and the like generated by the wearable device in factory test or transportation, are cleared, the conflict between the user and the data generated by the user in the using process is avoided, the doubt of the consumer is eliminated, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Other features, objects, and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments when taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 shows a flow diagram of a data purging method according to an embodiment of the present disclosure;
FIG. 2 shows a flow chart of step S101 according to the embodiment shown in FIG. 1;
FIG. 3 shows a flowchart of step S102 according to the embodiment shown in FIG. 1;
FIG. 4 shows a block diagram of a data clearing device according to an embodiment of the present disclosure;
FIG. 5 illustrates a block diagram of a first response module 401 according to the embodiment shown in FIG. 4;
FIG. 6 illustrates a block diagram of the purge module 402 according to the embodiment shown in FIG. 4;
fig. 7 is a schematic structural diagram of a wearable device suitable for implementing a data clearing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Also, for the sake of clarity, parts not relevant to the description of the exemplary embodiments are omitted in the drawings.
In the present disclosure, it is to be understood that terms such as "including" or "having," etc., are intended to indicate the presence of the disclosed features, numbers, steps, behaviors, components, parts, or combinations thereof, and are not intended to preclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or combinations thereof may be present or added.
It should be further noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
One main function of the current wearable device is to record life data of a user, however, the existing wearable device generally simplifies the on-off function of a product for various reasons, so that dirty data which is not cleaned commonly exists in data obtained by the user, and the collected data cannot truly reflect the actual life data of the user. Aiming at the defects of the prior art, the embodiment of the disclosure timely and automatically cleans the data generated by the non-user, thereby ensuring the accuracy of the user data.
FIG. 1 shows a flow diagram of a data purging method according to an embodiment of the present disclosure; as shown in fig. 1, the data clearing method includes the following steps S101 to S102:
in step S101, in response to a connection event of a wearable device and a terminal application, determining whether the wearable device and the terminal application are connected for the first time;
in step S102, when the wearable device is connected to the terminal application for the first time, preset data stored in the wearable device is cleared.
In this embodiment, the data clearing method may be executed in a wearable device. Wearable equipment can include the electronic equipment that can wear in the arm such as intelligent bracelet, intelligent wrist-watch, and certainly wearable equipment also can be other electronic equipment that can wear in human body part such as head, neck, ankle etc. for example intelligent glasses, intelligent helmet, intelligent accessory etc..
During the process of using the wearable device, a user can control the wearable device through an application on a terminal such as a mobile phone, a tablet computer, a computer and the like. Generally, the screen of the wearable device is small or even not provided with a screen, so that after the wearable device is connected with an application on the terminal through a wired and/or wireless communication connection during use, a user views data inside the wearable device through the application on the terminal, controls the wearable device, and the like. Except for wired connection of common USB and/or audio interfaces and the like, the wearable device can be provided with a wireless communication unit and is in communication with the terminal application through wireless communication connection, such as WIFI communication connection, Bluetooth trusted connection, NFC near field communication connection, ZigBee trusted connection and the like.
In this embodiment, the terminal application is an application installed on the terminal device and developed specifically for the wearable device, and may be considered as an application paired with the wearable device. After the terminal application is started, whether wearable equipment exists around can be scanned through wireless communication connection, and when the wearable equipment exists, wireless connection is requested to be established with the wearable equipment. After the wearable device is connected with the terminal application, if the wearable device is connected for the first time, the preset data stored in the wearable device can be deleted by the data clearing method of the embodiment. The preset data may be test data generated by the wearable device during factory test, or may be some sensing data generated by shaking during transportation or delivery or manual transportation after the wearable device leaves the factory. The data is invalid data for the user, and when the user uses the wearable device, the user may be misunderstood and confused due to the fact that the user does not know the essence of the data, and even the data conflicts with the data generated by the user, so that the use experience of the user is reduced. Therefore, according to the method, when the user uses the wearable device for the first time, the preset data on the wearable device are deleted, so that misunderstandings and misworrys of the user are avoided, the user experience is improved, meanwhile, by clearing the invalid data, the storage space of the wearable device can be saved, and the user experience is further improved.
In an optional implementation manner of this embodiment, before the step S101 of determining whether the wearable device and the terminal application are connected for the first time in response to a connection event of the wearable device and the terminal application, the method further includes the following steps:
triggering a connection event of the wearable device with the terminal application in response to an event that the wired and/or wireless connection on the wearable device is successful.
In this alternative implementation, the wearable device is relatively single in function, and the wireless connection with the terminal typically occurs during the connection process of the wearable device with the paired terminal application. Therefore, the wearable device can judge whether to be connected with the terminal application by judging whether to have an event of successful wired and/or wireless connection with the terminal, and further trigger a wireless connection event with the terminal application. Through this kind of mode of this embodiment, wearable equipment can only confirm whether produce the event of being connected with terminal application through whether produce the event that wireless connection is successful, and the judgement mode is simple direct, and the real-time is better.
In an optional implementation manner of this embodiment, before the step S101 of determining whether the wearable device and the terminal application are connected for the first time in response to a connection event of the wearable device and the terminal application, the method further includes the following steps:
and triggering a connection event of the wearable device and the terminal application in response to the registration information of the wearable device being successfully acquired from the terminal application.
In this alternative implementation, in order to avoid that the terminal wirelessly connected with the wearable device is not a terminal installed with an application paired with the wearable device, or that although the terminal wirelessly connected with the paired terminal application is connected, the binding with the terminal application fails due to external power outage or the like for some reasons. The wearable device can also determine whether a connection event of the terminal application is generated by whether registration information of the wearable device is obtained from the terminal application with which the wireless connection is generated. This is because the wearable device, once wirelessly connected to the paired terminal application, may automatically register information of the wearable device on the terminal application, and if the wearable device can acquire the registration information, it may be determined that the wearable device is wirelessly connected to the paired terminal application, and the binding is successful. The registration information may be obtained by the wearable device actively from a request of the terminal application, or may be actively pushed to the wearable device after the terminal application is successfully bound with the wearable device. By the method, the wearable device can accurately know whether the wireless connection is generated with the terminal application or not, and further trigger the wireless connection event with the terminal application.
In an optional implementation manner of this embodiment, the step of determining whether the wearable device and the terminal application are connected for the first time in step S101 further includes the following steps:
in response to obtaining the identification information of the wearable device from the terminal application for the first time, determining whether the wearable device and the terminal application are connected for the first time.
In the implementation manner, after the wearable device is successfully connected with the terminal application paired with the wearable device, if the wearable device is connected for the first time, the user can register identification information of the wearable device, such as user id, on the terminal application, and then the terminal application can return the identification information to the wearable device, and the wearable device can store the identification information so as to directly use the identification information to connect the wearable device when the wearable device is connected for the next time. It can be seen that the wearable device may receive identification information of the wearable device from the terminal application when the wearable device is connected with the terminal application for the first time. Thus, the wearable device may determine whether to connect with the terminal application for the first time by whether to obtain identification information of the wearable device from the terminal application for the first time.
In an optional implementation manner of this embodiment, as shown in fig. 2, the step of determining whether the wearable device and the terminal application are connected for the first time in step S101 further includes the following steps S201 to S202:
in step S201, in response to an event that a wired and/or wireless connection on the wearable device is successful, acquiring a connection identification bit stored in the wearable device;
in step S202, it is determined whether the wearable device and the terminal application are connected for the first time according to the connection identification bit.
In this optional implementation, a connection identification bit may be further set in the wearable device, so as to identify whether the connection with the terminal application is the first connection. The default value of the connection identifier bit set in the wearable device may be set to "no-binding state", that is, indicating that no binding has been performed with the terminal application. After the wearable device is connected with the terminal application and is bound (for example, the wearable device is registered on the terminal application and is bound with identification information, etc.), the wearable device modifies the value of the connection identification bit to "binding completed", which indicates that the wearable device is successfully bound with the terminal application. Therefore, after the wearable device is in wired and/or wireless connection with the terminal application, the connection identification bit can be read first, if the value of the connection identification bit is in a default value of 'no-binding state', the connection can be determined as the first connection with the terminal application, otherwise, if the value of the connection identification bit is 'binding completed', the connection can be determined as the non-first connection with the terminal application. Through the optional implementation mode, whether the connection with the terminal application is the first connection can be judged through the connection identification position, the implementation mode is simple, and excessive resources cannot be consumed.
In an optional implementation manner of this embodiment, the method further includes the following steps:
and responding to an event that the wearable device is connected with the terminal application for the first time, and switching the wearable device from a first state to a second state.
In this optional implementation, the state of the wearable device may be set to a first state and a second state, and before the wearable device is used by the user, that is, before the wearable device is connected to the terminal application for the first time, the wearable device is in the first state, for example, a factory state; and after the user uses the wearable device, namely after the wearable device is connected with the terminal application for the first time, the wearable device is switched from the first state to the second state, such as the use state. The alternative implementation manner sets the wearable device to the first state and the second state, and then the wearable device may be set differently according to different usage scenarios of the first state and the second state, for example, in the second state, some invalid data generated in the first state is cleared, and the like.
In an optional implementation manner of this embodiment, the preset data includes sensing data and/or test data generated in the wearable device before the second state. To avoid data generated before the user uses the wearable device, causing the user to be misunderstood and confused, the second state, i.e. the preset data before the user uses, may be cleared. The preset data may be test data generated by testing the wearable device before the second state is shipped from the factory, or some sensing data generated in the transportation process after shipment, such as historical trajectory data and step-counting data of the wearable device.
In an optional implementation manner of this embodiment, the method further includes the following steps:
setting the wearable device to a first state in response to a control command received from a preset data interface.
In this alternative implementation, in order to receive control commands from the outside, a data interface may be provided on the wearable device, which may be a hardware interface such as a key. After receiving the control command from the data interface, the wearable device is set to a first state, where the first state may be a factory state, but not a use state of the user. Therefore, the wearable device may be configured such that the data generated in the first state is preset data, and thus, the preset data generated in the first state can be cleared when the wearable device is used for the first time by the user.
In an optional implementation manner of this embodiment, as shown in fig. 3, the step of clearing the preset data stored in the wearable device in step S102 further includes the following steps S301 to S302:
in step 301, a preset clear data list is obtained;
in step 302, the preset data at the storage location is cleared according to the clearing identifier recorded in the preset clearing data list and the corresponding relationship between the storage locations.
In this alternative implementation, the information of the preset data to be cleared may be stored by a clearing data list. For example, the storage location of the preset data such as test data, sensing data, etc. to be cleared may be recorded in the clearing data list, and whether or not the clearing flag is the preset data that needs to be cleared is identified on each item of the clearing data list. And after a preset clearing data list is obtained, clearing the preset data through clearing marks and storage positions recorded in the clearing data list. In this way, it is possible to avoid mistaken deletion of important data in the wearable device.
Through the embodiment of the disclosure, after the user takes the wearable device and binds with the terminal application, the wearable device with the sensor data of zero can be automatically obtained. Compared with the traditional wearable device, the wearable device related to the embodiment of the disclosure does not need to be turned off by setting a switch key, so as to avoid unnecessary interference data generated by the sensor during transportation. Meanwhile, the wearable device related to the embodiment of the disclosure does not need to execute a process of clearing test data when leaving a factory, and all interference data can be automatically cleared before the user uses the wearable device, so that the production and transportation efficiency of the wearable device can be improved, and the use experience of the user is not affected.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 4 shows a block diagram of a data clearing device according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 4, the data clearing apparatus includes a first response module 401 and a clearing module 402:
a first response module 401 configured to determine whether a wearable device and a terminal application are connected for the first time in response to a connection event of the wearable device and the terminal application;
a clearing module 402 configured to clear preset data stored in the wearable device when the wearable device is connected to the terminal application for the first time.
In this embodiment, the data clearing device may be included in a wearable device. Wearable equipment can include the electronic equipment that can wear in the arm such as intelligent bracelet, intelligent wrist-watch, and certainly wearable equipment also can be other electronic equipment that can wear in human body part such as head, neck, ankle etc. for example intelligent glasses, intelligent helmet, intelligent accessory etc..
During the process of using the wearable device, a user can control the wearable device through an application on a terminal such as a mobile phone, a tablet computer, a computer and the like. Generally, the screen of the wearable device is small or even not provided with a screen, so that after the wearable device is connected with an application on the terminal through a wired and/or wireless communication connection during use, a user views data inside the wearable device through the application on the terminal, controls the wearable device, and the like. Except for wired connection of common USB and/or audio interfaces and the like, the wearable device can be provided with a wireless communication unit and is in communication with the terminal application through wireless communication connection, such as WIFI communication connection, Bluetooth trusted connection, NFC near field communication connection, ZigBee trusted connection and the like.
In this embodiment, the terminal application is an application installed on the terminal device and developed specifically for the wearable device, and may be considered as an application paired with the wearable device. After the terminal application is started, whether wearable equipment exists around can be scanned through wireless communication connection, and when the wearable equipment exists, wireless connection is requested to be established with the wearable equipment. After the wearable device is connected with the terminal application, if the wearable device is connected for the first time, the preset data stored in the wearable device can be deleted through the data clearing device of the embodiment. The preset data may be test data generated by the wearable device during factory test, or may be some sensing data generated by shaking during transportation or delivery or manual transportation after the wearable device leaves the factory. The data is invalid data for the user, and when the user uses the wearable device, the user may be misunderstood and confused due to the fact that the user does not know the essence of the data, and even the data conflicts with the data generated by the user, so that the use experience of the user is reduced. Therefore, the preset data on the wearable device are deleted when the user uses the wearable device for the first time, so that the user is prevented from generating misunderstanding and worry, the user use experience is improved, meanwhile, the storage space of the wearable device can be saved by clearing the invalid data, and the user use experience is further improved.
In an optional implementation manner of this embodiment, before the first responding module 401, the apparatus further includes the following modules:
a second response module configured to trigger a connection event of the wearable device with the terminal application in response to an event that the wired and/or wireless connection on the wearable device is successful.
In this alternative implementation, the wearable device is relatively single in function, and the wireless connection with the terminal typically occurs during the connection process of the wearable device with the paired terminal application. Therefore, the wearable device can judge whether to be connected with the terminal application by judging whether to have an event of successful wired and/or wireless connection with the terminal, and further trigger a wireless connection event with the terminal application. Through this kind of mode of this embodiment, wearable equipment can only confirm whether produce the event of being connected with terminal application through whether produce the event that wireless connection is successful, and the judgement mode is simple direct, and the real-time is better.
In an optional implementation manner of this embodiment, before the first responding module 401, the apparatus further includes the following modules:
a third response module configured to trigger a connection event of the wearable device and a terminal application in response to successfully acquiring the registration information of the wearable device from the terminal application.
In this alternative implementation, in order to avoid that the terminal wirelessly connected with the wearable device is not a terminal installed with an application paired with the wearable device, or that although the terminal wirelessly connected with the paired terminal application is connected, the binding with the terminal application fails due to external power outage or the like for some reasons. The wearable device can also determine whether a connection event of the terminal application is generated by whether registration information of the wearable device is obtained from the terminal application with which the wireless connection is generated. This is because the wearable device, once wirelessly connected to the paired terminal application, may automatically register information of the wearable device on the terminal application, and if the wearable device can acquire the registration information, it may be determined that the wearable device is wirelessly connected to the paired terminal application, and the binding is successful. The registration information may be obtained by the wearable device actively from a request of the terminal application, or may be actively pushed to the wearable device after the terminal application is successfully bound with the wearable device. By the method, the wearable device can accurately know whether the wireless connection is generated with the terminal application or not, and further trigger the wireless connection event with the terminal application.
In an optional implementation manner of this embodiment, the first response module 401 further includes the following sub-modules:
a first response submodule configured to determine whether the wearable device and the terminal application are connected for the first time in response to identification information of the wearable device being obtained from the terminal application for the first time.
In the implementation manner, after the wearable device is successfully connected with the terminal application paired with the wearable device, if the wearable device is connected for the first time, the user can register identification information of the wearable device, such as user id, on the terminal application, and then the terminal application can return the identification information to the wearable device, and the wearable device can store the identification information so as to directly use the identification information to connect the wearable device when the wearable device is connected for the next time. It can be seen that the wearable device may receive identification information of the wearable device from the terminal application when the wearable device is connected with the terminal application for the first time. Thus, the wearable device may determine whether to connect with the terminal application for the first time by whether to obtain identification information of the wearable device from the terminal application for the first time.
In an optional implementation manner of this embodiment, as shown in fig. 5, the first response module 401 further includes the following sub-modules:
a second response submodule 501, configured to, in response to an event that a wired and/or wireless connection on the wearable device is successful, obtain a connection identification bit stored in the wearable device;
a determining submodule 502 configured to determine whether the wearable device and the terminal application are connected for the first time according to the connection identification bits.
In this optional implementation, a connection identification bit may be further set in the wearable device, so as to identify whether the connection with the terminal application is the first connection. The default value of the connection identifier bit set in the wearable device may be set to "no-binding state", that is, indicating that no binding has been performed with the terminal application. After the wearable device is connected with the terminal application and is bound (for example, the wearable device is registered on the terminal application and is bound with identification information, etc.), the wearable device modifies the value of the connection identification bit to "binding completed", which indicates that the wearable device is successfully bound with the terminal application. Therefore, after the wearable device is in wired and/or wireless connection with the terminal application, the connection identification bit can be read first, if the value of the connection identification bit is in a default value of 'no-binding state', the connection can be determined as the first connection with the terminal application, otherwise, if the value of the connection identification bit is 'binding completed', the connection can be determined as the non-first connection with the terminal application. Through the optional implementation mode, whether the connection with the terminal application is the first connection can be judged through the connection identification position, the implementation mode is simple, and excessive resources cannot be consumed.
In an optional implementation manner of this embodiment, the apparatus further includes the following modules:
a switching module configured to switch the wearable device from a first state to a second state in response to an event that the wearable device is connected to the terminal application for the first time.
In this optional implementation, the state of the wearable device may be set to a first state and a second state, and before the wearable device is used by the user, that is, before the wearable device is connected to the terminal application for the first time, the wearable device is in the first state, for example, a factory state; and after the user uses the wearable device, namely after the wearable device is connected with the terminal application for the first time, the wearable device is switched from the first state to the second state, such as the use state. The alternative implementation manner sets the wearable device to the first state and the second state, and then the wearable device may be set differently according to different usage scenarios of the first state and the second state, for example, in the second state, some invalid data generated in the first state is cleared, and the like.
In an optional implementation manner of this embodiment, the preset data includes sensing data and/or test data generated in the wearable device before the second state. To avoid data generated before the user uses the wearable device, causing the user to be misunderstood and confused, the second state, i.e. the preset data before the user uses, may be cleared. The preset data may be test data generated by testing the wearable device before the second state is shipped from the factory, or some sensing data generated in the transportation process after shipment, such as historical trajectory data and step-counting data of the wearable device.
In an optional implementation manner of this embodiment, the apparatus further includes the following modules:
a fourth response module configured to set the wearable device to the first state in response to a control command received from a preset data interface.
In this alternative implementation, in order to receive control commands from the outside, a data interface may be provided on the wearable device, which may be a hardware interface such as a key. After receiving the control command from the data interface, the wearable device is set to a first state, where the first state may be a factory state, but not a use state of the user. Therefore, the wearable device may be configured such that the data generated in the first state is preset data, and thus, the preset data generated in the first state can be cleared when the wearable device is used for the first time by the user.
In an optional implementation manner of this embodiment, as shown in fig. 6, the clearing module 402 further includes the following sub-modules:
an obtaining sub-module 601 configured to obtain a preset clear data list;
a clearing submodule 602 configured to clear the preset data at the storage location according to the clearing identifier recorded in the preset clearing data list and the corresponding relationship between the storage locations.
In this alternative implementation, the information of the preset data to be cleared may be stored by a clearing data list. For example, the storage location of the preset data such as test data, sensing data, etc. to be cleared may be recorded in the clearing data list, and whether or not the clearing flag is the preset data that needs to be cleared is identified on each item of the clearing data list. And after a preset clearing data list is obtained, clearing the preset data through clearing marks and storage positions recorded in the clearing data list. In this way, it is possible to avoid mistaken deletion of important data in the wearable device.
Fig. 7 is a schematic structural diagram of a wearable device suitable for implementing a data clearing method according to an embodiment of the present disclosure.
As shown in fig. 7, the wearable device 700 includes an intelligent control unit (MPU)701, which can execute various processes in the above-described embodiment shown in fig. 1 according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the wearable device 700 are also stored. The MPU701, ROM702, and RAM703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
To the I/O interface 705, AN input section 706, AN output section 707 including a network interface card such as a Cathode Ray Tube (CRT), a liquid crystal display (L CD), and the like, a speaker, and the like, a storage section 708 including a hard disk, and the like, and a communication section 709 including a network interface card such as a L AN card, a modem, and the like, the communication section 709 performs communication processing via a network such as the internet, the drive 710 is also connected to the I/O interface 705 as necessary, a removable medium 711 such as AN external memory card, and the like is mounted on the drive 710 as necessary so that a computer program read out therefrom is mounted into the storage section 708 as necessary, of course, the wearable device may further include various sensing units that detect biometrics, a battery unit, AN approach communication unit, a bluetooth communication unit, a Zigbee communication unit, and the like.
In particular, according to embodiments of the present disclosure, the method described above with reference to fig. 1 may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the data cleansing method of FIG. 1. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus in the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (16)

1. A method of data purging, comprising:
in response to an event that a wired and/or wireless connection of a wearable device with a terminal is successful, the wearable device triggering a connection event with the terminal application;
in response to a connection event of the wearable device with a terminal application, the wearable device determining whether to connect with the terminal application for the first time;
when the wearable device is connected with the terminal application for the first time, acquiring a preset clearing data list;
and the wearable equipment clears the preset data at the storage position according to the clearing identification recorded in the preset clearing data list and the corresponding relation between the storage positions.
2. The data clearing method of claim 1, wherein determining whether the wearable device and the terminal application are connected for the first time in response to a connection event of the wearable device and the terminal application further comprises:
the wearable device triggers a connection event between the wearable device and the terminal application in response to the registration information of the wearable device being successfully acquired from the terminal application.
3. The data clearing method of claim 1 or 2, wherein in response to a connection event of the wearable device with a terminal application, the wearable device determining whether to connect with the terminal application for the first time comprises:
the wearable device responds to identification information of the wearable device obtained from the terminal application for the first time, and determines whether the wearable device and the terminal application are connected for the first time.
4. The data clearing method of claim 1 or 2, wherein in response to a connection event of the wearable device with a terminal application, the wearable device determining whether to connect with the terminal application for the first time comprises:
responding to an event that the wired and/or wireless connection between the wearable device and a terminal is successful, and acquiring a connection identification bit stored by the wearable device;
and the wearable equipment determines whether the wearable equipment is connected with the terminal application for the first time according to the connection identification bit.
5. The data clearing method according to claim 1, further comprising:
in response to an event that the wearable device is connected with the terminal application for the first time, the wearable device switches the first state to the second state.
6. The data clearing method according to claim 5, wherein the preset data comprises sensing data and/or test data generated in the wearable device before the second state.
7. The data clearing method according to claim 1, 5 or 6, further comprising:
in response to a control command received from a preset data interface, the wearable device sets its own state to a first state.
8. A data removal device, wherein the data removal device is located on a wearable device, the data removal device comprising:
a first response module configured to determine whether a wearable device is connected with a terminal application for the first time in response to a connection event of the wearable device with the terminal application;
a second response module configured to trigger a connection event of the wearable device with the terminal application in response to an event that the wired and/or wireless connection on the wearable device is successful;
a purge module, comprising: the acquisition sub-module is configured to acquire a preset clearing data list when the wearable device is connected with the terminal application for the first time; and the clearing submodule is configured to clear preset data at the storage position of the wearable device according to the clearing identification recorded in the preset clearing data list and the corresponding relation between the storage positions.
9. The data clearing apparatus according to claim 8, wherein the first response module further comprises, before:
a third response module configured to trigger a connection event of the wearable device with the terminal application in response to the wearable device successfully acquiring the registration information of the wearable device from the terminal application.
10. The data clearing apparatus according to claim 8 or 9, wherein the first response module comprises:
a first response submodule configured to determine whether the wearable device and the terminal application are connected for the first time in response to the wearable device obtaining identification information of the wearable device from the terminal application for the first time.
11. The data clearing apparatus according to claim 8 or 9, wherein the first response module comprises:
a second response submodule configured to obtain a connection identification bit stored in the wearable device in response to an event that a wired and/or wireless connection on the wearable device is successful;
a determination submodule configured to determine whether the wearable device and the terminal application are connected for the first time according to the connection identification bits.
12. The data purge apparatus according to claim 8, further comprising:
a switching module configured to switch the wearable device from a first state to a second state in response to an event that the wearable device is connected to the terminal application for the first time.
13. The data clearing apparatus according to claim 12, wherein the preset data comprises sensing data and/or test data generated in the wearable device prior to the second state.
14. A data cleaning apparatus according to claim 8, 12 or 13, further comprising:
a fourth response module configured to set the wearable device to the first state in response to a control command received from a preset data interface.
15. A wearable device, comprising a memory and a processor; wherein the content of the first and second substances,
the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of any of claims 1-7.
16. A computer-readable storage medium having stored thereon computer instructions, characterized in that the computer instructions, when executed by a processor, carry out the method steps of any of claims 1-7.
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 CN108170478A (en) 2018-06-15
CN108170478B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111085999B (en) * 2019-12-18 2022-11-15 达闼机器人股份有限公司 Robot control method, device and system and robot controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9907473B2 (en) * 2015-04-03 2018-03-06 Koninklijke Philips N.V. Personal monitoring system
KR101234578B1 (en) * 2011-03-31 2013-02-19 한국과학기술원 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
CN105812584B (en) * 2016-05-26 2019-08-02 宇龙计算机通信科技(深圳)有限公司 A kind of information theft-preventing method, device and equipment based on wearable device
CN105920786B (en) * 2016-06-08 2018-08-03 深圳市元征科技股份有限公司 The method and intelligent wearable device of treadmill are controlled by intelligent wearable device
CN106253936B (en) * 2016-09-26 2019-03-05 北京奇虎科技有限公司 Wearable device data access control and with inter-terminal data moving method, system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639655A (en) * 2015-03-09 2015-05-20 上海万达全程健康门诊部有限公司 Health sign monitoring data acquisition method based on mobile gateway
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
CN106909646A (en) * 2017-02-21 2017-06-30 青岛海信电器股份有限公司 SD card clears up the method and device of invalid data after changing

Also Published As

Publication number Publication date
CN108170478A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN107291516B (en) A kind of firmware upgrade method and system
CN103530186B (en) Realize that camera applications support the method and system of multiposition storage
KR102379173B1 (en) Workout record managing method and electronic device supporting the same
KR102273371B1 (en) Method for controlling and an electronic device thereof
CN103747414B (en) The method and mobile terminal of more new state information
CN106488539A (en) The processing method of WiFi resource and system in terminal
CN105653310B (en) Using installation method, device and electronic equipment
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
EP3252883A1 (en) Overtemperature protection for a smart socket
JPWO2015071999A1 (en) Terminal apparatus, control apparatus, installation position confirmation support system, installation position setting support system, installation position confirmation support method, installation position setting support method, and program
CN108170478B (en) Data clearing method and device, wearable device and computer readable storage medium
JP4883314B2 (en) Data trace system using PLC
CN109002305A (en) A kind of update method and its system of device program
CN105138112A (en) Display control method and apparatus
CN108197958B (en) Method and device for counting off-line cattle and storage medium
CN103716695A (en) System software upgrading method and smart television
CN102811436A (en) Firmware updating method and device
CN109474503A (en) A kind of electric control method, device, storage medium and electric appliance
CN109032911A (en) For the frame rate detection method of mobile device, device and electronic equipment
CN112346420A (en) Consumable detection method, consumable detection device, consumable detection equipment and computer-readable storage medium
KR20180096130A (en) Electronic Apparatus And Communication Setup Method Thereof
CN111130888A (en) Fault information collection and prompt method, device, storage medium and mobile terminal
CN109189420B (en) System upgrading method, device, circuit board, equipment and storage medium
US10089314B2 (en) Information management method, information management device, program, and program provision method
CN113419652A (en) Intelligent equipment interaction method, server and client

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