CN110430560A - Method, wearable device and the storage medium of wearable device upload data - Google Patents

Method, wearable device and the storage medium of wearable device upload data Download PDF

Info

Publication number
CN110430560A
CN110430560A CN201910684466.0A CN201910684466A CN110430560A CN 110430560 A CN110430560 A CN 110430560A CN 201910684466 A CN201910684466 A CN 201910684466A CN 110430560 A CN110430560 A CN 110430560A
Authority
CN
China
Prior art keywords
wearable device
data
target data
equipment
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910684466.0A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910684466.0A priority Critical patent/CN110430560A/en
Publication of CN110430560A publication Critical patent/CN110430560A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses method, wearable device and storage mediums that a kind of wearable device uploads data, this method judges whether wearable device is connect with other equipment, the target data sent will be needed to be sent to other equipment, if other equipment successfully have received target data, target data is uploaded to server by being connected to the network by other equipment.The invention also discloses a kind of wearable device and storage mediums to have achieved the effect that upload target data using the other equipment connecting with wearable device, provide the success rate of data upload, improve the experience of user by implementing above scheme.

Description

Method, wearable device and the storage medium of wearable device upload data
Technical field
The present invention relates to wearable device technical fields, upload data more specifically to a kind of wearable device Method, wearable device and storage medium.
Background technique
Nowadays, wearable device is capable of handling more and more information, and the various data in wearable device also need It networks and is uploaded in server, when data upload failure, can only often interrupt current operation, and may lose relevant Data.In the related technology, often only data are uploaded by a kind of mode, and is often necessary to when needing to upload data It notifies user to open network, influences the experience of user.
Summary of the invention
The technical problem to be solved in the present invention is that: the effect that wearable device uploads data is improved, is asked for the technology Topic provides method, wearable device and the storage medium of a kind of wearable device upload data.
In order to solve the above technical problems, the present invention provides a kind of method that wearable device uploads data, it is described wearable Equipment upload data method the following steps are included:
Step 1: by network to server upload target data, judge the target data whether pass through network successfully on The server is reached, if the target data, which is successfully uploaded to the server not over network, thens follow the steps 2;
Step 2: judging whether the wearable device is connect with the first equipment, if the wearable device and institute State the first equipment carried out connection then follow the steps 3;
Step 3: target data is sent to first equipment by the wearable device, whether judges first equipment It is successfully received the target data;If first equipment has been successfully received the target data and has thened follow the steps 4;
Step 4: the target data received is uploaded to server by first equipment.
Optionally, the step 2 further include:
If the wearable device is not attached with first equipment, judge the target data whether at this Ground has been saved;
If the target data in local preservation, the target data is not being carried out locally saving and preset The step 1 or the step 2 are executed after time again;
If the target data locally be saved, directly execute again after a preset amount of time the step 1 or The step 2.
Optionally, the step 3 further include:
If first equipment receives the target data failure, judge whether the target data has protected locally It deposits;
If the target data in local preservation, the target data is not being carried out locally saving and preset The step 1 or the step 2 are executed after time again;
If the target data locally be saved, directly execute again after a preset amount of time the step 1 or The step 2.
Optionally, the method that the wearable device uploads data further includes step 5, and the step 5 is held in the step 4 It is executed after row;
Step 5: first equipment sends feedback information to the wearable device;
The feedback information that first equipment is sent includes:
Success sends the target data to the feedback information of the server;
Send the target data to the server failure feedback information.
Optionally, the method that the wearable device uploads data further includes step 6, and the step 6 is held in the step 5 It is executed after row;
Step 6: the wearable device judges the feedback information received, if the feedback information is the transmission The target data then judges whether the target data has been saved locally to the feedback information of the server failure;
If the target data in local preservation, the target data is not being carried out locally saving and preset The step 1 or the step 2 are executed after time again;
If the target data locally be saved, directly execute again after a preset amount of time the step 1 or The step 2.
Optionally, the described successfully by the target data of the first equipment transmission is received in the wearable device After being sent to the feedback information of the server, delete in the target data locally saved.
Optionally, the wearable device and the connection of first equipment include: that bluetooth connection, data line are connect.
Optionally, when the wearable device uploads target data to the server by network, if the target A part in data is uploaded to server not successfully, executes subsequent step for the data uploaded not successfully as new target data Suddenly.
Further, the present invention also provides a kind of wearable device, the wearable device includes:
Processor, memory, communication bus;
The communication bus connects the processor and the memory;
Computer program code is stored in the memory;
The processor calls the computer code stored in the memory to realize that above-mentioned wearable device uploads The method of data.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage medium is deposited Contain the computer program that can be run on a processor, the computer program realized when being executed by the processor it is above-mentioned can The method of wearable device upload data.
Beneficial effect
The present invention provides method, wearable device and the storage medium of a kind of wearable device upload data, for existing Wearable device upload data mode is single and needs that user is forced to carry out networking to upload the defect of data, on network After passing data failure, it is connect by judging whether to establish with other equipment, sends the data to other equipment using connection, from And data are uploaded by other equipment.
The relevant technologies there are wearable device upload data mode it is single, and need user networking could upload.Relative to Existing data uploading method, the present invention are attempted after data upload failure using the other equipment connecting with wearable device It uploads, having, which makes wearable device upload data success rate, improves and be not necessarily to the effect for forcing user to network.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram of embodiment of wearable device provided in an embodiment of the present invention;
Fig. 2 is a kind of hardware schematic of embodiment of wearable device provided in an embodiment of the present invention;
Fig. 3 is a kind of hardware schematic of embodiment of wearable device provided in an embodiment of the present invention;
Fig. 4 is a kind of hardware schematic of embodiment of wearable device provided in an embodiment of the present invention;
Fig. 5 is a kind of hardware schematic of embodiment of wearable device provided in an embodiment of the present invention;
Fig. 6 is the method basic flow chart that the wearable device that first embodiment of the invention provides uploads data;
Fig. 7 is the method flow diagram that the wearable device that second embodiment of the invention provides uploads data;
Fig. 8 is the structure chart for the wearable device that third embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
The wearable device provided in the embodiment of the present invention includes that Intelligent bracelet, smartwatch and smart phone etc. move Dynamic terminal.With the continuous development of Screen Technology, the appearance of the screens form such as flexible screen, Folding screen, smart phone etc. is mobile eventually End can also be used as wearable device.The wearable device provided in the embodiment of the present invention may include: RF (Radio Frequency, radio frequency) unit, WiFi module, audio output unit, A/V (audio/video) input unit, sensor, display The components such as unit, user input unit, interface unit, memory, processor and power supply.
It will be illustrated by taking wearable device as an example in subsequent descriptions, referring to Fig. 1, its each implementation to realize the present invention A kind of hardware structural diagram of wearable device of example, which may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, Sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, Yi Ji electricity The components such as source 111.It will be understood by those skilled in the art that wearable device structure shown in Fig. 1 is not constituted to wearable The restriction of equipment, wearable device may include perhaps combining certain components or difference than illustrating more or fewer components Component layout.
It is specifically introduced below with reference to all parts of the Fig. 1 to wearable device:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, radio frequency list Uplink information can be sent to base station by member 101, and after the downlink information that in addition can also be sent base station receives, being sent to can be worn The processor 110 for wearing equipment is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent out according to radio frequency unit 101 What the uplink information sent generated, it is also possible to actively push away to radio frequency unit 101 after the information update for detecting wearable device It send, for example, base station can penetrating to wearable device after detecting that geographical location locating for wearable device changes Frequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informing The processor 110 that message informing is sent to wearable device is handled, and it is logical that the processor 110 of wearable device can control the message Know on the display panel 1061 for being shown in wearable device;In general, radio frequency unit 101 include but is not limited to antenna, at least one Amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also pass through channel radio Letter communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, example Such as, wearable device can download file resource from server by wireless communication, for example can download and answer from server With program, after wearable device completes the downloading of a certain application program, if the corresponding file of the application program in server Resource updates, then the server can be by wireless communication to the message informing of wearable device push resource updates, to remind User is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), (Wideband Code Division Multiple Access, wideband code division are more by WCDMA Location), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time division synchronous CDMA), (Frequency Division Duplexing-Long Term Evolution, frequency division duplex are long by FDD-LTE Phase evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are drilled for a long time Into) etc..
In one embodiment, wearable device 100 can access existing communication network by insertion SIM card.
In another embodiment, wearable device 100 can be come real by the way that esim card (Embedded-SIM) is arranged Existing communication network is now accessed, by the way of esim card, the inner space of wearable device can be saved, reduce thickness.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 its And it is not belonging to must be configured into for wearable device, it can according to need within the scope of not changing the essence of the invention and save completely Slightly., wearable device 100 can realize the communication connection with other equipment or communication network separately through wifi module 102, The embodiment of the present invention is not limited thereto.
WiFi belongs to short range wireless transmission technology, and wearable device can help user to receive and dispatch by WiFi module 102 Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 WiFi module 102 is shown, but it is understood that, and it is not belonging to must be configured into for wearable device, it completely can root It is omitted within the scope of not changing the essence of the invention according to needs.
Audio output unit 103 can be in call signal reception pattern, call mode, record in wearable device 100 When under the isotypes such as mode, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide audio output relevant to the specific function that wearable device 100 executes (for example, call signal reception sound Sound, message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
In one embodiment, wearable device 100 includes one or more cameras, by opening camera, It can be realized the capture to image, realize the functions such as take pictures, record a video, the position of camera, which can according to need, to be configured.
Wearable device 100 further includes at least one sensor 105, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1061, proximity sensor can when wearable device 100 is moved in one's ear, Close display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static It (for example pedometer, is struck using (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function Hit) etc..
In one embodiment, wearable device 100 further includes proximity sensor, can by using proximity sensor Wearable device can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, wearable device 100 further includes heart rate sensor, when wearing, by close to using Person can be realized the detecting of heart rate.
In one embodiment, wearable device 100 can also include that fingerprint sensor can by reading fingerprint Realize the functions such as safety verification.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
In one embodiment, display panel 1061 uses flexible display screen, and wearable using flexible display screen sets For when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED screen Body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodiment It is not limited thereto.
In one embodiment, the display panel 1061 of wearable device can take rectangle, ring when convenient for wearing Around.In other embodiments, other modes can also be taken.
User input unit 107 can be used for receiving the number or character information of input, and generate and wearable device User setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch behaviour of user on it or nearby Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel Operation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching Two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch behaviour Make bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.This Outside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation One of bar etc. is a variety of, specifically herein without limitation.
In one embodiment, one or more buttons have can be set in the side of wearable device 100.Button can be with The various ways such as short-press, long-pressing, rotation are realized, to realize a variety of operating effects.The quantity of button can be different to be multiple It can be applied in combination between button, realize a variety of operating functions.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing wearable device as two independent components, but in certain embodiments, Touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of wearable device, specifically herein Without limitation.For example, processor 110 can be controlled when receiving the message informing of a certain application program by radio frequency unit 101 The message informing show in a certain predeterminable area of display panel 1061 by system, the predeterminable area and touch panel 1071 certain One region is corresponding, can be to corresponding to area on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071 The message informing shown in domain is controlled.
Interface unit 108 be used as at least one external device (ED) connect with wearable device 100 can by interface.Example Such as, external device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, You Xianhuo Wireless data communications port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in wearable device 100 or can For transmitting data between wearable device 100 and external device (ED).
In one embodiment, wearable device 100 interface unit 108 using contact structure, by contact with Corresponding other equipment connection, realizes the functions such as charging, connection.Use contact can be with waterproof.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connection Various pieces, by running or execute the software program and/or module that are stored in memory 109, and call and be stored in Data in memory 109 execute the various functions and processing data of wearable device, to carry out to wearable device whole Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Wearable device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 can be logically contiguous by power-supply management system and processor 110, thus charged by power-supply management system realization management, The functions such as electric discharge and power managed.
Although Fig. 1 is not shown, wearable device 100 can also be including bluetooth module etc., and details are not described herein.It is wearable to set Standby 100, by bluetooth, can connect with other terminal devices, realize communication and the interaction of information.
Fig. 2-Fig. 4 is please referred to, is the structure under a kind of a kind of embodiment of wearable device provided in an embodiment of the present invention Schematic diagram.Wearable device in the embodiment of the present invention, including flexible screen.In wearable device expansion, flexible screen is in Strip;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2 and Fig. 3 show wearable device Structural schematic diagram when screen is unfolded, Fig. 4 show structural schematic diagram when wearable device screen-bending.
Based on above-mentioned each embodiment, it can be seen that if the equipment is wrist-watch, bracelet or wearable device When, the screen of the equipment can not overlay device watchband region, can also be with the watchband region of overlay device.Here, this hair Bright to propose a kind of optional embodiment, in the present embodiment, the equipment for wrist-watch, bracelet or wearable can be set Standby, the equipment includes screen and interconnecting piece.The screen can be flexible screen, and the interconnecting piece can be watchband.It can Choosing, the screen of the equipment or the viewing area of screen can be partly or completely covered on the watchband of equipment.Such as Fig. 5 Shown, Fig. 5 is a kind of a kind of hardware schematic of embodiment of wearable device provided in an embodiment of the present invention, the equipment Screen extends to two sides, and part is covered on the watchband of equipment.In other embodiments, the screen of the equipment can also be with It is all covered on the watchband of the equipment, the embodiment of the present invention is not limited thereto.
First embodiment
Fig. 6 is the method basic flow chart that wearable device provided in this embodiment uploads data, on the wearable device Pass data method include:
S601, target data is uploaded by network, judges whether the target data passes through network and be successfully uploaded to service Device enters S602 if target data is not successfully uploaded to server.
Wearable device provided in this embodiment uploads in the method for data, and wearable device has the function of network connection Can, it is preferential that target data is carried out using the network connecting function of wearable device itself for the target data that needs upload It uploads.
Will lead to target data there are many situation and be not successfully uploaded to server, for example, wearable device currently without Open network;Current network signal is too poor to cause data that cannot normally send;When transmission network fluctuation cause data can not send Function;Server cannot respond to etc..It is understood that there is no signal or wearable device network interface card in discovery current network When failure etc. can not successfully upload the case where data by network, can not attempt by network upload data, directly into Enter S602.
Optionally, it when wearable device sends data to server, may successfully have sent in target data Partial data into server, if at this time network go wrong or the reasons such as server interrupt response result in data send lose It loses, in the case where data integrity will not be destroyed, successful part not sent in target data can be re-used as new mesh Data, and the step of using after new target data execution are marked, achievees the effect that save resource.
S602, judge whether wearable device is connect with the first equipment, if wearable device is currently connected with One equipment then enters S603.
First equipment can be it is various can be attached with wearable device, and with network data transmission function Equipment, therefore, the first equipment can be mobile phone, computer, router or other wearable devices etc..
Also there are many possibility realized for the connection type of wearable device and the first equipment, existing currently, different equipment is pre- Different data transfer modes is set.Bluetooth or Wifi can be used to be attached with mobile phone;It can using bluetooth or data line It is attached with computer;It may be coupled to router by wifi;The connection type for selecting it to be supported according to distinct device into The transmission of row data.Also, if wearable device and the first equipment is currently without being attached, but has and be attached Condition, such as bluetooth matched right, had remembered wifi password or data line is already inserted into computer but does not switch to number It according to transmission mode etc., can automatically attempt to establish connection, actively issue asking for bluetooth connection, wifi connection or data transmission connection It asks.
Optionally, if it is determined that when arriving wearable device currently without effective connect is established with the first equipment, to target Whether data, which save in local, is judged, if target data did not carry out preservation, just by target data at this Ground carries out primary temporary preservation, the mode that target data saves herein with no restrictions, the modes such as temporary file, caching Row, does not influence the implementation of the present invention program.After successfully saving target data, wearable device starts timing, works as arrival The time of setting and then primary trial upload target data;It should be understood that if target data it is local It was saved, and was not repeated to save, direct calendar scheduling waits for upload operation next time;The time of setting is also flexibility and changeability , it can be adjusted according to different environment, scene and user demand to adapt to different demands.
When the time for reaching setting, when again attempting to upload target data, S601 can be executed, is tasted again by network Examination uploads previously stored target data, and judges whether target data is successfully uploaded to server, if still not successful Continue to execute S602 and subsequent each step according to step;S601 can also be skipped in some cases, directly execution S602 The step of, it detects whether to establish with the first equipment again and connect, such as wearable device is in the very poor environment of network environment When lower or wearable device itself network interface card breaks down, skips S601 and directly carries out S602 and can be improved efficiency instead saving Energy consumption.Above-mentioned two step can certainly be executed in conjunction with two ways mixing, S601, certain times are executed after certain times After execute S602, or when network environment changes, change the strategy of execution, it is more in the preferable scene of network environment It is secondary to be executed since S601, and reduce the interval time of upload operation twice;When network environment difference, more repeatedly held since S602 Row, and increase the interval time of upload operation twice;Reasonable mixing implementation strategy is it is also possible that efficiency and success rate reach One state more balanced.
Target data is sent to the first equipment by S603, wearable device, judges whether the first equipment is successfully received mesh Data are marked, enter S604 if the first equipment is successfully received target data.
Wearable device is sent target data in the first equipment, Ke Yili by the currently connection with the first equipment Solution, data transmission between terminal the result is that can timely obtain, wearable device can to target data whether The result for being successfully sent to the first equipment carries out an accurately judgement.
Optionally, also right when target data successfully could not be sent to the first equipment from wearable device by connection Whether target data is judged in locally preservation, likewise, if target data did not carry out preservation, by it in local progress It is primary to save, start timing after saving successfully;If target data after being saved operation accordingly, directly beginning timing.It arrives Up to after the time of setting, the step of execution S601 or S602, attempts to upload the target data preserved again again.
The target data received is uploaded to server by S604, the first equipment.
In this step, wearable device cannot directly learn the first equipment upload target data as a result, therefore, the One equipment can send feedback information to wearable device, and feedback information may include:
Success sends target data to the feedback information of server;
Feedback information of the transmission target data to server failure.
The feedback information can be transmitted by established connection between wearable device and the first equipment.It can wear After wearing the information that equipment receives feedback, operation below can also be performed, feedback information is responded:
Judge the feedback information received, if feedback information is the feedback information for sending target data to server failure, It is then identical with aforesaid way in the present embodiment, judge whether target data has been saved locally, and timing, in the predetermined time The step of executing S601 or S602 again afterwards.
If the feedback information received is the feedback information for successfully sending target data to server, this ground is temporary The target data of Shi Baocun is deleted.
It in another embodiment, can also be straight after target data is successfully sent to the first equipment by wearable device It connects and is considered as the uploading data of the task and terminates, the target data that deleting may save in local can be worn and in such embodiment It wears equipment and no longer pays close attention to whether the first equipment is successfully transmitted target data to server, the subsequent operation for uploading data is handed to First equipment executes.If the first equipment to server send data failure, can also by a similar method, by target data into Row saves, and after a preset amount of time, again attempts to send data to server, until the data are successfully uploaded to server, Or receive the instruction for cancelling the upload data task.When the first equipment successfully sends target data into server, pass through company It connects to wearable device and sends the message that a data is successfully transmitted, and delete the target data locally saved.
There are also another specific embodiment, target data is passed on the first device to server failure, and send phase Answer feedback information to wearable device after, the first equipment can also execute similar operation, target data is saved, and It again attempts to upload target data after a preset amount of time;And at this point, wearable device only needs constantly to repeat to clothes Device of being engaged in uploads the operation of data, and no longer executes above-mentioned steps, until one in the first equipment or wearable device is by target Data are sent to server success.Any of first equipment or wearable device successfully upload target data to server it Afterwards, the message for successfully uploading data is sent by connecting to other side, failing uploads a side of data and receiving into After function uploads the message of data, deletion is stored in local target data, and stops uploading the operation of data.It is such carrying out When embodiment, the first equipment and wearable device can execute the operation of upload repeatedly to same target data together, be promoted The success rate that target data uploads.
Present embodiments provide a kind of method that wearable device uploads data, the method which uploads data By judging whether to be connect with the first equipment when data upload failure, if connecting with the first equipment, connection is utilized The first equipment is sent the data to, upload by the first equipment the operation of data.Data are uploaded by the first equipment, And the data for uploading failure can temporarily be saved, and upload again automatically, to solve the side for uploading data in the related technology Formula is single, and needs that user is forced to network to upload the defect of data, even if the data realized in wearable device can not pass through Own net is uploaded, and the function of data can be also uploaded using other equipment.
Second embodiment
Fig. 7 is a kind of flow chart for the method that the wearable device that second embodiment of the invention provides uploads data.
In the present embodiment, on the basis of first embodiment, the present invention is made with the process of more specific upload data Further instruction.By taking a kind of wrist machine as an example, the flow chart shown in Fig. 7 is referred to:
S701, wrist machine upload data by network module, and data upload failure.
In the present embodiment, either data all send failure or data portion sends failure, can be carried out following The step of, it, can be only using the data sent not successfully as new number of targets when a part part in data sends failure According to the step of entering below.
S702, determine with the mobile phone of user foundation have bluetooth connection, user mobile phone is sent by bluetooth by data.
In the present embodiment, wrist machine and the mobile phone of user carried out the pairing of bluetooth, and wrist machine usually can and mobile phone It is used cooperatively, judges whether wrist machine with the mobile phone of user has carried out bluetooth connection, alternatively, once being matched detecting with wrist machine When the Bluetooth of mobile phone of user is opened but is not connected, the request that can also be initiated the connection from the mobile phone of trend user.
It is understood that data can be protected if wrist machine does not have bluetooth connection relationship with the foundation of the mobile phone of user There are in wrist machine, the operation for attempting to upload data is executed again after a preset amount of time.
In the present embodiment, wrist machine attempt by the operation that data upload include it is following any one: wrist machine is self by network Pass data;Wrist machine attempts the mobile phone that data are sent to user by bluetooth.
Wrist machine is transmitted data on the mobile phone of user after determining bluetooth connection and having built up by bluetooth, this When user mobile phone successfully obtain and need the target data that uploads.
Likewise, also carrying out saving data and repeating the behaviour of step if the mobile phone of user does not successfully obtain target data Make, detailed process is identical with the above process, and details are not described herein.
S703, user mobile phone upload data failure, send feedback information and give wrist machine.
No matter whether user mobile phone successfully uploads data to server, can send feedback information and give wrist machine.This feedback Information can be transmitted according to the bluetooth between mobile phone and wrist machine.
S704, wrist machine receive the feedback information for uploading data failure, and data are saved locally.
After wrist machine receives feedback information, detection finds that the data were locally carrying out preservation not yet, therefore by the data It is saved in a manner of temporary file locally.
S705, wrist machine timing again attempt to after 30S upload data until data upload successfully.
In the present embodiment, data are uploaded successfully there are many situation, such as wrist machine successfully uploads data self by network; Wrist machine transmits data to mobile phone, and mobile phone successfully uploads and return the feedback information etc. successfully uploaded, be all data upload at The case where function.
30S in this implementation is an exemplary time, and the specific time can arbitrarily adjust to meet different scenes And if demand can extend this time all do not enter into a preferable network environment for a long time, if discovery network Environment is gradually improving, this time is shortened.In the wrist machine of the present embodiment, is also provided for user and issue data uploading instructions Method, after user issues data uploading instructions manually, wrist machine just again attempt to upload data.
S706, the data temporarily saved in wrist machine are deleted.
Wrist machine obtains after primary data uploads successfully, and locally associated temporary file is deleted.
The present embodiment is sent to mobile phone by bluetooth after wrist machine uploads data failure, by data, and uploads number in mobile phone Data and carry out timing according to saving after failure, reach the operation for again attempting to upload data after the scheduled time, it is final successfully Data are uploaded, so that user is when using wrist machine, without the enforceable operation networked, equipment also can automatically be found Effective approach trial uploads data.
3rd embodiment
The present embodiment additionally provides a kind of wearable device, it is shown in Figure 8 including processor 81, memory 82, Communication bus 83, in which:
Communication bus 83 is for realizing the connection communication between processor 81 and memory 82;
Computer code is stored in memory 82;
Processor 81 calls the computer code stored in memory 82 with the wearable device in above-mentioned first embodiment Upload each step of the method for data.
The present embodiment additionally provides a kind of computer readable storage medium, computer-readable recording medium storage have one or Multiple programs, one or more programs can be executed by one or more processor, to realize above-mentioned first embodiment or Wearable device uploads each step of the method for data in two embodiments.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of method that wearable device uploads data, which is characterized in that the wearable device uploads the method packet of data Include following steps:
Step 1: target data being uploaded to server by network, judges whether the target data is successfully uploaded to by network The server, if the target data, which is successfully uploaded to the server not over network, thens follow the steps 2;
Step 2: judging whether the wearable device is connect with the first equipment, if the wearable device and described the One equipment has carried out connection and has thened follow the steps 3;
Step 3: target data is sent to first equipment by the wearable device, judges whether first equipment succeeds Receive the target data;If first equipment has been successfully received the target data and has thened follow the steps 4;
Step 4: the target data received is uploaded to server by first equipment.
2. the method that wearable device as described in claim 1 uploads data, which is characterized in that the step 2 further include:
If the wearable device is not attached with first equipment, judge the target data whether it is local It is saved;
If the target data in local preservation, the target data is not being carried out locally saving and in the preset time Execute the step 1 or the step 2 again afterwards;
If the target data has been saved locally, the step 1 or described is directly executed again after a preset amount of time Step 2.
3. the method that wearable device as described in claim 1 uploads data, which is characterized in that the step 3 further include:
If first equipment receives the target data failure, judge whether the target data has been saved locally;
If the target data in local preservation, the target data is not being carried out locally saving and in the preset time Execute the step 1 or the step 2 again afterwards;
If the target data has been saved locally, the step 1 or described is directly executed again after a preset amount of time Step 2.
4. the method that wearable device as described in claim 1 uploads data, which is characterized in that the wearable device uploads The method of data further includes step 5, and the step 5 executes after the step 4 execution;
Step 5: first equipment sends feedback information to the wearable device;
The feedback information that first equipment is sent includes:
Success sends the target data to the feedback information of the server;
Send the target data to the server failure feedback information.
5. the method that wearable device as claimed in claim 4 uploads data, which is characterized in that the wearable device uploads The method of data further includes step 6, and the step 6 executes after the step 5 execution;
Step 6: the wearable device judges the feedback information received, if the feedback information is described in the transmission Target data then judges whether the target data has been saved locally to the feedback information of the server failure;
If the target data in local preservation, the target data is not being carried out locally saving and in the preset time Execute the step 1 or the step 2 again afterwards;
If the target data has been saved locally, the step 1 or described is directly executed again after a preset amount of time Step 2.
6. the method that wearable device as claimed in claim 5 uploads data, which is characterized in that connect in the wearable device After receiving the feedback information for successfully sending the target data to the server that first equipment is sent, delete In the target data locally saved.
7. the method that wearable device as claimed in any one of claims 1 to 6 uploads data, which is characterized in that described wearable Equipment and the connection of first equipment include: that bluetooth connection, data line are connect.
8. the method that wearable device as claimed in any one of claims 1 to 6 uploads data, which is characterized in that worn described Wear equipment by network to the server upload target data when, if in the target data a part be uploaded to not successfully The data uploaded not successfully are executed subsequent step by server.
9. a kind of wearable device, which is characterized in that the wearable device includes:
Processor, memory, communication bus;
The communication bus connects the processor and the memory;
Computer program code is stored in the memory;
The processor calls the computer code stored in the memory can to realize that claim 1-8 is described in any item The method of wearable device upload data.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has and can handle The computer program run on device is realized when the computer program is executed by the processor such as any one of claim 1-8 The method that the wearable device uploads data.
CN201910684466.0A 2019-07-26 2019-07-26 Method, wearable device and the storage medium of wearable device upload data Pending CN110430560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910684466.0A CN110430560A (en) 2019-07-26 2019-07-26 Method, wearable device and the storage medium of wearable device upload data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910684466.0A CN110430560A (en) 2019-07-26 2019-07-26 Method, wearable device and the storage medium of wearable device upload data

Publications (1)

Publication Number Publication Date
CN110430560A true CN110430560A (en) 2019-11-08

Family

ID=68412821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910684466.0A Pending CN110430560A (en) 2019-07-26 2019-07-26 Method, wearable device and the storage medium of wearable device upload data

Country Status (1)

Country Link
CN (1) CN110430560A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866826A (en) * 2019-12-31 2020-10-30 北京骑胜科技有限公司 Data uploading method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302808A (en) * 2016-09-14 2017-01-04 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
CN106788535A (en) * 2016-12-22 2017-05-31 歌尔科技有限公司 A kind of movement monitoring method based on wearable device
CN107579896A (en) * 2017-09-11 2018-01-12 深圳市盛路物联通讯技术有限公司 Internet of things data transmission method and storage medium based on loop network
US20180316376A1 (en) * 2015-10-16 2018-11-01 Samsung Electronics Co., Ltd. Communication method and apparatus for wearable device in wireless communication system
CN109089325A (en) * 2018-08-07 2018-12-25 广东工业大学 A kind of method and system of wearable device data transmission
CN109819430A (en) * 2019-03-13 2019-05-28 上海救要救信息科技有限公司 Method and apparatus for being communicated for wearable rescue aid with network rescue aid

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180316376A1 (en) * 2015-10-16 2018-11-01 Samsung Electronics Co., Ltd. Communication method and apparatus for wearable device in wireless communication system
CN106302808A (en) * 2016-09-14 2017-01-04 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
CN106788535A (en) * 2016-12-22 2017-05-31 歌尔科技有限公司 A kind of movement monitoring method based on wearable device
CN107579896A (en) * 2017-09-11 2018-01-12 深圳市盛路物联通讯技术有限公司 Internet of things data transmission method and storage medium based on loop network
CN109089325A (en) * 2018-08-07 2018-12-25 广东工业大学 A kind of method and system of wearable device data transmission
CN109819430A (en) * 2019-03-13 2019-05-28 上海救要救信息科技有限公司 Method and apparatus for being communicated for wearable rescue aid with network rescue aid

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866826A (en) * 2019-12-31 2020-10-30 北京骑胜科技有限公司 Data uploading method and related device

Similar Documents

Publication Publication Date Title
CN110087292A (en) Intelligent wearable device, energy-saving control method and computer readable storage medium
CN109946986A (en) Household electric appliance control method, wearable device and computer readable storage medium
CN110262849A (en) Using starting method, wearable device and computer readable storage medium
CN110109725A (en) A kind of interface color method of adjustment and wearable device
CN110083220A (en) A kind of power-saving processing method and wearable device
CN110234138A (en) Communicate method for handover control, communication equipment, system and storage medium
CN110069132A (en) Application control method, intelligent wearable device and computer readable storage medium
CN109819506A (en) Method for intelligent connection, wearable device and computer readable storage medium
CN110099176A (en) Breath screen display methods, wearable device and computer readable storage medium
CN109976612A (en) Application function implementation method, wearable device, mobile phone and computer readable storage medium
CN110175066A (en) Wearable device, interaction control method and computer readable storage medium
CN110442295A (en) Wearable device control method, wearable device and computer readable storage medium
CN110139270A (en) Wearable device matching method, wearable device and computer readable storage medium
CN110198534A (en) Communicate transparent transmission control method, communication equipment, system and storage medium
CN110134312A (en) Control method, wearable device and computer readable storage medium
CN109933400A (en) Display interface layout method, wearable device and computer readable storage medium
CN110175008A (en) Method, wearable device and the computer readable storage medium of operating terminal
CN110083289A (en) A kind of button display methods, wearable device and computer readable storage medium
CN110167113A (en) A kind of apparatus control method, wearable device and computer readable storage medium
CN110262748A (en) Wearable device control method, wearable device and computer readable storage medium
CN110083205A (en) Page switching method, wearable device and computer readable storage medium
CN110162161A (en) Control method, wearable device and the computer readable storage medium of target application
CN110187764A (en) A kind of barrage display methods, wearable device and storage medium
CN110532050A (en) Exercise data method for refreshing, wearable device and computer readable storage medium
CN110198377A (en) A kind of double screen terminal control method, double screen terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191108