CN105827682A - Data uploading and downloading methods and devices thereof - Google Patents

Data uploading and downloading methods and devices thereof Download PDF

Info

Publication number
CN105827682A
CN105827682A CN201510012008.4A CN201510012008A CN105827682A CN 105827682 A CN105827682 A CN 105827682A CN 201510012008 A CN201510012008 A CN 201510012008A CN 105827682 A CN105827682 A CN 105827682A
Authority
CN
China
Prior art keywords
server
data
middleware
collecting device
control instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510012008.4A
Other languages
Chinese (zh)
Inventor
凌翔
何建国
王志武
罗志发
褚新波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Telecommunication Science & Technology Co Ltd
Datang Telecom Technology Co Ltd
Original Assignee
Datang Telecommunication Science & 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 Datang Telecommunication Science & Technology Co Ltd filed Critical Datang Telecommunication Science & Technology Co Ltd
Priority to CN201510012008.4A priority Critical patent/CN105827682A/en
Publication of CN105827682A publication Critical patent/CN105827682A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of present invention provides data uploading and downloading methods and devices thereof. The uploading method comprises the steps that middleware configures the connection information of collection equipment which comprises unique first identification information, and the connection information comprises first identification information; a pre-loaded driving program is loaded according to the connection information, and the connection between the collection equipment and a server is established; the collection equipment obtains collection data in real time; the collection data is uploaded to the server through the middleware; the middleware analyzes the collection data and generates an analysis result with a standard format; and the analysis result is uploaded to the server. Through the data uploading method provided by the invention, the development cost of upper and lower computer control systems can be reduced, and the processing efficiency of the data is improved.

Description

The uploading of a kind of data, method for down loading and device thereof
Technical field
The application relates to technical field of data transmission, particularly relates to the uploading of a kind of data, method for down loading and device thereof.
Background technology
The control system being applied to commercial production and agricultural production generally includes host computer and slave computer, completes to control with the control program in host computer and slave computer.
The control program of slave computer is generally developed by manufacturer, and by manufacturer's defining operation system and the presentation mode of data, the control program of host computer is the control program development according to slave computer, need to match with the control program of slave computer.
Current control system generally includes the slave computer produced by different manufacturers, in actual applications, needs control program corresponding for different slave computer exploitations in host computer, and the workload of exploitation is huge, and development cost is too high.
Simultaneously, after data are acquired by slave computer, need to upload to data respectively in corresponding pc control procedure, different pc control procedures data be processed, generate control instruction, and control instruction is downloaded to the slave computer of correspondence, it is to say, current control system needs data are carried out dispersion process, processing procedure needs run substantial amounts of control program, take a large amount of system resources of host computer, cause the inefficiency that data process.
Such as, in Greenhouse System, need in host computer server, develop the control program that different slave computer collecting devices is corresponding, by slave computer, greenhouse data are acquired, then it upload the data in the server control program of correspondence, divide and by different server control program, data are processed, generate control instruction, and control instruction is downloaded to respectively in the collecting device of correspondence, substantial amounts of control program is run in the server due to needs, data are carried out dispersion process, the inefficiency that data process, in the case of data volume is huge, there is also the problems such as system crash.
Accordingly, it would be desirable to a technical problem urgently solving of those skilled in the art is exactly: propose the uploading of a kind of data, download mechanism, in order to reduce the development cost of current upper and lower computer control system, and improve data-handling efficiency.
Summary of the invention
The embodiment of the present application technical problem to be solved is to provide the uploading of a kind of data, method for down loading and device thereof, to reduce the development cost of current upper and lower computer control system, and improves data-handling efficiency.
In order to solve the problems referred to above, this application discloses the method for uploading of a kind of data, including:
The link information of middleware configuration collecting device;Described collecting device includes unique first identification information;Described link information includes described first identification information;
Load preset driver according to described link information, set up the connection of described collecting device and server;
Described collecting device obtains collection data in real time;
Described collection data are uploaded to described server by described middleware;
Described collection data are resolved by described middleware, generate the analysis result with reference format;
Described analysis result is uploaded to described server.
Preferably, described server includes unique second identification information and data throughput information, loads preset driver described according to described link information, after setting up the step of connection between described collecting device and server, also includes:
Generate and connect map information;Described connection map information includes described second identification information and described data throughput information.
Preferably, described the step that described collection data upload to described server by described middleware is included:
Described collection data are uploaded to described middleware;
Described collection data, according to described connection map information, are uploaded to described server in the way of message queue by described middleware;
Preferably, the described step that described analysis result uploads to described server includes:
According to described connection map information, in the way of message queue, described analysis result is uploaded to described server.
The embodiment of the present application also discloses the method for down loading of a kind of data, including:
Server receives the analysis result that middleware is uploaded;Described analysis result is gathered data genaration by described middleware by resolving, and has reference format;Described collection data, after the connection establishment of described server and collecting device, by described collecting device Real-time Collection, and upload to described server by described middleware;The connection of described server and collecting device by configuring the link information of described collecting device by described middleware, is loaded preset driver according to described link information and sets up;Described collecting device has unique first identification information;Described link information includes described first identification information;
Obtain current business demand;
The first corresponding control instruction is generated with described business demand according to described analysis result;
Described first control instruction is downloaded to described middleware;
Described first control instruction is resolved by described middleware, generates the second control instruction that described collecting device is capable of identify that;
Described second control instruction is downloaded to described collecting device by described server;Described second control instruction is uploaded to described server by described middleware;
Preferably, described server includes unique second identification information and data throughput information;Described second control instruction according to connecting map information, is uploaded to described server by described middleware in the way of message queue;Described connection map information by described middleware generate after the connection establishment of described server and described collecting device;Described connection map information includes described second identification information and described data throughout.
Preferably, described method also includes:
Described collecting device performs the control operation that described second control instruction that receives is corresponding, and by perform described control operation after collection data upload to described server.
Preferably, described method also includes:
By described collection data display in client.
What the embodiment of the present application also disclosed a kind of data uploads device, including:
Link information configuration module, is positioned at middleware, for configuring the link information of collecting device;Described collecting device includes unique first identification information;Described link information includes described first identification information;
Connection establishment module, is positioned at middleware, for loading preset driver according to described link information, sets up the connection of described collecting device and server;
Gather data acquisition module, be positioned at collecting device, obtain in real time and gather data;
Gather transmission module in data, be positioned at collecting device, for described collection data are uploaded to described server by described middleware;
Gather data resolution module, be positioned at middleware, for described collection data are resolved, generate the analysis result with reference format;
Transmission module on analysis result, is positioned at middleware, for described analysis result is uploaded to described server.
The embodiment of the present application also discloses the download apparatus of a kind of data, including:
Analysis result receiver module, is positioned at server, for receiving the analysis result that middleware is uploaded;Described analysis result is gathered data genaration by described middleware by resolving, and has reference format;Described collection data, after the connection establishment of described server and collecting device, by described collecting device Real-time Collection, and upload to described server by described middleware;The connection of described server and collecting device by configuring the link information of described collecting device by described middleware, is loaded preset driver according to described link information and sets up;Described collecting device has unique first identification information;Described link information includes described first identification information;
Business demand acquisition module, is positioned at server, is used for obtaining current business demand;
First control instruction generation module, is positioned at server, for generating the first corresponding control instruction according to described analysis result with described business demand;
First control instruction download module, is positioned at server, for described first control instruction is downloaded to described middleware;
First control instruction parsing module, is positioned at middleware, for resolving described first control instruction, generates the second control instruction that described collecting device is capable of identify that;
Second control instruction download module, is positioned at server, for described second control instruction is downloaded to described collecting device;Described second control instruction is uploaded to described server by described middleware;
Compared with prior art, the embodiment of the present application includes advantages below:
The embodiment of the present application is by arranging middleware, link information by middleware configuration collecting device, the driver that collecting device is corresponding is loaded according to link information, the connection between different acquisition equipment and server is set up in the way of load driver, thus, the embodiment of the present application only need to arrange the driver of correspondence for different collecting devices, it is not necessary in the server for the control program that different collecting device exploitations is corresponding, decrease the workload of exploitation, reduce development cost.
During uploading collection data, first the collection data uploaded are resolved by middleware, generate the analysis result with reference format, again analysis result is uploaded onto the server, the form gathering data is carried out after reunification by i.e. the embodiment of the present application by middleware, then uploads onto the server, and then analysis result can be uniformly processed by server, the dispersion avoiding different control program processes the problem causing inefficiency, improves the treatment effeciency of data.
Further, the middleware of the embodiment of the present application can be according to connecting map information, such as the second identification information according to different server, data throughout, after carrying out load balancing, collection data and analysis result are uploaded onto the server, when the data volume uploaded is big, the data uploaded can be carried out equilibrium assignment, improve the upper transfer efficiency of data.
Further, collection data and analysis result can be uploaded onto the server in the way of using message queue by the embodiment of the present application, it is ensured that the integrity that data are uploaded.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of the method for uploading embodiment of a kind of data of the application;
Fig. 2 is the flow chart of steps of the method for down loading embodiment of a kind of data of the application;
Fig. 3 is the structure chart uploading device embodiment of a kind of data of the application;
Fig. 4 is the structure chart of the download apparatus embodiment of a kind of data of the application.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the application, feature and advantage to become apparent from, with detailed description of the invention, the application is described in further detail below in conjunction with the accompanying drawings.
One of core idea of the embodiment of the present application is, by arranging middleware, link information by middleware configuration collecting device, the driver that collecting device is corresponding is loaded according to link information, set up the connection between collecting device and server, the application only need to be to the driver of different collecting device exploitation correspondences, without control program corresponding to different collecting device exploitations in the server, reduce development cost, simultaneously, by middleware, collection number is resolved, upload onto the server after generating the analysis result of uniform format, by server, analysis result is uniformly processed, the dispersion avoiding different control program processes the problem causing inefficiency, improve the treatment effeciency of data.
With reference to Fig. 1, it is shown that the flow chart of steps of the method for uploading embodiment of a kind of data of the application, specifically may include steps of:
Step 101, the link information of middleware configuration collecting device;
Step 102, loads preset driver according to described link information, sets up the connection of described collecting device and server;
In the controls, host computer is control equipment, it is responsible for the generation of control instruction, slave computer is controlled device, be responsible for data collection upload with control instruction perform operation, host computer operates by realizing the control to slave computer with the data interaction of slave computer, before the data interaction of host computer and slave computer, needs the communication connection first setting up between host computer and slave computer.
In the embodiment of the present application, preset driver can be loaded according to link information by the link information of middleware configuration collecting device, set up the connection of collecting device and server.
In a particular application, collecting device is provided with unique first identification information, and link information can include the first identification information.
The embodiment of the present application can be developed corresponding driver for different collecting devices, be provided with the activation bits such as the port of collecting device, address, communication protocol, network access mode, the first identification information in driver.
Driver can use unified development language to develop, and as being used uniformly across the development languages such as JAVA, C/C++ .NET, can avoid the compatibility issue between different development language.
Can load, according to the first identification information, the driver that collecting device is corresponding, the communication connection of collecting device and server can be set up according to activation bit.
After setting up the communication connection of collecting device and server, collecting device and server can carry out data interaction by network, as carried out data interaction by wireless networks such as 3G, 4G, GPRS, it is also possible to carry out data interaction by the mode such as Ethernet, COM.
In a particular application, the embodiment of the present application, during setting up the communication connection of collecting device and server, can be carried out authentication by server to collecting device, after authentication is passed through, allow the communication connection setting up server with collecting device, to guarantee the safety of data interaction.
Such as, the identification information list of collecting device preset with server for the first identification information of collecting device can be mated by server, the match is successful then sets up connection, mate unsuccessful then refusal and set up connection, certainly, this is a kind of example of authentication, and the mode of authentication is not any limitation as by the embodiment of the present application, and those skilled in the art can be in the way of selecting authentication according to actual needs.
The embodiment of the present application is by arranging middleware, link information by middleware configuration collecting device, the driver that collecting device is corresponding is loaded according to link information, the connection between different acquisition equipment and server is set up in the way of load driver, thus, the application only need to arrange the driver of correspondence for different collecting devices, it is not necessary in the server for the control program that different collecting device exploitations is corresponding, decrease the workload of exploitation, reduce development cost
Step 103, generates and connects map information;
In a kind of preferred exemplary of the application, server can include unique second identification information and data throughput information.
Data throughout refers to that server can be successfully received the quantity of data within the unit interval, the ability of data is received in order to characterize server, when server is when the data volume that unit interval domestic demand receives is less than data throughout, and it is the fastest that server receives the speed of data.
In the embodiment of the present application, after setting up the communication connection of server and collecting device, connection map information can be generated, connect map information and can include the second identification information and data throughput information
Step 104, described collecting device obtains collection data in real time;
Described collection data are uploaded to described server by described middleware by step 105;
After setting up the communication connection of server and collecting device, collecting device can carry out data acquisition in real time, obtains and gathers data, collection data is uploaded onto the server by middleware, and the collection data uploaded can include the first identification information.
In a particular application, in collection data can being uploaded onto the server by collecting device timing, it is also possible to by the collection data in server timing inquiry collecting device.
For the time length of timing, can arrange the most voluntarily, as timing is set to 180S, 120S etc..
In a preferred embodiment of the present application, step 105 can include following sub-step:
Described collection data are uploaded to described middleware by sub-step 105a;
Sub-step 105b, described collection data, according to described connection map information, are uploaded to described server in the way of message queue by described middleware.
In the embodiment of the present application, collecting device can upload to middleware by gathering data, load balancing is carried out according to connecting map information by middleware, as determined the quantity of server according to the second identification information, then load balancing is carried out according to the data throughout of each server, the amount of the data that the servers share that data throughout is big arrives is natural the most, and the amount of the data that the servers share that data throughout is little arrives is naturally the fewest.
After collection data are carried out load balancing, by the way of message queue (MessageQueue), collection data can be uploaded onto the server.
Message queue is equivalent to a container, data message can be preserved, if server is not properly received collection data, these data can be saved by message queue, until server is successfully received this collection data, therefore, by the way of message queue, collection data are uploaded onto the server, can ensure that the integrity gathering data, prevent gathering data and lose during uploading.
The middleware of the embodiment of the present application can be according to connecting map information, such as the second identification information according to different server, data throughput information, after carrying out load balancing, collection data are uploaded onto the server, when the data volume uploaded is big, the data uploaded can be carried out equilibrium assignment, improve the upper transfer efficiency of data.
Further, collection data and analysis result can be uploaded onto the server in the way of using message queue by the embodiment of the present application, prevent data from losing during uploading, it is ensured that the integrity that data are uploaded.
Step 106, described collection data are resolved by described middleware, generate the analysis result with reference format;
Step 107, uploads to described server by described analysis result.
In a particular application, the form of the collection data that different collecting devices obtains is different, and after collection data being uploaded onto the server, middleware can resolve gathering data, generates the analysis result with reference format.
Reference format refers to XML format, and middleware resolves operation by collection data carry out the conversion etc. of binary arithmetic operation, type, generates the XML file with reference format, i.e. analysis result.
After being parsed, the XML file of generation can be uploaded onto the server by middleware, and server can carry out follow-up operation according to XML file, and the analysis result uploaded onto the server can include the first identification information.
In a preferred embodiment of the present application, step 107 can include following sub-step:
Sub-step 107a, according to described connection map information, uploads to described server by described analysis result in the way of message queue.
In the embodiment of the present application, middleware can carry out load balancing according to connecting map information, as determined the quantity of server according to the second identification information, then load balancing is carried out according to the data throughout of each server, the amount of the data that the servers share that data throughout is big arrives is natural the most, and the amount of the data that the servers share that data throughout is little arrives is naturally the fewest.
After analysis result is carried out load balancing, by the way of message queue (MessageQueue), analysis result can be uploaded onto the server.
Message queue is equivalent to a container, data message can be preserved, if server is not properly received analysis result, this analysis result can be saved by message queue, until server is successfully received this analysis result, therefore, by the way of message queue, analysis result is uploaded onto the server, can ensure that the integrity of analysis result, prevent analysis result from losing during uploading.
The middleware of the embodiment of the present application can be according to connecting map information, such as the second identification information according to different server, data throughput information, after carrying out load balancing, analysis result is uploaded onto the server, when the data volume uploaded is big, the data uploaded can be carried out equilibrium assignment, improve the upper transfer efficiency of data.
Further, analysis result can be uploaded onto the server in the way of using message queue by the embodiment of the present application, prevents analysis result from losing during uploading, it is ensured that the integrity that analysis result is uploaded.
With reference to Fig. 2, it is shown that the flow chart of steps of the method for down loading embodiment of a kind of data of the application, specifically may include steps of:
Step 201, server receives the analysis result that middleware is uploaded;Described analysis result is gathered data genaration by described middleware by resolving, and has reference format;Described collection data, after the connection establishment of described server and collecting device, are gathered by described collecting device, and upload to described middleware;The connection of described server and collecting device by configuring the link information of described collecting device by described middleware, is loaded preset driver according to described link information and sets up;Described collecting device has unique first identification information;Described link information includes described first identification information;
Step 202, obtains current business demand;
Step 203, generates the first corresponding control instruction according to described analysis result with described business demand;
Step 204, downloads to described middleware by described first control instruction;
Step 205, described first control instruction is resolved by described middleware, generates the second control instruction that described collecting device is capable of identify that;
Analysis result is that middleware carries out resolving acquisition to gathering data, has the form of standard, can be XML file, and server, after receiving analysis result, can obtain current business demand.
It should be noted that for different service application, can have different business demands, such as, in the production of product controls, business demand can be the production technology model of product, and in chamber planting, business demand can be the growth model of crop.
Analysis result and business demand can be compared analysis by the embodiment of the present application, it is judged that whether the data of collection meet business demand, and generate the first control instruction according to judged result, and the first control instruction can include the first identification information.
First control instruction is that the analysis result according to reference format generates, there is the data form of standard equally, first control instruction cannot be identified by collecting device, therefore, after generating the first control instruction, the first control instruction can be downloaded to middleware, middleware the first control instruction be resolved, generating the second control instruction that collecting device is capable of identify that, the second control instruction can include the first identification information.
In concrete application, middleware can obtain the data form of corresponding collecting device according to the first identification information in the first control instruction, generating the second control instruction after binary computations, data type conversion, the data form of the second control instruction meets the data form of the collecting device of correspondence.
Step 206, described second control instruction is downloaded to described collecting device by described server;
Second control instruction can be uploaded to server by middleware, and the second control instruction according to the first identification information, can be downloaded to the collecting device of correspondence by server.
In a preferred embodiment of the present application, described server includes unique second identification information and data throughput information;Described second control instruction according to connecting map information, is uploaded to described server by described middleware in the way of message queue;Described connection map information is generated after the connection establishment of described server and described collecting device by described middleware;Described connection map information includes described second identification information and described data throughout.
Middleware after the second control information is carried out load balancing, can be uploaded to server according to the data throughout of server corresponding to the second identification information connected in map information and the second identification information in the way of message queue.
The middleware of the embodiment of the present application can be according to connecting map information, such as the second identification information according to different server, data throughput information, after carrying out load balancing, the second control instruction is uploaded to server, when the data volume uploaded is big, the data uploaded can be carried out equilibrium assignment, improve the upper transfer efficiency of data.
After server receives the second control instruction, the second control instruction can be downloaded in collecting device.
Further, the second control instruction can be uploaded onto the server in the way of using message queue by the embodiment of the present application, prevents the second control instruction from losing during uploading, it is ensured that the integrity that analysis result is uploaded.
In a preferred embodiment of the present application, described collecting device performs the control operation that described second control instruction that receives is corresponding, and upload to described server, the convenient monitoring that control instruction is performed result by performing the described collection data controlled after operating.
In a preferred embodiment of the present application, can be by described collection data display in client.
In a particular application, can gather data by collection data display in client as shown in the client such as mobile phone, panel computer, so, user can know collection data, the operation result of real-time monitoring equipment anywhere.
The embodiment of the present application is the data download method embodiment corresponding with data uploading method embodiment, so describe is fairly simple, relevant part sees the part of data uploading method embodiment and illustrates, the embodiment of the present application is not described in detail at this.
For making those skilled in the art be more fully understood that the embodiment of the present application, illustrate below by way of concrete example.
In chamber planting, generally including collecting device and server, the execution of data acquisition and control instruction is responsible for by collecting device, and server is responsible for the generation of data analysis and control instruction, and collecting device generally uses network to be connected with server, carries out data interaction.
Collecting device and server carry out the network of data interaction can include the wireless networks such as 3G, 4G, GPRS, it is also possible to include Ethernet, COM etc..
In the embodiment of the present application, collecting device has unique first identification information, by arranging middleware, and for the driver of different collecting device exploitation correspondences, driver is provided with the activation bits such as the port of collecting device, address, communication protocol, the first identification information, can load, according to the first identification information, the driver that collecting device is corresponding.
Middleware can load the driver of correspondence by the first identification information configured, and can set up the connection between collecting device and server by driver.
Set up after connecting, generate and connect map information, connect map information and include the second identification information and the data throughout of server.
Generally, data throughout can be used to describe the data reception capabilities in the server unit interval, when the data volume uploaded is big, need first to put in the buffer by data, slowly received by server again, when the data volume uploaded in the unit interval is less than the data throughout of server, the speed that data are uploaded is the fastest.
Collecting device Real-time Collection greenhouse data, such as temperature, illuminance, humidity, the concentration etc. of carbon dioxide CO2.
Greenhouse data timing can be uploaded to middleware by network by collecting device, and the time of timing can arrange voluntarily, be usually arranged as 180S.
In order to ensure the upper transfer efficiency of data, middleware can be uploaded onto the server after the greenhouse data uploaded are carried out load balancing according to the second identification information of server and data throughout again.
Further, can completely receive the greenhouse data uploaded in order to ensure server, middleware can upload greenhouse data in server by the way of message queue.
Because the data form that different acquisition equipment generates is different, after server receives the greenhouse data uploaded, greenhouse data can be resolved by middleware, as carried out binary data computing, the conversion of data type, generate the analysis result with reference format, i.e. XML file.
After middleware carries out load balancing according to the second identification information of server and data throughout to analysis result, in uploading onto the server in the way of message queue.
After server receives the XML file uploaded, load preset crop growth model.
Crop growth model describes the Optimal growth process of crop (such as Capsicum annuum L., Fructus Lycopersici esculenti) and the relation of environment factor, if crop is in the different preferable temperature of growth stage needs, humidity, intensity of illumination, the concentration etc. of carbon dioxide CO2.
XML file can be analyzed by server, by current greenhouse data and growth model preferably environmental data needed for crop compare, then generate the first control instruction according to comparative result.
First control instruction is one group of string of binary characters, generally can include the data acquiring frequency of the unlatching of collecting device, closedown, collecting device.
When current greenhouse data are less than the ecotopia data in crop growth model, the first control instruction generated is the open command of collecting device, when current greenhouse data are equal to or higher than the ecotopia data in crop growth model, the first control instruction of generation is the out code of collecting device.
The first control instruction that server generates is the data with unified reference format, and collecting device cannot be carried out identifying, accordingly, it would be desirable to the first control instruction is downloaded to middleware.
Middleware can obtain the data form of collecting device corresponding to the first control instruction according to the first identification information, data form according to collecting device, first control instruction is carried out the conversion of binary arithmetic operation, data type, generating the second control instruction, the second control instruction has the data form that collecting device is capable of identify that.
After second control instruction is carried out load balancing by middleware, being uploaded to server by the way of message queue, the second control instruction is downloaded to collecting device by network by server.
After collecting device receives the second control instruction, performing corresponding operation according to the second control instruction, such as, the second control instruction is the open command heated, then collecting device can automatic heating.
Environmental data after heating can be sent to server by collecting device, server can obtain the situation of change of environmental data in time, when the temperature finding greenhouse reaches preferable temperature, the out code heated can be generated, collecting device can perform to instruct accordingly, this way it is secured that crop can grow in the environment of ideal, be greatly increased as yield.
Meanwhile, server can be by network in client (such as mobile phone, panel computer) upper displaying greenhouse data, and user can pay close attention to the change of greenhouse data whenever and wherever possible.
Can also to as the seed information in growth course, the chemical fertilizer information of employing, pesticide information, as the information such as the course of processing carry out record, and be illustrated in network-side, client can understand the whole production process of crop by network-side.
Monitor supervision platform can also be set at server end, the ruuning situation of collecting device is monitored in real time by monitor supervision platform, such as the break-make information of network, port information, the information of voltage of collecting device, these information can also be illustrated in client, and then the ruuning situation of collecting device can be understood in time, when a failure occurs, can find in time, solve in time, it is ensured that the normal operation of equipment.
It should be noted that, for embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present application is not limited by described sequence of movement, because according to the embodiment of the present application, some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to involved action not necessarily the embodiment of the present application.
With reference to Fig. 3, it is shown that the structure chart of the embodiment uploading device of a kind of data of the application, including:
Link information configuration module 301, is positioned at middleware, for configuring the link information of collecting device;Described collecting device includes unique first identification information;Described link information includes described first identification information;
Connection establishment module 302, is positioned at middleware, for loading preset driver according to described link information, sets up the connection of described collecting device and server;
Gather data acquisition module 303, be positioned at collecting device, obtain in real time and gather data;
Gather transmission module 304 in data, be positioned at collecting device, for described collection data are uploaded to described server by described middleware;
Gather data resolution module 305, be positioned at middleware, for described collection data are resolved, generate the analysis result with reference format;
Transmission module 306 on analysis result, are positioned at middleware, for described analysis result is uploaded to described server.
In a preferred embodiment of the present application, described server includes unique second identification information and data throughput information, and described device also includes:
Connect map information generation module, be positioned at middleware, after the connection establishment at described collecting device and described server, generate and connect map information;Described connection map information includes described second identification information and described data throughput information.
In a preferred embodiment of the present application, in described collection data, transmission module 304 includes following submodule:
First gathers data uploads submodule, is positioned at collecting device, for described collection data are uploaded to described middleware;
Second gathers data uploads submodule, is positioned at middleware, for according to described connection map information, in the way of message queue, described collection data is uploaded to described server;
In a preferred embodiment of the present application, gather data resolution module 305 and include following submodule:
Analysis result uploads submodule, for according to described connection map information, in the way of message queue, described analysis result is uploaded to described server.
With reference to Fig. 4, it is shown that the structure chart of the embodiment of the download apparatus of a kind of data of the application, including:
Analysis result receiver module 401, is positioned at server, for receiving the analysis result that middleware is uploaded;Described analysis result is gathered data genaration by described middleware by resolving, and has reference format;Described collection data, after the connection establishment of described server and collecting device, by described collecting device Real-time Collection, and upload to described server by described middleware;The connection of described server and collecting device by configuring the link information of described collecting device by described middleware, is loaded preset driver according to described link information and sets up;Described collecting device has unique first identification information;Described link information includes described first identification information;
Business demand acquisition module 402, is positioned at server, is used for obtaining current business demand;
First control instruction generation module 403, is positioned at server, for generating the first corresponding control instruction according to described analysis result with described business demand;
First control instruction download module 404, is positioned at server, for described first control instruction is downloaded to described middleware;
First control instruction parsing module 405, is positioned at middleware, for resolving described first control instruction, generates the second control instruction that described collecting device is capable of identify that;
Second control instruction download module 406, is positioned at server, for described second control instruction is downloaded to described collecting device;Described second control instruction is uploaded to described server by described middleware;
In a preferred embodiment of the present application, described server includes unique second identification information and data throughput information;Described second control instruction according to connecting map information, is uploaded to described server by described middleware in the way of message queue;Described connection map information by described middleware generate after the connection establishment of described server and described collecting device;Described connection map information includes described second identification information and described data throughout.
In a preferred embodiment of the present application, described device also includes:
Second control instruction performs module, is positioned at collecting device, for performing the control operation that described second control instruction that receives is corresponding, and by perform described control operation after collection data upload to described server.
In a preferred embodiment of the present application, described device also includes:
Gather data display module, be positioned at server, user by described collection data display in client.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, and between each embodiment, identical similar part sees mutually.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present application can be provided as method, device or computer program.Therefore, the form of the embodiment in terms of the embodiment of the present application can use complete hardware embodiment, complete software implementation or combine software and hardware.And, the embodiment of the present application can use the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The embodiment of the present application is with reference to describing according to method, terminal unit (system) and the flow chart of computer program and/or the block diagram of the embodiment of the present application.It should be understood that can be by the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment so that the instruction performed by the processor of computer or other programmable data processing terminal equipment is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing terminal equipment work in a specific way, the instruction making to be stored in this computer-readable memory produces the manufacture including command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to perform sequence of operations step on computer or other programmable terminal equipment to produce computer implemented process, thus the instruction performed on computer or other programmable terminal equipment provides the step of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame for realization.
Although having been described for the preferred embodiment of the embodiment of the present application, but those skilled in the art once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the embodiment of the present application scope.
Finally, it can further be stated that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation or sequentially that there is any this reality between these entities or operation.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or terminal unit.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or terminal unit.
Above to the uploading of a kind of data provided herein, method for down loading, it is described in detail, principle and the embodiment of the application are set forth by specific case used herein, and the explanation of above example is only intended to help and understands the present processes and core concept thereof;Simultaneously for one of ordinary skill in the art, according to the thought of the application, the most all will change, in sum, this specification content should not be construed as the restriction to the application.

Claims (10)

1. the method for uploading of data, it is characterised in that including:
The link information of middleware configuration collecting device;Described collecting device includes unique first identification information;Described link information includes described first identification information;
Load preset driver according to described link information, set up the connection of described collecting device and server;
Described collecting device obtains collection data in real time;
Described collection data are uploaded to described server by described middleware;
Described collection data are resolved by described middleware, generate the analysis result with reference format;
Described analysis result is uploaded to described server.
Method the most according to claim 1, it is characterized in that, described server includes unique second identification information and data throughput information, at the described driver preset according to the loading of described link information, after setting up the step of connection between described collecting device and server, also include:
Generate and connect map information;Described connection map information includes described second identification information and described data throughput information.
Method the most according to claim 2, it is characterised in that described the step that described collection data upload to described server by described middleware is included:
Described collection data are uploaded to described middleware;
Described collection data, according to described connection map information, are uploaded to described server in the way of message queue by described middleware.
Method the most according to claim 2, it is characterised in that the described step that described analysis result uploads to described server includes:
According to described connection map information, in the way of message queue, described analysis result is uploaded to described server.
5. the method for down loading of data, it is characterised in that including:
Server receives the analysis result that middleware is uploaded;Described analysis result is gathered data genaration by described middleware by resolving, and has reference format;Described collection data, after the connection establishment of described server and collecting device, by described collecting device Real-time Collection, and upload to described server by described middleware;The connection of described server and collecting device by configuring the link information of described collecting device by described middleware, is loaded preset driver according to described link information and sets up;Described collecting device has unique first identification information;Described link information includes described first identification information;
Obtain current business demand;
The first corresponding control instruction is generated with described business demand according to described analysis result;
Described first control instruction is downloaded to described middleware;
Described first control instruction is resolved by described middleware, generates the second control instruction that described collecting device is capable of identify that;
Described second control instruction is downloaded to described collecting device by described server;Described second control instruction is uploaded to described server by described middleware.
Method the most according to claim 5, it is characterised in that described server includes unique second identification information and data throughput information;Described second control instruction according to connecting map information, is uploaded to described server by described middleware in the way of message queue;Described connection map information by described middleware generate after the connection establishment of described server and described collecting device;Described connection map information includes described second identification information and described data throughout.
Method the most according to claim 5, it is characterised in that also include:
Described collecting device performs the control operation that described second control instruction that receives is corresponding, and by perform described control operation after collection data upload to described server.
8. according to the method described in claim 5 or 7, it is characterised in that also include:
By described collection data display in client.
9. data upload device, it is characterised in that including:
Link information configuration module, is positioned at middleware, for configuring the link information of collecting device;Described collecting device includes unique first identification information;Described link information includes described first identification information;
Connection establishment module, is positioned at middleware, for loading preset driver according to described link information, sets up the connection of described collecting device and server;
Gather data acquisition module, be positioned at collecting device, obtain in real time and gather data;
Gather transmission module in data, be positioned at collecting device, for described collection data are uploaded to described server by described middleware;
Gather data resolution module, be positioned at middleware, for described collection data are resolved, generate the analysis result with reference format;
Transmission module on analysis result, is positioned at middleware, for described analysis result is uploaded to described server.
10. the download apparatus of data, it is characterised in that including:
Analysis result receiver module, is positioned at server, for receiving the analysis result that middleware is uploaded;Described analysis result is gathered data genaration by described middleware by resolving, and has reference format;Described collection data, after the connection establishment of described server and collecting device, by described collecting device Real-time Collection, and upload to described server by described middleware;The connection of described server and collecting device by configuring the link information of described collecting device by described middleware, is loaded preset driver according to described link information and sets up;Described collecting device has unique first identification information;Described link information includes described first identification information;
Business demand acquisition module, is positioned at server, is used for obtaining current business demand;
First control instruction generation module, is positioned at server, for generating the first corresponding control instruction according to described analysis result with described business demand;
First control instruction download module, is positioned at server, for described first control instruction is downloaded to described middleware;
First control instruction parsing module, is positioned at middleware, for resolving described first control instruction, generates the second control instruction that described collecting device is capable of identify that;
Second control instruction download module, is positioned at server, for described second control instruction is downloaded to described collecting device;Described second control instruction is uploaded to described server by described middleware.
CN201510012008.4A 2015-01-09 2015-01-09 Data uploading and downloading methods and devices thereof Pending CN105827682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510012008.4A CN105827682A (en) 2015-01-09 2015-01-09 Data uploading and downloading methods and devices thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510012008.4A CN105827682A (en) 2015-01-09 2015-01-09 Data uploading and downloading methods and devices thereof

Publications (1)

Publication Number Publication Date
CN105827682A true CN105827682A (en) 2016-08-03

Family

ID=56514202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510012008.4A Pending CN105827682A (en) 2015-01-09 2015-01-09 Data uploading and downloading methods and devices thereof

Country Status (1)

Country Link
CN (1) CN105827682A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685702A (en) * 2016-12-08 2017-05-17 北京立思辰新技术有限公司 Big data acquisition method based on industrial control system security protection equipment
CN106850578A (en) * 2016-12-30 2017-06-13 上海腾滔科技有限公司 A kind of data flow supervisory systems
CN107508869A (en) * 2017-08-11 2017-12-22 上海中信信息发展股份有限公司 Trace back data acquisition method and client
CN111683123A (en) * 2020-05-23 2020-09-18 浙江台谊消防设备有限公司 Uploading and downloading system and uploading and downloading operation method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631132A (en) * 2009-08-14 2010-01-20 深圳市科陆电子科技股份有限公司 Data transmission system based on Socket connection and method thereof
CN101726662A (en) * 2009-11-20 2010-06-09 深圳市科陆电子科技股份有限公司 Method and system for acquiring energy measurement data
US20100191994A1 (en) * 2009-01-29 2010-07-29 Nokia Corporation Method and apparatus for controlling energy consumption during resource sharing
CN102857505A (en) * 2012-09-06 2013-01-02 上海计算机软件技术开发中心 Data bus middleware of Internet of things
CN202713363U (en) * 2012-05-09 2013-01-30 中华通信系统有限责任公司 Radio monitoring system based on protocol interface adaptation
CN103428627A (en) * 2012-05-22 2013-12-04 中国移动通信集团江苏有限公司 Method for transferring data in internet of things, internet of things system and corresponding device
CN103825893A (en) * 2014-02-20 2014-05-28 中国人民解放军后勤工程学院 Method, device and system for collecting information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100191994A1 (en) * 2009-01-29 2010-07-29 Nokia Corporation Method and apparatus for controlling energy consumption during resource sharing
CN101631132A (en) * 2009-08-14 2010-01-20 深圳市科陆电子科技股份有限公司 Data transmission system based on Socket connection and method thereof
CN101726662A (en) * 2009-11-20 2010-06-09 深圳市科陆电子科技股份有限公司 Method and system for acquiring energy measurement data
CN202713363U (en) * 2012-05-09 2013-01-30 中华通信系统有限责任公司 Radio monitoring system based on protocol interface adaptation
CN103428627A (en) * 2012-05-22 2013-12-04 中国移动通信集团江苏有限公司 Method for transferring data in internet of things, internet of things system and corresponding device
CN102857505A (en) * 2012-09-06 2013-01-02 上海计算机软件技术开发中心 Data bus middleware of Internet of things
CN103825893A (en) * 2014-02-20 2014-05-28 中国人民解放军后勤工程学院 Method, device and system for collecting information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周静怡: "面向物联网的农田数据传输中间件的研究与设备", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685702A (en) * 2016-12-08 2017-05-17 北京立思辰新技术有限公司 Big data acquisition method based on industrial control system security protection equipment
CN106685702B (en) * 2016-12-08 2020-05-05 北京立思辰新技术有限公司 Big data acquisition method based on industrial control system safety protection equipment
CN106850578A (en) * 2016-12-30 2017-06-13 上海腾滔科技有限公司 A kind of data flow supervisory systems
CN106850578B (en) * 2016-12-30 2021-06-18 上海腾滔科技有限公司 Data flow supervision system
CN107508869A (en) * 2017-08-11 2017-12-22 上海中信信息发展股份有限公司 Trace back data acquisition method and client
CN107508869B (en) * 2017-08-11 2021-01-01 上海信联信息发展股份有限公司 Tracing data acquisition method and client
CN111683123A (en) * 2020-05-23 2020-09-18 浙江台谊消防设备有限公司 Uploading and downloading system and uploading and downloading operation method thereof
CN111683123B (en) * 2020-05-23 2023-06-16 浙江台谊消防设备有限公司 Uploading and downloading system and uploading and downloading operation method thereof

Similar Documents

Publication Publication Date Title
US10445142B2 (en) Edge computing platform
US20190372840A1 (en) Method and apparatus for updating configuration object
CN105827682A (en) Data uploading and downloading methods and devices thereof
CN104954394A (en) Software differential packet production and update method, server, terminal and update system
CN107947954B (en) System, method and server for dynamically adjusting log level
CN102694804A (en) Realization method and device for intelligent home unified platform on basis of UPnP protocol
CN103595770B (en) Method and device for achieving file downloading through SDK
CN104836848A (en) Method for remotely upgrading intelligent household electrical appliances
CN107911251B (en) Network equipment configuration method, device and medium
CN112187922A (en) Intelligent Internet of things shutdown machine based on MQTT communication protocol
CN113590576A (en) Database parameter adjusting method and device, storage medium and electronic equipment
CN106339273A (en) Application program restoration method, terminal and server
CN112988485A (en) Simulation test method and device for power Internet of things equipment
CN107632829A (en) A kind of App automation continuous integration systems and method based under iOS system
CN111641997A (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN107819657A (en) A kind of method based on central controlled dynamic analysis Modbus agreements, things-internet gateway equipment and system
US20180164758A1 (en) Information processing method, cloud service platform and information processing system
CN102497436A (en) Networked file storing method and system based on HTTP (Hyper Text Transport Protocol)
CN113542363A (en) Cloud platform based on user-defined device protocol library and big data architecture
CN103069854A (en) Apparatus for providing a device management package and a method for receiving the device management package
CN106648805A (en) Intelligent device, intelligent system, and method for intelligently installing application
CN106911662B (en) System and method for high-interaction to low-interaction conversion of malicious sample culture
CN114268650B (en) Configuration method and system for establishing communication connection
CN113794527B (en) Adaptive frame length wired telemetry forwarding system and self-checking method for deep space exploration circulator
CN113467776B (en) Method and device for accessing equipment, storage medium and electronic device

Legal Events

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

Application publication date: 20160803

RJ01 Rejection of invention patent application after publication