CN104426992A - Information transmission method based on material transmission system - Google Patents
Information transmission method based on material transmission system Download PDFInfo
- Publication number
- CN104426992A CN104426992A CN201310409009.3A CN201310409009A CN104426992A CN 104426992 A CN104426992 A CN 104426992A CN 201310409009 A CN201310409009 A CN 201310409009A CN 104426992 A CN104426992 A CN 104426992A
- Authority
- CN
- China
- Prior art keywords
- information
- data
- transmission system
- packet
- material transmission
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The invention relates to an information transmission method based on a material transmission system. The information transmission method comprises the following steps that a client of a material transmission system converts to-be-transmitted system information into a specific-format data packet, and a testing server starts running; if starting, the data packet is transmitted to the server; if the server does not start, an error is reported and the data transmission is cancelled; the server receives and analyzes the data packet, converts a returned message to a same-format data packet and returns the data packet to the client; and the client analyzes the returned message data packet and performs corresponding processes according to a processing result. According to the information transmission method based on the material transmission system, the encoding manner is simple, a united data format is utilized, commands and data to be transmitted are transmitted together, the extensibility is strong, and meanwhile, the length of to-be-transmitted data is customized; the to-be-transmitted data can be transmitted once; the length of the data can be customized without other limits when the safety of the data is ensured.
Description
Technical field
The present invention relates to a kind of information-pushing method of production line material transmission system, the specifically conversion of material transmission system information, transmission, receiving handling method.
Background technology
In production line handling system, the haulage equipment continuous working period is long, the mass data that can produce in running.GUI needs the ruuning situation of supervisory control system at any time and reflects haulage equipment running status, and this just needs to read from server or database, store a large amount of baroque data.Information is sent in server or database and carries out processing or storing, routine information method for transmission processing deal with data form is different, increase the difficulty of process, the extensibility of system is also poor, such system is easily made mistakes when deal with data, along with the increase of data format, the operational efficiency of system also can reduce, and carries out safeguarding to staff and bring very large difficulty.
Summary of the invention
For above deficiency, the object of this invention is to provide the system information method for pushing that a kind of data format is simple, unified.
Technical scheme of the present invention is as follows:
Based on an information transferring method for material transmission system, comprise the following steps:
Client will need the material transmission system convert information transmitted to be the packet of certain format, and testing server is opened; As opened, send packet to server; If server is not opened, then reporting errors exit the transmission of this secondary data;
Server receives and resolves this packet, and packet return messages being converted into same format is back to client; Client is resolved return messages packet and is done respective handling according to result wherein.
Described packet comprises message header and message body two parts, and message header is comprised to low level successively by a high position: communication symbol position, command code, message body length, packet sequence number, last bag mark, message body exclusive or check value, message header exclusive or check value, reservation position.
The packet that the material transmission system convert information of needs transmission is certain format by described client comprises the following steps:
Client is material transmission system information distribution memory block after creating the data structure of material transmission system information; According to the process that material transmission system informational needs carries out, processing messages is converted into message header, and is message body by material transmission system convert information; Message header and message body are inserted packet.
Described material transmission system information comprises historical data, equipment performs carrying or the running parameter data needed for process operation, the state information of equipment, the system information of needs setting.
Described packet return messages being converted into same format comprises the following steps:
Service end is return messages allocate storage after creating the data structure of return messages; Need the process carried out according to return messages, processing messages is converted into message header, and return messages are converted into message body; Message header and message body are inserted packet.
Described return messages comprise historical data, equipment performs carrying or the running parameter data needed for process operation.
Described client is resolved return messages packet and is done respective handling according to result wherein, comprises the following steps:
1) client is waited for and the return information packet of reception server; Resolve this packet, judge that in return information, whether information processing is successful;
2) if information processing success, judge that whether return messages are with needing information to be processed;
If do not need information to be processed in return information, the data storage area that release distributes, this time end of transmission; If the information in message with needing information to be processed, then according to processing command in message, is done corresponding process by return information; Proceed to the data storage area performing release and distribute after process information, this information transmission terminates;
If information processing is unsuccessful, judge whether to need to resend data; If need to resend data, then return step 1); If do not need to resend data, then reporting errors exit this information transmission.
Describedly to judge in return information whether information processing is successfully specially and judge whether the command code implication in return information in message header is successfully.
The present invention has the following advantages:
1. the present invention encodes simply, and extensibility is strong.System adopts Uniform data format, and order and the unified transmission of data to be sent, when system needs expansion module, adopt this Uniform data format to reduce Development of Module difficulty.
2. the present invention's self-defined transmission data length: data to be sent can carry out disposable transmission, without the need for the restriction sending length, improves the performance of system when mass data needs transmission processing.Also can self-defining data length when needs guarantee data security, other restrictions can not be subject to.
3. material transmission system information of the present invention adopts same form to carry out transforming, transmitting, and system information is transmitted more simple, effective, improves the autgmentability of system simultaneously.
Accompanying drawing explanation
Fig. 1 is overview flow chart of the present invention;
Fig. 2 is Data Format Transform figure to be sent;
Fig. 3 is data receiver process chart.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
See accompanying drawing 1, it is method flow diagram of the present invention.Based on an information transferring method for material transmission system, comprise the steps:
Step 1, GUI client needs the material transmission system information carrying out processing, and is converted into the packet of the form of specifying in GUI client; Wherein, material transmission system information comprises historical data, equipment performs carrying or the supplemental characteristic such as position, speed required for process operation, the state information (state information that client needs regularly report to server) of equipment, the system information (equipment feedback cycle information, log-on message) of needs setting.
Step 2, testing server is opened, and sends packet to server; If server is not opened, then reporting errors and terminate this send;
Step 3, waiting for server returns result, and does respective handling according to returning results.
GUI client comprises optimum configurations interface, system monitoring interface, system debug interface, a large amount of exchanges data can be carried out with server, database in each interface in system operation, the data acquisition that various uses is different is undertaken encoding by unified code conversion mode and significantly can reduce the complexity of functional module exploitation, reduces the error situation in data transmission procedure.
Each packet comprises message header and message body two parts, and message header big-endian comprises in order: communication symbol position (1byte), command code (4byte), message body length (2byte), packet sequence number (1byte), last bag mark (1byte), message body exclusive or check value (1byte), message header exclusive or check value (1byte), reservation position (4byte); In communication symbol position, the first bit is masked as claim frame or acknowledgement frame, and the second bit is masked as nonreply or needs response; Message body exclusive or check carries out XOR calculating to each data in message body, do not comprise the data in message header; Message header exclusive or check is in message header except message header exclusive or check position, other XOR result; Data to be sent put into message body, and message header sends together with message body.
The data format of client and service end transforms see accompanying drawing 2, comprises the steps:
After step a. creates information data structure to be sent, it is data allocations memory block to be sent;
Step b. needs the process carried out according to data to be sent, be the message header of specified format, and be added to packet by corresponding command code and other convert information;
Wherein, need the process carried out according to data to be sent, processing command can be divided into following a few class, comprise:
Historical data is stored;
Executable operations (client: response path is arranged, responsive movement controls, response access material is needed to carrying or process equipment; Service end: the transport path of haulage equipment is set, the motion of equipment is controlled, accesses material);
State information (the client: timing is to the state information of server transmitting apparatus for the treatment of facility; Service end: timing accepting device state information);
Treatment system parameter (client: send log-on message to server end, the parameters that reception server end sends; Service end: accept and customer in response end log-on message, sends the parameter information of the equipment that arranges) etc.;
Data message to be sent splits according to the data format of specifying by step c, is split as basic data format, is unit according to each information, inserts packet using splitting the message body of the data after transforming as specified format;
Data message to be sent is comprised:
Historical data;
Equipment performs carrying or the supplemental characteristic such as position, speed required for process operation;
The state information (client: client needs the state information regularly reported to server) of equipment;
Need the system information (client: equipment feedback cycle information, log-on message) etc. arranged.
The packet of specific data form is identical with the packet that GUI sends, and is to be made up of message header and message body, and the form of message body is also identical, unlike command code in message body.The command code that client sends comprises response path and arranges, and responsive movement controls, and response access material, sends log-on message to server end transmission state etc.; The command code that server sends comprises the transport path arranging haulage equipment, controls the motion of equipment, and access material, accepts and customer in response end log-on message.
The data handling procedure returning GUI client, see accompanying drawing 3, comprises the steps:
Waiting for server returns result, and does respective handling according to returning results, and comprises the following steps:
Wait for and receive server in return messages to the command code (comprising facility registration success, system time synchronization success, return service device present system time) in the result of information and message header;
After receiving return messages, judge that in return messages, whether (i.e. command code) information processing is successful;
If information processing success, judge that whether return messages are with needing information to be processed;
If do not need information to be processed in return information, the data storage area that release distributes, primary information transmits and terminates.
Wherein, return messages comprise historical data, equipment performs carrying or the supplemental characteristic such as position, speed required for process operation.
In described step b, after receiving return messages, resolve message header, if information processing is unsuccessful, judge whether to need to resend data, if need to resend data, then proceed to perform and wait for that also reception server is to the result step of information; If do not need to resend data, then reporting errors exit this information transmission.
In described step c, if return information is with needing information to be processed, then perform following steps: according to the processing command (i.e. order code bit in message header) in return messages, information (data namely in message body) in return messages is done corresponding process, message format is identical with the data format that GUI user end to server sends, identical form is adopted to the return data of different application, parsing difficulty can be reduced when resolution data; Proceed to the data storage area performing release and distribute after process information, primary information pushes and terminates.
The split process of packet is first read the message header of regular length, resolving every information in message header, preparing for accepting message body, and message header starts to accept message body after reading and resolving, and verifies message body, adopts exclusive or check; Check results is true, disassembles message body after completing; Check results is that fictitious time loses message body, prepares to accept next packet.
Claims (8)
1., based on an information transferring method for material transmission system, it is characterized in that comprising the following steps:
Client will need the material transmission system convert information transmitted to be the packet of certain format, and testing server is opened; As opened, send packet to server; If server is not opened, then reporting errors exit the transmission of this secondary data;
Server receives and resolves this packet, and packet return messages being converted into same format is back to client; Client is resolved return messages packet and is done respective handling according to result wherein.
2. according to a kind of information transferring method based on material transmission system according to claim 1, it is characterized in that: described packet comprises message header and message body two parts, and message header is comprised to low level successively by a high position: communication symbol position, command code, message body length, packet sequence number, last bag mark, message body exclusive or check value, message header exclusive or check value, reservation position.
3., according to a kind of information transferring method based on material transmission system according to claim 1, it is characterized in that comprising the steps: that material transmission system convert information that needs transmit by described client is that the packet of certain format comprises the following steps:
Client is material transmission system information distribution memory block after creating the data structure of material transmission system information; According to the process that material transmission system informational needs carries out, processing messages is converted into message header, and is message body by material transmission system convert information; Message header and message body are inserted packet.
4. according to a kind of information transferring method based on material transmission system according to claim 3, it is characterized in that: described material transmission system information comprises historical data, equipment performs carrying or the running parameter data needed for process operation, the state information of equipment, the system information of needs setting.
5., according to a kind of information transferring method based on material transmission system according to claim 1, it is characterized in that described packet return messages being converted into same format comprises the following steps:
Service end is return messages allocate storage after creating the data structure of return messages; Need the process carried out according to return messages, processing messages is converted into message header, and return messages are converted into message body; Message header and message body are inserted packet.
6. according to a kind of information transferring method based on material transmission system according to claim 5, it is characterized in that: described return messages comprise historical data, equipment performs carrying or the running parameter data needed for process operation.
7. according to a kind of information transferring method based on material transmission system according to claim 1, it is characterized in that: described client is resolved return messages packet and done respective handling according to result wherein, comprises the following steps:
1) client is waited for and the return information packet of reception server; Resolve this packet, judge that in return information, whether information processing is successful;
2) if information processing success, judge that whether return messages are with needing information to be processed;
If do not need information to be processed in return information, the data storage area that release distributes, this time end of transmission; If the information in message with needing information to be processed, then according to processing command in message, is done corresponding process by return information; Proceed to the data storage area performing release and distribute after process information, this information transmission terminates;
If information processing is unsuccessful, judge whether to need to resend data; If need to resend data, then return step 1); If do not need to resend data, then reporting errors exit this information transmission.
8. according to a kind of information transferring method based on material transmission system according to claim 7, it is characterized in that: describedly to judge in return information whether information processing is successfully specially and judge whether the command code implication in return information in message header is successfully.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310409009.3A CN104426992B (en) | 2013-09-10 | A kind of information transferring method based on material transmission system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310409009.3A CN104426992B (en) | 2013-09-10 | A kind of information transferring method based on material transmission system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104426992A true CN104426992A (en) | 2015-03-18 |
CN104426992B CN104426992B (en) | 2019-07-16 |
Family
ID=
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225046A (en) * | 2019-06-18 | 2019-09-10 | 北京大豪科技股份有限公司 | Data transmission method, device, electronic equipment and storage medium |
CN110597463A (en) * | 2019-08-16 | 2019-12-20 | 深圳中兴网信科技有限公司 | Data reading and writing method, computer equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1387349A (en) * | 2001-05-22 | 2002-12-25 | 英业达股份有限公司 | System and method for provider to transmit data |
US20030200349A1 (en) * | 2002-04-17 | 2003-10-23 | Hansen James R. | XML scripting of soap commands |
CN101697546A (en) * | 2009-10-30 | 2010-04-21 | 南京中兴软创科技股份有限公司 | Method for implementing protocol data unit (PDU) used for packing and unpacking network bytes |
CN101895372A (en) * | 2010-06-29 | 2010-11-24 | 中国科学院计算技术研究所 | Data transmission method in radio link control layer acknowledged mode |
CN102571775A (en) * | 2011-12-27 | 2012-07-11 | 长春希达电子技术有限公司 | Server communication module, client communication module and network communication system |
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1387349A (en) * | 2001-05-22 | 2002-12-25 | 英业达股份有限公司 | System and method for provider to transmit data |
US20030200349A1 (en) * | 2002-04-17 | 2003-10-23 | Hansen James R. | XML scripting of soap commands |
CN101697546A (en) * | 2009-10-30 | 2010-04-21 | 南京中兴软创科技股份有限公司 | Method for implementing protocol data unit (PDU) used for packing and unpacking network bytes |
CN101895372A (en) * | 2010-06-29 | 2010-11-24 | 中国科学院计算技术研究所 | Data transmission method in radio link control layer acknowledged mode |
CN102571775A (en) * | 2011-12-27 | 2012-07-11 | 长春希达电子技术有限公司 | Server communication module, client communication module and network communication system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225046A (en) * | 2019-06-18 | 2019-09-10 | 北京大豪科技股份有限公司 | Data transmission method, device, electronic equipment and storage medium |
CN110597463A (en) * | 2019-08-16 | 2019-12-20 | 深圳中兴网信科技有限公司 | Data reading and writing method, computer equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101969359B (en) | Method for uploading and processing electric load task on small satellite | |
CN101753586A (en) | Method for transmitting data, process method for receiving data and device | |
CN102891796B (en) | Mining intelligent transmission gateway | |
CN105099540A (en) | Method for reconstructing in-orbit function of satellite processing type loads | |
RU2011108113A (en) | DEVICE AND METHOD FOR FORMING MAS DATA PROTOCOL MODULE IN WIRELESS COMMUNICATION SYSTEM | |
CN104954096A (en) | One-master multi-slave high-speed synchronous serial communication data transmission method | |
CN109905205B (en) | Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system | |
CN108011698B (en) | RSSP-I secure communication method based on dual-system synchronization | |
CN103701562A (en) | Error control protocol in free space optical communication system | |
KR20190086711A (en) | Method for transmitting and receiving network management information, transceiver, transmitter and receiver | |
CN105119691B (en) | A kind of method of Ethernet point-to-point transmitting | |
CN102332971A (en) | Field-bus full duplex reliable communication method for numerical control system | |
WO2016082569A1 (en) | Apparatus and method for implementing communication assisted by optical port link | |
CN102411681B (en) | A kind of Unidirectional data transmission device and communication means | |
CN102215267A (en) | Data communication transmission method of network layer of the Internet of things | |
CN101527707B (en) | Real-time consistency check method and correlative device for warm backup of SCTP protocol stack | |
CN110032534A (en) | More slave unit serial communications | |
CN102394655B (en) | Manchester code converting method on MIC bus | |
CN110519008A (en) | Wireless sensor network data transmission method and device, readable storage medium storing program for executing | |
CN108429729B (en) | Data communication isolation system and isolation method in industrial big data acquisition environment | |
CN104426992A (en) | Information transmission method based on material transmission system | |
CN101800916B (en) | Configuration method of optical port and device | |
US4353126A (en) | Method for coded data transmission in half-duplex operation between data terminal equipment of two data stations | |
US9762353B2 (en) | Data packet for bidirectional transmission of data packets during data transmission between a first and a second communication appliance, and method for transmitting such a data packet | |
CN101331457A (en) | Synchronous one-bit interface protocol or data structure |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |