CN113556210B - Upper computer and method for establishing communication connection - Google Patents

Upper computer and method for establishing communication connection Download PDF

Info

Publication number
CN113556210B
CN113556210B CN202110804063.2A CN202110804063A CN113556210B CN 113556210 B CN113556210 B CN 113556210B CN 202110804063 A CN202110804063 A CN 202110804063A CN 113556210 B CN113556210 B CN 113556210B
Authority
CN
China
Prior art keywords
baud rate
controller
analysis module
rate parameter
target analysis
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
Application number
CN202110804063.2A
Other languages
Chinese (zh)
Other versions
CN113556210A (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.)
Qingdao Xinxin Microelectronics Technology Co Ltd
Original Assignee
Qingdao Xinxin Microelectronics 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 Qingdao Xinxin Microelectronics Technology Co Ltd filed Critical Qingdao Xinxin Microelectronics Technology Co Ltd
Priority to CN202110804063.2A priority Critical patent/CN113556210B/en
Publication of CN113556210A publication Critical patent/CN113556210A/en
Application granted granted Critical
Publication of CN113556210B publication Critical patent/CN113556210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0002Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses an upper computer and a method for establishing communication connection. The communication interface receives preset data sent by the plurality of analysis modules and sends the preset data to the controller, the controller calculates to obtain a first baud rate parameter according to the preset data, compares the first baud rate parameter with a second baud rate parameter, determines a target analysis module according to a comparison result, then controls the target analysis module to establish communication connection with the communication interface, and the communication interface is connected with the communication module.

Description

Upper computer and method for establishing communication connection
Technical Field
The invention relates to the technical field of communication, in particular to an upper computer and a method for establishing communication connection.
Background
In the development stage of the air-conditioning product, system monitoring is usually required, namely, key parameters of a monitored air-conditioning system board are uploaded to upper computer software, a parameter curve is generated, whether the curve meets the requirement is observed, or an instruction sent by the upper computer software is sent to a micro control unit (Microcontroller Unit, MCU); and in the product debugging and production stage, debugging tools are needed, namely, the monitored parameters are sent to another upper computer software for verifying the functions of the products.
At present, two communication interfaces are generally adopted to interact with upper computer software when the system is monitored and debugged, namely, each upper computer software corresponds to one communication interface, each communication interface is connected with one communication module, for example, the system monitoring module is connected when the system is monitored, and the debugging tool module is connected when the tool is debugged.
In the prior art, when a plurality of communication interfaces are connected with a plurality of communication modules, an MCU is generally required to configure a selection signal to select the communication modules, when two communication modules are provided, one selection signal is required, and when a plurality of communication modules are added, more selection signals and communication interfaces are required, so that the number of the communication interfaces is high, and the circuit is complex.
Disclosure of Invention
The invention provides a method and a device for establishing communication connection, which are used for solving the problems in the prior art that the number of communication interfaces is high and the circuit is complex when a communication module is detected.
In a first aspect, the present invention provides an upper computer, including: the system comprises a controller, a communication interface and a plurality of analysis modules;
the communication interface is configured to receive preset data for calculating the baud rate parameter sent by the analysis modules and send the preset data to the processor;
the controller is configured to calculate a first baud rate parameter according to the preset data, compare the first baud rate parameter with a second baud rate parameter, and determine a target analysis module according to a comparison result; controlling the target analysis module to establish communication connection with the communication interface;
the communication interface is connected with the communication module, and the second baud rate parameter is the same parameter as the baud rate parameter of the communication module.
In one possible implementation, the controller is specifically configured to:
calculating each piece of received preset data according to a preset algorithm to obtain first baud rate parameters corresponding to a plurality of analysis modules one by one;
and comparing each first baud rate parameter with the second baud rate parameter, and taking an analysis module corresponding to the first baud rate parameter with the same comparison result as the target analysis module.
In one possible implementation, the controller is further configured to:
and sending the first response data to the target analysis module.
In one possible implementation, if multiple target analysis modules are included, then for each target analysis module:
the target analysis module is further configured to: sending a handshake data packet to the controller according to a preset communication protocol corresponding to the target analysis module;
the controller is further configured to: and comparing the received handshake data packet with the data packet corresponding to the communication module, and sending second response data to the target analysis module with the same comparison result.
In one possible implementation, the controller is further configured to:
and acquiring the baud rate parameter of the communication module through the communication interface.
In a second aspect, an embodiment of the present invention provides a method for establishing a communication connection, which is applied to a host computer, where the host computer includes a controller, a communication interface, and a plurality of analysis modules, and the method includes:
the communication interface is used for receiving preset data which are sent by the analysis modules and used for calculating the baud rate parameters and sending the preset data to the controller;
calculating by the controller according to the preset data to obtain a first baud rate parameter, comparing the first baud rate parameter with a second baud rate parameter, and determining a target analysis module according to a comparison result;
the controller controls the target analysis module to establish communication connection with a communication interface;
the communication interface is connected with the communication module, and the second baud rate parameter is the same parameter as the baud rate parameter of the communication module.
In one possible implementation manner, the calculating, by the controller, a first baud rate parameter according to the preset data, comparing the first baud rate parameter with a second baud rate parameter, and determining, according to a comparison result, a target analysis module includes:
calculating each piece of received preset data according to a preset algorithm by the controller to obtain first baud rate parameters corresponding to the plurality of analysis modules one by one;
and comparing each first baud rate parameter with the second baud rate parameter through the controller, and taking an analysis module corresponding to the first baud rate parameter with the same comparison result as the target analysis module.
In one possible implementation manner, after the determining, by the controller, the target analysis module according to the comparison result, before the controlling, by the controller, the target analysis module to establish a communication connection with the communication interface, the method further includes:
and sending first response data to the target analysis module through the controller.
In one possible implementation manner, if a plurality of target analysis modules are included, after the controller sends the first response data to the target analysis modules, before the controller controls the target analysis modules to establish a communication connection with a communication interface, the method further includes:
for each target analysis module, sending a handshake data packet to the controller by the target analysis module according to a preset communication protocol corresponding to the target analysis module;
and comparing the received handshake data packet with a data packet corresponding to the communication module by the controller, and sending second response data to the target analysis module with the same comparison result.
In one possible implementation manner, before the receiving, by the communication interface, preset data for calculating the baud rate parameter sent by the plurality of analysis modules, the method further includes:
and acquiring the baud rate parameter of the communication module through the communication interface.
In a third aspect, embodiments of the present invention also provide a computer-readable storage medium storing a program which, when run on a computer, causes the computer to implement the method of any one of the second aspects.
The invention has the following beneficial effects:
in the embodiment of the invention, the communication interface receives preset data for calculating the baud rate parameter sent by the plurality of analysis modules and sends the preset data to the controller, the controller calculates the first baud rate parameter according to the preset data, compares the first baud rate parameter with the second baud rate parameter, determines the target analysis module according to the comparison result, and then controls the target analysis module to establish communication connection with the communication interface, wherein the communication interface is connected with the communication module, the second baud rate parameter is the same parameter as the baud rate parameter of the communication module, and the target analysis module is determined according to the comparison result because the first baud rate parameter calculated by the preset data sent by the plurality of analysis modules is compared with the baud rate parameter of the communication module, so that the communication between different communication modules and the analysis module is realized by using one communication interface, the number of the communication interfaces can be reduced, the circuit is simplified, and the system performance is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an upper computer according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a structure including a target analysis module according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a structure including a plurality of target analysis modules according to an embodiment of the present invention;
fig. 4 is a flow chart of a method for establishing a communication connection according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a complete method for establishing a communication connection according to an embodiment of the present invention.
Detailed Description
The technical solutions of the embodiments of the present invention will be clearly and thoroughly described below with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present invention, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and furthermore, in the description of the embodiments of the present invention, "plural" means two or more than two.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
In order to reduce the requirement on the MCU and simplify the circuit, the embodiment of the present invention provides a host computer for establishing communication connection, as shown in fig. 1, the host computer includes a communication interface 10, a controller 20 and a plurality of analysis modules 30.
A communication interface 10 configured to receive preset data for calculating baud rate parameters transmitted from the plurality of analysis modules 30 and transmit the preset data to the controller 20;
the controller 20 is configured to calculate a first baud rate parameter according to the received preset data, compare the first baud rate parameter with a second baud rate parameter, and determine a target analysis module according to the comparison result; the control target analysis module establishes communication connection with the communication interface;
the communication interface 10 is connected to the communication module, and the second baud rate parameter is the same as the baud rate parameter of the communication module.
In the embodiment of the invention, the communication interface receives preset data for calculating the baud rate parameter sent by the plurality of analysis modules and sends the preset data to the controller, the controller calculates the first baud rate parameter according to the preset data, compares the first baud rate parameter with the second baud rate parameter, determines the target analysis module according to the comparison result, and then controls the target analysis module to establish communication connection with the communication interface, wherein the communication interface is connected with the communication module, the second baud rate parameter is the same parameter as the baud rate parameter of the communication module, and the target analysis module is determined according to the comparison result because the first baud rate parameter calculated by the preset data sent by the plurality of analysis modules is compared with the baud rate parameter of the communication module, so that the communication between different communication modules and the analysis module is realized by using one communication interface, the number of the communication interfaces can be reduced, the circuit is simplified, and the system performance is improved.
The communication module in the embodiment of the invention can be a certain communication module in a tested product, such as a communication module in an air conditioner, and can be used for testing whether the performance of the product is normal or not; the analysis module can be upper computer software, one upper computer can comprise a plurality of upper computer software, each upper computer software corresponds to one communication module, when the communication interfaces of the upper computers are connected with different communication modules, the communication interfaces of the upper computers are in communication connection with the upper computer software corresponding to the communication modules, when products are detected, parameters of the products in operation are sent to the upper computer software through the communication interfaces of the upper computers, the upper computer software processes the received parameters to obtain parameter curves or determines control instructions according to the received parameters, and then the control instructions are sent to the main controller.
The communication interface in the embodiment of the invention may be a UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiver Transmitter) interface, and when the communication module is inserted into the UART interface, the controller may obtain the baud rate parameter of the communication module, that is, the second baud rate parameter, through the UART interface.
The controller in the embodiment of the invention can be an MCU (Microcontroller Unit, micro control unit), each UART interface is connected with one pin or a plurality of pins of the MCU, and in the embodiment of the invention, the MCU controls the target analysis module to establish communication connection with the communication interface, namely, the target analysis module establishes communication connection with the pin connected with the communication interface of the MCU.
In a specific implementation, the controller may acquire the baud rate parameter of the communication module connected to the communication interface through the communication interface, that is, the second baud rate parameter, and the controller stores the acquired second baud rate parameter in the memory, and then receives preset data for calculating the baud rate parameter sent by the communication module.
After the controller receives the preset data, the preset data can be calculated according to a preset algorithm to obtain a first baud rate parameter. Specifically, the length of the low pulse may be detected according to a data transmission protocol of preset data, so as to calculate and obtain the first baud rate parameter.
In the embodiment of the invention, the controller may receive a plurality of preset data, so that the calculated first baud rate parameters are a plurality of, and the controller compares the calculated first baud rate parameters with the second baud rate parameters of the communication module, and determines the target analysis module according to the comparison result.
Specifically, when the first bit rate parameter and the second bit rate parameter are compared, an analysis module corresponding to the first bit rate parameter with the same comparison result is taken as a target analysis module.
For example, as shown in fig. 2, the upper computer includes n analysis modules, each analysis module sends preset data to the controller 20, the preset data are respectively corresponding to preset data 1, preset data 2 and … …, preset data a … … (n-1) and preset data n, after the controller 20 receives the n preset data, each preset data is calculated according to a preset algorithm to obtain n first baud rate parameters, and meanwhile, the controller 20 obtains the baud rate parameters of the communication module, that is, second baud rate parameters, through the communication interface 10, and compares the second baud rate parameters with each calculated first baud rate parameter, and uses the analysis module corresponding to the first baud rate parameter with the same comparison result as the target analysis module. In fig. 2, the analysis module 30-a is referred to as a target analysis module.
It should be noted that in the embodiment of the present invention, each analysis module corresponds to one preset data, that is, a first baud rate parameter, each communication module corresponds to one baud rate parameter, different baud rates are connected to different communication rates, and the baud rate parameters of the analysis module and the communication module for communication are the same, so that after the connection between the target analysis module and the communication interface is established, it can be ensured that the analysis module and the communication module connected to the communication interface can normally communicate.
When the controller establishes communication between the analysis module and the communication interface, the controller can send the first response data to the determined target analysis module after determining the target analysis module, and the target analysis module can prepare for communication after receiving the first response data.
The first response data are sent to the target analysis module by the controller according to the identified baud rate parameter, and the target analysis module receives the first response data, and the baud rate parameter of the communication module connected with the communication interface is the same as the baud rate parameter of the target analysis module, so that normal data communication can be performed.
In a specific implementation, there may be multiple communication modules with the same bit rate parameter, where the first baud rate parameter and the second baud rate parameter are compared, and there may be multiple target analysis modules determined according to the comparison result.
If there are multiple target analysis modules, after the controller sends first response data to the multiple target analysis modules, a handshake data packet is sent to the controller 20 according to a preset communication protocol, after the controller 20 receives the handshake data packet sent by the multiple target analysis modules, the handshake data packet is compared with a data packet corresponding to the communication module, and second response data is sent to the target analysis module with the same comparison result, namely, the communication connection between the target analysis module with the same comparison result and the communication interface is controlled.
It should be noted that, in the embodiment of the present invention, each communication module corresponds to a communication protocol and a data packet, each analysis module corresponds to a communication protocol and a handshake data packet, and the communication protocols and data packets of the communication module and the analysis module capable of performing communication are the same, so that it can be ensured that after a determined target analysis module can establish communication connection with a communication interface, normal communication can be performed.
For example, as shown in fig. 3, 3 target analysis modules are determined by the controller, and the target analysis modules are respectively a target analysis module 1, a target analysis module 2 and a target analysis module 3, after each target analysis module receives first response data, handshake data packets are respectively sent to the controller according to a preset communication protocol of the controller, after the controller receives three handshake data packets, the controller compares the received three handshake data packets with data packets corresponding to the communication module, and the comparison result is that the handshake data packets sent by the target analysis module 2 are identical to the data packets corresponding to the communication module, then the controller sends second response data to the target analysis module 2, and the target analysis module 2 is controlled to establish communication connection with the communication interface.
The data packet corresponding to the handshake data packet and the communication module in the embodiment of the invention can comprise packet header, command word, data length, checksum and other information; the second response data is response data corresponding to a protocol format of the communication protocol.
In a specific implementation, a target analysis module is determined, and in order to further determine that the target analysis module is a target analysis module corresponding to the communication module, the target analysis module may be reconfirmed by adopting a manner of sending handshake data packets.
Specifically, the controller sends first response data to the target analysis module, after the target analysis module receives the first response data, the controller sends a handshake data packet to the controller according to a preset communication protocol, after the controller receives the handshake data packet, the controller compares the handshake data packet with a data packet corresponding to the communication module, and if the comparison result is the same, the controller sends second response data corresponding to the preset communication protocol to the target analysis module, so that communication connection between the target analysis module and the communication interface is established.
The upper computer provided by the embodiment of the invention can realize the communication between different communication modules and upper computer software through one communication interface, thereby reducing the number of the communication interfaces, simplifying the circuit and further improving the system performance.
Based on the same inventive concept, the embodiment of the present invention further provides a method for establishing communication connection, and implementation of the method may refer to implementation of the above-mentioned upper computer, and repeated details are omitted.
As shown in fig. 4, a method for establishing communication connection provided by an embodiment of the present invention is applied to an upper computer, where the upper computer includes a controller, a communication interface and a plurality of analysis modules, and the method specifically includes the following steps:
s401, receiving preset data for calculating the baud rate parameter sent by the analysis modules through the communication interface, and sending the preset data to the controller;
s402, calculating a first baud rate parameter through the controller according to the preset data, comparing the first baud rate parameter with a second baud rate parameter, and determining a target analysis module according to a comparison result;
s403, controlling the target analysis module to establish communication connection with a communication interface through the controller;
the communication interface is connected with the communication module, and the second baud rate parameter is the same parameter as the baud rate parameter of the communication module.
In the embodiment of the invention, the communication interface receives preset data for calculating the baud rate parameter sent by the plurality of analysis modules and sends the preset data to the controller, the controller calculates the first baud rate parameter according to the preset data, compares the first baud rate parameter with the second baud rate parameter, determines the target analysis module according to the comparison result, and then controls the target analysis module to establish communication connection with the communication interface, wherein the communication interface is connected with the communication module, the second baud rate parameter is the same parameter as the baud rate parameter of the communication module, and the target analysis module is determined according to the comparison result because the first baud rate parameter calculated by the preset data sent by the plurality of analysis modules is compared with the baud rate parameter of the communication module, so that the communication between different communication modules and the analysis module is realized by using one communication interface, the number of the communication interfaces can be reduced, the circuit is simplified, and the system performance is improved.
Optionally, the calculating, by the controller, the first baud rate parameter according to the preset data, comparing the first baud rate parameter with the second baud rate parameter, and determining, according to a comparison result, a target analysis module, including:
calculating each piece of received preset data according to a preset algorithm by the controller to obtain first baud rate parameters corresponding to the plurality of analysis modules one by one;
and comparing each first baud rate parameter with the second baud rate parameter through the controller, and taking an analysis module corresponding to the first baud rate parameter with the same comparison result as the target analysis module.
Optionally, after the determining, by the controller, the target analysis module according to the comparison result, before the controlling, by the controller, the target analysis module to establish communication connection with the communication interface, the method further includes:
and sending first response data to the target analysis module through the controller.
Optionally, if a plurality of target analysis modules are included, after the first response data is sent to the target analysis modules by the controller, before the controller controls the target analysis modules to establish communication connection with the communication interface, the method further includes:
for each target analysis module, sending a handshake data packet to the controller by the target analysis module according to a preset communication protocol corresponding to the target analysis module;
and comparing the received handshake data packet with a data packet corresponding to the communication module by the controller, and sending second response data to the target analysis module with the same comparison result.
Optionally, before the receiving, by the communication interface, preset data for calculating the baud rate parameter sent by the plurality of analysis modules, the method further includes:
and acquiring the baud rate parameter of the communication module through the communication interface.
As shown in fig. 5, a complete method for establishing a communication connection according to an embodiment of the present invention includes:
step 501, initializing a system, and setting information such as data length, clock source and the like by a controller;
step 502, a controller receives preset data for calculating baud rate parameters sent by a plurality of analysis modules in an upper computer;
step 503, the controller calculates the received preset data to obtain a first baud rate parameter;
step 504, the controller compares the first baud rate parameter with the second baud rate parameter, and determines a target analysis module according to the comparison result;
step 505, the controller sends first response data to the target analysis module;
step 506, the controller determines whether there are multiple target analysis modules, if yes, step 507 is executed, otherwise step 509 is executed;
step 507, the controller determines a target analysis module from the plurality of target analysis modules according to the received handshake data sent by the plurality of target analysis modules;
step 508, the controller sends second response data to the determined one target analysis module;
step 509, the controller determines whether a target analysis module exists, if yes, step 510 is executed, and if not, step 511 is executed;
step 510, the controller establishes communication connection with a target analysis module in the upper computer, and ends the program;
in step 511, the communication connection establishment fails, and the procedure ends.
Further, an embodiment of the present invention also provides a computer readable storage medium having stored thereon a computer program which, when run on a computer, causes the computer to implement the steps of any of the methods for establishing a communication connection described above.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the present application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Still further, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. An upper computer, characterized by comprising: the system comprises a controller, a communication interface and a plurality of analysis modules;
the communication interface is configured to receive preset data for calculating the baud rate parameter sent by the analysis modules and send the preset data to the controller;
the controller is configured to calculate a first baud rate parameter according to the preset data, compare the first baud rate parameter with a second baud rate parameter, and determine a target analysis module according to a comparison result; controlling the target analysis module to establish communication connection with the communication interface;
the communication interface is connected with the communication module, and the second baud rate parameter is the same parameter as the baud rate parameter of the communication module.
2. The host computer of claim 1, wherein the controller is specifically configured to:
calculating each piece of received preset data according to a preset algorithm to obtain first baud rate parameters corresponding to a plurality of analysis modules one by one;
and comparing each first baud rate parameter with the second baud rate parameter, and taking an analysis module corresponding to the first baud rate parameter with the same comparison result as the target analysis module.
3. The host computer of claim 1, wherein the controller is further configured to:
and sending the first response data to the target analysis module.
4. The host computer of claim 3, wherein if a plurality of target analysis modules are included, then for each target analysis module:
the target analysis module is further configured to: sending a handshake data packet to the controller according to a preset communication protocol corresponding to the target analysis module;
the controller is further configured to: and comparing the received handshake data packet with the data packet corresponding to the communication module, and sending second response data to the target analysis module with the same comparison result.
5. The host computer of any one of claims 1-4, wherein the controller is further configured to:
and acquiring the baud rate parameter of the communication module through the communication interface.
6. A method for establishing communication connection, which is characterized by being applied to a host computer, wherein the host computer comprises a controller, a communication interface and a plurality of analysis modules, and the method comprises the following steps:
the communication interface is used for receiving preset data which are sent by the analysis modules and used for calculating the baud rate parameters and sending the preset data to the controller;
calculating by the controller according to the preset data to obtain a first baud rate parameter, comparing the first baud rate parameter with a second baud rate parameter, and determining a target analysis module according to a comparison result;
the controller controls the target analysis module to establish communication connection with a communication interface;
the communication interface is connected with the communication module, and the second baud rate parameter is the same parameter as the baud rate parameter of the communication module.
7. The method of claim 6, wherein the calculating, by the controller, the first baud rate parameter according to the preset data, and comparing the first baud rate parameter with the second baud rate parameter, and determining the target analysis module according to the comparison result, includes:
calculating each piece of received preset data according to a preset algorithm by the controller to obtain first baud rate parameters corresponding to the plurality of analysis modules one by one;
and comparing each first baud rate parameter with the second baud rate parameter through the controller, and taking an analysis module corresponding to the first baud rate parameter with the same comparison result as the target analysis module.
8. The method of claim 6, wherein after the determining, by the controller, the target analysis module according to the comparison result, before the controlling, by the controller, the target analysis module to establish a communication connection with the communication interface, the method further comprises:
and sending first response data to the target analysis module through the controller.
9. The method of claim 8, wherein after the sending, by the controller, the first response data to the target analysis module if a plurality of target analysis modules are included, before the controlling, by the controller, the target analysis module to establish a communication connection with a communication interface, further comprises:
for each target analysis module, sending a handshake data packet to the controller by the target analysis module according to a preset communication protocol corresponding to the target analysis module;
and comparing the received handshake data packet with a data packet corresponding to the communication module by the controller, and sending second response data to the target analysis module with the same comparison result.
10. A computer readable storage medium, characterized in that the storage medium stores a program which, when run on a computer, causes the computer to implement the method of any one of claims 6 to 9.
CN202110804063.2A 2021-07-16 2021-07-16 Upper computer and method for establishing communication connection Active CN113556210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110804063.2A CN113556210B (en) 2021-07-16 2021-07-16 Upper computer and method for establishing communication connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110804063.2A CN113556210B (en) 2021-07-16 2021-07-16 Upper computer and method for establishing communication connection

Publications (2)

Publication Number Publication Date
CN113556210A CN113556210A (en) 2021-10-26
CN113556210B true CN113556210B (en) 2024-02-27

Family

ID=78131860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110804063.2A Active CN113556210B (en) 2021-07-16 2021-07-16 Upper computer and method for establishing communication connection

Country Status (1)

Country Link
CN (1) CN113556210B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001880A (en) * 2022-05-27 2022-09-02 国仪量子(合肥)技术有限公司 Modular connection control method, upper computer and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102388583A (en) * 2011-09-19 2012-03-21 华为技术有限公司 Series rate allocation method, relative device and system
CN105653461A (en) * 2016-03-17 2016-06-08 烽火通信科技股份有限公司 System for converting single USB interface into plurality of UART debugging interfaces
WO2018010381A1 (en) * 2016-07-14 2018-01-18 日立楼宇技术(广州)有限公司 Multi-target elevator group control system and method
CN108153696A (en) * 2017-12-29 2018-06-12 广州市中海达测绘仪器有限公司 Embedded system serial port module matching process, device, medium and computer equipment
CN109656172A (en) * 2018-12-24 2019-04-19 深圳市道通科技股份有限公司 A kind of method, apparatus obtaining baud rate
JP2020198514A (en) * 2019-05-31 2020-12-10 株式会社富士通ゼネラル Communication device, baud rate automatic setting method and communication system
CN112968752A (en) * 2021-01-28 2021-06-15 歌尔科技有限公司 Baud rate switching method and device for UART communication and initiator terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070226377A1 (en) * 2006-02-09 2007-09-27 Dell Products L.P. Detecting parameters of a system UART and matching those parameters in a serial-over-LAN (SOL) UART
US10038569B2 (en) * 2016-03-29 2018-07-31 Intel IP Corporation Self-adapting baud rate
DE102018208118A1 (en) * 2018-05-23 2019-11-28 Robert Bosch Gmbh Method and apparatus for authenticating a message transmitted over a bus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102388583A (en) * 2011-09-19 2012-03-21 华为技术有限公司 Series rate allocation method, relative device and system
CN105653461A (en) * 2016-03-17 2016-06-08 烽火通信科技股份有限公司 System for converting single USB interface into plurality of UART debugging interfaces
WO2018010381A1 (en) * 2016-07-14 2018-01-18 日立楼宇技术(广州)有限公司 Multi-target elevator group control system and method
CN108153696A (en) * 2017-12-29 2018-06-12 广州市中海达测绘仪器有限公司 Embedded system serial port module matching process, device, medium and computer equipment
CN109656172A (en) * 2018-12-24 2019-04-19 深圳市道通科技股份有限公司 A kind of method, apparatus obtaining baud rate
WO2020135331A1 (en) * 2018-12-24 2020-07-02 深圳市道通科技股份有限公司 Method and apparatus for obtaining baud rate
JP2020198514A (en) * 2019-05-31 2020-12-10 株式会社富士通ゼネラル Communication device, baud rate automatic setting method and communication system
CN112968752A (en) * 2021-01-28 2021-06-15 歌尔科技有限公司 Baud rate switching method and device for UART communication and initiator terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Derivation of Reference Sensitivity in NR above 6GHz;NEC;3GPP TSG-RAN WG4 NR AH Meeting R4-1700200;全文 *
智能电表数据传输通讯多重保护机制设计;张海峰等;价值工程;全文 *

Also Published As

Publication number Publication date
CN113556210A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN107848522B (en) System and method for transmitting diagnostic commands to a vehicle
CN108153696B (en) Embedded system serial port module matching method, device, medium and computer equipment
CN113556210B (en) Upper computer and method for establishing communication connection
CN108471343B (en) Method and device for determining communication check code, and communication check method and system
CN112698640B (en) ECU upgrading test system
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN113765712B (en) Server management method, device, electronic equipment and readable storage medium
CN109902046B (en) Communication method for serial peripheral bus system, related equipment and system
JP2006503510A (en) How to transmit data on the bus
CN103139036B (en) Electronic equipment and information processing method thereof
CN108650666B (en) Method and device for Bluetooth two-way data transmission
JP2000049891A (en) Programmable logic controller and communication condition setting method and communication condition setting device therefor
CN110134423A (en) Update method, device and the computer readable storage medium of firmware
CN115657646A (en) Test method and device of CAN controller
CN109981394B (en) Communication method and device based on enhanced CAN bus protocol analyzer
CN110971716B (en) Address configuration method, device, system and computer readable storage medium
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
WO2018082006A1 (en) Control method, control apparatus, and control system
CN112152753A (en) Method and device for transmitting data with lower computer
CN111008092A (en) Welding machine communication management method and welding machine
US20210157764A1 (en) Data conversion device and data conversion system
CN108928213A (en) Method for parameter configuration, control panel and the controlled device of control panel
CN109274530B (en) TCP (Transmission control protocol) -based network data packet zero-error scene reproduction method and device
CN117834750B (en) Device, method, system, equipment, medium and server for acquiring protocol data
RU198407U1 (en) DEVICE FOR DETERMINING MODBUS PARAMETERS OF RS-232/485 PROTOCOL LINKS

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