CN110855530B - Method for assisting detection of RS232 serial interface communication link - Google Patents
Method for assisting detection of RS232 serial interface communication link Download PDFInfo
- Publication number
- CN110855530B CN110855530B CN201911190865.8A CN201911190865A CN110855530B CN 110855530 B CN110855530 B CN 110855530B CN 201911190865 A CN201911190865 A CN 201911190865A CN 110855530 B CN110855530 B CN 110855530B
- Authority
- CN
- China
- Prior art keywords
- control system
- central control
- instruction
- feedback
- 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.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000001514 detection method Methods 0.000 title claims abstract description 14
- 238000012545 processing Methods 0.000 claims abstract description 3
- 230000004044 response Effects 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 abstract description 6
- 230000003993 interaction Effects 0.000 abstract description 3
- 238000013024 troubleshooting Methods 0.000 abstract description 3
- 230000008713 feedback mechanism Effects 0.000 abstract 1
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephonic Communication Services (AREA)
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
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 (5)
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 information of successful instruction transmission to the central control system host;
the 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 next-level equipment; the Tx line sequence of the internal port is connected with the Rx line sequence of the output port, and the internal port transmits information of successful instruction transmission to the output port, and the information is transmitted back to the input port from the output port and transmitted to the upper-level equipment;
s4, the controlled device responds to the control instruction correspondingly, and if the controlled device supports the information 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 information feedback function, no information is fed back;
s5, the central control system host receives the feedback information of the RS232 link detector and the controlled equipment and transmits the feedback information 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 feedback information 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. The method of assisting detection of an RS232 serial interface communication link according to claim 1 wherein the RS232 link detector includes information distribution and information feedback functions.
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 CN110855530A (en) | 2020-02-28 |
| CN110855530B true 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) |
Families Citing this family (1)
| 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 (6)
| 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 |
| 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 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7552360B2 (en) * | 2005-03-21 | 2009-06-23 | Texas Instruments Incorporated | Debug and test system with format select register circuitry |
| CN101729553B (en) * | 2009-11-19 | 2013-03-27 | 中兴通讯股份有限公司 | Method for realizing terminal remote control, terminal server, control terminal and controlled terminal |
| CN103529700B (en) * | 2012-07-06 | 2017-07-04 | 安川电机(中国)有限公司 | For the control device and control method of reponse system, and reponse system |
| CN104093050B (en) * | 2014-06-12 | 2017-10-20 | 华南理工大学 | The controlled decision-making technique and device of controlled terminal based on multiple intelligent remote controllers |
-
2019
- 2019-11-28 CN CN201911190865.8A patent/CN110855530B/en active Active
Patent Citations (6)
| 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 |
| 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 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110855530A (en) | 2020-02-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6260160B1 (en) | Remote troubleshooting of a computing device | |
| US20170366620A1 (en) | Long connection method between a plurality of smart devices and a server, and smart device thereof | |
| CN108052474B (en) | Data format conversion method, device, equipment and computer readable storage medium | |
| CN111654404B (en) | Intelligent network card management and control method and device | |
| CN106993043B (en) | Data communication system and method based on agency | |
| CN106776398A (en) | Method and device for bidirectional control of dual systems | |
| CN104486146A (en) | Communication method for testing console and testing equipment | |
| CN110417687B (en) | Message sending and receiving method and device | |
| CN110855530B (en) | Method for assisting detection of RS232 serial interface communication link | |
| CN113242292A (en) | Message transmission method, device, equipment, medium and product | |
| CN105721232A (en) | Method and device for implementing link detection | |
| CN109347207A (en) | A kind of telecontrol device state monitoring apparatus and method based on substation | |
| CN109683780A (en) | Control method, system and the controlled terminal of mobile terminal | |
| CN105808418B (en) | Test machine register method, apparatus and system | |
| CN106331051B (en) | Document transmission method and system and reception file device send file device | |
| CN101136756A (en) | Electric self-checking method, system and BMC chip on network long-range control host machine | |
| CN112511636B (en) | Data transmission system, method, device, computer equipment and storage medium | |
| CN112672374A (en) | Electric power data communication state processing system and terminal | |
| CN108259086B (en) | Online monitoring method, device and system | |
| CN116266834B (en) | Multi-mode group communication system based on WEB | |
| CN117557211B (en) | Intelligent financial business processing method, platform and medium based on flow automation | |
| CN103973519A (en) | Simulation testing system of switching center based on PC (Personal Computer) platform | |
| CN109660603A (en) | A method of it realizes immediately or timing controlled remote device data is shown | |
| CN109040985A (en) | A kind of note system | |
| TWI627596B (en) | Method for automatic switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software, and the mobile device service server |
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 |