CN109799715A - Data receiver method, device, terminal device - Google Patents

Data receiver method, device, terminal device Download PDF

Info

Publication number
CN109799715A
CN109799715A CN201811535111.7A CN201811535111A CN109799715A CN 109799715 A CN109799715 A CN 109799715A CN 201811535111 A CN201811535111 A CN 201811535111A CN 109799715 A CN109799715 A CN 109799715A
Authority
CN
China
Prior art keywords
timing
sensor
data
wakeup time
need
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811535111.7A
Other languages
Chinese (zh)
Other versions
CN109799715B (en
Inventor
薛小飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yingke Photoelectric Co Ltd
Original Assignee
Xiamen Yingke Photoelectric 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 Xiamen Yingke Photoelectric Co Ltd filed Critical Xiamen Yingke Photoelectric Co Ltd
Priority to CN201811535111.7A priority Critical patent/CN109799715B/en
Publication of CN109799715A publication Critical patent/CN109799715A/en
Application granted granted Critical
Publication of CN109799715B publication Critical patent/CN109799715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The present invention is suitable for sensor technical field, provide data receiver method, device, terminal device, it include: to obtain the wakeup time for waking up the sensor device next time, the wakeup time is the minimum value of the timing of the sensor of the sensor device, and the timing that at least there are two kinds of sensors is different;After wakeup time arrival, the sensor that need to upload data is filtered out according to the timing of different sensors and the wakeup time;Update the timing of the different sensors;Receive the data that the sensor that need to upload data uploads.By the above method, the power consumption of sensor device can reduce, extend the service life of sensor device.

Description

Data receiver method, device, terminal device
Technical field
The invention belongs to sensor technical field more particularly to a kind of data receiver method, device, terminal device and calculating Machine readable storage medium storing program for executing.
Background technique
With the development of science and technology, smart home system is gradually come into people's lives, sensor device is intelligence The indispensable a part of house system.Currently, the generally all integrated multiple sensors of sensor device, are such as integrated with light sensing Device, temperature sensor, humidity sensor, sensor often carry out extra revival, detection data, the process for uploading data, lead It causes sensor device power consumption larger, greatly reduces sensor device service life.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of data receiver method, device, terminal devices and computer-readable Storage medium carries out unnecessary wake-up to sensor device, causes to sense to solve to receive in data procedures in the prior art The problem of device equipment power dissipation is larger, reduces sensor device service life.
The first aspect of the embodiment of the present invention provides a kind of data receiver method, and the data receiver method is applied to pass Sensor equipment, the sensor device include at least two sensors, comprising:
The wakeup time for waking up the sensor device next time is obtained, the wakeup time is the sensor device The minimum value of the timing of sensor, the timing that at least there are two kinds of sensors are different;
After wakeup time arrival, being filtered out according to the timing of different sensors and the wakeup time needs to upload The sensor of data;
Update the timing of the different sensors;
Receive the data that the sensor that need to upload data uploads.
The second aspect of the embodiment of the present invention provides a kind of data sink, and the data sink is applied to pass Sensor equipment, the sensor device include at least two sensors, comprising:
Wakeup time acquiring unit, for obtaining the wakeup time for waking up the sensor device next time, the wake-up Time is the minimum value of the timing of the sensor of the sensor device, at least not in the presence of the timing of two kinds of sensors Together;
Sensor screening unit, for after wakeup time arrival, according to the timing of different sensors and described Wakeup time filters out the sensor that need to upload data;
Timing updating unit, for updating the timing of the different sensors;
Data receipt unit, the data uploaded for receiving the sensor that need to upload data.
The third aspect of the embodiment of the present invention provides a kind of terminal device, comprising: memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program It realizes such as the step of the data receiver.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the step such as the data receiver method is realized when the computer program is executed by processor Suddenly.
Existing beneficial effect is the embodiment of the present application compared with prior art: waking up the sensing next time by obtaining The wakeup time of device equipment, the wakeup time are the minimum value of the timing of the sensor of the sensor device, at least It is different that there are the timings of 2 kinds of sensors, after wakeup time arrival, according to the timing of different sensors and described Wakeup time filters out the sensor that need to upload data, updates the timing of the different sensors, then receives on the need Pass the data that the sensor of data uploads.It is different due at least there is the timing of 2 kinds of sensors, and according to different sensors Timing and the wakeup time filter out the sensor that need to upload data, it is thereby achieved that when passing through variable timing Between wake up sensor device to receive data, avoid at every fixed time section wake up sensor device, improve wake up it is each The flexibility of sensor reduces the power consumption of sensor device, extends the service life of sensor device.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is a kind of flow diagram of data receiver method provided by the embodiments of the present application;
Fig. 2 is a kind of structural schematic diagram of data sink provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, terminal device described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other Portable device.It is to be further understood that in certain embodiments, above equipment is not portable communication device, but is had The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the terminal device including display and touch sensitive surface is described.However, should manage Solution, terminal device may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects Jaws equipment.
Terminal device supports various application programs, such as one of the following or multiple: drawing application program, demonstration application Program, word-processing application, website creation application program, disk imprinting application program, spreadsheet applications, game are answered With program, telephony application, videoconference application, email application, instant messaging applications, forging Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer With program, digital music player application and/or video frequency player application program.
At least one of such as touch sensitive surface can be used in the various application programs that can be executed on the terminal device Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example, Touch sensitive surface) it can support the various application programs with user interface intuitive and transparent for a user.
Embodiment one:
Fig. 1 shows a kind of flow diagram of data receiver method provided by the embodiments of the present application, and details are as follows:
Data receiver method provided by the embodiments of the present application is applied to sensor device, and the sensor device includes at least Two sensors.
Step S11, obtains the wakeup time for waking up the sensor device next time, and the wakeup time is the sensing The minimum value of the timing of the sensor of device equipment, the timing that at least there are two kinds of sensors are different.
For example, obtaining above three if the sensor device includes temperature sensor, humidity sensor and optical sensor The timing of kind sensor, the timing that at least there are 2 kinds of sensors is different, temperature sensor, humidity sensor and light The timing of sensor is respectively 4 seconds, 3 seconds, 2 seconds.Calculate the timing of the sensor of the sensor device most Small value is 2 seconds, then is determined as wakeup time 2 seconds.
Step S12 is screened after wakeup time arrival according to the timing of different sensors and the wakeup time The sensor of data need to be uploaded out.
Optionally, step S12 is specifically included:
After wakeup time arrival, the sensor device is waken up by a timer, according to determining for different sensors When the time and the wakeup time filter out the sensor that need to upload data.
The sensor device is waken up by timer, does not need in addition to increase clocking capability in sensor device, reduce Sensor device energy consumption improves the utilization rate of resource.
Optionally, step S12 is specifically included:
After wakeup time arrival, judges that the timing of different sensors whether there is and determine equal to the wakeup time When the time if the timing of the different sensors has the timing equal to the wakeup time will be equal to described call out The corresponding sensor of timing of awake time is determined as that the sensor of data need to be uploaded.
For example, it is assumed that wakeup time is 2 seconds, the timing of temperature sensor is 4 seconds, the timing of humidity sensor It is 3 seconds, the timing of optical sensor is 2 seconds, then after have passed through 2 seconds, judges timing, the humidity of temperature sensor respectively The timing of sensor, the timing of optical sensor whether there is the timing equal to the wakeup time, by sentencing The disconnected timing for obtaining temperature sensor is not equal to the wakeup time;The timing of humidity sensor is called out not equal to described It wakes up the time;And the timing of optical sensor is equal to the wakeup time, so optical sensor is determined as to upload data Sensor.
Step S13 updates the timing of the different sensors.
Optionally, step S13 is specifically included:
The timing of the sensor that data need to be uploaded is updated to default timing;It is updated according to following manner Not equal to the timing of the corresponding sensor of timing of the wakeup time: calculating separately described not equal to the wake-up The timing not equal to the wakeup time is updated to institute by the difference of the timing of time and the wakeup time State difference.
It is specific as follows for the update of the timing of the sensor of data need to be uploaded: when the biography that need to upload data When sensor is optical sensor, the timing of optical sensor is updated to default timing, optical sensor it is presetting constantly Between can for setting first timing, or other timings, and the others timing be arranged First timing difference, with specific reference to time situation determine.For example, it is assumed that when first timing of optical sensor setting Between be 2 seconds, then after reported data, the timing of the optical sensor is updated to other timings, is such as updated to 3 Second.
It is specific as follows for being not required to upload the update of the timing of the sensor of data: when being not equal to the wake-up Between timing corresponding sensor when being temperature sensor and humidity sensor, calculate the timing of temperature sensor with The difference of the wakeup time show that the difference is 2 seconds, the timing of temperature sensor is updated to 2 seconds;Calculate humidity The difference of the timing of sensor and the wakeup time show that the difference is 1 second, by the timing of humidity sensor It is updated to 1 second.
Step S14 receives the data that the sensor that need to upload data uploads.
Optionally, after executing the step S14, comprising:
The data are uploaded to server.By the way that data are uploaded to server, for example local server is uploaded, and/ Or, uploading Cloud Server etc., to be conducive to integral data, and accurate data analysis is carried out, make smart home system It runs more efficient.
Optionally, after executing the step S14, step S11 is executed.In this way, being just able to achieve the biography of sensor device The variable timing time of sensor improves the flexibility that each sensor uploads data, reduces the power consumption of sensor device, prolong The service life of sensor device is grown.
In the embodiment of the present invention, the wakeup time of the sensor device is waken up next time by obtaining, when the wake-up Between be the sensor device sensor timing minimum value, the timing that at least there are 2 kinds of sensors is different, After wakeup time arrival, the biography that need to upload data is filtered out according to the timing of different sensors and the wakeup time Sensor, updates the timing of the different sensors, then receives the data that the sensor that need to upload data uploads.Due to The timing that at least there are 2 kinds of sensors is different, and is sieved according to the timing of different sensors and the wakeup time The sensor that need to upload data is selected, it is thereby achieved that waking up sensor device by the variable timing time to receive data, is kept away Exempt from section at every fixed time and wake up sensor device, improves the flexibility for waking up each sensor, reduce sensor and set Standby power consumption extends the service life of sensor device.
Embodiment two:
Corresponding with above-described embodiment one, Fig. 2 shows a kind of structures of data sink provided by the embodiments of the present application Schematic diagram illustrates only part relevant to the embodiment of the present application for ease of description.
The data receiver square law device include: wakeup time acquiring unit 21, sensor screening unit 22, timing more New unit 23, data receipt unit 24.Wherein:
Wakeup time acquiring unit 21, it is described to call out for obtaining the wakeup time for waking up the sensor device next time The time wake up for the minimum value of the timing of the sensor of the sensor device, at least there is the timing of two kinds of sensors It is different.
Sensor screening unit 22 is used for after wakeup time arrival, according to the timing of different sensors and institute It states wakeup time and filters out the sensor that need to upload data.
Optionally, the sensor screening unit 22 is specifically used for:
After wakeup time arrival, the sensor device is waken up by a timer, according to determining for different sensors When the time and the wakeup time filter out the sensor that need to upload data.
The sensor device is waken up by timer, does not need in addition to increase clocking capability in sensor device, reduce Sensor device energy consumption improves the utilization rate of resource.
Optionally, the sensor screening unit 22 is specifically used for:
After wakeup time arrival, judges that the timing of different sensors whether there is and determine equal to the wakeup time When the time if the timing of the different sensors has the timing equal to the wakeup time will be equal to described call out The corresponding sensor of timing of awake time is determined as that the sensor of data need to be uploaded.
Timing updating unit 23, for updating the timing of the different sensors.
Optionally, the timing updating unit 23 is specifically used for:
The timing of the sensor that data need to be uploaded is updated to default timing;It is updated according to following manner Not equal to the timing of the corresponding sensor of timing of the wakeup time: calculating separately described not equal to the wake-up The timing not equal to the wakeup time is updated to institute by the difference of the timing of time and the wakeup time State difference.
Data receipt unit 24, the data uploaded for receiving the sensor that need to upload data.
Optionally, data receiver square law device further include: data uploading unit, cycling element.
Data uploading unit, for the data to be uploaded to server.By the way that data are uploaded to server, such as on Local server is passed, and/or, Cloud Server etc. is uploaded, to be conducive to integral data, and carries out accurate data analysis, Keep the operation of smart home system more efficient.
In some embodiments, after the data that 24 receiving sensor of data receipt unit uploads, when above-mentioned wake-up Between the task again of acquiring unit 21.Pass through wakeup time acquiring unit 21, sensor screening unit 22, timing updating unit 23 and data receipt unit 24 cycle operation, realize the variable timing time of the sensor of sensor device, improve each A sensor uploads the flexibility of data, reduces the power consumption of sensor device, extends the service life of sensor device.
In the embodiment of the present invention, the wakeup time of the sensor device is waken up next time by obtaining, when the wake-up Between be the sensor device sensor timing minimum value, the timing that at least there are 2 kinds of sensors is different, After wakeup time arrival, the biography that need to upload data is filtered out according to the timing of different sensors and the wakeup time Sensor, updates the timing of the different sensors, then receives the data that the sensor that need to upload data uploads.Due to The timing that at least there are 2 kinds of sensors is different, and is sieved according to the timing of different sensors and the wakeup time The sensor that need to upload data is selected, it is thereby achieved that waking up sensor device by the variable timing time to receive data, is kept away Exempt from section at every fixed time and wake up sensor device, improves the flexibility for waking up each sensor, reduce sensor and set Standby power consumption extends the service life of sensor device.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Embodiment three:
Fig. 3 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 3, the terminal of the embodiment is set Standby 3 include: processor 30, memory 31 and are stored in the meter that can be run in the memory 31 and on the processor 30 Calculation machine program 32.The processor 30 is realized when executing the computer program 32 in above-mentioned each data uploading method embodiment The step of, such as step S11 to S14 shown in FIG. 1.Alternatively, realization when the processor 30 executes the computer program 32 The function of each unit in above-mentioned each Installation practice, such as the function of unit 21 to 24 shown in Fig. 2.
Illustratively, the computer program 32 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 31, and are executed by the processor 30, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 32 in the terminal device 3 is described.For example, the computer program 32 can be divided It is cut into wakeup time acquiring unit, sensor screening unit, timing updating unit, data receipt unit, each unit is specific Function is as follows:
Wakeup time acquiring unit, for obtaining the wakeup time for waking up the sensor device next time, the wake-up Time is the minimum value of the timing of the sensor of the sensor device, at least not in the presence of the timing of two kinds of sensors Together;
Sensor screening unit, for after wakeup time arrival, according to the timing of different sensors and described Wakeup time filters out the sensor that need to upload data;
Timing updating unit, for updating the timing of the different sensors;
Data receipt unit, the data uploaded for receiving the sensor that need to upload data.
The terminal device 3 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 30, memory 31.It will be understood by those skilled in the art that Fig. 3 The only example of terminal device 3 does not constitute the restriction to terminal device 3, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 31 can be the internal storage unit of the terminal device 3, such as the hard disk or interior of terminal device 3 It deposits.The memory 31 is also possible to the External memory equipment of the terminal device 3, such as be equipped on the terminal device 3 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 31 can also both include the storage inside list of the terminal device 3 Member also includes External memory equipment.The memory 31 is for storing needed for the computer program and the terminal device Other programs and data.The memory 31 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
The functional units in various embodiments of the present invention may be integrated into one processing unit, is also possible to each Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used To use formal implementation of hardware, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of data receiver method, which is characterized in that the data receiver method is applied to sensor device, the sensor Equipment includes at least two sensors, and the data receiver method includes:
The wakeup time for waking up the sensor device next time is obtained, the wakeup time is the sensing of the sensor device The minimum value of the timing of device, the timing that at least there are two kinds of sensors are different;
After wakeup time arrival, data need to be uploaded by being filtered out according to the timing of different sensors and the wakeup time Sensor;
Update the timing of the different sensors;
Receive the data that the sensor that need to upload data uploads.
2. data receiver method as described in claim 1, which is characterized in that it is described after wakeup time arrival, according to difference The timing of sensor and the wakeup time filter out and need to upload the sensors of data and include:
After wakeup time arrival, when judging that the timing of different sensors whether there is the timing equal to the wakeup time Between;
If the timing of the different sensors has the timing equal to the wakeup time, when will be equal to the wake-up Between the corresponding sensor of timing be determined as that the sensor of data need to be uploaded.
3. data receiver method as claimed in claim 2, which is characterized in that when the timing for updating the different sensors Between, comprising:
The timing of the sensor that data need to be uploaded is updated to default timing;
The timing of the corresponding sensor of timing not equal to the wakeup time is updated according to following manner: being counted respectively The difference of the timing not equal to the wakeup time and the wakeup time is calculated, when described will be not equal to the wake-up Between timing be updated to the difference.
4. data receiver method as described in claim 1, which is characterized in that it is described after wakeup time arrival, according to difference The timing of sensor and the wakeup time filter out the sensor that need to upload data, comprising:
After wakeup time arrival, the sensor device is waken up by a timer;
The sensor that need to upload data is filtered out according to the timing of different sensors and the wakeup time.
5. data receiver method as described in claim 1, which is characterized in that described need to upload data executing described receive After the step of data that sensor uploads, comprising:
By the data receiver to server.
6. a kind of data sink, which is characterized in that the data sink is applied to sensor device, the sensor Equipment includes at least two sensors, comprising:
Wakeup time acquiring unit, for obtaining the wakeup time for waking up the sensor device next time, the wakeup time For the minimum value of the timing of the sensor of the sensor device, the timing that at least there are two kinds of sensors is different;
Sensor screening unit is used for after wakeup time arrival, according to the timing of different sensors and the wake-up Time filters out the sensor that need to upload data;
Timing updating unit, for updating the timing of the different sensors;
Data receipt unit, the data uploaded for receiving the sensor that need to upload data.
7. data sink as claimed in claim 6, which is characterized in that the sensor screening unit includes:
Judgment sub-unit, for after wakeup time arrival, judging that the timing of different sensors whether there is equal to described The timing of wakeup time;
Sensor determines subelement, if the timing for the different sensors has the timing equal to the wakeup time Time is determined as the corresponding sensor of timing for being equal to the wakeup time that need to upload the sensor of data.
8. data sink as claimed in claim 7, which is characterized in that the timing updating unit includes:
Timing updates the first subelement, presetting for the timing of the sensor that need to upload data to be updated to When the time;
Timing updates the second subelement, for updating the timing pair for being not equal to the wakeup time according to following manner The timing for the sensor answered: the timing not equal to the wakeup time and the wakeup time are calculated separately The timing not equal to the wakeup time is updated to the difference by difference.
9. a kind of data receiving terminal equipment, including memory, processor and storage are in the memory and can be described The computer program run on processor, which is characterized in that the processor realizes such as right when executing the computer program It is required that the step of any one of 1 to 5 the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201811535111.7A 2018-12-14 2018-12-14 Data receiving method, device and terminal equipment Active CN109799715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811535111.7A CN109799715B (en) 2018-12-14 2018-12-14 Data receiving method, device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811535111.7A CN109799715B (en) 2018-12-14 2018-12-14 Data receiving method, device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109799715A true CN109799715A (en) 2019-05-24
CN109799715B CN109799715B (en) 2022-05-17

Family

ID=66556773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811535111.7A Active CN109799715B (en) 2018-12-14 2018-12-14 Data receiving method, device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109799715B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615726A (en) * 2020-12-31 2021-04-06 广州技象科技有限公司 Low-power-consumption processing method and device with variable wake-up time

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060220815A1 (en) * 2005-03-18 2006-10-05 Thomas Michael A Wireless network time stamp system and method
CN101466161A (en) * 2009-01-08 2009-06-24 西安电子科技大学 Data collection method suitable for multi-hop wireless sensor network
CN102625427A (en) * 2012-03-14 2012-08-01 东南大学 Wireless sensor network data acquisition method based on asynchronous awakening scheduling
CN102740427A (en) * 2012-06-15 2012-10-17 无锡必创传感科技有限公司 Method for awakening wireless sensor, wireless sensor and wireless sensor system
US20120320809A1 (en) * 2009-11-26 2012-12-20 Sturm Roland Data transmission device and a method for activating a data transmission
CN107066327A (en) * 2017-04-24 2017-08-18 努比亚技术有限公司 Timed task processing method, mobile terminal and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060220815A1 (en) * 2005-03-18 2006-10-05 Thomas Michael A Wireless network time stamp system and method
CN101466161A (en) * 2009-01-08 2009-06-24 西安电子科技大学 Data collection method suitable for multi-hop wireless sensor network
US20120320809A1 (en) * 2009-11-26 2012-12-20 Sturm Roland Data transmission device and a method for activating a data transmission
CN102625427A (en) * 2012-03-14 2012-08-01 东南大学 Wireless sensor network data acquisition method based on asynchronous awakening scheduling
CN102740427A (en) * 2012-06-15 2012-10-17 无锡必创传感科技有限公司 Method for awakening wireless sensor, wireless sensor and wireless sensor system
CN107066327A (en) * 2017-04-24 2017-08-18 努比亚技术有限公司 Timed task processing method, mobile terminal and computer-readable recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615726A (en) * 2020-12-31 2021-04-06 广州技象科技有限公司 Low-power-consumption processing method and device with variable wake-up time
CN112615726B (en) * 2020-12-31 2022-08-23 广州技象科技有限公司 Low-power-consumption processing method and device with variable wake-up time

Also Published As

Publication number Publication date
CN109799715B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN106293914B (en) A kind of method and terminal of task schedule
CN109700383A (en) Clean method, robot and the terminal device of robot
CN107193598A (en) One kind application startup method, mobile terminal and computer-readable recording medium
CN102306132A (en) Mobile terminal and method for waking up mobile terminal
CN108702421A (en) For controlling using the electronic equipment and method with component
CN109716410A (en) A kind of fire alarm confirmation method, device and the terminal device of smoke detector
CN106648326B (en) The method and mobile terminal of screen time is put out in adjustment
CN106168902A (en) Awakening control method, device and equipment
CN110381130A (en) The long connection method of keep-alive, device, communication terminal and storage medium
CN106471518A (en) Based on conversion between two kinds of power supply status for user's coherent signal
CN108038112A (en) Document handling method, mobile terminal and computer-readable recording medium
CN110410353A (en) Control method for fan, device and terminal device
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
WO2019085749A1 (en) Application program control method and apparatus, medium, and electronic device
CN109215037A (en) Destination image partition method, device and terminal device
CN106406494B (en) A kind of method and terminal of processor scheduling
CN110300959A (en) Task management when dynamic operation
CN109803360A (en) WiFi dormancy control method, device, electronic equipment and storage medium
CN110113496A (en) Screen display mode switching method, device and terminal device
CN105892629A (en) Multicore-based screen awakening method and device as well as mobile terminal
CN109840141A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN104980451B (en) Information prompting method and device
CN107368255A (en) Unlocking method, mobile terminal and computer-readable recording medium
CN107861855A (en) A kind of method, terminal, system and computer-readable recording medium for reducing abnormal power consumption
CN109799715A (en) Data receiver method, device, terminal device

Legal Events

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