CN105553617A - Serial port communication data analysis method - Google Patents

Serial port communication data analysis method Download PDF

Info

Publication number
CN105553617A
CN105553617A CN201510968646.3A CN201510968646A CN105553617A CN 105553617 A CN105553617 A CN 105553617A CN 201510968646 A CN201510968646 A CN 201510968646A CN 105553617 A CN105553617 A CN 105553617A
Authority
CN
China
Prior art keywords
data
sent
transmitting terminal
serial communication
receiving terminal
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
CN201510968646.3A
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.)
Dalian Sage Group Co Ltd
Original Assignee
Dalian Sage Group 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 Dalian Sage Group Co Ltd filed Critical Dalian Sage Group Co Ltd
Priority to CN201510968646.3A priority Critical patent/CN105553617A/en
Publication of CN105553617A publication Critical patent/CN105553617A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • H04L1/0063Single parity check
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • 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

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)
  • Communication Control (AREA)

Abstract

The invention discloses a serial port communication data analysis method. The method comprises the following steps that: a computer serving a transmitting end performs data formatting and serial-to-parallel conversation on data information to be transmitted, and transmits the processed data information to external equipment serving as a receiving end; and the receiving end receives the data information transmitted by the transmitting end in real time, and transmits a feedback signal to the transmitting end in real time according to a data receiving condition. The transmitting end and the receiving end perform a real-time data communication during data transmission, and operations such as real-time detection, format conversion and error verification are performed on data, so that complete and correct transmission of the data is ensured.

Description

A kind of serial communication data analysing method
Technical field
The present invention relates to data communication field, particularly relate to a kind of serial communication data analysing method.
Background technology
Serial communication (SerialCommounication), refers between peripheral hardware and computer equipment, and by data signal line, ground wire, control line etc., a kind of communication modes of transfer of data is carried out in step-by-step.The data wire that this communication modes uses is few, can save communication cost, but transmission rate is lower than parallel transmission in telecommunication.
Along with the application of computer system and the development of microcomputer network, communication function more and more seems important. communication mentioned here refers to computer and extraneous information exchange. therefore, communication had both comprised between computer and external equipment, also the information exchange between computer and computer is comprised. because serial communication is the transmission information of on a transmission line, transmission line used is few, and information transmission can be carried out by ready-made telephone network, therefore, being particularly suitable for long-distance transmissions. the external equipment that the people-machine switching equipment not far from one another for those and computer and serial store is as terminal, printer, logic analyzer, disk etc., adopt serial mode swap data also very general. in real-time control and management, adopt in multiple stage computer processor composition Hierarchical and Distributed System, communication between each CPU is all generally serial mode. so serial line interface is the interface that microcomputer application system is commonly used.Many peripheral hardwares communicate by serial mode with computer, serial mode mentioned here, refer to the information transmission mode between Peripheral Equipment & Interface circuit, in fact, still by parallel mode work between CPU and interface.Loss of data, transfer of data phenomenon slowly of being in danger is being transmitted in data procedures in process of data communication of the prior art.
Summary of the invention
According to prior art Problems existing, the invention discloses a kind of serial communication data analysing method, comprising:
Data message to be sent carried out providing data formatting and string-and the external equipment be sent to after conversion as receiving terminal as the computer of transmitting terminal;
The data message that described receiving terminal real-time reception transmitting terminal transmits, according to the reception condition of data, is sent to transmitting terminal in real time by feedback signal.
Described transmitting terminal generates parity check bit or other check codes automatically when sending data, and whether receiving terminal detects data when receiving according to this parity check code and send correctly.
Described transmitting terminal is first sent to format information and the data size information of receiving terminal command signal and data to be sent before sending data, described receiving terminal is checked according to above-mentioned format information and data size information after receiving the data message of transmitting terminal transmission, and feedback signal is sent to transmitting terminal.
Under transmission information state when abnormal transmission data failure appears in network signal, the abnormal signal of appearance is sent to transmitting terminal by described receiving terminal in real time.
These data are encrypted when sending data by described transmitting terminal, and are together sent when sending data message by password.
When network occurs that abnormal data transmits unsuccessfully, the information that described receiving terminal receives carries out third party's buffer memory.
Owing to have employed technique scheme, a kind of serial communication data analysing method provided by the invention, transmitting terminal and receiving terminal carry out real-time data communication when data send, data are detected in real time, format conversion, the operation such as error checking, ensure the complete without misfeed of data.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the step schematic diagram of method of the present invention.
Embodiment
For making technical scheme of the present invention and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, clear complete description is carried out to the technical scheme in the embodiment of the present invention:
A kind of serial communication data analysing method as shown in Figure 1, comprises the following steps: data message to be sent carried out providing data formatting and string-and the external equipment be sent to after conversion as receiving terminal as the computer of transmitting terminal;
The data message that described receiving terminal real-time reception transmitting terminal transmits, according to the reception condition of data, is sent to transmitting terminal in real time by feedback signal.
Working method is owing to transmitting by parallel mode as between the CPU of transmitting terminal and interface, by serial mode transmission between interface and peripheral hardware, therefore, in serial line interface, " receive shift register " (string →) and " sending shift register " (and → go here and there) must be had. in data entry process, data 11 ground enters " receiving shift register " of interface from peripheral hardware, when received in " receive shift register " 1 character everybody after, data just enter " data input register " .CPU from " receiving shift register " from " data input register ", read the character received. (parallel reading, namely D7 ~ D0 is read in accumulator simultaneously). the shifting speed of " receiving shift register " is determined by " receive clock ". in data output process, CPU sends the character that will export (concurrently) into " data output register ", the content delivery of " data output register " is to " sending shift register ", then by " sending shift register " displacement, data are delivered to peripheral hardware 1 by 1. the shifting speed of " sending shift register " is determined by " tranmitting data register ".Therefore data need real-time monitoring data message in transmission and receiving course.Therefore data to be formatd and go here and there-and conversion is very important.
Existing providing data formatting: because be common parallel data from CPU, so interface circuit should have the task of the providing data formatting realized under different serial communication mode.Under asynchronous communication means, interface generates the frame data format of start-stop type automatically.Under the character-oriented method of synchronization, interface will add synchronization character before data block to be transmitted.
Carry out going here and there-and change: serial transfer, data are that a Bits Serial transmits, and computer processing data is parallel data.So when data deliver to CPU by computer, first serial data is converted to also line number and could sends into computer disposal.Therefore serioparallel exchange is the vital task of serial interface circuit.
(3) control data transmission speed: serial communication interface circuit should have message transmission rate---the ability that baud rate is selected and controlled.
Further, described transmitting terminal generates parity check bit or other check codes automatically when sending data, and whether receiving terminal detects data when receiving according to this parity check code and send correctly.Carry out error detection: interface circuit generates parity check bit or other check codes automatically to the character data transmitted when sending.When receiving, interface circuit checks parity check or other check codes of character, determines whether to occur to transmit mistake.
We also need in addition: carry out TTL and EIA level conversion: CPU and terminal all adopt Transistor-Transistor Logic level and positive logic, the level that they and EIA adopt and negative logic incompatible, need change in interface circuit.
There is provided the holding wire required by EIA-RS-232C interface standard: during telecommunication employing MODEM, need 9 holding wires; Closely zero MODEM mode, only needs 3 holding wires.These holding wires are provided by interface circuit, to carry out getting in touch with MODEM or terminal and to control
Further, transmitting terminal is first sent to format information and the data size information of receiving terminal command signal and data to be sent before sending data, described receiving terminal is checked according to above-mentioned format information and data size information after receiving the data message of transmitting terminal transmission, and feedback signal is sent to transmitting terminal.
Further, under transmission information state when abnormal transmission data failure appears in network signal, the abnormal signal of appearance is sent to transmitting terminal by described receiving terminal in real time, and by transmission information at local cache, sends prompting simultaneously.
Further, when described transmitting terminal sends data, these data are encrypted, authentication are carried out to receiving terminal simultaneously, just sent content is decrypted after the communication account of verification msg receiving terminal.
Further, when network occurs that abnormal data transmits unsuccessfully, the information that described receiving terminal receives carries out third party's buffer memory.Data cached processing selecting is preferentially ejected when network is unimpeded.
The above; be only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses; be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, all should be encompassed within protection scope of the present invention.

Claims (6)

1. a serial communication data analysing method, is characterized in that: comprising:
Data message to be sent carried out providing data formatting and string-and the external equipment be sent to after conversion as receiving terminal as the computer of transmitting terminal;
The data message that described receiving terminal real-time reception transmitting terminal transmits, according to the reception condition of data, is sent to transmitting terminal in real time by feedback signal.
2. a kind of serial communication data analysing method according to claim 1, be further characterized in that: described transmitting terminal generates parity check bit or other check codes automatically when sending data, whether receiving terminal detects data when receiving according to this parity check code and sends correctly.
3. a kind of serial communication data analysing method according to claim 1, be further characterized in that: described transmitting terminal is first sent to format information and the data size information of receiving terminal command signal and data to be sent before sending data, described receiving terminal is checked according to above-mentioned format information and data size information after receiving the data message of transmitting terminal transmission, and feedback signal is sent to transmitting terminal.
4. a kind of serial communication data analysing method according to claim 3, is further characterized in that: under transmission information state when abnormal transmission data failure appears in network signal, the abnormal signal of appearance is sent to transmitting terminal by described receiving terminal in real time.
5. a kind of serial communication data analysing method according to claim 3, is further characterized in that: these data be encrypted when described transmitting terminal sends data, and is together sent when sending data message by password.
6., according to a kind of serial communication data analysing method that claim 3 is stated, be further characterized in that: when network occurs that abnormal data transmits unsuccessfully, the information that described receiving terminal receives carries out third party's buffer memory.
CN201510968646.3A 2015-12-21 2015-12-21 Serial port communication data analysis method Pending CN105553617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510968646.3A CN105553617A (en) 2015-12-21 2015-12-21 Serial port communication data analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510968646.3A CN105553617A (en) 2015-12-21 2015-12-21 Serial port communication data analysis method

Publications (1)

Publication Number Publication Date
CN105553617A true CN105553617A (en) 2016-05-04

Family

ID=55832570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510968646.3A Pending CN105553617A (en) 2015-12-21 2015-12-21 Serial port communication data analysis method

Country Status (1)

Country Link
CN (1) CN105553617A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231794A (en) * 2019-07-09 2019-09-13 四川米众网络科技股份有限公司 Serial communication controller based on safe cpu chip

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1381117A (en) * 2000-05-22 2002-11-20 松下电器产业株式会社 Data transfer system and data transfer method
CN1952906A (en) * 2005-10-21 2007-04-25 鸿富锦精密工业(深圳)有限公司 Test system and method of serial port of host computer
CN101459492A (en) * 2008-12-30 2009-06-17 国家电网公司 Data transmission method and system, data sending terminal
US20090296334A1 (en) * 2008-05-27 2009-12-03 James Chu Transmission module on desktop monitor
CN101894086A (en) * 2010-06-08 2010-11-24 昆山三泰新电子科技有限公司 Serial hub and multi-serial high-speed communication method
CN102375427A (en) * 2010-08-11 2012-03-14 上海鼎讯电子有限公司 Serial port communication module
CN102946338A (en) * 2012-09-25 2013-02-27 厦门大学 12-channel asynchronous serial data universal centralized collection device
CN103391131A (en) * 2013-08-02 2013-11-13 成都林海电子有限责任公司 ARM module of remote station modem and method for allowing ARM module to be communicated with serial device
CN103490785A (en) * 2013-10-15 2014-01-01 武汉邮电科学研究院 High-speed serial-to-parallel conversion method and convertor
CN103684949A (en) * 2013-12-19 2014-03-26 北京遥测技术研究所 High-precision Baud rate universal serial port
CN104219442A (en) * 2014-08-20 2014-12-17 上海天脉聚源文化传媒有限公司 Serial device communication method, device and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1381117A (en) * 2000-05-22 2002-11-20 松下电器产业株式会社 Data transfer system and data transfer method
CN1952906A (en) * 2005-10-21 2007-04-25 鸿富锦精密工业(深圳)有限公司 Test system and method of serial port of host computer
US20090296334A1 (en) * 2008-05-27 2009-12-03 James Chu Transmission module on desktop monitor
CN101459492A (en) * 2008-12-30 2009-06-17 国家电网公司 Data transmission method and system, data sending terminal
CN101894086A (en) * 2010-06-08 2010-11-24 昆山三泰新电子科技有限公司 Serial hub and multi-serial high-speed communication method
CN102375427A (en) * 2010-08-11 2012-03-14 上海鼎讯电子有限公司 Serial port communication module
CN102946338A (en) * 2012-09-25 2013-02-27 厦门大学 12-channel asynchronous serial data universal centralized collection device
CN103391131A (en) * 2013-08-02 2013-11-13 成都林海电子有限责任公司 ARM module of remote station modem and method for allowing ARM module to be communicated with serial device
CN103490785A (en) * 2013-10-15 2014-01-01 武汉邮电科学研究院 High-speed serial-to-parallel conversion method and convertor
CN103684949A (en) * 2013-12-19 2014-03-26 北京遥测技术研究所 High-precision Baud rate universal serial port
CN104219442A (en) * 2014-08-20 2014-12-17 上海天脉聚源文化传媒有限公司 Serial device communication method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MINGXINGINXING: "Spring缓存及第三方缓存接入,https://blog.csdn.net/mingxingxinxing/article/details/50425572", 《CSDN》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231794A (en) * 2019-07-09 2019-09-13 四川米众网络科技股份有限公司 Serial communication controller based on safe cpu chip

Similar Documents

Publication Publication Date Title
CN111164923B (en) Design for unidirectional data transmission
CN100366029C (en) Communication controller, host-side controller, communication equipment, communication system and method
US20040260851A1 (en) Data transmission method for microprocessors in a programmable logic controller
AU595437B2 (en) Universal protocol data receiver
CN101860467B (en) Special wired train bus control device
CN103051414B (en) A kind of serial communication error correction and system
CN108512785B (en) Data transmission protocol method
CN100417098C (en) Method for detecting E1/T1 connection error
CN101227263B (en) On-line malfunction detecting system, device and method
CN108259127A (en) 10,000,000,000 net IP kernel of PCIE dual redundants
CN106654770A (en) Universal serial bus (USB) extension cord
CN109428676B (en) Method and device for synchronizing forward error correction coding and decoding modes
MX2023000506A (en) Link error recovery method and apparatus.
CN105553617A (en) Serial port communication data analysis method
US3943348A (en) Apparatus for monitoring the operation of a data processing communication system
CN102420675B (en) Methods and devices for transmitting and receiving using state information of buffer of data message
CN100490400C (en) Access error detection method and network device
CN107147437B (en) Optical fibre communication method and equipment
CN101783712B (en) Method, user terminal and network node for identifying LTE (Long Term Evolution) version
CN103765799B (en) Electrical idle state processing method and the fast interconnected PCIE device of peripheral component
CN104298630A (en) Communication method, communication devices and equipment based on SPI
CN104426866A (en) Data transmission method and apparatus
US20080163011A1 (en) Method and Testing Arrangement for Testing a Device Using 8B/10B Encoding and an 8B/10B Encoder and Decoder
CN104243347A (en) Data sending and receiving method and device based on SHDSL
JP2008154087A (en) Communication system and communication control method

Legal Events

Date Code Title Description
C06 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504