Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of method, apparatus for reporting information and storage is situated betweenMatter.
According to the first aspect of the disclosure, a kind of method for reporting information is provided, comprising: obtain that equipment is to be reported givesThe information of server;Determine the priority of the information;According to the priority of the information, the upper time signal machine of the information is determinedWhether reach;When the upper time signal machine of the information reaches, by the information reporting to server.
Optionally, the priority according to the information, determines whether the upper time signal machine of the information reaches, comprising:When the priority of the information is not less than the first predetermined level, determine that the upper time signal machine of the information reaches.
Optionally, the priority according to the information, determines whether the upper time signal machine of the information reaches, comprising:When the priority of the information is greater than the first preset value not higher than the data volume of the second predetermined level and the information, institute is determinedThe upper time signal machine for stating information does not reach, postpones the upper time signal machine of the information;When the priority of the information is not higher than described theWhen the data volume of two predetermined levels and the information is not more than first preset value, determine that the upper time signal machine of the information arrivesIt reaches, wherein first predetermined level is greater than or equal to second predetermined level.
Optionally, the upper time signal machine of the determination information does not reach, postpones the upper time signal machine of the information, comprising:The free time section of the network of the equipment access, the road are known according to the information that the router being connected with the equipment is sentBy device send information include: be currently accessed the network terminal number, the network history free time section and work asThe equipment of the preceding access network is at least one in the occupancy of bandwidth;Determine the free time section of the network for upperOffer the upper time signal machine of the information of server.
Optionally, the information to be reported to server includes: the running state information of equipment and/or the thing that equipment monitoring arrivesPart information.
According to the second aspect of the disclosure, a kind of device for reporting information is provided, comprising: module is obtained, for obtainingTake the equipment information to be reported to server;First determining module, for determining the priority of the information;Second determines mouldBlock determines whether the upper time signal machine of the information reaches for the priority according to the information;Reporting module, in instituteWhen stating the upper time signal machine arrival of information, by the information reporting to server.
Optionally, second determining module is used for: when the priority of the information is not less than the first predetermined level, reallyThe upper time signal machine of the fixed information reaches.
Optionally, second determining module includes: delay submodule, for the priority when the information not higher than theWhen the data volume of two predetermined levels and the information is greater than the first preset value, determines that the upper time signal machine of the information does not reach, prolongThe upper time signal machine of the slow information;It determines submodule, is not higher than second predetermined level for the priority when the informationAnd the data volume of the information be not more than first preset value when, determine the information upper time signal machine reach, wherein it is describedFirst predetermined level is greater than or equal to second predetermined level.
Optionally, the delay submodule is used for: knowing institute according to the information that the router being connected with the equipment is sentThe free time section of the network of equipment access is stated, the information that the router is sent includes: to be currently accessed the terminal of the networkNumber, network history free time section and be currently accessed the equipment of the network in the occupancy of bandwidth at leastOne;The free time section for determining the network is the upper time signal machine of the information to be reported to server.
Optionally, the information to be reported to server includes: the running state information of equipment and/or the thing that equipment monitoring arrivesPart information.
In terms of according to the third of the disclosure, a kind of device for reporting information is provided, comprising: processor;For storingThe memory of processor-executable instruction;Wherein, the processor is configured to: obtain the equipment letter to be reported to serverBreath;Determine the priority of the information;
According to the priority of the information, determine whether the upper time signal machine of the information reaches;In reporting for the informationWhen opportunity reaches, by the information reporting to server.
According to the 4th of the disclosure the aspect, a kind of non-transitorycomputer readable storage medium is provided, is deposited when describedWhen instruction in storage media is executed by processor, enable the processor to execute according to disclosure first aspectMethod.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The method for reporting information that embodiment of the disclosure provides, the information to be reported to server in obtaining equipmentAfterwards, the upper time signal machine that information is determined according to the priority of information, on the basis for meeting equipment to server and reporting information requirementOn, information can be reported to server on corresponding opportunity according to the priority of information, avoid while being reported to bulk informationServer leads to the problem of largely occupying Internet resources.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, notThe disclosure can be limited.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related toWhen attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodimentDescribed in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appendedThe example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of method for reporting information shown according to an exemplary embodiment, and this method can be appliedIn smart machines such as equipment, such as intelligent appliance equipment, as shown in Figure 1, this method comprises:
In a step 101, the equipment information to be reported to server is obtained;
In a kind of achievable mode, equipment can be connected to by the application program on intelligent terminal, such as mobile phoneOn the home network of user, so that equipment networking.During equipment networking operation, equipment can be by network by the fortune of itselfRow status information and the ambient parameters monitored are reported to server, bind equipment and user account in userAfterwards, these information can be viewed by the application program in mobile phone.Wherein, binding, which refers to, establishes between equipment and user accountMapping relations one by one, to identify the subordinate relation between equipment and user.With the equipment of user account binding, it can confirm that it is returnedThe user of category, on the one hand, ensure the privately owned attribute of equipment;On the other hand, user can also pass through the application program pair in mobile phoneThe equipment for being bundled with user account is remotely operated.
In a kind of achievable mode, equipment may include intelligent appliance equipment, for example, air-conditioning, water heater, air cleaningDevice, temperature sensor, humidity sensor and smoke alarm etc..And the information to be reported to server may include, these setStandby running state information, such as operating parameter, and, the event information that these equipment monitorings arrive, wherein the operation shape of equipmentFor state information for example, air-conditioning is currently at cooling operation mode, target cryogenic temperature is 21 degrees Celsius, the event letter that equipment monitoring arrivesBreath is for example, the current indoor temperature that temperature sensor monitors is that 28 degrees Celsius or smoke alarm monitor that indoor smog is denseDegree is more than alarm threshold value.
In a step 102, the priority of the information to be reported to server is determined;
In a kind of achievable mode, the information to be reported to server can have different priority, and priority can bodyThe importance of existing information, for example, the priority of the settable information high to user's importance is high.Equipment is being notified on serverWhen breath, the information of high priority can be preferentially reported to server, can after equipment has reported high priority message to server orPerson reports low-priority information after network idle, then to server.Wherein, the priority of information can be pre-set,For example, the priority for presetting the fault message of device fails or the warning message as caused by failure is higher, equipment is justThe priority of the running state information often run is lower;It can also be by the priority of the different information of user's self-setting.
In step 103, according to the priority of information, determine whether the upper time signal machine of information reaches;
At step 104, when the upper time signal machine of information reaches, by information reporting to server.
In a kind of achievable mode, equipment periodically can report information to server, in each period for reporting informationInterior, the information of different priorities can correspond to different upper time signal machines, for example, the information of high priority need to notify on serverThe period of breath reports to server immediately when reaching, and the information of low priority then can be in network idle after the period reaches againReport to server.
The method provided in this embodiment for reporting information, in obtaining equipment after the information to be reported to server, according toThe priority of information determines the upper time signal machine of information, can root on the basis of meeting equipment and reporting information requirement to serverIt is believed that the priority of breath reports information to server on corresponding opportunity, avoids while bulk information is reported to server and leadCause a large amount of the problem of occupying Internet resources.
Fig. 2 is a kind of flow chart of method for reporting information shown according to an exemplary embodiment, as shown in Fig. 2,In this method, determine whether the upper time signal machine of information reaches according to the priority of information can include: in step 201, toWhen the priority for the information that server reports is not less than the first predetermined level, determine that the upper time signal machine of information reaches.For example, can be pre-It is first equipment information setting to be reported there are three different grades of priority, respectively the first estate, the second grade and theThree grades, wherein the priority of the highest priority of the first estate, the second grade and the tertiary gradient successively reduces, priorityFor example can be the warning information of equipment, fault message etc. for the information of the first estate, the category information is more important, need immediately byUser knows, therefore, the first predetermined level can be the priority of pre-set the first estate.That is, determining that equipment waits for serviceWhen the priority for the information that device reports is not less than the priority of highest level, it may be determined that the upper time signal machine of the information reaches, and can standThe information is reported to server, it is ensured that the high information of importance is reported in time.
Fig. 3 is a kind of flow chart of method for reporting information shown according to an exemplary embodiment, as shown in figure 3,In this method, determine whether the upper time signal machine of information reaches according to the priority of information can include: in step 301, work as informationPriority not higher than the second predetermined level and when the data volume of information is greater than the first preset value, determine the upper time signal machine of information notIt reaches, postpones the upper time signal machine of information, when the priority of information is not more than not higher than the data volume of the second predetermined level and informationWhen the first preset value, determine that the upper time signal machine of information reaches, wherein the first predetermined level is greater than or equal to the second predetermined level.When the priority of information is not higher than the second predetermined level, show that the priority of information is not highest level, which may be simultaneouslyIt is non-critically important, and the data volume of the information is greater than preset value, then can be shown that the data volume of the information is larger, reports the information mayMore Internet resources can be occupied, in that case, then It is not necessary to immediately by the information reporting to server, therefore, it can prolongThe upper time signal machine of the slow information.In the case where the data volume of the information is not more than preset value, show the data volume of the information notGreatly, it reports the information that may not cause significantly to influence on network, in that case, then can report the information immediately, thereforeIt can determine that the upper time signal machine of the information reaches, equipment made to report the information.Based on this, it can be ensured that information of high importance is preferentialIt is reported to server, and information lower for importance, it can be postponed to report to server according to its influence to network,On the basis of ensuring the important information in user's timely learning equipment, effectively prevent that information is reported to occupy network bandwidth and influenceThe problem of user is to the normal use of network.
Fig. 4 is a kind of flow chart of method for reporting information shown according to an exemplary embodiment, as shown in figure 4,In this method, determines that the upper time signal machine of information does not reach, postpone the upper time signal machine of information can include: in step 400, work as informationPriority not higher than the second predetermined level and when the data volume of information is greater than the first preset value, determine the upper time signal machine of information notIt reaches;In step 401, the free time of the network of equipment access is known according to the information that the router being connected with equipment is sentSection, wherein the information that router is sent can include: the number of the terminal of present access network, network history free time section withAnd the equipment of present access network is at least one in the occupancy of bandwidth;In step 402, the free time of network is determinedSection is the upper time signal machine of information to be reported.Equipment can know the information of current network state to coupled router solicitation,After the number that equipment receives the equipment of the present access network of router transmission, if the number is greater than a predetermined number,The equipment for then thinking currently used network is more, network busy, then is currently not suitable for reporting information to server, can continue delay letterThe upper time signal machine of breath, is further continued for knowing the information of network state to router solicitation later, until network idle.Equipment can also be straightThe idle period to router solicitation network is connect, at this point, router can be determined according to the history use habit of equipment in networkHistory free time section, for example, it may be determined that out noon 11:00 to 12:00 this period be usually network idle time section, then may be usedThe period is informed to equipment.Equipment is after knowing the period, then the upper time signal machine of information can be delayed to the period,Equipment can report the lower information of priority to server during this period of time.
In an exemplary application scenarios, equipment needs to report information to server, obtains and is needed on current deviceThe list of information is reported, includes information type and priority in the list, the priority of information to be reported is inquired from list,If the priority of the information is higher, show that the information is more urgent, it is important to user, then it immediately should by networkInformation reporting is to server.If the different degree of the information is lower, the data volume of the information is obtained.If the data volume of the informationIt is smaller, then it is assumed that the information will not generate apparent influence to the home network of user, can report the information immediately.If shouldThe priority of information is lower and the data volume of the information is larger, then the family's routing device transmission that can be connected to equipment is askedIt asks, the searching user integrated middle period and current time using home network connects and use the home consumer device of networkQuantity.It is concentrated use in the period of home network if current time is not belonging to user and accesses or access without user equipmentThe user equipment of network is less, then current time is regarded as free time section, also can choose and reports the information immediately, noThen, equipment temporarily stores the information to be reported, and selects not being concentrated use in the period (free time section) of home network in userAgain by the information reporting to server end.It can either guarantee that equipment reports the needs of information in this way, moreover it is possible to which avoiding user from concentrating makesThere are problems that equipment reports occupancy home network bandwidth caused by information with the period of home network, to protect to the full extentThe online experience of user is demonstrate,proved.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this methodEmbodiment in be described in detail, no detailed explanation will be given here.
Fig. 5 is a kind of block diagram of device for reporting information shown according to an exemplary embodiment, as shown in figure 5, the dressSet 50 can include:
Module 51 is obtained, for obtaining the equipment information to be reported to server;
First determining module 52, for determining the priority of the information;
Second determining module 53 determines whether the upper time signal machine of the information arrives for the priority according to the informationIt reaches;
Reporting module 54, for the information upper time signal machine arrival when, by the information reporting to server.
In a kind of achievable mode, second determining module can be used for: the information priority not less than theWhen one predetermined level, determine that the upper time signal machine of the information reaches.
Fig. 6 is a kind of block diagram of device for reporting information shown according to an exemplary embodiment, as shown in fig. 6, at thisIn device 60, the second determining module can include: delay submodule 531, it is default not higher than second etc. for the priority when informationWhen the data volume of grade and information is greater than the first preset value, determines that the upper time signal machine of information does not reach, postpone the upper time signal machine of information;Determine submodule 532, it is pre- no more than first not higher than the data volume of the second predetermined level and information for the priority when informationIf when value, determining that the upper time signal machine of information reaches, wherein the first predetermined level is greater than or equal to the second predetermined level.
In a kind of achievable mode, the delay submodule can be used for: be sent out according to the router being connected with the equipmentThe information sent knows the free time section of the network of the equipment access, and the information that the router is sent includes: to be currently accessedThe number of the terminal of the network, the network history free time section and be currently accessed the equipment of the network to bandwidthAt least one of in occupancy;The free time section for determining the network is the upper time signal machine of the information to be reported to server.
In a kind of achievable mode, the information to be reported to server can include: the running state information of equipment and/orThe event information that equipment monitoring arrives.
Fig. 7 is a kind of block diagram of device for reporting information shown according to an exemplary embodiment.For example, device 800 canTo be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good forBody equipment, personal digital assistant etc..
Referring to Fig. 7, device 800 may include following one or more components: processing component 802, memory 804, power supplyComponent 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, andCommunication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phaseMachine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to executeIt enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, justInteraction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitateInteraction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shownExample includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappearsBreath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their groupIt closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compileJourney read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flashDevice, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management systemSystem, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.OneIn a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screenCurtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensingsDevice is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding actionBoundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakersBody component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode orWhen video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera andRear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a MikeWind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matchedIt is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication setPart 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module canTo be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lockDetermine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commentedEstimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is describedComponent is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or devicePosition change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contactPresence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, atAs being used in application.In some embodiments, which can also include acceleration transducer, gyro sensorsDevice, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementationIn example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.ExampleSuch as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), numberNumber processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above-mentioned method for reporting information.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally providedIt such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example,The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy diskWith optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosureIts embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes orPerson's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosureOr conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by followingClaim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, andAnd various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.