WO2017016247A1 - 一种用于数据存储与同步的装置、可穿戴设备 - Google Patents

一种用于数据存储与同步的装置、可穿戴设备 Download PDF

Info

Publication number
WO2017016247A1
WO2017016247A1 PCT/CN2016/079800 CN2016079800W WO2017016247A1 WO 2017016247 A1 WO2017016247 A1 WO 2017016247A1 CN 2016079800 W CN2016079800 W CN 2016079800W WO 2017016247 A1 WO2017016247 A1 WO 2017016247A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
data
synchronization
terminal
data storage
Prior art date
Application number
PCT/CN2016/079800
Other languages
English (en)
French (fr)
Inventor
徐夏敏
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2017016247A1 publication Critical patent/WO2017016247A1/zh

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer

Definitions

  • the utility model relates to a data processing technology in the field of electronic communication, in particular to a device and a wearable device for data storage and synchronization.
  • USB Universal Serial Bus
  • Wireless communication technology based on Bluetooth, Wifi, etc.
  • This method can directly transmit data, but this method can only be used for point-to-point mutual transmission between short-distance devices, and cannot realize remote data synchronization and backup; and there is also a transmission mode between different types of devices.
  • the embodiments of the present invention are intended to provide a device for data storage and synchronization, a wearable device, which can not only realize data synchronization and backup with various terminals, but also has portable, safe and easy to use.
  • the utility model provides a device for data storage and synchronization, the device comprising:
  • a wireless transceiver that establishes a wireless connection with the terminal
  • a main controller that controls data in the receiving terminal or transmits data to the terminal through the established wireless connection
  • a memory that stores transmitted and received data.
  • the device further includes:
  • a power source that supplies power to the wireless transceiver, the main controller, the memory, and the input and output components.
  • the memory includes nand flash and nor flash.
  • the power source includes a lithium ion battery, and a switching power supply or a voltage regulator.
  • the input and output components include a power on button and a three color LED.
  • the wireless connection is a Bluetooth connection, a near field communication NFC connection, a radio frequency identification RFID connection, an infrared data standard protocol IrDA connection, an ultra-wideband UWB connection, and a ZigBee connection.
  • the present invention also provides a wearable device comprising the apparatus for data storage and synchronization described in any of the above, and a structure for carrying the apparatus for data storage and synchronization. ;
  • the means for data storage and synchronization is engaged in the structure.
  • the shape of the structure is bonded to the shape of the wrist.
  • the wearable device by setting a wireless transceiver that establishes a wireless connection with the terminal in the device, when the data needs to be synchronized, the wireless transceiver and the terminal are A wireless connection is established, data is received from the terminal based on the established wireless connection, or data is transmitted to the terminal, and the received data can also be stored in the device.
  • the wireless transceiver and the terminal are A wireless connection is established, data is received from the terminal based on the established wireless connection, or data is transmitted to the terminal, and the received data can also be stored in the device.
  • FIG. 1 is a schematic structural view of a wearable device according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a hardware device according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a method for implementing data storage and synchronization by using the wearable device according to an embodiment of the present invention
  • FIG. 4 is a schematic flow chart of an implementation principle of a hardware device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an implementation process of manual synchronization of a terminal application software according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of an implementation process of automatic synchronization of a terminal application software according to an embodiment of the present invention.
  • the structure of the wearable device of the embodiment of the present invention is as shown in FIG. 1 .
  • the wearable device includes: a hardware device 11 and a structure 12, and the hardware device 11 is engaged in the structure 12;
  • the engagement is completed by providing a card slot and a buckle; the engagement can also be accomplished by providing protrusions and grooves; and any other mechanism that can achieve the engagement. among them,
  • the hardware device 11 is configured to implement data storage and synchronization
  • the structure 12 is configured to carry the hardware device 11; wherein the structure 12 has a shape that fits the shape of the wrist.
  • composition of the hardware device of the embodiment of the present invention is as shown in FIG. 2, and the hardware device includes:
  • a wireless transceiver 21 configured to establish a wireless connection with the terminal
  • the main controller 22 is configured to control data in the receiving terminal or send data to the terminal through the established wireless connection;
  • a memory 23 configured to store data sent and received
  • the memory 23 may be a nand flash or a nor flash.
  • the main controller 22 is electrically connected to the wireless transceiver 21 and the memory 23.
  • the hardware device further includes: an input and output component 24 for implementing human-computer interaction;
  • the input/output component 24 includes a power-on button and a three-color LED (Light Emitting Diode).
  • the hardware device further includes a power source 25 for supplying power to the wireless transceiver 21, the main controller 22, the memory 23, and the input and output unit 24;
  • the power source 25 comprises a lithium ion battery, and a switching power supply or a voltage regulator.
  • the wireless connection may be a Bluetooth connection, a near field communication (NFC) connection, a radio frequency identification (RFID) connection, an infrared data standard protocol (IrDA) connection, an ultra wideband (UWB) connection, a purple bee. Any one of the connections.
  • NFC near field communication
  • RFID radio frequency identification
  • IrDA infrared data standard protocol
  • UWB ultra wideband
  • the main controller 22 is connected to the wireless transceiver 21, the memory 23, the input/output unit 24, and the power source 25, respectively.
  • main controller 22 is a core part of the hardware device, and can adopt a low-power system-on-chip (SOC) processor, and integrates a read-only memory (ROM, Read) on the chip. Only Memory) and Random Access Memory (RAM).
  • SOC system-on-chip
  • ROM read-only memory
  • RAM Random Access Memory
  • the method for implementing data storage and synchronization using the wearable device is as shown in FIG. 3, and includes the following steps:
  • Step 301 When the terminal A needs to store and synchronize data, the wearable device is brought close to the terminal A, and a wireless connection between the wearable device and the terminal A is established.
  • a wireless connection is established through a wireless transceiver in a device for implementing data storage and synchronization on a wearable device; the wireless connection is a Bluetooth connection, an NFC connection, an RFID connection, an IrDA connection, a UWB connection, a ZigBee connection, and the like.
  • the wireless connection is a Bluetooth connection, an NFC connection, an RFID connection, an IrDA connection, a UWB connection, a ZigBee connection, and the like.
  • Step 302 Store data on the terminal A in the wearable device based on the established wireless connection.
  • the data is stored in a memory in the device for implementing data storage and synchronization on the wearable device.
  • Step 303 When the terminal B needs to use the data, the wearable device is brought close to the terminal B, and a wireless connection between the wearable device and the terminal B is established.
  • step 301 the manner of establishing a wireless connection is the same as step 301.
  • Step 304 Send the data stored in the wearable device to the terminal B.
  • the synchronization mode can also be configured through software, which can realize the functions of reading, writing, modifying, deleting, and automatically synchronizing data files.
  • FIG. 4 The principle of implementing the hardware device in the embodiment of the present invention is shown in FIG. 4, and the process includes the following steps:
  • Step 401 After the wearable device is powered on, copy the firmware in the hardware device from the on-chip ROM of the main controller to the on-chip RAM, and start executing the firmware in the hardware device.
  • the hardware device is a device on the wearable device for implementing data storage and synchronization;
  • the firmware in the hardware device is a hardware portion for managing the operation of the hardware device.
  • Step 402 Initialize the hardware device, detect the function of sending and receiving the wireless transceiver in the hardware device, and whether the writing and reading functions of the memory in the hardware device are normal;
  • Step 403 Determine whether the initialization in step 402 has an error, if an error occurs, proceed to step 404, otherwise proceed to step 405;
  • Step 404 flashing the red LED for 20 seconds, prompting the user to perform maintenance, and then the hardware device enters the sleep mode to end the current processing flow;
  • Step 405 The wireless transceiver in the hardware device starts to cycle and wait for the terminal to establish a connection signal.
  • Step 406 The hardware device receives the connection signal of the terminal, and the two parties try to establish a connection.
  • connection may be various short-range wireless connections such as a Bluetooth connection, an NFC connection, an RFID connection, an IrDA connection, a UWB connection, a ZigBee connection, and the like.
  • Step 407 Determine whether the established wireless connection is successful, if not successful, then return to step 405, otherwise proceed to step 408;
  • Step 408 The hardware device sends its own data file system information to the terminal, and waits for the terminal to send a synchronization instruction.
  • the data file system information of the hardware device itself includes total storage capacity, usage amount, name, size, and modification time of each data file.
  • Step 409 judging the synchronization instruction, for reading the instruction, proceeds to step 410, otherwise proceeds to step 412;
  • the synchronization instruction is composed of an instruction code and an additional code.
  • the instruction code is divided into two types, including a read instruction and a write instruction; the instruction additional code includes the ID of the data file to be operated and the length of the data file.
  • Step 410 During the reading and sending of the data file, the yellow LED flashes for prompting the busy state, and after the read operation is completed, the process proceeds to step 411;
  • the hardware device adds an ID according to the received instruction, obtains an ID that needs to read the data file, searches for the data file from the memory, and writes the data file content into the FIFO queue. (FIFO, First in First out), simultaneously starts the wireless transceiver and sends the contents of the FIFO to the terminal.
  • FIFO First in First out
  • Step 411 Waiting for the terminal to return a response flag, if the response is successful, the hardware device lights the green LED for 5 seconds, otherwise the yellow LED is illuminated for 5 seconds; after the end, returns to step 408;
  • Step 412 The hardware device determines, according to the received instruction additional code, whether the data file to be written can be normally written. If the data file can be normally written, the writable response flag is sent, and the process proceeds to step 413, otherwise, the non-writable response flag is sent. And proceeds to step 414;
  • Step 413 Write operation, if the writing is completed, the hardware device returns a success response signal, and simultaneously lights up the green LED for 5 seconds, otherwise returns a failure response signal, and lights up the yellow LED for 5 seconds; after the end, returns to step 408;
  • the hardware device receives the data file content to the FIFO through the wireless transceiver, and performs a Cyclic Redundancy Check (CRC) check, and writes the data file content to the data file system after the verification is passed.
  • CRC Cyclic Redundancy Check
  • Step 414 Unable to write, the hardware device lights up the yellow LED for 5 seconds; after the end, returns to step 408.
  • the above hardware device When the above hardware device is used to implement data storage and synchronization, if an unexpected interruption occurs, for example, a wireless connection is suddenly disconnected during transmission, the above implementation process enters an interrupt process, and the interrupt processing clears the site and returns to step 404 to wait. reconnect.
  • the specific implementation of the manual synchronization method of the terminal application software in the embodiment of the present invention is as shown in FIG. 5, and includes the following steps:
  • Step 501 Start a terminal application software, and search for a nearby hardware device according to the unified device identifier.
  • Bluetooth, NFC, RFID, IrDA, UWB, Zigbee and other short-range wireless connection communication methods can be used for searching.
  • Step 502 determining whether there is a hardware device available, and if not, prompting the user whether to continue Continue searching, continue searching, repeat this step, or exit the application software; otherwise, proceed to step 503;
  • Step 503 the terminal application software invokes a communication interface of the wireless transceiver in the hardware device, and starts to establish a connection with the hardware device;
  • connection may be various short-range wireless connections such as a Bluetooth connection, an NFC connection, an RFID connection, an IrDA connection, a UWB connection, a ZigBee connection, and the like.
  • Step 504 it is determined whether the connection is established successfully, if successful, proceeds to step 505, otherwise returns to step 502;
  • Step 505 according to the data file system information returned by the hardware device, display it on the screen after processing, and wait for further operation by the user;
  • Step 506 determining the operation taken by the user, the operations that the user can take include the following: first, by clicking the data file, downloading the data file to the local for review, and proceeding to step 507; second, adding a new data file (the file name is different) Go to the hardware device, go to step 509; third, change the existing data file, that is, the data file with the same file name is overwritten to the hardware device, go to step 511; fourth, delete the existing data file, go to step 513;
  • Step 507 the read operation, send the read command code to the hardware device, waiting for the returned readable response flag; if readable, go to step 508; otherwise prompt the user is not currently readable, and return to step 505;
  • Step 508 The receiving thread receives the data file sent by the hardware device, and after receiving the CRC check, returns a success response flag, and saves the data file to the local, otherwise returns a failure response flag, and prompts the user to read the failure; After the end, return to step 505;
  • Step 509 adding an operation, sending a write instruction code to the hardware device, waiting for the returnable writable response flag; if writable, proceeding to step 510; otherwise prompting the user that the user is currently not writable, and returning to step 505;
  • Step 510 start the sending thread to read the specified data file, and send, after the completion of the process proceeds to step 515;
  • a short-distance wireless connection communication method such as Bluetooth, NFC, RFID, IrDA, UWB, and ZigBee.
  • Step 511 modify the operation, send the write command code to the hardware device, waiting for the returnable writable response flag; if writable, proceed to step 512; otherwise prompt the user is currently not writable, and return to step 505;
  • Step 512 prompting the user whether it needs to be overwritten, after the user confirms, the sending thread starts to read the specified data file, and sends it, after the sending is completed, the process proceeds to step 515;
  • Step 513 delete operation, send delete instruction code to the hardware device, waiting for the returnable deleteable response flag; if it can be deleted, proceed to step 514; otherwise, the user is prompted not to delete, and returns to step 505;
  • Step 514 First prompt the user whether to delete, after the user confirms, send a special write command code to the hardware device, after the completion of the process proceeds to step 515;
  • the delete operation can be regarded as a special write operation, and the instruction code has a data file ID, but the file length is 0.
  • Step 515 after the writing operation is completed, the device waits for the hardware device to return a response flag, and prompts the user to complete the operation according to the response flag; after the end, returns to step 505.
  • the specific implementation of the automatic synchronization method for the terminal application software in the embodiment of the present invention is as shown in FIG. 6, and includes the following steps:
  • Step 601 after the terminal application software is started, setting the software to be automatically synchronized by using a setting item;
  • Step 602 the background of the terminal application software repeatedly searches for available hardware devices and establishes a connection. Once the connection is successful, the process proceeds to step 603, otherwise step 602 is repeated;
  • connection may be various short-range wireless connections such as a Bluetooth connection, an NFC connection, an RFID connection, an IrDA connection, a UWB connection, a ZigBee connection, and the like.
  • Step 603 if a read operation is required, proceed to step 604, a write operation is required, proceeding to step 605, otherwise proceeding to step 606;
  • the local mirror data file information is compared, and according to the modification time of the data file, it is determined whether the write and read operations are currently required.
  • Step 604 the read operation, sending the read instruction code to the hardware device, and starting the receiving thread to receive the data file sent by the hardware device, after receiving the success and passing the CRC check, returning the success response flag, and saving the data file to the local Mirror, otherwise return a failure response flag; after the end, return to step 603;
  • Step 605 the write operation, send the write command code to the hardware device, waiting for the returnable writable response flag; if writable, the start sending thread reads the specified data file, and sends, and then returns to step 603;
  • a short-distance wireless connection communication method such as Bluetooth, NFC, RFID, IrDA, UWB, and ZigBee.
  • Step 606 after sleeping for 10 minutes, return to step 603.
  • the wearable device by setting a wireless transceiver that establishes a wireless connection with the terminal in the device, when the data needs to be synchronized, the wireless transceiver and the terminal are A wireless connection is established, data is received from the terminal based on the established wireless connection, or data is transmitted to the terminal, and the received data can also be stored in the device.
  • the wireless transceiver and the terminal are A wireless connection is established, data is received from the terminal based on the established wireless connection, or data is transmitted to the terminal, and the received data can also be stored in the device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • General Physics & Mathematics (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

一种用于数据存储与同步的装置和一种可穿戴设备,所述装置包括:与终端建立无线连接的无线收发器(21);通过所建立的无线连接控制接收终端中的数据或向终端中发送数据的主控制器(22);存储收发的数据的存储器(23)。

Description

一种用于数据存储与同步的装置、可穿戴设备 技术领域
本实用新型涉及电子通讯领域的数据处理技术,尤其涉及一种用于数据存储与同步的装置、可穿戴设备。
背景技术
近年来,随着移动互联网技术的快速发展,人们的生活越来越依赖于各种移动终端与智能设备。虽然不同的移动终端与智能设备有着不同的用途,但是它们有个共同的特点,即:都可以存储数据和处理数据。然而,在设备的使用过程中,人们常常会遇到数据同步与备份的需求,例如,家用平板电脑上编辑的文档需要在办公室的台式电脑上查阅,个人智能手机上的通讯录需要同步到另外一台终端上,等等。
针对上述类似的需求,目前主要存在以下几种解决方式:
1)传统的通用串行总线(USB,Universal Serial BUS)拷贝与备份方式。很显然地,由于移动终端与智能设备大都不具备USB接口,因此,该方式只能用于个人计算机(PC,personal computer)之间的数据传递,而无法适用于各种移动终端与智能设备。
2)基于蓝牙、Wifi等的无线通信技术。利用该方式可以直接进行数据的传输,但该方式只能用于近距离设备之间的点对点互传,而无法实现远程数据的同步和备份;并且,也存在不同类型设备之间的传输方式不兼容等问题。
3)基于云存储的网络同步与备份技术。虽然,这种方式能解决上面两种方式中存在的问题,但是,由于云存储是将数据存储于网络侧,在需要同步和备份数据时,要通过上网登录到云存储设备上才能实现,因此,这 种方式也带来了无网络接入时无法使用、以及重要资料可能泄露等风险。
实用新型内容
有鉴于此,本实用新型实施例期望提供一种用于数据存储与同步的装置、可穿戴设备,不仅能实现与各种终端之间的数据同步与备份,而且具有便携、安全、易使用的特点。
为达到上述目的,本实用新型的技术方案是这样实现的:
本实用新型提供一种用于数据存储与同步的装置,所述装置包括:
与终端建立无线连接的无线收发器;
通过所建立的无线连接控制接收终端中的数据或向终端中发送数据的主控制器;
存储收发的数据的存储器。
上述方案中,所述装置还包括:
用于实现人机交互的输入输出部件;
为所述无线收发器、所述主控制器、所述存储器以及所述输入输出部件供电的电源。
上述方案中,所述存储器包括nand flash、nor flash。
上述方案中,所述电源包括锂离子电池、以及开关电源或稳压器。
上述方案中,所述输入输出部件包括开机按键、三色LED。
上述方案中,所述无线连接为蓝牙连接、近场通信NFC连接、射频识别RFID连接、红外数据标准协议IrDA连接、超宽带UWB连接、紫蜂连接。
本实用新型还提供一种可穿戴设备,所述可穿戴设备包括上述任一项所述的用于数据存储与同步的装置、以及用于承载所述用于数据存储与同步的装置的结构体;
所述用于数据存储与同步的装置卡合于所述结构体中。
上述方案中,所述结构体的形状与手腕形状贴合。
本实用新型实施例所提供的用于数据存储与同步的装置、可穿戴设备,通过在该装置中设置与终端建立无线连接的无线收发器,当需要同步数据时,可通过无线收发器与终端建立无线连接,基于所建立的无线连接从终端接收数据、或发送数据到终端,接收到的数据还可以存储在该装置中。如此,不仅能实现与各种终端之间的数据同步与备份;而且,还具有便携、安全、易使用的特点,具有极好的应用前景。
附图说明
图1为本实用新型实施例可穿戴设备的组成结构示意图;
图2为本实用新型实施例硬件装置的组成结构示意图;
图3为本实用新型实施例使用该可穿戴设备实现数据存储与同步的方法流程示意图;
图4为本实用新型实施例硬件装置的实现原理流程示意图;
图5为本实用新型实施例终端应用软件手动同步的实现流程示意图;
图6为本实用新型实施例终端应用软件自动同步的实现流程示意图。
具体实施方式
为了能够更加详尽地了解本实用新型实施例的特点与技术内容,下面结合附图对本实用新型实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本实用新型。
本实用新型实施例可穿戴设备的组成结构如图1所示,所述可穿戴设备包括:硬件装置11和结构体12,所述硬件装置11卡合于所述结构体12中;这里,可以通过设置卡槽和卡扣来完成卡合;也可以通过设置凸起和凹槽来完成卡合;还可以是其它任何能实现卡合的机构。其中,
所述硬件装置11,用于实现数据存储与同步;
所述结构体12,用于承载所述硬件装置11;其中,所述结构体12的形状与手腕形状贴合。
本实用新型实施例硬件装置的组成结构如图2所示,该硬件装置包括:
无线收发器21,用于与终端建立无线连接;
主控制器22,用于通过所建立的无线连接控制接收终端中的数据或向终端中发送数据;
存储器23,用于存储收发的数据;
其中,所述存储器23可以是nand flash,也可以是nor flash。
所述主控制器22与所述无线收发器21和所述存储器23电连接。
该硬件装置还包括:输入输出部件24,用于实现人机交互;
其中,所述输入输出部件24包括开机按键、三色发光二极管(LED,Light Emitting Diode)。
该硬件装置还包括:电源25,用于为所述无线收发器21、所述主控制器22、所述存储器23以及所述输入输出部件24供电;
其中,所述电源25包括锂离子电池、以及开关电源或稳压器。
上述方案中,所述无线连接可以为蓝牙连接、近场通信(NFC,Near Field Communication)连接、射频识别(RFID)连接、红外数据标准协议(IrDA)连接、超宽带(UWB)连接、紫蜂连接等任意一种。
在该硬件装置中,所述主控制器22分别与所述无线收发器21、所述存储器23、所述输入输出部件24、以及所述电源25相连。
需要特别说明的是,所述主控制器22是该硬件装置的核心部分,可采用低功耗***级芯片(SOC,System on Chip)处理器,在片内集成有只读存储器(ROM,Read Only Memory)和随机存储器(RAM,Random Access Memory)。
假设有两个终端--终端A和终端B需要同步数据,那么,可采用本实 用新型实施例的可穿戴设备实现;具体的,本实用新型实施例使用该可穿戴设备实现数据存储与同步的方法如图3所示,包括以下步骤:
步骤301:终端A需要存储与同步数据时,将可穿戴设备靠近终端A,并建立可穿戴设备与终端A之间的无线连接;
这里,通过可穿戴设备上用于实现数据存储与同步的装置中的无线收发器建立无线连接;所述无线连接为蓝牙连接、NFC连接、RFID连接、IrDA连接、UWB连接、紫蜂连接等任意一种。
步骤302:基于所建立的无线连接,将终端A上的数据存储于该可穿戴设备中;
具体的,数据存储于可穿戴设备上用于实现数据存储与同步的装置中的存储器中。
步骤303:当终端B需要使用该数据时,将可穿戴设备靠近终端B,并建立可穿戴设备与终端B之间的无线连接;
这里,建立无线连接的方式与步骤301相同。
步骤304:将存储在可穿戴设备中的数据发送给终端B。
进一步的,还可以通过软件对同步方式进行配置,可以实现数据文件的读写、修改、删除,以及自动同步的功能。
下面通过具体应用实施例对可穿戴设备实现数据存储与同步的过程进行进一步地阐述。
本实用新型实施例硬件装置的实现原理流程如图4所示,该流程包括以下步骤:
步骤401:可穿戴设备开机后,将硬件装置中的固件从主控制器的片内ROM拷贝至片内RAM,并开始执行该硬件装置中的固件;
这里,所述硬件装置就是可穿戴设备上用于实现数据存储与同步的装置;所述硬件装置中的固件是用于管理硬件装置工作的硬件部分。
步骤402:初始化硬件装置,检测硬件装置中的无线收发器的发送、接收功能,以及硬件装置中的存储器的写入和读出功能是否正常;
步骤403:判断步骤402中的初始化是否出现错误,如果出现错误,则进入步骤404,否则进入步骤405;
步骤404:闪烁红色LED 20秒,提示用户进行维修,之后硬件装置进入休眠模式,结束当前处理流程;
步骤405:硬件装置中的无线收发器开始循环等待终端建立连接信号;
步骤406:硬件装置接收到终端的连接信号,双方尝试建立连接;
这里,所述连接可以是各种短距离无线连接,如:蓝牙连接、NFC连接、RFID连接、IrDA连接、UWB连接、紫蜂连接等。
步骤407:判断建立的无线连接是否成功,如果未成功,则返回步骤405,否则进入步骤408;
步骤408:硬件装置将自身的数据文件***信息发送至终端,并等待终端发送同步指令;
其中,硬件装置自身的数据文件***信息包括存储总容量,使用量,每个数据文件的名称、大小、修改时间等。
步骤409:判断同步指令,对于读出指令,进入步骤410,否则进入步骤412;
这里,同步指令由指令码和附加码组成。其中,指令码分为两种,包括读出指令和写入指令;指令附加码包括需要操作的数据文件的ID与数据文件长度。
步骤410:在数据文件读出与发送过程中,黄色LED闪烁,用于提示忙碌状态,读出操作完成后进入步骤411;
这里,硬件装置根据接收到的指令附加码,获得需要读出数据文件的ID,从存储器中查找该数据文件,并将数据文件内容写入先进先出队列 (FIFO,First in First out),同时启动无线收发器,将FIFO的内容发送至终端。
步骤411:等待终端返回应答标志,如果应答成功,硬件装置点亮绿色LED持续5秒,否则点亮黄色LED持续5秒;结束后返回步骤408;
步骤412:硬件装置根据接收到的指令附加码,判断需要写入的数据文件能否正常写入,如果可以正常写入,则发送可写应答标志,并进入步骤413,否则发送不可写应答标志,并进入步骤414;
步骤413:写入操作,如果写入完成,硬件装置返回成功应答信号,同时点亮绿色LED持续5秒,否则返回失败应答信号,并点亮黄色LED持续5秒;结束后返回步骤408;
这里,硬件装置通过无线收发器接收数据文件内容至FIFO,并进行循环冗余校验码(CRC,Cyclic Redundancy Check)校验,校验通过后将数据文件内容写入数据文件***。
步骤414:无法写入,硬件装置点亮黄色LED持续5秒;结束后返回步骤408。
以上硬件装置用于实现数据存储与同步的过程中,如果发生意外中断,例如,传输过程中突然断开无线连接,则上述实现流程进入中断流程,中断处理会清理现场,并返回至步骤404等待重新连接。
本实用新型实施例终端应用软件手动同步方法的具体实现如图5所示,包括以下步骤:
步骤501,启动终端应用软件,根据统一的设备标识搜寻附近的硬件装置;
这里,可以采用蓝牙、NFC、RFID、IrDA、UWB、紫蜂等短距离无线连接的通讯方式进行搜寻。
步骤502,判断是否有可用的硬件装置,如果没有,则提示用户是否继 续搜寻,继续搜寻则重复本步骤,或者退出应用软件;否则进入步骤503;
步骤503,终端应用软件调用硬件装置中无线收发器的通讯接口,与硬件装置开始建立连接;
这里,所述连接可以是各种短距离无线连接,如:蓝牙连接、NFC连接、RFID连接、IrDA连接、UWB连接、紫蜂连接等。
步骤504,判断建立连接是否成功,如果成功,则进入步骤505,否则返回步骤502;
步骤505,根据硬件装置返回的数据文件***信息,处理后将其显示在屏幕,并等待用户的进一步操作;
步骤506,判断用户采取的操作,用户可以采取的操作包括以下几种:一是通过点击数据文件,将数据文件下载到本地进行查阅,进入步骤507;二是添加新数据文件(文件名不同)至硬件装置中,进入步骤509;三是更改已有的数据文件,即文件名相同的数据文件覆盖至硬件装置,进入步骤511;四是删除已有的数据文件,进入步骤513;
步骤507,读出操作,发送读出指令码至硬件装置,等待返回的可读应答标志;如果可读,进入步骤508;否则提示用户当前不可读,并返回步骤505;
步骤508:启动接收线程接收硬件装置发送的数据文件,接收成功并通过CRC校验后,返回成功应答标志,并将该数据文件保存至本地,否则返回失败应答标志,并提示用户读取失败;结束后返回步骤505;
步骤509,新增操作,发送写入指令码至硬件装置,等待返回的可写应答标志;如果可写,进入步骤510;否则提示用户当前不可写,并返回步骤505;
步骤510,启动发送线程读出指定数据文件,并进行发送,发送完之后进入步骤515;
这里,可通过蓝牙、NFC、RFID、IrDA、UWB、紫蜂等短距离无线连接的通讯方式进行发送。
步骤511,修改操作,发送写入指令码至硬件装置,等待返回的可写应答标志;如果可写,进入步骤512;否则提示用户当前不可写,并返回步骤505;
步骤512,提示用户是否需要覆盖,用户确认后启动发送线程读出指定数据文件,并进行发送,发送完之后进入步骤515;
步骤513,删除操作,发送删除指令码至硬件装置,等待返回的可删除应答标志;如果可删除,进入步骤514;否则提示用户当前不可删除,并返回步骤505;
步骤514:首先提示用户是否需要删除,用户确认后发送特殊写入指令码至硬件装置,发送完之后进入步骤515;
这里,可以把删除操作看作是一种特殊的写入操作,指令码有数据文件ID,但文件长度为0。
步骤515,写入操作完成后,设备等待硬件装置返回应答标志,并根据应答标志提示用户操作完成情况;结束后返回步骤505。
本实用新型实施例终端应用软件自动同步方法的具体实现如图6所示,包括以下步骤:
步骤601,终端应用软件启动后,通过设置项设置该软件为自动同步;
步骤602,终端应用软件的后台重复搜寻可用的硬件装置并建立连接,一旦连接成功,则进入步骤603,否则重复步骤602;
这里,所述连接可以是各种短距离无线连接,如:蓝牙连接、NFC连接、RFID连接、IrDA连接、UWB连接、紫蜂连接等。
步骤603,如果需要读出操作,进入步骤604,需要写入操作,进入步骤605,否则进入步骤606;
这里,根据硬件装置返回的数据文件***信息,对比本地镜像数据文件信息,根据该数据文件的修改时间,判断当前是否需要写入和读出操作。
步骤604,读出操作,发送读出指令码至硬件装置,并启动接收线程接收硬件装置发送的数据文件,接收成功并通过CRC校验后,返回成功应答标志,并将该数据文件保存至本地镜像,否则返回失败应答标志;结束后返回步骤603;
步骤605,写入操作,发送写入指令码至硬件装置,等待返回的可写应答标志;如果可写,则启动发送线程读出指定数据文件,并进行发送,结束后返回步骤603;
这里,可通过蓝牙、NFC、RFID、IrDA、UWB、紫蜂等短距离无线连接的通讯方式进行发送。
步骤606,休眠10分钟后,返回步骤603。
本实用新型实施例所提供的用于数据存储与同步的装置、可穿戴设备,通过在该装置中设置与终端建立无线连接的无线收发器,当需要同步数据时,可通过无线收发器与终端建立无线连接,基于所建立的无线连接从终端接收数据、或发送数据到终端,接收到的数据还可以存储在该装置中。如此,不仅能实现与各种终端之间的数据同步与备份;而且,还具有便携、安全、易使用的特点,具有极好的应用前景。
以上所述,仅为本实用新型的较佳实施例而已,并非用于限定本实用新型的保护范围,凡在本实用新型的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本实用新型的保护范围之内。

Claims (8)

  1. 一种用于数据存储与同步的装置,所述装置包括:
    与终端建立无线连接的无线收发器;
    通过所建立的无线连接控制接收终端中的数据或向终端中发送数据的主控制器;
    存储收发的数据的存储器。
  2. 根据权利要求1所述的装置,其中,所述装置还包括:配置为实现人机交互的输入输出部件;
    为所述无线收发器、所述主控制器、所述存储器以及所述输入输出部件供电的电源。
  3. 根据权利要求1所述的装置,其中,所述存储器包括nand flash、nor flash。
  4. 根据权利要求2所述的装置,其中,所述电源包括锂离子电池、以及开关电源或稳压器。
  5. 根据权利要求2所述的装置,其中,所述输入输出部件包括开机按键、三色LED。
  6. 根据权利要求1所述的装置,其中,所述无线连接为蓝牙连接、近场通信NFC连接、射频识别RFID连接、红外数据标准协议IrDA连接、超宽带UWB连接、紫蜂连接。
  7. 一种可穿戴设备,所述可穿戴设备包括权利要求1至6任一项所述的用于数据存储与同步的装置、以及配置为承载所述用于数据存储与同步的装置的结构体;
    配置为数据存储与同步的装置卡合于所述结构体中。
  8. 根据权利要求7所述的可穿戴设备,其中,所述结构体的形状与手腕形状贴合。
PCT/CN2016/079800 2015-07-29 2016-04-20 一种用于数据存储与同步的装置、可穿戴设备 WO2017016247A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201520558596.7 2015-07-29
CN201520558596.7U CN205281402U (zh) 2015-07-29 2015-07-29 一种用于数据存储与同步的装置、可穿戴设备

Publications (1)

Publication Number Publication Date
WO2017016247A1 true WO2017016247A1 (zh) 2017-02-02

Family

ID=56065959

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079800 WO2017016247A1 (zh) 2015-07-29 2016-04-20 一种用于数据存储与同步的装置、可穿戴设备

Country Status (2)

Country Link
CN (1) CN205281402U (zh)
WO (1) WO2017016247A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341783A (zh) * 2016-10-19 2017-01-18 广州视源电子科技股份有限公司 数据转发设备,数据转发方法、装置和***
CN113747374B (zh) * 2021-07-30 2023-01-06 荣耀终端有限公司 一种消息推送方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101219046A (zh) * 2007-01-11 2008-07-16 雅马哈株式会社 用于显示健身运动状态的设备及方法
CN103823359A (zh) * 2014-01-26 2014-05-28 苏州智信通电子科技有限公司 一种多功能无线蓝牙信息存储健康手表及其控制方法
US20140347289A1 (en) * 2013-05-22 2014-11-27 Samsung Electronics Co., Ltd. Method and apparatus for displaying schedule on wearable device
CN104516844A (zh) * 2013-10-02 2015-04-15 菲特比特公司 为显示设备产生实时活动数据更新的方法、***和设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101219046A (zh) * 2007-01-11 2008-07-16 雅马哈株式会社 用于显示健身运动状态的设备及方法
US20140347289A1 (en) * 2013-05-22 2014-11-27 Samsung Electronics Co., Ltd. Method and apparatus for displaying schedule on wearable device
CN104516844A (zh) * 2013-10-02 2015-04-15 菲特比特公司 为显示设备产生实时活动数据更新的方法、***和设备
CN103823359A (zh) * 2014-01-26 2014-05-28 苏州智信通电子科技有限公司 一种多功能无线蓝牙信息存储健康手表及其控制方法

Also Published As

Publication number Publication date
CN205281402U (zh) 2016-06-01

Similar Documents

Publication Publication Date Title
CN108695921B (zh) 数据备份方法、无线充电装置、移动终端及存储介质
KR102275720B1 (ko) 블루투스 통신방법 및 블루투스 통신디바이스
US10743258B2 (en) Method of Bluetooth communication giving consideration to both communication speed and power consumption and a terminal thereof
WO2016015577A1 (zh) 一种智能穿戴设备的控制方法、装置及***
US7974661B1 (en) Remotely accessing a computing device in a low-power state
CN105492996B (zh) 对通信端口启用低功率状态的技术
KR20110049121A (ko) 디바이스 활성화 방법 및 장치
TWM243761U (en) Memory disk with wireless data transmitting and rceiving function
CN114297126B (zh) 一种基于充电线缆的数据传输方法及电子设备
WO2017016247A1 (zh) 一种用于数据存储与同步的装置、可穿戴设备
CN105844868A (zh) 一种可通过蓝牙搜寻的防丢失u盘
KR102343301B1 (ko) 무선 연결을 위한 방법 및 그 전자 장치
CN101651794A (zh) 一种拷贝电视机存储器数据的方法及智能拷贝器
CN114631244A (zh) 一种基于充电线缆的数据传输方法及电子设备
WO2017049549A1 (zh) 移动终端、电源适配器及其升级方法
US10282335B2 (en) Multifunctional portable data card and data transmission method
CN113949116B (zh) 一种数据传输方法及装置
TW201543228A (zh) 遠端存取資料的方法以及本地端裝置
KR20170137511A (ko) 전자 장치 및 케이블과 그의 구동 방법
CN205826852U (zh) 一种基于蓝牙通讯的电能表数据智能读写装置
US9591278B2 (en) Projection system and projection control method
CN110956455A (zh) 一种基于区块链的虚拟币便携式操作终端的工作方法
CN103309824A (zh) Eeprom数据通用读写***
CN210038759U (zh) 一种便携式智能存储设备
CN115002941A (zh) 蓝牙电能表的通讯方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16829614

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16829614

Country of ref document: EP

Kind code of ref document: A1