CN110035446A - Heartbeat data sending method, device, electronic equipment and readable medium - Google Patents

Heartbeat data sending method, device, electronic equipment and readable medium Download PDF

Info

Publication number
CN110035446A
CN110035446A CN201910270372.9A CN201910270372A CN110035446A CN 110035446 A CN110035446 A CN 110035446A CN 201910270372 A CN201910270372 A CN 201910270372A CN 110035446 A CN110035446 A CN 110035446A
Authority
CN
China
Prior art keywords
heartbeat data
data packets
wireless device
sending
battery
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
CN201910270372.9A
Other languages
Chinese (zh)
Other versions
CN110035446B (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.)
Zhongke Yunchuang (xiamen) Technology Co Ltd
Original Assignee
Zhongke Yunchuang (xiamen) 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 Zhongke Yunchuang (xiamen) Technology Co Ltd filed Critical Zhongke Yunchuang (xiamen) Technology Co Ltd
Priority to CN201910270372.9A priority Critical patent/CN110035446B/en
Publication of CN110035446A publication Critical patent/CN110035446A/en
Application granted granted Critical
Publication of CN110035446B publication Critical patent/CN110035446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure provides a kind of heartbeat data sending method, device, electronic equipment and readable medium, this method comprises: obtaining the information about power of the battery of wireless device;The transmission frequency of heartbeat data packets is determined using duration based on the expectation of the information about power and the battery;The sending time of the heartbeat data packets is determined according to the transmission frequency, so as to receive the heartbeat data packets that the wireless device is sent when current time meets the sending time.Heartbeat data sending method, device, electronic equipment and the readable medium of the disclosure can regularly send heartbeat data on the basis of guaranteeing that wireless device works normally, avoid the erroneous judgement to wireless device state.

Description

Heartbeat data sending method, device, electronic equipment and readable medium
Technical field
This disclosure relates to wireless communication technology field more particularly to a kind of heartbeat data sending method, device, electronic equipment And computer-readable medium.
Background technique
In the application of wireless sensor, battery power supply is generallyd use.In practical applications, such as smoke detector, in order to The consumption of battery capacity is reduced, usually heartbeat data will not be sent to server or cloud, only in sensor fault or alarm Just transmission warning message will lead to server in this way or cloud is unable to judge accurately wireless sensor state.When wireless sensor is fallen When breaking down in electricity or wireless sensor for sending the transmitting device of fault data, server or cloud will be unable to receive nothing The failure or warning message of line sensor.In addition, when network failure, even if wireless sensor is local to send event to server Barrier or warning message due to server reception failure will be mistakenly considered wireless sensor still in normal operating condition.Due to long-range The failure of alarm will reduce the response speed to emergency event.
Therefore, it is necessary to a kind of new heartbeat data sending method, device, electronic equipment and computer-readable mediums.
Above- mentioned information are only used for reinforcing the understanding to the background of the disclosure, therefore it disclosed in the background technology part It may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
In view of this, the disclosure provides a kind of heartbeat data sending method, device, electronic equipment and computer-readable Jie Matter can regularly send heartbeat data on the basis of guaranteeing that wireless device works normally, avoid the mistake to wireless device state Sentence.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to the first aspect of the embodiments of the present disclosure, a kind of heartbeat data sending method is proposed, this method comprises: obtaining nothing The information about power of the battery of line apparatus;Heartbeat data packets are determined using duration based on the expectation of the information about power and the battery Transmission frequency;The sending time of the heartbeat data packets is determined according to the transmission frequency, so as to meet institute in current time When stating sending time, the heartbeat data packets that the wireless device is sent are received.
In a kind of exemplary embodiment of the disclosure, the expectation based on the information about power and the battery uses duration The transmission frequency for determining heartbeat data packets includes: to be determined using duration for sending based on the information about power and the expectation State the remaining capacity of heartbeat data packets;Electricity, the institute of the heartbeat data packets consumption are sent with single according to the residual electric quantity State the transmission frequency that expectation determines the heartbeat data packets using duration.
In a kind of exemplary embodiment of the disclosure, the method also includes: the transmission is unsatisfactory in current time When the time, the wireless device for sending the heartbeat data packets is made to be in dormant state.
In a kind of exemplary embodiment of the disclosure, when current time meets the sending time, the nothing is received The heartbeat data packets that line apparatus is sent include: to make the wireless device when current time meets the sending time In wake-up states;The wireless device is connected, to receive the heartbeat data packets.
In a kind of exemplary embodiment of the disclosure, the method also includes: it is sent out in the wireless device described After heartbeat data packets, the wireless device is made to be in dormant state.
In a kind of exemplary embodiment of the disclosure, the method also includes: Xiang Suoshu wireless device send in response to The response signal of the heartbeat data packets received;After the wireless device receives the response signal, make the nothing Line apparatus is in a dormant state.
In a kind of exemplary embodiment of the disclosure, the method also includes: when current time meets the transmission Between when, if not receiving the heartbeat data packets, generate warning message.
According to the second aspect of an embodiment of the present disclosure, propose that a kind of heartbeat data sending device, the device include: acquisition mould Block, the information about power of the battery for obtaining wireless device;Frequency determining module, for based on the information about power and the electricity The expectation in pond determines the transmission frequency of heartbeat data packets using duration;Heartbeat data module, for true according to the transmission frequency The sending time of the fixed heartbeat data packets, so as to receive the wireless device when current time meets the sending time The heartbeat data packets sent.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is proposed, which includes: one or more Processor;Storage device, for storing one or more programs;When one or more of programs are by one or more of places It manages device to execute, so that one or more of processors realize heartbeat data sending method described in any of the above embodiments.
According to a fourth aspect of embodiments of the present disclosure, it proposes a kind of computer-readable medium, is stored thereon with computer journey Sequence, which is characterized in that heartbeat data sending method as described in any one of the above embodiments is realized when described program is executed by processor.
The heartbeat data sending method that is there is provided according to disclosure some embodiments, device, electronic equipment and computer-readable Medium determines the transmission frequency and sending time of heartbeat data packets according to the power supply capacity of battery, can be avoided remote failure report Alert information sends erroneous judgement caused by failure.Heartbeat data can be regularly sent on the basis of guaranteeing that wireless device works normally, Avoid the erroneous judgement to wireless device state.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.Drawings discussed below is only some embodiments of the present disclosure, For those of ordinary skill in the art, without creative efforts, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the system block diagram of a kind of heartbeat data sending method shown according to an exemplary embodiment and device.
Fig. 2 is a kind of flow chart of heartbeat data sending method shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of the heartbeat data sending method shown according to another exemplary embodiment.
Fig. 4 is a kind of flow chart of the heartbeat data sending method shown according to a further exemplary embodiment.
Fig. 5 is a kind of block diagram of heartbeat data sending device shown according to an exemplary embodiment.
Fig. 6 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Fig. 7 is that a kind of computer readable storage medium schematic diagram is shown according to an exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the present invention will be comprehensively and complete It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical appended drawing reference indicates in figure Same or similar part, thus repetition thereof will be omitted.
Described feature, structure or characteristic can be incorporated in one or more embodiments in any suitable manner In.In the following description, many details are provided to provide and fully understand to embodiments of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced and omit it is one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Attached drawing is only schematic illustrations of the invention, and identical appended drawing reference indicates same or similar part in figure, because And repetition thereof will be omitted.Some block diagrams shown in the drawings not necessarily must with it is physically or logically independent Entity is corresponding.These functional entitys can be realized using software form, or in one or more hardware modules or integrated electricity These functional entitys are realized in road, or these function are realized in heterogeneous networks and/or processor device and/or microcontroller device It can entity.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and step, nor It must be executed by described sequence.For example, the step of having can also decompose, and the step of having can merge or part merges, Therefore the sequence actually executed is possible to change according to the actual situation.
Example embodiment of the present invention is described in detail with reference to the accompanying drawing.
Fig. 1 is the system block diagram of a kind of heartbeat data sending method shown according to an exemplary embodiment and device.
As shown in Figure 1, system architecture may include using battery powered wireless sensor 101,102, wireless dispensing machines Device people 103, network 104 are logical to provide between wireless sensor 101,102, wireless dispensing machine people 103 and server 105 Believe the medium of link.Network 104 may include various connection types, such as wired, wireless communication link or fiber optic cables etc. Deng.
Wireless sensor 101,102, wireless dispensing machine people 103 can be interacted by network 104 with server 105, to connect Receive command information or send status information etc..Wireless sensor 101,102, can be equipped on wireless dispensing machine people 103 it is each The client application etc. of kind communication class.
Wireless sensor 101,102, wireless dispensing machine people 103 can be can receive instruction, according to sending beats According to packet transmission instruction regularly send heartbeat data packets equipment, wireless sensor 101,102 can be wireless pressure sensor, Radio temperature sensor and non-explosion-proof wireless Temperature Humidity Sensor, liquid level wireless sensor etc..Wireless dispensing machine people 103 can be wireless distribution trolley, wirelessly dispense cabinet, wirelessly dispatching unmanned plane etc..
Server 105 can be to provide the server of various services, such as to wireless sensor 101,102, wireless dispatching The commander server that robot 103 is operated.Server 105 can carry out the heartbeat data packets received analyzing etc. Reason, and processing result (such as response signal, heartbeat data packets send frequency control signal -- merely illustrative) fed back to wireless Sensor 101,102, wireless dispensing machine people 103.
Server 105 can for example obtain the information about power of the battery of wireless device;Server 105 can be for example based on the electricity The expectation of amount information and the battery determines the transmission frequency of heartbeat data packets using duration;Server 105 can be for example according to institute It states and sends the sending time that frequency determines the heartbeat data packets, so as to be received when current time meets the sending time The heartbeat data packets that the wireless device is sent.
Server 105 can be the server of an entity, also may be, for example, multiple server compositions, needs to illustrate Be, heartbeat data sending method provided by the embodiment of the present disclosure can by server 105 and/or wireless sensor 101,102, Wireless dispensing machine people 103 executes, and correspondingly, heartbeat data sending device can be set in server 105 and/or wireless sensing Device 101,102, in wireless dispensing machine people 103.
Fig. 2 is a kind of flow chart of heartbeat data sending method shown according to an exemplary embodiment.The application is implemented The heartbeat data sending method that example proposes can be executed by the electronic equipment arbitrarily with calculation processing ability, such as user terminal And/or server end, this is not limited by the present invention.Heartbeat data sending method 20 provided by the embodiments of the present application may include Step S202 to S206.
As shown in Fig. 2, obtaining the information about power of wireless device batteries in step S202.
Wherein, wireless device can be the equipment such as wireless sensor, wireless dispensing machine people, but the application not as Limit.For example, be mounted on the open air of bad environments when wireless sensor, or can not install power supply unit local such as water it is medium easily When in conductive medium, electric energy can not be obtained by wired power supply unit.In another example wireless dispensing machine people moves It is dynamic that work is dispensed with completion, work is dispensed if being powered by wireline equipment and will limit its.Being powered using battery can guarantee nothing Line sensor, wireless dispensing machine people normal work.The information about power of battery for example passes through voltage test method, fuel cell modelling The modes such as method, Coulomb meter are detected, and can also be controlled chip by its battery for lithium battery and be obtained battery level information, this Shen Technical solution please is to this and is not particularly limited.
In step S204, heartbeat data packets are determined using duration based on the expectation of the information about power and the battery Send frequency.
Wherein, it is expected that referring to the expectation service life of present battery using duration.For example, for being wireless sensor power supply The expectation of battery is determined using duration according to battery normal service life and staff's polling period.Polling period is usually less than Normal service life, to guarantee the normal work of wireless sensor.The transmission frequency of heartbeat data packets, which referred in the unit time, to be sent The number of heartbeat data packets.It can calculate that wireless sensor uses in duration in expectation using duration according to the expectation of battery to complete just The electricity of normal need of work consumption is worked normally using completion in duration in expectation by information about power and wireless sensor and is needed The difference of the electricity of consumption can determine the remaining capacity for sending heartbeat data packets, to estimate that expectation uses according to remaining capacity The transmission frequency of heartbeat data packets can be transmitted in duration.
In one embodiment, it can be determined based on the information about power and the expectation using duration described for sending The remaining capacity of heartbeat data packets;The electricity, described of heartbeat data packets consumption is sent with single according to the residual electric quantity It is expected that determining the transmission frequency of the heartbeat data packets using duration.Wherein, it is expected by information about power and wireless sensor The difference of the electricity consumed is needed to can determine remaining capacity using completing to work normally in duration.Further according to remaining capacity and single The quotient for sending the electricity of heartbeat data packets consumption can obtain expectation and use the number that heartbeat data packets can be transmitted in duration.Further according to It is expected that the number of heartbeat data packets can be transmitted in duration and it is expected the transmission frequency that heartbeat data packets can be obtained using the quotient of duration. Heartbeat data sending method through this embodiment, can be in the case where guaranteeing battery normal power supply, to server and/or cloud End regularly sends heartbeat data.
In step S206, the sending time of the heartbeat data packets is determined according to the transmission frequency, so that current When time meets the sending time, the heartbeat data packets that the wireless device is sent are received.
Wherein, when wireless device is wireless sensor or wireless dispensing machine people, the object for sending heartbeat data packets can For wherein for sending the transmission unit of heartbeat data packets.The hair reciprocal that can determine transmission heartbeat data packets is sought according to frequency is sent Time interval is sent, each hair of heartbeat data packets is determined further according to transmission time interval and the last time for sending heartbeat data Send the time.For example, current time can be determined by system clock.In another example when can judge current according to the crystal oscillator of system clock Between when meeting transmission time interval, receive wireless device send heartbeat data packets.
In one embodiment, can make to send the heartbeat data when current time is unsatisfactory for the sending time The wireless device of packet is in dormant state.Wherein, can make to be in wireless device for sending the transmission unit of heartbeat data packets Electric power can be saved when dormant state, preferably to reduce the electric energy for sending heartbeat data and needing to consume.
In one embodiment, it can receive the wireless device when current time meets the sending time and send The heartbeat data packets include: so that the wireless device is in wake-up states when current time meets the sending time; The wireless device is connected, to receive the heartbeat data packets.For example, making the transmission unit in wireless device be in suspend mode shape When state is to save electric power, judge whether current time meets sending time by system clock.Described in being waken up in sending time Transmission unit can guarantee the normal transmission of heartbeat data.
In one embodiment, can make described without traditional thread binding after the wireless device sends out the heartbeat data packets It sets in a dormant state.Wherein, after sending out heartbeat data packets, again save the transmission unit suspend mode in wireless device Save electric energy.
In one embodiment, the sound in response to the heartbeat data packets received can be sent to the wireless device Induction signal;After the wireless device receives the response signal, the wireless device is made to be in dormant state.Wherein, when Remaining capacity is greater than wireless device networking and sends heartbeat data packets and wait the response signal institute to be received in response to heartbeat data packets When the sum of electricity of consumption, wireless device is made to be at suspend mode again after receiving in response to the response signal of heartbeat data packets State can be improved the reliability of the heartbeat data sending method of the present embodiment.
It in one embodiment, can be when current time meets the sending time, if not receiving the beats According to packet, then warning message is generated.Wherein, if sensor fault, or when leading to battery power loss due to external force factor, transmission device will Heartbeat data packets can not be sent.In recipient not when sending time receives heartbeat data packets, it is believed that transmission device is wireless Failure has occurred in sensor, generates warning message with this, with the alert program of triggering following.
In one embodiment, the sending time can be met in current time, and predetermined after current time When heartbeat data packets are not received in time range yet, it is believed that there are failures for transmission device or wireless device, are alarmed by generating The alert program of information triggering following.The heartbeat data sending method of the present embodiment can avoid the report of the puppet as caused by communication delay Alert information, improves the reliability of system.
According to the heartbeat data sending method of the present embodiment, the transmission of heartbeat data packets is determined according to the power supply capacity of battery Time can be avoided remote failure warning message and send erroneous judgement caused by failure.The heartbeat data sending method of the disclosure can Heartbeat data is regularly sent on the basis of guaranteeing that wireless device works normally, avoids the erroneous judgement to wireless device state.
Hair method is sent according to the heartbeat data of the present embodiment, transmission device is made within the non-sent time in a dormant state, It can save and send the electric energy that heartbeat data needs to consume.
Fig. 3 is a kind of flow chart of the heartbeat data sending method shown according to another exemplary embodiment.Heartbeat data Sending method 30 includes at least step S302 to S308.
As shown in figure 3, in the embodiment of the present application, above-mentioned steps S206 may further include following steps:
In step s 302, the sending time of the heartbeat data packets is determined according to the transmission frequency.
In step s 304, judge whether current time meets sending time, if so, executing step S306, otherwise execute Step S308.
In step S306, wake on wireless device, to receive the heartbeat data packets of its transmission.And continue to execute step S308。
In step S308, wireless device is made to be in dormant state.Wherein, in the period for not sending heartbeat data packets Interior, wireless device is in dormant state.
Fig. 4 is a kind of flow chart of the heartbeat data sending method shown according to another exemplary embodiment.Heartbeat data Sending method 40 includes at least step S402 to S410.
As shown in figure 4, in the embodiment of the present application, above-mentioned steps S206 may further include following steps:
In step S402, the sending time of the heartbeat data packets is determined according to the transmission frequency.
In step s 404, judge whether current time meets sending time, if so, executing step S406, otherwise execute Step S410.
In step S406, wake on wireless device, to receive the heartbeat data packets of its transmission.
In step S408, wireless device transmission is received in response to the response signal of the heartbeat data packets received.
In step S410, wireless device is made to be in dormant state.Wherein, in the period for not sending heartbeat data packets Interior, wireless device is in dormant state.
It will be clearly understood that the present disclosure describes how to form and use particular example, but the principle of the disclosure is not limited to These exemplary any details.On the contrary, the introduction based on disclosure disclosure, these principles can be applied to many other Embodiment.
It will be appreciated by those skilled in the art that realizing that all or part of the steps of above-described embodiment is implemented as by centre Manage the computer program that device CPU is executed.When the computer program is executed by central processor CPU, execute what the disclosure provided Above-mentioned function defined by the above method.The program can store in a kind of computer readable storage medium, the storage Medium can be read-only memory, disk or CD etc..
Further, it should be noted that above-mentioned attached drawing is only the place according to included by the method for disclosure exemplary embodiment Reason schematically illustrates, rather than limits purpose.It can be readily appreciated that above-mentioned processing shown in the drawings is not indicated or is limited at these The time sequencing of reason.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 5 is a kind of block diagram of heartbeat data sending device shown according to an exemplary embodiment.Referring to Fig. 5, heartbeat Data sending device 50 includes at least: electricity obtains module 502, frequency determining module 504 and heartbeat data module 506.
In heartbeat data sending device 50, electricity obtains the electricity that module 502 can be used for obtaining the battery of wireless device Measure information.
Frequency determining module 504 can be used for determining the heart using duration based on the expectation of the information about power and the battery Jump the transmission frequency of data packet.
In one embodiment, frequency determining module 504 can be used for using based on the information about power and the expectation Duration determines the remaining capacity for sending the heartbeat data packets;The beats are sent with single according to the residual electric quantity The transmission frequency of the heartbeat data packets is determined using duration according to the electricity of packet consumption, the expectation.
In one embodiment, heartbeat data sending device 50 can also include transmission unit, for sending heartbeat data Packet.
Heartbeat data module 506 can be used for sending the heartbeat data when current time meets transmission interval Packet.The sending time that the heartbeat data packets are determined according to the transmission frequency, so that when current time meets the transmission Between when, receive the heartbeat data packets that the wireless device is sent.
In one embodiment, when current time is unsatisfactory for the sending time, the nothing of the heartbeat data packets is sent Line apparatus may be at dormant state.
In one embodiment, heartbeat data module 506 can be used for making when current time meets the sending time The wireless device is in wake-up states;The wireless device is connected, to receive the heartbeat data packets.
In one embodiment, wireless device can be again introduced into dormant state after sending out the heartbeat data packets.
In one embodiment, wireless device can receive the response letter in response to the heartbeat data packets received After number, it is again introduced into dormant state.
According to the heartbeat data sending device of the disclosure, when determining the transmission of heartbeat data packets according to the power supply capacity of battery Between, it can be avoided remote failure warning message and send erroneous judgement caused by failure.The heartbeat data sending method of the disclosure can be Guarantee to regularly send heartbeat data on the basis of wireless device works normally, avoids the erroneous judgement to wireless device state.
Fig. 6 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
The electronic equipment 200 of this embodiment according to the disclosure is described referring to Fig. 6.The electronics that Fig. 6 is shown Equipment 200 is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 200 is showed in the form of universal computing device.The component of electronic equipment 200 can wrap It includes but is not limited to: at least one processing unit 210, at least one storage unit 220, (including the storage of the different system components of connection Unit 220 and processing unit 210) bus 230, display unit 240 etc..
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 210 Row, so that the processing unit 210 executes described in this specification above-mentioned electronic prescription circulation processing method part according to this The step of disclosing various illustrative embodiments.For example, the processing unit 210 can be executed such as Fig. 2, Fig. 3, shown in Fig. 4 The step of.
The storage unit 220 may include the readable medium of volatile memory cell form, such as random access memory Unit (RAM) 2201 and/or cache memory unit 2202 can further include read-only memory unit (ROM) 2203.
The storage unit 220 can also include program/practical work with one group of (at least one) program module 2205 Tool 2204, such program module 2205 includes but is not limited to: operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.
Bus 230 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 200 can also be with one or more external equipments 300 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 200 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 200 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 250.Also, electronic equipment 200 can be with By network adapter 260 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.Network adapter 260 can be communicated by bus 230 with other modules of electronic equipment 200.It should Understand, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 200, including but unlimited In: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number According to backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server or network equipment etc.) executes the above method according to disclosure embodiment.
Fig. 7 schematically shows a kind of computer readable storage medium schematic diagram in disclosure exemplary embodiment.
Refering to what is shown in Fig. 7, describing the program product for realizing the above method according to embodiment of the present disclosure 400, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, the program product of the disclosure is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer readable storage medium may include in a base band or the data as the propagation of carrier wave a part are believed Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any other than readable storage medium storing program for executing Readable medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Person's program in connection.The program code for including on readable storage medium storing program for executing can transmit with any suitable medium, packet Include but be not limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the disclosure operation program Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by one When the equipment executes, so that the computer-readable medium implements function such as: obtaining the information about power of the battery of wireless device;Base The transmission frequency of heartbeat data packets is determined using duration in the expectation of the information about power and the battery;According to the transmission frequency Rate determines the sending time of the heartbeat data packets, so as to receive described wireless when current time meets the sending time The heartbeat data packets that device is sent.
It will be appreciated by those skilled in the art that above-mentioned each module can be distributed in device according to the description of embodiment, it can also Uniquely it is different from one or more devices of the present embodiment with carrying out corresponding change.The module of above-described embodiment can be merged into One module, can also be further split into multiple submodule.
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can To be personal computer, server, mobile terminal or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
It is particularly shown and described the exemplary embodiment of the disclosure above.It should be appreciated that the present disclosure is not limited to Detailed construction, set-up mode or implementation method described herein;On the contrary, disclosure intention covers included in appended claims Various modifications and equivalence setting in spirit and scope.

Claims (10)

1. a kind of heartbeat data sending method characterized by comprising
Obtain the information about power of the battery of wireless device;
The transmission frequency of heartbeat data packets is determined using duration based on the expectation of the information about power and the battery;
The sending time that the heartbeat data packets are determined according to the transmission frequency, so that when current time meets the transmission Between when, receive the heartbeat data packets that the wireless device is sent.
2. the method as described in claim 1, which is characterized in that when the expectation based on the information about power and the battery uses Length determines that the transmission frequency of heartbeat data packets includes:
The remaining capacity for sending the heartbeat data packets is determined using duration based on the information about power and the expectation;
The electricity of heartbeat data packets consumption, the expectation are sent with single according to the residual electric quantity and determines institute using duration State the transmission frequency of heartbeat data packets.
3. the method as described in claim 1, which is characterized in that further include:
When current time is unsatisfactory for the sending time, the wireless device for sending the heartbeat data packets is made to be in suspend mode shape State.
4. method as claimed in claim 3, which is characterized in that when current time meets the sending time, described in reception Wireless device send the heartbeat data packets include:
When current time meets the sending time, the wireless device is made to be in wake-up states;
The wireless device is connected, to receive the heartbeat data packets.
5. method as claimed in claim 4, which is characterized in that further include:
After the wireless device sends out the heartbeat data packets, the wireless device is made to be in dormant state.
6. method as claimed in claim 4, which is characterized in that further include:
The response signal in response to the heartbeat data packets received is sent to the wireless device;
After the wireless device receives the response signal, the wireless device is made to be in dormant state.
7. the method as described in claim 1, which is characterized in that further include:
When current time meets the sending time, if not receiving the heartbeat data packets, warning message is generated.
8. a kind of heartbeat data sending device characterized by comprising
Electricity obtains module, the information about power of the battery for obtaining wireless device;
Frequency determining module, for determining heartbeat data packets using duration based on the expectation of the information about power and the battery Send frequency;
Heartbeat data module, for determining the sending time of the heartbeat data packets according to the transmission frequency, so that current When time meets the sending time, the heartbeat data packets that the wireless device is sent are received.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-7.
10. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-7 is realized when row.
CN201910270372.9A 2019-04-04 2019-04-04 Heartbeat data sending method and device, electronic equipment and readable medium Active CN110035446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910270372.9A CN110035446B (en) 2019-04-04 2019-04-04 Heartbeat data sending method and device, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910270372.9A CN110035446B (en) 2019-04-04 2019-04-04 Heartbeat data sending method and device, electronic equipment and readable medium

Publications (2)

Publication Number Publication Date
CN110035446A true CN110035446A (en) 2019-07-19
CN110035446B CN110035446B (en) 2022-07-26

Family

ID=67237477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910270372.9A Active CN110035446B (en) 2019-04-04 2019-04-04 Heartbeat data sending method and device, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN110035446B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515329A (en) * 2019-08-08 2019-11-29 深圳市海博思科技有限公司 A kind of method, thermometric host, mobile terminal and electronic equipment for roasting thermometric
CN111131458A (en) * 2019-12-25 2020-05-08 深圳市网心科技有限公司 Heartbeat keep-alive method, electronic device, system and medium
CN112484767A (en) * 2020-11-20 2021-03-12 中国南方电网有限责任公司超高压输电公司检修试验中心 Automatic fault diagnosis method and device for icing equipment
CN112565359A (en) * 2020-11-25 2021-03-26 上汽通用五菱汽车股份有限公司 Network connection method, system, vehicle-mounted terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702679A (en) * 2015-02-15 2015-06-10 北京博华信智科技股份有限公司 Data sending method of wireless node of Internet of Things
CN105517194A (en) * 2014-10-15 2016-04-20 上海点艺信息技术有限公司 Setting method of sending frequency of heartbeat bags, method of keeping connection and device thereof
CN107645529A (en) * 2016-07-21 2018-01-30 腾讯科技(深圳)有限公司 Heartbeat packet transmission method and device
CN109150670A (en) * 2018-11-05 2019-01-04 中通天鸿(北京)通信科技股份有限公司 A kind of heartbeat method and system for keeping connecting

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517194A (en) * 2014-10-15 2016-04-20 上海点艺信息技术有限公司 Setting method of sending frequency of heartbeat bags, method of keeping connection and device thereof
CN104702679A (en) * 2015-02-15 2015-06-10 北京博华信智科技股份有限公司 Data sending method of wireless node of Internet of Things
CN107645529A (en) * 2016-07-21 2018-01-30 腾讯科技(深圳)有限公司 Heartbeat packet transmission method and device
CN109150670A (en) * 2018-11-05 2019-01-04 中通天鸿(北京)通信科技股份有限公司 A kind of heartbeat method and system for keeping connecting

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515329A (en) * 2019-08-08 2019-11-29 深圳市海博思科技有限公司 A kind of method, thermometric host, mobile terminal and electronic equipment for roasting thermometric
CN111131458A (en) * 2019-12-25 2020-05-08 深圳市网心科技有限公司 Heartbeat keep-alive method, electronic device, system and medium
CN112484767A (en) * 2020-11-20 2021-03-12 中国南方电网有限责任公司超高压输电公司检修试验中心 Automatic fault diagnosis method and device for icing equipment
CN112565359A (en) * 2020-11-25 2021-03-26 上汽通用五菱汽车股份有限公司 Network connection method, system, vehicle-mounted terminal and storage medium
CN112565359B (en) * 2020-11-25 2023-05-30 上汽通用五菱汽车股份有限公司 Network connection method, system, vehicle-mounted terminal and storage medium

Also Published As

Publication number Publication date
CN110035446B (en) 2022-07-26

Similar Documents

Publication Publication Date Title
CN110035446A (en) Heartbeat data sending method, device, electronic equipment and readable medium
JP7022920B2 (en) Battery storage device control method, program, and storage battery storage device
CN103002042B (en) Cloud terminal with multiple power supply modes and cloud computing system
JP2014039352A (en) Energy management apparatus, energy management system, and energy management method
CN110285853A (en) A kind of power transmission line monitoring device and system based on LoRaWAN
EP2730077A1 (en) Systems and methods for use in communicating with utility devices
CN109410503A (en) A kind of fire monitoring method and apparatus, system
CN110015102A (en) AGV charging abnormality eliminating method and system, storage medium and electronic equipment
CN109592045A (en) A kind of unmanned plane emergency parachute deployment means, device, electronic equipment and medium
CN104283254A (en) Add-on communication apparatus attached to cable installment type charging control device
CN104919425A (en) Systems and methods for device-to-cloud message delivery
CN109064157A (en) Divide account method and device, storage medium, electronic equipment
CN106575140A (en) Apparatuses, methods, and systems for enabling higher current charging of universal serial bus (usb) specification revision 2.0 (usb 2.0) portable electronic devices from usb 3.x hosts
CN107368350A (en) Cluster management method, system, storage medium and the electronic equipment of virtual payment machine
CN209553524U (en) A kind of unmanned plane emergency deployment system
CN104535799A (en) Testing device and method for inertial sensor
CN110532203A (en) A kind of NAND repositioning method, device, electronic equipment and storage medium
CN109343958A (en) Computational resource allocation method, apparatus, electronic equipment, storage medium
CN102602253A (en) Driver display unit of electric locomotive
CN203039727U (en) Cloud terminal with multiple power supply modes and cloud computing system
CN107925607A (en) Using shade, agency continuously monitors data server
US10588108B2 (en) Locating method and a locating device
CN103309311A (en) Platform-crossed CAN (controller area network) bus monitoring system based on TCP/IP (transmission control protocol)/(internet protocol)
Nicolae et al. Embedding Android devices in automation systems
CN207367044U (en) A kind of Mechanical Three-dimensional Garage Internet of Things intelligent monitoring device

Legal Events

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