CN110855530A - Method for assisting detection of RS232 serial interface communication link - Google Patents

Method for assisting detection of RS232 serial interface communication link Download PDF

Info

Publication number
CN110855530A
CN110855530A CN201911190865.8A CN201911190865A CN110855530A CN 110855530 A CN110855530 A CN 110855530A CN 201911190865 A CN201911190865 A CN 201911190865A CN 110855530 A CN110855530 A CN 110855530A
Authority
CN
China
Prior art keywords
control system
central control
feedback
instruction
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.)
Granted
Application number
CN201911190865.8A
Other languages
Chinese (zh)
Other versions
CN110855530B (en
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.)
BEIJING TECHSTAR TECHNOLOGY Co Ltd
Original Assignee
BEIJING TECHSTAR 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 BEIJING TECHSTAR TECHNOLOGY Co Ltd filed Critical BEIJING TECHSTAR TECHNOLOGY Co Ltd
Priority to CN201911190865.8A priority Critical patent/CN110855530B/en
Publication of CN110855530A publication Critical patent/CN110855530A/en
Application granted granted Critical
Publication of CN110855530B publication Critical patent/CN110855530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

A method for assisting RS232 serial interface communication link detection is characterized in that a control terminal is controlled by a central control system to trigger a control instruction; receiving and analyzing the control instruction through a host of a central control system, and sending the control instruction; the RS232 link detector receives the control instruction and transmits the control instruction to the controlled equipment, and meanwhile, the feedback instruction transmits a successful message; the controlled equipment responds to the control instruction correspondingly; the central control system host receives the feedback messages of the RS232 and the controlled equipment and transmits the feedback messages to the central control system control terminal; and the central control system control terminal receives the feedback information and performs user notification processing. The invention solves the problem of user experience caused by that part of controlled equipment does not support the feedback of the execution result through the RS232 link detector; the multiple feedback mechanism designed by the invention can meet the good control interaction feeling of the user and also can provide important basis for troubleshooting for operation and maintenance technicians.

Description

Method for assisting detection of RS232 serial interface communication link
Technical Field
The invention relates to the field of communication networks, in particular to a method for assisting detection of a communication link of an RS232 serial interface.
Background
In an application scenario of the RS232 interface, for example, when the central control system performs device control, it is often desirable that the controlled device can perform state feedback after receiving an instruction, so that the central control system can perform state maintenance of its own control interface. And the fact that: in most controlled devices, post-controlled state feedback is not supported. The central control system can only take the last message as the basis for maintaining the state of the control page, but the basis is inaccurate, and because of various factors, the message sent by the central control system fails to be controlled, such as the fault of a hardware interface of the central control system, the fault of an RS232 cable and the like.
Disclosure of Invention
The invention aims to provide a method for assisting detection of an RS232 serial interface communication link, so as to solve the problems in the prior art.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a method for assisting detection of an RS232 serial interface communication link comprises the following steps:
s1, triggering a control instruction through a control terminal of the central control system;
s2, receiving and analyzing the control instruction through a central control system host, matching the control instruction with the equipment control instruction in the database, and sending the control instruction from the corresponding equipment interface;
s3, the RS232 link detector receives a control instruction sent by the central control system host, transmits the control instruction to the controlled equipment, and simultaneously feeds back a message that the instruction is successfully transmitted to the central control system host;
s4, the controlled device responds to the control instruction correspondingly, and if the controlled device supports the message feedback function, a corresponding response message is transmitted to the central control system host through the RS232 link detector; if the controlled equipment does not support the message feedback function, no information is fed back;
s5, the central control system host receives the feedback messages of the RS232 and the controlled equipment and transmits the feedback messages to the central control system control terminal;
s6, the central control system control terminal receives the feedback information and carries out user notification processing; when the central control system control terminal receives a feedback message that the instruction sent by the RS232 link detector is successfully transmitted, the central control system control terminal informs a user of: the control instruction successfully arrives at the controlled equipment and continues to wait for the feedback information of the controlled equipment; when the response message sent by the controlled equipment is received, the control terminal of the central control system informs a user of: a response condition of the controlled device; when the control terminal of the central control system does not receive any feedback information within the set feedback information receiving time, the user is informed of: the control instruction fails to execute successfully.
Preferably, the control terminal of the central control system is a handheld or desktop device of a user and is communicated with the host of the central control system through a network link.
Preferably, the central control system host is provided with one or more RS232 or other control hardware interfaces.
Preferably, the feedback information receiving time is set to 10 seconds.
An implementation method of an RS232 link detector relates to three communication ports, including an input port, an output port and an internal port; the control instruction is transmitted to the output port and the internal port through the input port, and the output port is communicated with the next-level equipment; the internal port Tx line sequence is connected with the Rx line sequence of the output port, and the internal port transmits a message indicating successful transmission to the output port, and the message is transmitted back to the input port from the output port and transmitted to the previous-stage equipment.
Preferably, the RS232 link detector includes information distribution and information feedback functions.
The invention has the beneficial effects that: the invention provides a communication link detection method, which can detect message transmission at the last node of an application link through an RS232 link detector, and solves the problem that part of controlled equipment does not support user experience caused by feedback of an execution result; according to the invention, the interactive use feeling of the user is concerned, so that a common user can know the own operation result more clearly, the interactive feeling and the operation safety are improved, and the user and operation and maintenance personnel with professional technology can divide the responsibilities of the central control system and the controlled equipment more easily; the multi-feedback mechanism designed by the invention can meet the good control interaction feeling of the user on one hand and provide important basis for troubleshooting for operation and maintenance technicians on the other hand.
Drawings
FIG. 1 is a schematic connection diagram of a communication link;
FIG. 2 is a flow chart of feedback information processing performed by the control terminal of the central control system;
fig. 3 is a RS232 link detector port line connection diagram.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
A method for assisting detection of an RS232 serial interface communication link comprises the following steps:
s1, triggering a control instruction through a control terminal of the central control system; a user triggers a control command on a control terminal of a central control system according to business needs, and the control terminal of the central control system sends the command to a host of the central control system;
s2, receiving and analyzing the control instruction through the central control system host, receiving and analyzing the control instruction sent by the central control system control terminal in the step one, matching the control instruction with the service meaning with the equipment control instruction in the database, and sending the control instruction from the corresponding equipment interface;
s3, the RS232 link detector receives a control instruction sent by the central control system host, transmits the control instruction to the controlled equipment, and simultaneously feeds back a message that the instruction is successfully transmitted to the central control system host;
s4, the controlled device responds to the control command correspondingly, and if the command for starting the device is received, the controlled device starts the device; if the controlled equipment supports the message feedback function, transmitting a corresponding response message, namely a message of successful startup, to the central control system host through the RS232 link detector; if the controlled equipment does not support the message feedback function, no feedback action is performed;
s5, the central control system host receives the feedback messages of the RS232 and the controlled equipment, and when any one of the feedback messages received by the central control system host is transmitted to the central control system control terminal;
s6, the central control system control terminal receives the feedback information and performs a user notification process, and the flow chart of the feedback information process performed by the central control system control terminal is shown in fig. 2: when the central control system control terminal receives a feedback message that the instruction sent by the RS232 link detector is successfully transmitted, the central control system control terminal informs a user of: the control instruction successfully arrives at the controlled equipment and continues to wait for the feedback information of the controlled equipment; when the response message sent by the controlled equipment is received, the control terminal of the central control system informs a user of: a response condition of the controlled device; when the control terminal of the central control system does not receive any feedback information within the set feedback information receiving time, the user is informed of: the control instruction fails to execute successfully.
The RS232 link detector firstly realizes a distributor function of RS232 one-to-many, and a message feedback function is constructed on the basis; the line connection mode is shown in fig. 3, a control instruction sent by a central control system host enters through an input port and is transmitted to an internal port and an output port; the internal port Tx line sequence is connected with the Rx line sequence of the output port, and sends a message of successful instruction transmission to the output port and transmits the message to the input port, so as to feed back the message to the central control system host; wherein the communication connection is realized by means of an integrated circuit.
The control terminal of the central control system in the method is a handheld or desktop device of a user, is a carrier of an application interface of the central control system, is connected with a host of the central control system through a network link and realizes communication; the central control system host is a service analysis and database management center and is provided with a plurality of RS232 and other control type hardware interfaces; the controlled equipment is various equipment such as sound, light, electricity and the like, and comprises equipment such as a projector, a display stand, a video disc player, a video recorder and the like; and the feedback information receiving time starts to be timed after the triggering instruction is sent out.
Examples
The connection mode of the communication link applied by the method is shown in fig. 1, wherein the feedback information receiving time set by the control terminal of the central control system is 10 seconds, three RS232 interfaces are arranged on the host of the central control system, and a projector is selected as the controlled device. When the control terminal of the central control system triggers a control instruction for opening the projector 2, an RS232(2) interface of the host of the central control system sends the control instruction, the RS232 link detector (2) transmits the control instruction to the projector 2, and feeds back the information of the received instruction to the host of the central control system; the projector 2 executes the control instruction, turns on the projector 2, sends feedback information for successfully turning on the projector 2 when the projector 2 supports the feedback function, and does not feed back any information when the projector 2 does not support the feedback function.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained:
the invention provides a communication link detection method, which can detect message transmission at the last node of an application link through an RS232 link detector, and solves the problem that part of controlled equipment does not support user experience caused by feedback of an execution result; according to the invention, the interactive use feeling of the user is concerned, so that a common user can know the own operation result more clearly, the interactive feeling and the operation safety are improved, and the user and operation and maintenance personnel with professional technology can divide the responsibilities of the central control system and the controlled equipment more easily; the multi-feedback mechanism designed by the invention can meet the good control interaction feeling of the user on one hand and provide important basis for troubleshooting for operation and maintenance technicians on the other hand.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.

Claims (6)

1. A method for assisting detection of an RS232 serial interface communication link is characterized by comprising the following steps:
s1, triggering a control instruction through a control terminal of the central control system;
s2, receiving and analyzing the control instruction through a central control system host, matching the control instruction with the equipment control instruction in the database, and sending the control instruction from the corresponding equipment interface;
s3, the RS232 link detector receives a control instruction sent by the central control system host, transmits the control instruction to the controlled equipment, and simultaneously feeds back a message that the instruction is successfully transmitted to the central control system host;
s4, the controlled device responds to the control instruction correspondingly, and if the controlled device supports the message feedback function, a corresponding response message is transmitted to the central control system host through the RS232 link detector; if the controlled equipment does not support the message feedback function, no information is fed back;
s5, the central control system host receives the feedback messages of the RS232 and the controlled equipment and transmits the feedback messages to the central control system control terminal;
s6, the central control system control terminal receives the feedback information and carries out user notification processing; when the central control system control terminal receives a feedback message that the instruction sent by the RS232 link detector is successfully transmitted, the central control system control terminal informs a user of: the control instruction successfully arrives at the controlled equipment and continues to wait for the feedback information of the controlled equipment; when the response message sent by the controlled equipment is received, the control terminal of the central control system informs a user of: a response condition of the controlled device; when the control terminal of the central control system does not receive any feedback information within the set feedback information receiving time, the user is informed of: the control instruction fails to execute successfully.
2. The method for assisting detection of the RS232 serial interface communication link of claim 1, wherein the control terminal of the central control system is a handheld or desktop device, and communicates with the host of the central control system through a network link.
3. The method for assisting detection of a RS232 serial interface communication link according to claim 1, wherein the central control system host is provided with one or more RS232 or other control hardware interfaces.
4. The method for assisting detection of a RS232 serial interface communication link of claim 1 wherein the feedback information reception time is set to 10 seconds.
5. An implementation method of an RS232 link detector is characterized by relating to three communication ports, including an input port, an output port and an internal port; the control instruction is transmitted to the output port and the internal port through the input port, and the output port is communicated with the next-level equipment; the internal port Tx line sequence is connected with the Rx line sequence of the output port, and the internal port transmits a message indicating successful transmission to the output port, and the message is transmitted back to the input port from the output port and transmitted to the previous-stage equipment.
6. The method of claim 5, wherein the RS232 link detector includes information distribution and information feedback functions.
CN201911190865.8A 2019-11-28 2019-11-28 Method for assisting detection of RS232 serial interface communication link Active CN110855530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911190865.8A CN110855530B (en) 2019-11-28 2019-11-28 Method for assisting detection of RS232 serial interface communication link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911190865.8A CN110855530B (en) 2019-11-28 2019-11-28 Method for assisting detection of RS232 serial interface communication link

Publications (2)

Publication Number Publication Date
CN110855530A true CN110855530A (en) 2020-02-28
CN110855530B CN110855530B (en) 2021-08-20

Family

ID=69606294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911190865.8A Active CN110855530B (en) 2019-11-28 2019-11-28 Method for assisting detection of RS232 serial interface communication link

Country Status (1)

Country Link
CN (1) CN110855530B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953436A (en) * 2020-08-12 2020-11-17 深圳市泛海三江电子股份有限公司 Communication method and system based on redundancy technology

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087216A (en) * 2007-05-23 2007-12-12 东北大学 Detection system and method for base secondary link failure of computer network
CN101729553A (en) * 2009-11-19 2010-06-09 中兴通讯股份有限公司 Method for realizing terminal remote control, terminal server, control terminal and controlled terminal
CN103529700A (en) * 2012-07-06 2014-01-22 安川电机(中国)有限公司 Control device and control method used for feedback system, and feedback system
US20140047292A1 (en) * 2005-03-21 2014-02-13 Texas Instruments Incorporated System and method for sharing a communications link between multiple communications protocols
CN104093050A (en) * 2014-06-12 2014-10-08 华南理工大学 Controlled terminal controlled decision-making method and apparatus based on multiple intelligent remote controllers
CN104460592A (en) * 2014-10-28 2015-03-25 广东威创视讯科技股份有限公司 Control method and device based on central control system
CN105357214A (en) * 2015-11-26 2016-02-24 东莞酷派软件技术有限公司 Remote control method, remote control device, terminal and remote control system
CN105933149A (en) * 2016-04-19 2016-09-07 广东睿江云计算股份有限公司 Circuit link quality monitoring method and device
CN106817264A (en) * 2015-11-27 2017-06-09 华为软件技术有限公司 A kind of methods, devices and systems of link failure detection
CN207910943U (en) * 2018-03-22 2018-09-25 上海天诚通信技术股份有限公司 A kind of POE electronic wiring frames

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140047292A1 (en) * 2005-03-21 2014-02-13 Texas Instruments Incorporated System and method for sharing a communications link between multiple communications protocols
CN101087216A (en) * 2007-05-23 2007-12-12 东北大学 Detection system and method for base secondary link failure of computer network
CN101729553A (en) * 2009-11-19 2010-06-09 中兴通讯股份有限公司 Method for realizing terminal remote control, terminal server, control terminal and controlled terminal
CN103529700A (en) * 2012-07-06 2014-01-22 安川电机(中国)有限公司 Control device and control method used for feedback system, and feedback system
CN104093050A (en) * 2014-06-12 2014-10-08 华南理工大学 Controlled terminal controlled decision-making method and apparatus based on multiple intelligent remote controllers
CN104460592A (en) * 2014-10-28 2015-03-25 广东威创视讯科技股份有限公司 Control method and device based on central control system
CN105357214A (en) * 2015-11-26 2016-02-24 东莞酷派软件技术有限公司 Remote control method, remote control device, terminal and remote control system
CN106817264A (en) * 2015-11-27 2017-06-09 华为软件技术有限公司 A kind of methods, devices and systems of link failure detection
CN105933149A (en) * 2016-04-19 2016-09-07 广东睿江云计算股份有限公司 Circuit link quality monitoring method and device
CN207910943U (en) * 2018-03-22 2018-09-25 上海天诚通信技术股份有限公司 A kind of POE electronic wiring frames

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953436A (en) * 2020-08-12 2020-11-17 深圳市泛海三江电子股份有限公司 Communication method and system based on redundancy technology

Also Published As

Publication number Publication date
CN110855530B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
EP3229420A1 (en) Method for establishing persistent connection between multiple smart devices and server, and smart device
CN108052474B (en) Data format conversion method, device, equipment and computer readable storage medium
CN106993043B (en) Data communication system and method based on agency
CN111654404B (en) Intelligent network card management and control method and device
CN106776398A (en) The method and apparatus of dual system double-direction control
CN106909327A (en) A kind of display control unit for industrial control equipment
CN105007306A (en) Remote assistance method for mobile terminal and terminal
CN208227042U (en) A kind of real-time automatic fault warning device of server
US20090144479A1 (en) Computer switcher and method for matching with a plurality of servers
CN106803792A (en) Data transfer equipment, electric equipment and electric equipment fault diagnosis system
CN110855530B (en) Method for assisting detection of RS232 serial interface communication link
AU2019392759A1 (en) Cloud integration to desktop-based emergency service applications
CN110111523A (en) A kind of fire-fighting Internet of Things signal imitation Transmission system
CN109683780A (en) Control method, system and the controlled terminal of mobile terminal
CN114070763B (en) Test method, client, server and medium based on improved REST protocol
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
CN103685017A (en) Message forwarding method in stacking system, stacking equipment and stacking system
CN116095664A (en) Method for realizing service registration of newly-added Beidou user machine in system
JP2001344189A (en) Computer changeover device
CN109660603A (en) A method of it realizes immediately or timing controlled remote device data is shown
CN104980495A (en) General device integrated manager
CN103973519A (en) Simulation testing system of switching center based on PC (Personal Computer) platform
WO2021135466A1 (en) Method for intelligently acquiring baseband chip data, apparatus, device and storage medium
CN109347207A (en) A kind of telecontrol device state monitoring apparatus and method based on substation
CN112672374B (en) Electric power data communication state processing system and terminal

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
GR01 Patent grant
GR01 Patent grant