CN109639667A - Data acquisition and transmission method, device and equipment based on local data parsing - Google Patents

Data acquisition and transmission method, device and equipment based on local data parsing Download PDF

Info

Publication number
CN109639667A
CN109639667A CN201811500153.7A CN201811500153A CN109639667A CN 109639667 A CN109639667 A CN 109639667A CN 201811500153 A CN201811500153 A CN 201811500153A CN 109639667 A CN109639667 A CN 109639667A
Authority
CN
China
Prior art keywords
data
target data
server
sent
parsing
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
CN201811500153.7A
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.)
Shanghai Mingniuyun Technology Co Ltd
Original Assignee
Shanghai Mingniuyun 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 Shanghai Mingniuyun Technology Co Ltd filed Critical Shanghai Mingniuyun Technology Co Ltd
Priority to CN201811500153.7A priority Critical patent/CN109639667A/en
Publication of CN109639667A publication Critical patent/CN109639667A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This application involves a kind of data acquisition and transmission method, device and equipment based on local data parsing, comprising: obtains primary data;Primary data is parsed according to preset analysis mode, obtains target data;Target data is sent to server, so that server directly stores target data.Parsing to primary data is just completed before being sent to server, and server, without parsing again to target data, alleviates the computational burden of server, save server resource after receiving target data.

Description

Data acquisition and transmission method, device and equipment based on local data parsing
Technical field
This application involves fields of communication technology more particularly to a kind of data based on local data parsing to acquire transmission side Method, device and equipment.
Background technique
With the continuous development of industry 3.0, electron and information technology is more widely applied, makes industrial manufacturing process certainly Dynamicization controlling extent further increases substantially, and in industry manufacture automatic control process, acquisition and transmission to data are nothings Method or scarce link.
Current data collection transport mainly uses data transmission unit (Data Transfer unit, DTU), DTU Data penetration transmission to server any processing, all pairs of data are not done into mainly to data content using the method for data penetration transmission Processing completed by server, so that server is generated biggish computational burden, more server resource can be consumed.
Summary of the invention
To be overcome the problems, such as present in the relevant technologies at least to a certain extent, the application provides a kind of based on local data Data acquisition and transmission method, device and the equipment of parsing.
According to a first aspect of the present application, a kind of data acquisition and transmission method based on local data parsing is provided, comprising:
Obtain primary data;
The primary data is parsed according to preset analysis mode, obtains target data;
The target data is sent to server, so that the server directly stores the target data.
Optionally, before the acquisition primary data, further includes:
Receive communications protocol selection signal;
Corresponding communications protocol is selected according to the communications protocol selection signal.
Optionally, before the reception communications protocol selection signal, further includes:
The data type obtained needed for configuration;
According to analysis mode described in the dtd--data type definition.
Optionally, after obtaining target data and before the target data is sent to server, further includes:
The target data is encrypted.
It is optionally, described that the target data is sent to server, comprising:
The target data is sent to server by wireless network;
Or,
The target data is sent to server by cable network.
According to a second aspect of the present application, a kind of data acquisition and transmission device based on local data parsing is provided, comprising:
Module is obtained, for obtaining primary data;
Parsing module obtains target data for parsing to the primary data according to preset analysis mode;
Sending module, for the target data to be sent to server, so that the server is by the target data Directly store.
Optionally, further includes:
Receiving module, for receiving communications protocol selection signal;
Selecting module, for selecting corresponding communications protocol according to the communications protocol selection signal.
Optionally, further includes:
Configuration module, the data type for being obtained needed for configuring;
Definition module is used for the analysis mode according to the dtd--data type definition.
Optionally, the sending module includes:
Wireless transmission unit, for the target data to be sent to server by wireless network;
Or,
Wired transmission unit, for the target data to be sent to server by cable network.
According to the third aspect of the application, a kind of data acquisition transmission device based on local data parsing is provided, comprising:
Processor, and the memory being connected with the processor;
For storing computer program, the computer program is at least used to execute the application first aspect the memory The transmission method of the data;
The processor is for calling and executing the computer program in the memory.
Technical solution provided by the present application can include the following benefits: after getting primary data, according to pre- If analysis mode directly the primary data is parsed, obtain target data, target data be then sent to service Device, so that server directly stores target data.Based on this, the parsing to primary data is just complete before being sent to server At, server is after receiving target data, and without parsing again to target data, the operation for alleviating server is negative Load saves server resource.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and together with specification it is used to explain the principle of the application.
Fig. 1 is a kind of stream for data acquisition and transmission method based on local data parsing that embodiments herein one provides Journey schematic diagram.
Fig. 2 is that a kind of structure for data acquisition transmission based on local data parsing that embodiments herein two provides is shown It is intended to.
Fig. 3 is that a kind of structure for data acquisition transmission based on local data parsing that embodiments herein three provides is shown It is intended to.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
Embodiment one
Referring to Fig. 1, Fig. 1 is that a kind of data acquisition based on local data parsing that embodiments herein one provides passes The flow diagram of transmission method.
It is provided in this embodiment based on local data parsing data acquisition and transmission method include:
Step 11 obtains primary data;
Step 12 parses primary data according to preset analysis mode, obtains target data;
Target data is sent to server by step 13, so that server directly stores target data.
After getting primary data, directly primary data is parsed according to preset analysis mode, obtains mesh Data are marked, target data are then sent to server, so that server directly stores target data.Based on this, to initial number According to parsing be just to be completed before being sent to server, server is after receiving target data, without to target data It is parsed again, alleviates the computational burden of server, save server resource.
It should be noted that can also include: before step 11
Receive communications protocol selection signal;
Corresponding communications protocol is selected according to communications protocol selection signal.
Communications protocol selection signal can be issued by user by selection device, selection device can there are many, for example touch Control screen, dial-up dish etc..
Communications protocol can there are many, according to issue primary data distinct device model selected, issue initial number According to equipment can be the programmable logic controller (PLC) (Programmable Logic Controller, PLC) of disposable type, The instrumentation devices being also possible in industrial production.Since device category is various, communications protocol is also not quite similar, therefore can It each communications protocol to be stored in advance, is selected by user by selection device, is receiving selection device transmission After communications protocol selection signal, according to the corresponding communications protocol of the signal behavior, then obtained just according to the communications protocol of selection Beginning data.
Further, before receiving communications protocol selection signal, can also include:
The data type obtained needed for configuration;
According to dtd--data type definition analysis mode.
Since the analysis mode to different data needs is different, the method for the present embodiment can also include definition The step of analysis mode, the specific steps for defining analysis mode can be the data type obtained needed for first configuration, configuring After the data type for needing to obtain, the primary data of acquisition is the primary data of the data type, then only needing according to this A configured dtd--data type definition analysis mode.
Specific analysis mode may include this algorithm to data parsing of edge calculations.
In addition, can also include: after obtaining target data and before target data is sent to server
Target data is encrypted.
Target data encryption is transmitted again later, it is ensured that the safety of data.It is based on specifically, can use The stream cipher algorithm of RC4 designs Encryption Model according to the stream cipher algorithm and encrypts to data.
It should be noted that step 13 may include:
Target data is sent to server by wireless network;Or, target data is sent to clothes by cable network Business device.
The mode of wireless network can there are many, for example can be 4G network, be also possible to the wireless networks such as WIFI.
Embodiment two
Referring to Fig. 2, Fig. 2 is that a kind of data acquisition based on local data parsing that embodiments herein two provides passes The structural schematic diagram of defeated device.
As shown in Fig. 2, the data acquisition and transmission device provided in this embodiment based on local data parsing, comprising:
Module 21 is obtained, for obtaining primary data;
Parsing module 22 obtains target data for parsing to primary data according to preset analysis mode;
Sending module 23, for target data to be sent to server, so that server directly stores target data.
Further, further includes:
Receiving module, for receiving communications protocol selection signal;
Selecting module, for selecting corresponding communications protocol according to communications protocol selection signal.
Further, further includes:
Configuration module, the data type for being obtained needed for configuring;
Definition module, for according to dtd--data type definition analysis mode.
Further, sending module includes:
Wireless transmission unit, for target data to be sent to server by wireless network;
Or,
Wired transmission unit, for target data to be sent to server by cable network.
Embodiment three
Referring to Fig. 3, Fig. 3 is that a kind of data acquisition based on local data parsing that embodiments herein three provides passes The structural schematic diagram of transfer device.
As shown in figure 3, the data provided in this embodiment based on local data parsing acquire transmission device, comprising:
Processor 31, and the memory 32 being connected with processor;
For memory for storing computer program, computer program is at least used for the transmission method of following data:
Obtain primary data;
Primary data is parsed according to preset analysis mode, obtains target data;
Target data is sent to server, so that server directly stores target data.
Optionally, before obtaining primary data, further includes:
Receive communications protocol selection signal;
Corresponding communications protocol is selected according to communications protocol selection signal.
Optionally, before receiving communications protocol selection signal, further includes:
The data type obtained needed for configuration;
According to dtd--data type definition analysis mode.
Optionally, after obtaining target data and before target data is sent to server, further includes:
Target data is encrypted.
Optionally, target data is sent to server, comprising:
Target data is sent to server by wireless network;
Or,
Target data is sent to server by cable network.
Processor is for calling and executing the computer program in memory.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodiments Unspecified content may refer to the same or similar content in other embodiments.
It should be noted that term " first ", " second " etc. are used for description purposes only in the description of the present application, without It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present application, unless otherwise indicated, the meaning of " multiple " Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries Suddenly be that relevant hardware can be instructed to complete by program, program can store in a kind of computer readable storage medium In, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.If integrated module with The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one It takes in storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although embodiments herein has been shown and described above, it is to be understood that above-described embodiment is example Property, it should not be understood as the limitation to the application, those skilled in the art within the scope of application can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (10)

1. a kind of data acquisition and transmission method based on local data parsing characterized by comprising
Obtain primary data;
The primary data is parsed according to preset analysis mode, obtains target data;
The target data is sent to server, so that the server directly stores the target data.
2. the method according to claim 1, wherein before the acquisition primary data, further includes:
Receive communications protocol selection signal;
Corresponding communications protocol is selected according to the communications protocol selection signal.
3. according to the method described in claim 2, it is characterized in that, also being wrapped before the reception communications protocol selection signal It includes:
The data type obtained needed for configuration;
According to analysis mode described in the dtd--data type definition.
4. described in any item methods according to claim 1~3, which is characterized in that after obtaining target data and will be described Target data is sent to before server, further includes:
The target data is encrypted.
5. described in any item methods according to claim 1~3, which is characterized in that described that the target data is sent to clothes Business device, comprising:
The target data is sent to server by wireless network;
Or,
The target data is sent to server by cable network.
6. a kind of data acquisition and transmission device based on local data parsing characterized by comprising
Module is obtained, for obtaining primary data;
Parsing module obtains target data for parsing to the primary data according to preset analysis mode;
Sending module, for the target data to be sent to server, so that the server is direct by the target data Storage.
7. device according to claim 6, which is characterized in that further include:
Receiving module, for receiving communications protocol selection signal;
Selecting module, for selecting corresponding communications protocol according to the communications protocol selection signal.
8. device according to claim 7, which is characterized in that further include:
Configuration module, the data type for being obtained needed for configuring;
Definition module is used for the analysis mode according to the dtd--data type definition.
9. according to the described in any item devices of claim 6~8, which is characterized in that the sending module includes:
Wireless transmission unit, for the target data to be sent to server by wireless network;
Or,
Wired transmission unit, for the target data to be sent to server by cable network.
10. a kind of data based on local data parsing acquire transmission device characterized by comprising
Processor, and the memory being connected with the processor;
The memory is at least used for perform claim and requires any one of 1~5 for storing computer program, the computer program The data acquisition and transmission method based on local data parsing;
The processor is for calling and executing the computer program in the memory.
CN201811500153.7A 2018-12-07 2018-12-07 Data acquisition and transmission method, device and equipment based on local data parsing Pending CN109639667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811500153.7A CN109639667A (en) 2018-12-07 2018-12-07 Data acquisition and transmission method, device and equipment based on local data parsing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811500153.7A CN109639667A (en) 2018-12-07 2018-12-07 Data acquisition and transmission method, device and equipment based on local data parsing

Publications (1)

Publication Number Publication Date
CN109639667A true CN109639667A (en) 2019-04-16

Family

ID=66072292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811500153.7A Pending CN109639667A (en) 2018-12-07 2018-12-07 Data acquisition and transmission method, device and equipment based on local data parsing

Country Status (1)

Country Link
CN (1) CN109639667A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225091A (en) * 2019-05-10 2019-09-10 宁波安信数控技术有限公司 A kind of DTU and its data transmission method of belt edge computing capability
CN111291103A (en) * 2020-01-19 2020-06-16 北京无限光场科技有限公司 Interface data analysis method and device, electronic equipment and storage medium
CN112699172A (en) * 2021-01-06 2021-04-23 中车青岛四方机车车辆股份有限公司 Data processing method and device for railway vehicle

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795647A (en) * 2012-11-01 2014-05-14 鼎点视讯科技有限公司 Data acquisition method, data collector and data acquisition system
CN204347567U (en) * 2014-11-20 2015-05-20 广东荣晖信息工程有限公司 A kind of intelligent sensor of intelligent acquisition agricultural production data
US20160162519A1 (en) * 2014-12-08 2016-06-09 Palantir Technologies Inc. Distributed acoustic sensing data analysis system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795647A (en) * 2012-11-01 2014-05-14 鼎点视讯科技有限公司 Data acquisition method, data collector and data acquisition system
CN204347567U (en) * 2014-11-20 2015-05-20 广东荣晖信息工程有限公司 A kind of intelligent sensor of intelligent acquisition agricultural production data
US20160162519A1 (en) * 2014-12-08 2016-06-09 Palantir Technologies Inc. Distributed acoustic sensing data analysis system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225091A (en) * 2019-05-10 2019-09-10 宁波安信数控技术有限公司 A kind of DTU and its data transmission method of belt edge computing capability
CN111291103A (en) * 2020-01-19 2020-06-16 北京无限光场科技有限公司 Interface data analysis method and device, electronic equipment and storage medium
CN111291103B (en) * 2020-01-19 2023-11-24 北京有竹居网络技术有限公司 Interface data analysis method and device, electronic equipment and storage medium
CN112699172A (en) * 2021-01-06 2021-04-23 中车青岛四方机车车辆股份有限公司 Data processing method and device for railway vehicle

Similar Documents

Publication Publication Date Title
CN110263936B (en) Horizontal federal learning method, device, equipment and computer storage medium
CN103617543B (en) The recommendation method and apparatus of application program
CN109639667A (en) Data acquisition and transmission method, device and equipment based on local data parsing
CN104702665B (en) Information sharing method and information sharing apparatus
CN102202093B (en) A kind of method and system realizing transducer adaptation
EP3832989A1 (en) Internet of things event management systems and methods
EP2840813A1 (en) Service method and system using instance interface of virtualization object in internet of things environment
CN103944813A (en) Gateway and method for achieving general adaptation function
CN107864116A (en) Data transmission method, terminal and computer-readable recording medium
AU2014203290A1 (en) System and method for food processing and preparation by cooking and computer programme implementing the method
CN106714082A (en) Group communication method and group server
CN103473107B (en) A kind of method that interactive interface based on mobile middleware dynamically updates
CN108347420A (en) A kind of method, relevant device and the system of netkey processing
CN104657300A (en) Method and system for obtaining automobile data through application programming interface
CN103390179A (en) Encoding configuration information of apparatus into optical code
CN106445588A (en) Attribute information updating method and apparatus
CN104753804B (en) A kind of data stream transmitting control method, apparatus and system
CN109257255A (en) A kind of flux monitoring method, phone wrist-watch, server and mobile terminal
CN109658545A (en) A kind of cipher set-up method and network access system of network lock
CN102256211B (en) Group-based method and system for application realization of M2M terminal
CN113242244B (en) Data transmission method, device and system
KR20130005544A (en) Apparatus and method for providing user interface
CN107547516A (en) The encryption method at times and device of internet-of-things terminal data
CN104144187B (en) A kind of method, terminal, platform and system for obtaining application more redaction
EP2860950B1 (en) Transferring a descriptive web interface language code between two nearfield communication devices

Legal Events

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

Application publication date: 20190416

RJ01 Rejection of invention patent application after publication