Summary of the invention
An object of the present invention is to provide the device of a kind of acquisition and processing weather data and image; Another object of the present invention isA kind of device acquisition and processing weather data of described acquisition and processing weather data and image and method of image utilized is provided; ThisThe another object of invention is to provide the system of a kind of corresponding acquisition and processing weather data and image, to solve current meteorological collectionHigh with the cost existing in broadcast device, install loaded down with trivial details, user experience is low, power consumption is large and use inconvenience etc. problem.
In order to realize above object, technical scheme of the present invention is as follows:
A device for acquisition and processing weather data and image, comprises power supply, weather data sensor, first processor, figureImage-position sensor and the second processing module, wherein first processor is connected with weather data sensor, for gathering tested sceneWeather data is also sent to the second processing module by these data, and the second processing module is connected with imageing sensor, for gathering quiltSurvey scene image and the weather data that this image and first processor send is synthesized, it is characterized in that: also comprise power supplyControl module, and first processor has two kinds of mode of operations, i.e. normal mode of operation and park mode, and between the regular hourEvery the interior mode of operation that converts regularly, when first processor is during in normal mode of operation, first processor passes from weather dataIn sensor, reading out data is also realized the power supply to imageing sensor, the second processing module by described energy supply control module; When firstProcessor is in the time of park mode, and first processor is reading out data and not to imageing sensor and from weather data sensor notTwo processing module power supplies.
Further, described first processor comprises trigger control module, whether reaches regulation for the variation that judges weather dataThen whether the acquisition time interval of value or imageing sensor; When the variation of weather data reaches adopting of setting or imageing sensorThe collection time interval, then trigger control module triggered energy supply control module, realized imageing sensor and the second processing modulePower supply, imageing sensor and the second processing module are started working; When the variation of weather data does not reach setting or imageing sensorAcquisition time interval not then, do not trigger energy supply control module, imageing sensor and the second processing module are not worked, firstProcessor continues to enter park mode.
Whether then or figure further, described first processor also comprises time inquiring module, for inquiring about sleep intervalThen whether the acquisition time interval of image-position sensor; When sleep interval then, first processor enters normal mode of operationAnd trigger control module is started working; When sleep interval not then, continue the acquisition time interval of query image sensorWhether then; When the acquisition time interval of imageing sensor then, first processor enters normal mode of operation and controls power supplyControl module realizes the power supply to imageing sensor, the second processing module, and imageing sensor, the second processing module are started working;When the acquisition time interval of imageing sensor not then, first processor continues to enter park mode.
Further, described weather data sensor is Temperature Humidity Sensor, Raindrop sensor, atmosphere pressure sensor, ultraviolet rayAt least one in sensor, is preferably four, and the variation of described weather data refers to the variation of humiture or the change that raindrop have or notChange.
Further, described the second processing module comprises the second processor, memory, wireless communication module, and the second processor is usedSynthetic in collection, image and the weather data of image, memory is for storing the working procedure of the second processor, wireless telecommunicationsModule sends to high in the clouds for image and weather data that the second processor is processed after synthesizing; When wireless communication module is to high in the cloudsWhen sending image and weather data, obtain the uplink time interval of next time toward high in the clouds transmission from high in the clouds, and by the second processorBe transferred to first processor, first processor is preserved described uplink time interval, as the acquisition time interval of imageing sensor andNext time is toward the time interval of high in the clouds transmission data; Described uplink time interval can arrange as required; Described wireless telecommunicationsModule is preferably wifi communication module.
Further, described power supply is mainly made up of lithium battery, charge management module and solar panel, described solar-electricityPond plate is used for converting solar energy into electrical energy and being delivered to lithium battery by charge management module, described in described lithium battery is used for storingThe electric energy that solar energy transforms. Between power supply and weather data sensor and first processor, be provided with switch key, for open orClose the power supply of whole equipment.
According to a further aspect in the invention, provide a kind of and gather and the method for processing weather data and image, comprise the following steps:First processor is connected with weather data sensor, gathers the weather data of tested scene and these data are sent to the second processingModule, the second processing module is connected with imageing sensor, gathers tested scene image and this image and first processor are sentThe weather data coming synthesizes; First processor proceeds to immediately park mode after normal mode of operation, and in the regular hourIn interval, convert regularly mode of operation, and when first processor is during in normal mode of operation, first processor is from sky destinyReportedly in sensor, reading out data is also realized the power supply to imageing sensor, the second processing module by an energy supply control module; WhenOne processor in the time of park mode, first processor not from weather data sensor reading out data and not to imageing sensor andThe second processing module power supply.
Further, first processor is carried out one and is triggered control program, whether has reached rule for the variation that judges weather dataThen whether the acquisition time interval of definite value or imageing sensor; When the variation of weather data reaches setting or imageing sensorAcquisition time interval then, is triggered control program and is triggered energy supply control module, realizes imageing sensor and the second processing modulePower supply, imageing sensor and the second processing module are started working; When the variation of weather data does not reach setting or image sensingEnergy supply control module not then, is not triggered in the acquisition time interval of device, and imageing sensor and the second processing module are not worked, theOne processor continues to enter park mode.
Whether then or figure further, first processor is also carried out a time inquiring program, for inquiring about sleep intervalThen whether the acquisition time interval of image-position sensor; When sleep interval then, first processor enters normal mode of operationAnd carry out and trigger control program; When sleep interval not then, whether continue the acquisition time interval of query image sensorThen; When the acquisition time interval of imageing sensor then, first processor enters normal mode of operation and controls power supply controlModule realizes the power supply to imageing sensor, the second processing module, and imageing sensor, the second processing module are started working; Work as figureNot then, first processor continues to enter park mode at the acquisition time interval of image-position sensor.
Further, described weather data is at least one in the having or not of humiture, raindrop, atmospheric pressure, uitraviolet intensity,Be preferably four, the variation of described weather data refers to the variation of humiture or the variation that raindrop have or not.
Further, described the second processing module comprises the second processor, memory, wireless communication module, when the second processing mouldAfter piece powers on, the second processor from memory load operating program to self space, then gather tested scene image data,And this image and weather data are synthesized, then by wireless communication module, image and weather data after synthetic are sent toHigh in the clouds; Wireless communication module, in sending image and weather data to high in the clouds, obtains next time toward the transmission of high in the clouds from high in the cloudsPass the time interval, and be transferred to first processor by the second processor, first processor is preserved described uplink time interval, asThe acquisition time interval of imageing sensor and next time are toward the time interval of high in the clouds transmission data; Described uplink time interval can basisNeed to arrange, described wireless communication module is preferably wifi communication module.
Further, adopt solar panel convert solar energy to electric energy, and by charge management module to lithium cell charging,Lithium battery store electrical energy is also given the device power supply gathering with processing weather data and image; Preferably, adopt a switch key to openOr close the power supply of whole equipment.
According to a further aspect in the invention, provide a kind of and gather and the system of processing weather data and image, comprise cloud serverAnd client, it also comprises collection provided by the invention and the device of processing weather data and image, described collection and processing weatherThe device of data and image sends related news to cloud server, and by server to client push message, user also can be led toCross client and download related news from cloud server.
Further, the described cloud server device of described acquisition and processing weather data and image is sent many groups is to closeThe data and the image that become again synthesize and form animation, make user can judge intuitively and accurately the wind and cloud of tested scene weatherChange.
Further, described client is the intelligent terminals such as mobile phone, Ipad, computer, and user can look at any time by described clientSee and be placed on weather data and the real scene image that the device of different regions collects.
Collection provided by the invention and device, the method and system of processing weather data and image, the weather data of collection and pictureMutually corresponding, embody in real time, on the spot, outdoor scene effect, can truly reflect current weather situation of change. User is according to oneselfNeed to be placed on own interested position by gathering with the device of processing weather data and image, then by mobile phone, Ipad orThe intelligent terminals such as computer are checked weather data and the real scene image of device their location at any time, understand the true feelings that local weather changesCondition, convenient trip.
Collection provided by the invention and device, the method and system of processing weather data and image, comprise trigger mechanism, can pass throughThe variation (as rained, temperature shock etc.) of weather data triggers rapidly the candid photograph of imageing sensor, can record in time the change of weather momentChange scene, and send relevant information to cloud server end, to client push information, make the user can be timely by cloud serverLearn Changes in weather situation.
Collection provided by the invention and device, the method and system of processing weather data and image, its cloud server is adopted deviceAfter the data of collection and image are synthetic, form animation, make user can intuitively judge accurately the changeable situation of tested scene weather, increaseThe intuitional and experiential thinking of strong user to whole day Changes in weather. And the time interval that gathers weather data and image can arrange as required,Can conveniently catch sunrise sunset scene changes, make client can generate the weather animation of different-effect, meet user to different animationsThe demand of effect.
Collection provided by the invention and device, the method and system of processing weather data and image, low in energy consumption, and have chargeableBattery, utilizes solar panel to charge the battery, the working time of extension fixture, remove the frequent replacing of battery from, and wirelessDesign makes it without wiring, easy for installation, is conducive to the universal of meteorological data collection equipment and uses.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
In Fig. 1, gather with the device of processing weather data and image and comprise: weather data sensor 1, first processor 2, figureImage-position sensor 3, the second processing module 4, power supply 5, energy supply control module 6 and switch key 7. Wherein, weather data sensingDevice 1 is at least one in Temperature Humidity Sensor 11, Raindrop sensor 12, atmosphere pressure sensor 13, UV sensor 14,The second processor comprise trigger control module 21 and time inquiring module 22, the second processing modules 4 comprise the second processor 41,Memory 42 and wireless communication module 43, power supply 5 comprises lithium battery 51, charge management module 52 and solar panel 53.
First processor 2 is connected by I2C interface or AD interface with weather data sensor 2, for gathering tested sceneWeather data, as the having or not of humiture, raindrop, atmospheric pressure and uitraviolet intensity, and connects the data that collect by UARTThe second processor 41 in the second processing module 4 is passed in oral instructions.
The second processor 41 is connected with memory 42, wireless communication module 43 and imageing sensor 3 by various interface. ItsIn, imageing sensor 3 is for gathering tested scene image, and optical signal is converted to the signal of telecommunication, and the signal of telecommunication after conversion is logicalCross DVP interface and be transferred to the second processor 41. Memory 42 is connected with the second processor 41 by SPI interface, mainly usesIn the working procedure of storage the second processor 41. After the second processing module 4 powers on, the second processor 41 is from memory 42Read working procedure and this program is loaded into self the program space, control chart image-position sensor 3 gathers image and receives image and passesThe electric image signal that sensor 3 is sent, then processes and compression electric image signal, receives the sky that first processor 2 is sentGas data-signal and by it with process and compression after electric image signal synthesize. Wireless communication module 43 is by SDIO interfaceBe connected with the second processor 41, for synthetic transfer of data that the second processor 41 is sended over to router, thenUpload to high in the clouds by router, and can receive data from high in the clouds, the time interval that upload for example next time toward high in the clouds, between this timeEvery arranging according to user's needs. For example be set to by day 2-20min each, be set to 1-3h at night each,Work as the scene changes of empty photograph with seizure sunrise sunset, the sun, thereby generate the weather animation of different-effect in client, improve and useThe experience property at family. Described wireless communication module 43 adopts common wireless communication mode, such as wifi communication modes etc. SecondBetween processor 41 and memory 42 and wireless communication module 43, can take the mode of various interface and data wire to interconnect,Also can be integrated in and on a chip, become the second as a whole processing module 4.
First processor 2 is generally in two kinds of mode of operations, i.e. normal mode of operation and park mode, and between the regular hourEvery the interior mode of operation that converts regularly. When first processor 2 is during in normal mode of operation, first processor 2 is from sky destinyReportedly reading out data in sensor 1; When first processor 1 is during in park mode, first processor 2 is not from weather data sensingReading out data in device 1. Between first processor 2 and imageing sensor 3 and the second processing module 4, be provided with a power supply controlModule 6, in the time that first processor 2 is under normal mode of operation, can by energy supply control module 6 realize to imageing sensor 3,The power supply of the second processing module 4 is not powered to imageing sensor 3 and the second processing module 4 under park mode. And normallyMode of operation lower time, need to there is a trigger mechanism could start energy supply control module 6 and process mould to imageing sensor 3 and secondThe power supply of piece 4. Described trigger mechanism is completed by the trigger control module 21 in first processor 2.
Described trigger control module 21 is for judging whether the variation of weather data reaches setting or the collection at imageing sensor 3Then whether the time interval; When acquisition time interval that the variation of weather data reaches setting or imageing sensor 3 then,Trigger control module 21 triggers energy supply control module 6, realizes the power supply to imageing sensor 3 and the second processing module 4, imageSensor 3 and the second processing module 4 are started working; When the variation of weather data does not reach adopting of setting or imageing sensor 3The collection time interval not then, is not triggered energy supply control module 6, and imageing sensor 3 and the second processing module 4 are not worked, theOne processor 1 continues to enter park mode. The judgment mode whether variation of described weather data reaches setting is: the first placeReason device 2 reads the weather data in weather data sensor 1, and the having or not and last time of the humiture that this is read or raindropData compare, judged whether to reach the changing value of regulation, the above or humidity of for example range of temperature 1 degree changes 5%Above, or raindrop whether from without become have or raindrop from there being the nothing of becoming. The acquisition time of described imageing sensor 3 is spaced apart secondIn the time interval of processing module 4 uploading datas, obtain from high in the clouds and be transferred to by the second processor 41 by the second processing module 4One processor 2, and be kept in first processor 2. Adopt such mode of operation, can reduce the power consumption of whole device,Can collect in time the variation of weather data and capture rapidly tested scene image, record weather instantaneous variation sight simultaneously.
Conversion between normal mode of operation and park mode is completed by the time inquiring module 22 being arranged in first processor 2,Described time inquiring module be mainly used in inquiring about sleep interval whether then or the acquisition time interval of imageing sensor 3 whetherThen; When sleep interval then, first processor 2 enters normal mode of operation and trigger control module 21 is started working;When sleep interval not then, whether then continue the acquisition time interval of query image sensor 3; Work as imageing sensorThen, first processor 2 enters normal mode of operation and controls energy supply control module 6 and realize figure at 3 acquisition time intervalThe power supply of image-position sensor 3, the second processing module 4, imageing sensor 3, the second processing module 4 are started working; Work as image sensingNot then, first processor 2 continues to enter park mode at the acquisition time interval of device 3.
In order to extend the work duration that gathers and process the device of weather data and image, avoid frequently changing the inconvenience that battery brings,Device of the present invention adopts rechargeable lithium battary 51 as power supply, and described lithium battery 51 is by charge management module 52 and the sunCan be connected by cell panel 53. Solar panel 53 can be accepted solar energy, and converts it to electric energy, passes through Charge ManagementModule 52 powers to lithium battery 51, further extends the power supply duration of lithium battery.
In order further to extend the service life that gathers and process the device of weather data and image, whole equipment while avoiding not needingThe unlatching of power supply is provided with switch key between power supply 5 and weather data sensor 1 and first processor 2, for controllingThe unlatching of whole device power supply (DPS) or close. Opening after switch key, weather data sensor 1 and first processor 2 start,First processor 2 is at once in uplink time interval for the first time, and energy supply control module 6 will be opened imageing sensor 3 andTwo processing modules 4, gather the image of tested scene and this image and weather data are synthesized, and upload to high in the clouds.
Now the method for the 2 pairs of acquisition and processing weather datas of the present invention and image is elaborated by reference to the accompanying drawings.
S1: first, press switch key 7;
S2: first processor 2 starts, carries out program initialization work, respective pin and each storage of configuration first processor 2Device;
S3: first processor 2 has initialized afterwards and weather data sensor 1 carries out communication, reads related data;
S4: first processor 2, by power supply control valve placement of foot, triggers energy supply control module 6 the second processing module 4 is powered;
S5: the second processor 41 reads working procedure and this program is loaded into the program space of self from memory 42;
S6: carry out communication with imageing sensor 3 after the second processor 41 loading procedures complete, control chart image-position sensor 3 gathers quiltSurvey scene image and receive view data;
S7: the second processor 41 receives the view data that imageing sensor 3 sends, and processes and compresses;
S8: the second processor 41 synthesizes the view data after compression and the weather data that sends of first processor 2;
S9: the second processor 41 is controlled wireless communication module 43 and is connected with router, and all data are given by Internet TransmissionHigh in the clouds, obtains the uplink time interval of next time toward high in the clouds uploading data simultaneously from high in the clouds;
S10: uplink time interval is transferred to first processor 2 by the second processor 41;
S11: first processor 2 receives and preserve this uplink time interval, as the time interval of uploading next time and imageing sensor3 gather the time interval of image, and simultaneously by power supply control valve placement of foot, powered-down control module 6, ends image sensingDevice 3, the second processing module 4 are powered;
S12: first processor 1 enters park mode;
S13: first processor 2 carries out time inquiring, judges whether then dormancy time;
S14: if dormancy time then, wake first processor 2 up, read the weather data in weather data sensor 1;Compare with the data of last time, judge whether data change and change whether reached setting; Reach if changedSetting, whole device is carried out S4, if do not changed, whole device is carried out S12; Or judge between the IMAQ timeWhether every then,, if then, whole device is carried out S4; If then, whole device is not carried out S12;
S15: if the length of one's sleep is not then, continue whether then to judge uplink time interval, if then, whole deviceCarry out S3; If then, whole device is not carried out S12.
As specific embodiments of the invention, in S1, weather data sensor 1 comprises temperature and humidity sensing 11, Raindrop sensor12, atmosphere pressure sensor 13 and UV sensor 14, the related data reading is the having or not of humiture, raindrop, atmospheric pressureUitraviolet intensity by force.
As another embodiment of the present invention, in S9, user can arrange uplink time interval by high in the clouds. By dayWith two different uplink time intervals are set night, be for example set to from morning 5:00 to 20:00 in evening, between uplink timeBe divided into 2-20min each; From 5:00, it is each that uplink time is spaced apart 1-3h in morning in the 20:00 to the second day evening. So,Can omnidistancely catch the scene changes of sunrise sunset or the weather scene on daytime, form the weather animation of different-effect in client,Improve user's experience property, also can avoid gathering too much black sky, the work of further beautifying visual effect extension deviceMake duration.
As another embodiment of the present invention, in S14, the humiture value that first processor 2 reads this and the temperature of last timeHumidity compares, if range of temperature more than 1 degree or humidity change more than 5%, whole device is carried out S4, asThe variation of fruit humiture does not meet above-mentioned condition, and whole device is carried out S12.
As another embodiment of the present invention, in S14, the raindrop that first processor 2 reads this have or not the rain with last timeDrip and have stateless to compare, if the stateless that has of raindrop changes, whole device is carried out S4, if the having or not of raindropState is unchanged, and whole device is carried out S12.
As another embodiment of the present invention, in S14, whether then first processor 2 judges the IMAQ time interval,If then, whole device is carried out S4, if not then, whole device is carried out S12.
As another embodiment of the present invention, in whole workflow, adopt solar panel 53 to convert solar energy to electricityCan, and charge to lithium battery 51 by charge management module 52, lithium battery 51 store electrical energy are also given collection and process weather dataThe device power supply of volume and image.
As another embodiment of the present invention, in whole workflow, open switch key, weather data sensor 1 andOne processor 2 starts, and first processor 2 is at once in uplink time interval for the first time, and energy supply control module 6 will be openedImageing sensor 3 and the second processing module 4, gather the image of tested scene and this image and weather data synthesized, onPass to high in the clouds. Closing switch button, whole device is closed.
With collection of the present invention and the system that the device of processing weather data and image adapts, comprise cloud server and client,Also comprise collection provided by the invention and the device of processing weather data and image, described collection and processing weather data and imageDevice send related news to cloud server, and by server to client push message.
As specific embodiments of the invention, described cloud server is sent out the device of described acquisition and processing weather data and imageMany groups of data of having synthesized and the image sent here again synthesize and form animation, user can be judged intuitively and accurately testedThe changeable situation of scene weather.
As another embodiment of the present invention, described client is the intelligent terminals such as mobile phone, Ipad or computer, and user can pass through instituteStating client checks at any time and is placed on weather data and the real scene image that the device of different regions collects.
Above disclosed is only preferred embodiment of the present invention, can not limit with this interest field of the present invention, and this area is commonTechnical staff is appreciated that all or part of flow process that realizes above-described embodiment, and the equivalent variations of doing according to the claims in the present invention,Still belong to the scope that the present invention is contained.