CN117254884A - Communication baud rate debugging method, device, equipment and storage medium - Google Patents
Communication baud rate debugging method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN117254884A CN117254884A CN202311509932.4A CN202311509932A CN117254884A CN 117254884 A CN117254884 A CN 117254884A CN 202311509932 A CN202311509932 A CN 202311509932A CN 117254884 A CN117254884 A CN 117254884A
- Authority
- CN
- China
- Prior art keywords
- baud rate
- communication
- preset
- lower computer
- connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 396
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000002159 abnormal effect Effects 0.000 claims abstract description 76
- 230000005856 abnormality Effects 0.000 claims abstract description 48
- 230000004044 response Effects 0.000 claims description 86
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 238000012423 maintenance Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0023—Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the signalling
- H04L1/0025—Transmission of mode-switching indication
-
- 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
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Environmental & Geological Engineering (AREA)
- Communication Control (AREA)
Abstract
The invention relates to the technical field of communication, and discloses a method, a device, equipment and a storage medium for debugging a communication baud rate, wherein the method is applied to an upper computer and comprises the following steps: when the communication failure with the lower computer is detected, the lower computer automatically switches the self baud rate to the preset baud rate from the current baud rate; establishing a preset communication connection with the lower computer based on the preset baud rate, and switching the baud rate of the lower computer to the current baud rate through the preset communication connection; and establishing target communication connection with the lower computer according to the current baud rate. The invention can enable the lower computer to automatically switch the self baud rate to the preset baud rate when the communication is abnormal, so as to establish the target communication connection between the upper computer and the lower computer based on the preset baud rate. The invention can automatically solve the communication abnormality caused by the mismatch of the baud rates between the upper computer and the lower computer, simplifies the step of manually checking the baud rates one by one, and improves the debugging efficiency.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for debugging a baud rate of communications.
Background
When the existing upper computer and the lower computer carry out serial port communication, if communication abnormality occurs, the baud rates of the two parties need to be checked, and the existing solution is to continuously modify the communication baud rate of the upper computer until the appropriate communication baud rate is tried to enable the upper computer and the lower computer to be in communication again successfully, so that the time is long and the debugging efficiency is low.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for debugging a communication baud rate, and aims to solve the technical problems that the communication baud rate is long in debugging time and low in debugging efficiency when the existing communication is abnormal.
In order to achieve the above object, the present invention provides a method for debugging a communication baud rate, the method for debugging the communication baud rate being applied to an upper computer, the method comprising:
when the situation that communication with a lower computer is impossible is detected, the self-baud rate is switched from the current baud rate to the preset baud rate, and when the communication abnormality is detected, the lower computer automatically switches the self-baud rate to the preset baud rate;
Establishing a preset communication connection with a lower computer based on the preset baud rate, and switching the baud rate of the lower computer to the current baud rate through the preset communication connection;
and establishing target communication connection with the lower computer according to the current baud rate.
Optionally, the step of establishing a preset communication connection with a lower computer based on the preset baud rate and switching the baud rate of the lower computer to the current baud rate through the preset communication connection includes:
transmitting a connection request to the lower computer based on the preset baud rate, and feeding back a first connection response by the lower computer when receiving the connection request;
and when the first connection response is detected, a preset communication connection is established, a baud rate switching command is sent to the lower computer through the preset communication connection, and the lower computer switches the baud rate to the current baud rate when receiving the baud rate switching command.
Optionally, the step of establishing a target communication connection with the lower computer according to the current baud rate includes:
when a second connection response is detected, switching the self baud rate from the preset baud rate to the current baud rate, sending a communication request to the lower computer according to the current baud rate, and detecting whether the lower computer feeds back the communication response or not, wherein the second connection response is a response fed back by the lower computer correspondingly after the self baud rate is switched to the current baud rate;
If yes, establishing target communication connection with the lower computer according to the current baud rate.
Optionally, after the sending a connection request to the lower computer based on the preset baud rate, the method further includes:
when the first connection response is not received in a preset connection period, recording the continuous connection abnormal times and resending the connection request to the lower computer;
and when the continuous connection abnormal times are detected to exceed the preset connection abnormal times, displaying communication abnormal information.
Optionally, after the second connection response is detected, sending a communication request to the lower computer according to the current baud rate, and detecting whether the lower computer feeds back the communication response, the method further includes:
if not, recording the abnormal times of continuous communication and resending the communication request to the lower computer;
and when the continuous communication abnormal times are detected to exceed the preset communication abnormal times, returning to the step of sending a connection request to the lower computer based on the preset baud rate.
In addition, in order to achieve the above objective, the present invention further provides a method for debugging a communication baud rate, where the method for debugging a communication baud rate is applied to a lower computer, and the method includes:
When a communication abnormal message is received, switching the self baud rate to a preset baud rate;
when a connection request sent by an upper computer based on the preset baud rate is received, establishing preset communication connection with the upper computer, and switching the baud rate of the upper computer from the preset baud rate to a target baud rate based on the preset communication connection;
and establishing target communication connection with the upper computer according to the target baud rate.
Optionally, when receiving a connection request sent by the upper computer based on the preset baud rate, the step of establishing a preset communication connection with the upper computer and switching the preset baud rate to a target baud rate based on the preset communication connection includes:
when a connection request sent by an upper computer based on the preset baud rate is received, a first connection response is sent to the upper computer, and the upper computer establishes a preset communication connection when detecting the first connection response and feeds back a baud rate switching command according to the preset communication connection;
and when the baud rate switching command is received through the preset communication connection, the baud rate of the communication terminal is switched from the preset baud rate to the target baud rate.
In addition, in order to achieve the above object, the present invention further provides a device for debugging a communication baud rate, the device for debugging a communication baud rate comprising:
the baud rate switching module is used for switching the current baud rate to a preset baud rate when the communication failure with the lower computer is detected, and the lower computer automatically switches the baud rate to the preset baud rate when the communication abnormality is detected;
the preset communication module is used for establishing preset communication connection with a lower computer based on the preset baud rate and switching the baud rate of the lower computer to the current baud rate through the preset communication connection;
and the target communication module is used for establishing target communication connection with the lower computer according to the current baud rate.
In addition, in order to achieve the above object, the present invention also provides a communication baud rate debugging device, which includes: the device comprises a memory, a processor and a communication baud rate debugging program stored on the memory and capable of running on the processor, wherein the communication baud rate debugging program is configured to realize the steps of the communication baud rate debugging method.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having a communication baud rate debugging program stored thereon, which when executed by a processor, implements the steps of the communication baud rate debugging method as described above.
The invention discloses a communication baud rate debugging method, a device, equipment and a storage medium, wherein the communication baud rate debugging method is applied to an upper computer and comprises the following steps: when the communication failure with the lower computer is detected, the self baud rate is switched from the current baud rate to the preset baud rate, and when the communication abnormality is detected, the lower computer automatically switches the self baud rate to the preset baud rate; transmitting a connection request to a lower computer based on a preset baud rate, and feeding back a first connection response when the lower computer receives the connection request; when the first connection response is detected, a preset communication connection is established, and a baud rate switching command is sent to the lower computer through the preset communication connection, and the lower computer switches the baud rate to the current baud rate when receiving the baud rate switching command. When the first connection response is not received in the preset connection period, recording the continuous connection abnormal times and resending the connection request to the lower computer; and when the continuous connection abnormal times are detected to exceed the preset connection abnormal times, displaying communication abnormal information. When a second connection response is detected, the self baud rate is switched from the preset baud rate to the current baud rate, a communication request is sent to the lower computer according to the current baud rate, whether the lower computer feeds back the communication response or not is detected, and the second connection response is the response of the lower computer corresponding to feedback after the self baud rate is switched to the current baud rate; if yes, establishing target communication connection with the lower computer according to the current baud rate. If not, recording the abnormal times of continuous communication and resending the communication request to the lower computer; and when the continuous communication abnormal times are detected to exceed the preset communication abnormal times, returning to the step of sending the connection request to the lower computer based on the preset baud rate. Compared with the existing method for debugging the baud rate of the upper computer one by one, the method can automatically switch the baud rate of the lower computer back to the preset baud rate when the lower computer is in communication abnormality by predefining the baud rate abnormality switching command for automatic switching in the lower computer, so that the upper computer can automatically adjust the baud rate of the lower computer to the current baud rate based on the preset baud rate when the upper computer detects the communication abnormality, and further, the target communication connection between the upper computer and the lower computer based on the current baud rate is established. Therefore, the invention can automatically solve the communication abnormal condition caused by the mismatch of the baud rates of the upper computer and the lower computer under the condition of normal line, simplify the step of checking the baud rates one by one in the prior method, and improve the debugging efficiency. If the communication abnormality which cannot be solved by the invention occurs, the communication abnormality is usually a hardware or line problem, the invention can prompt the related staff of communication failure in a display screen or message sending mode, so that the staff can check the hardware problems such as the line in time, thereby reducing the fault maintenance time. The invention can realize the accurate judgment of the abnormality based on the preset connection period, the continuous connection abnormal times and the continuous communication abnormal times, and improve the abnormality recognition precision.
Drawings
FIG. 1 is a schematic diagram of a communication baud rate debugging device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the communication baud rate debugging method according to the present invention;
FIG. 3 is a schematic diagram of a second flow chart of a first embodiment of the communication baud rate debugging method according to the present invention;
FIG. 4 is a schematic diagram of a third flow chart of a first embodiment of the communication baud rate debugging method according to the present invention;
FIG. 5 is a flowchart illustrating a second embodiment of the communication baud rate debugging method according to the present invention;
FIG. 6 is a block diagram of a first embodiment of a communication baud rate debugging device according to the present invention;
fig. 7 is a block diagram of a second embodiment of the device for debugging the baud rate of communication according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a communication baud rate debugging device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the communication baud rate debugging device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the communication baud rate debugging device, and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a data storage module, a network communication module, a user interface module, and a communication baud rate debugging program may be included in the memory 1005 as one type of storage medium.
In the communication baud rate debugging device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the communication baud rate debugging device of the present invention may be disposed in the communication baud rate debugging device, where the communication baud rate debugging device invokes a communication baud rate debugging program stored in the memory 1005 through the processor 1001, and executes the communication baud rate debugging method provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for debugging a communication baud rate, and referring to fig. 2, fig. 2 is a first flow chart of a first embodiment of the method for debugging a communication baud rate according to the present invention.
It can be understood that four elements of the transceiver must be defined before serial communication is used, that is, the configuration of four elements needs to be implemented before the serial communication configuration is implemented by the upper computer and the lower computer, where the four elements include: 1. baud rate: the data transmission speed indicates that 9600bit data can be transmitted for 1s if the baud rate is 9600; 2. data bits: 5-8 bits, the number of data bits is determined before transmission; 3. check bits, which can be classified as odd check, even check or no check; 4. the stop bit may be 0.5, 1, 1.5 or 2 bits. Therefore, if the upper computer performs serial communication according to four preset elements, and communication abnormality occurs in which the upper computer and the lower computer cannot communicate, the related staff easily misunderstand that the equipment has a communication problem, and at this time, the baud rates of the two communication parties can be checked. The existing method is to continuously modify the baud rate of the upper computer until a proper communication baud rate is tried to enable the upper computer and the lower computer to establish normal communication, so that the time is long and the debugging efficiency is low. In order to solve the above problems, in this embodiment, a method for debugging a communication baud rate is applied to an upper computer, and the method includes the following steps:
Step S10: when the communication failure with the lower computer is detected, the lower computer automatically switches the self-baud rate to the preset baud rate from the current baud rate.
It should be noted that, the execution body of the method of the embodiment may be a computing service device with functions of data processing, serial communication and program running, for example, a mobile phone, a tablet computer, a personal computer, etc., or may be other electronic devices capable of implementing the same or similar functions, that is, the above-mentioned upper computer. The lower computer may be the computing service device with data processing, serial communication and program running functions or other electronic devices capable of implementing the same or similar functions. However, in contrast, the upper computer may be a device capable of directly sending out a control command, and various signal changes may be displayed on the screen thereof; the lower computer can be a computer which can directly control equipment to acquire equipment conditions, and is generally a PLC/singlechip or the like. The command sent by the upper computer can be sent to the lower computer, and the lower computer can be interpreted into a corresponding time sequence signal according to the command to directly control corresponding equipment. The lower computer can read the equipment state data according to a preset period, and then convert the equipment state data into a digital signal and feed the digital signal back to the upper computer.
It is easy to understand that in this embodiment, when the upper computer detects that communication with the lower computer is impossible based on the current baud rate, the upper computer may automatically switch its baud rate to a preset baud rate, where the preset baud rate may be a baud rate preset in the upper computer and the lower computer, and in practical application, may be 9600. When any one of the upper computer and the lower computer detects communication abnormality, the baud rate of the upper computer and the lower computer can be switched to the preset baud rate, so that the upper computer and the lower computer can be automatically switched to the same baud rate to carry out serial port communication under the condition of communication abnormality, and available communication connection is established.
Step S20: and establishing a preset communication connection with a lower computer based on the preset baud rate, and switching the baud rate of the lower computer to the current baud rate through the preset communication connection.
It is easy to understand that the above-mentioned preset communication connection is an available communication connection established based on a preset baud rate, and the upper computer can communicate between the preset communication connection and the lower computer and send a command to the lower computer, so that the baud rate of the lower computer is switched to the current baud rate, and further, the communication connection between the upper computer and the lower computer using the current baud rate as the communication baud rate is established, and a communication baud rate self-adapting process under the condition of abnormal communication is realized. Specifically, as an implementation manner, as shown in fig. 3, fig. 3 is a second flow chart of a first embodiment of the communication baud rate debugging method according to the present invention, and in this embodiment, step S20 includes:
Step S201: transmitting a connection request to the lower computer based on the preset baud rate, and feeding back a first connection response by the lower computer when receiving the connection request;
step S202: and when the first connection response is detected, a preset communication connection is established, a baud rate switching command is sent to the lower computer through the preset communication connection, and the lower computer switches the baud rate to the current baud rate when receiving the baud rate switching command.
It can be understood that in this embodiment, the upper computer may first send a connection request to the lower computer based on the preset baud rate, and if the lower computer detects that the communication is abnormal and successfully switches to the preset baud rate, the lower computer may receive the connection request and immediately feedback the first connection response after receiving the connection request. After detecting the first connection response, the upper computer can judge that the communication with the lower computer is successful at the moment, so that a preset communication connection can be established based on a preset baud rate, and a baud rate switching command is sent to the lower computer through the preset communication connection. The baud rate switching command may include a current baud rate, so that after the lower computer receives the baud rate request, the lower computer may switch its baud rate from a preset baud rate to a current baud rate corresponding to the upper computer at the beginning.
Further, as an implementation manner, as shown in fig. 3, in this embodiment, step S201 further includes:
step S203: when the first connection response is not received in a preset connection period, recording the continuous connection abnormal times and resending the connection request to the lower computer;
step S204: and when the continuous connection abnormal times are detected to exceed the preset connection abnormal times, displaying communication abnormal information.
It can be understood that if the above-mentioned adaptive method based on the communication baud rate still cannot establish normal communication between the upper computer and the lower computer, the source of the situation that the communication failure occurs is not the mismatching problem of the communication baud rate, but may be that the equipment of the upper computer or the lower computer has a fault, at this time, the embodiment may display the communication anomaly information similar to the equipment fault on the display screen of the upper computer, or send the communication anomaly information of the equipment fault to the staff, so as to remind the relevant staff, and reduce the fault searching time of the staff.
It should be understood that, because the time when the upper computer detects the communication abnormality with the lower computer may not be consistent, that is, when the upper computer detects the communication abnormality and sends a connection request to the lower computer, the lower computer may not have detected the communication abnormality or has not been switched to the preset baud rate, so that the lower computer may not be able to timely give feedback of the first connection response to the upper computer, and the reason for the communication abnormality is not that the lower computer cannot be connected with the upper computer through the preset baud rate. Therefore, in order to avoid error in judgment, the present embodiment may set a preset connection period to perform accurate judgment, where the preset connection period may be set according to the actual communication time between the upper computer and the lower computer, and the specific numerical value in the present embodiment is not limited to this. When the upper computer does not receive the first connection response in the preset connection period, the number of continuous connection abnormality times can be recorded, and the connection request is resent to the lower computer. And if the upper computer detects that the continuous connection abnormal times exceeds the preset connection abnormal times, displaying communication abnormal information.
Step S30: and establishing target communication connection with the lower computer according to the current baud rate.
It is easy to understand that, in this embodiment, the upper computer may establish serial communication with the lower computer based on the current baud rate, i.e. the target communication connection, after the lower computer successfully switches its baud rate to the preset baud rate. Specifically, as an implementation manner, as shown in fig. 4, fig. 4 is a third flow chart of a first embodiment of the communication baud rate debugging method according to the present invention, and in this embodiment, step S30 includes:
step S301: when a second connection response is detected, switching the self baud rate from the preset baud rate to the current baud rate, sending a communication request to the lower computer according to the current baud rate, and detecting whether the lower computer feeds back the communication response or not, wherein the second connection response is a response fed back by the lower computer correspondingly after the self baud rate is switched to the current baud rate;
step S302: if yes, establishing target communication connection with the lower computer according to the current baud rate.
It should be understood that in this embodiment, after receiving the baud rate switching command and the current baud rate based on the preset baud rate, the lower computer may switch its baud rate from the preset baud rate to the current baud rate, and may feed back the second connection response to the upper computer after the switching is successful. Correspondingly, after receiving the second connection response, the upper computer can also switch the baud rate of the upper computer from the preset baud rate to the current baud rate, send a communication request to the lower computer based on the current baud rate, and detect whether the lower computer feeds back the communication response.
It is easy to understand that when the upper computer receives the communication response fed back by the lower computer based on the current baud rate, the upper computer can be indicated to perform serial communication with the lower computer based on the current baud rate, so that the upper computer and the lower computer can establish target communication connection.
Further, as an implementation manner, in this embodiment, step S30 further includes:
step S303: if not, recording the abnormal times of continuous communication and resending the communication request to the lower computer;
step S304: and when the continuous communication abnormal times are detected to exceed the preset communication abnormal times, returning to the step of sending a connection request to the lower computer based on the preset baud rate.
It is easy to understand that, because the baud rate adjustment time between the upper computer and the lower computer is different, there may still be a situation that the upper computer cannot receive the second connection response in time, at this time, the upper computer may record the continuous communication abnormal situation, and resend the communication request to the lower computer. When the number of continuous communication anomalies exceeds the preset number of communication anomalies, because the preset communication connection is established between the upper computer and the lower computer through the preset baud rate, the probability of the communication anomalies and the communication equipment faults at the moment is smaller, and the association with the communication baud rate mismatch is larger.
In a specific implementation, the baud rate abnormal switching command can be predefined in the lower computer, that is, when the lower computer detects that the communication of the received data frame is abnormal or receives an abnormal message, the lower computer can automatically switch the baud rate of the lower computer back to the preset baud rate. Therefore, when the upper computer detects that the current baud rate and the lower computer cannot communicate, the self baud rate can be switched back to the preset baud rate, so that the preset communication connection is established between the preset baud rate and the lower computer, and the baud rate of the lower computer is automatically debugged based on the preset communication connection. For example, if in practical application, when the upper computer uses 115200 baud rate as the current baud rate and the preset baud rate is 9600, if communication abnormality occurs between the upper computer and the lower computer, which is not in communication with 115200, the upper computer may switch its baud rate to 9600 and then send 05 a connection request (i.e. a connection request) to the lower computer; when the upper computer receives 06 response (i.e. first connection response) fed back by the lower computer, the upper computer can send 9600 baud rate switching command to the lower computer so that the lower computer switches the baud rate to 115200), and if the lower computer correctly recognizes and successfully switches, the lower computer replies 06 response (i.e. second connection response); after the upper computer receives the second connection response, the upper computer may send a 05 communication request to the lower computer at 115200 baud rate, so as to perform serial communication between 115200 and the lower computer. In the above process, if the first connection response of the lower computer is not received all the time, the embodiment needs to prompt that the communication fails according to the communication timeout (based on the preset connection period judgment) and the repetition number (namely, the continuous connection abnormal number), and sends 05 the connection request all the time according to the communication interval until receiving 06 responses, and then carries out the next flow; if the second connection response of the lower computer is not received, the embodiment needs to perform the re-baud rate adjustment according to the repetition number (i.e. the number of continuous communication anomalies), and send 05 the communication request according to the communication interval until receiving 06 the response, and then performing the next flow. It is easy to understand that if the line is normal, a reply is necessarily received, so the embodiment can automatically solve the communication abnormal situation caused by the mismatch of baud rates of the upper computer and the lower computer under the condition of normal line. If the problem cannot be solved, usually the problem of hardware or a circuit, the embodiment can prompt the related staff of communication failure in a display screen or message sending mode, so that the staff can check the hardware problem of the circuit and the like in time, and the fault maintenance time is shortened.
The embodiment discloses a communication baud rate debugging method, which is applied to an upper computer and comprises the following steps: when the communication failure with the lower computer is detected, the self baud rate is switched from the current baud rate to the preset baud rate, and when the communication abnormality is detected, the lower computer automatically switches the self baud rate to the preset baud rate; transmitting a connection request to a lower computer based on a preset baud rate, and feeding back a first connection response when the lower computer receives the connection request; when the first connection response is detected, a preset communication connection is established, and a baud rate switching command is sent to the lower computer through the preset communication connection, and the lower computer switches the baud rate to the current baud rate when receiving the baud rate switching command. When the first connection response is not received in the preset connection period, recording the continuous connection abnormal times and resending the connection request to the lower computer; and when the continuous connection abnormal times are detected to exceed the preset connection abnormal times, displaying communication abnormal information. When a second connection response is detected, the self baud rate is switched from the preset baud rate to the current baud rate, a communication request is sent to the lower computer according to the current baud rate, whether the lower computer feeds back the communication response or not is detected, and the second connection response is the response of the lower computer corresponding to feedback after the self baud rate is switched to the current baud rate; if yes, establishing target communication connection with the lower computer according to the current baud rate. If not, recording the abnormal times of continuous communication and resending the communication request to the lower computer; and when the continuous communication abnormal times are detected to exceed the preset communication abnormal times, returning to the step of sending the connection request to the lower computer based on the preset baud rate. Compared with the existing method for debugging the baud rate of the upper computer one by one, the embodiment can automatically switch the baud rate of the lower computer back to the preset baud rate when the lower computer is in abnormal communication by predefining the baud rate abnormal switching command of automatic switching in the lower computer, so that the upper computer can automatically adjust the baud rate of the lower computer to the current baud rate based on the preset baud rate when the upper computer detects the abnormal communication, and further establish the target communication connection between the upper computer and the lower computer based on the current baud rate. Therefore, the embodiment can automatically solve the communication abnormal condition caused by the mismatch of the baud rates of the upper computer and the lower computer under the condition of normal line, simplify the step of checking the baud rates one by one in the existing method, and improve the debugging efficiency. If the communication abnormality which cannot be solved by the embodiment occurs, the communication abnormality is usually a hardware or line problem, and the embodiment can prompt related staff of communication failure in a display screen or message sending mode, so that the staff can timely check hardware problems such as lines, and the like, thereby reducing the fault maintenance time. The embodiment can realize the accurate judgment of the abnormality based on the preset connection period, the continuous connection abnormality times and the continuous communication abnormality times, and improve the abnormality recognition precision.
Referring to fig. 5, fig. 5 is a flow chart of a second embodiment of the communication baud rate debugging method according to the present invention, and based on the embodiment shown in fig. 2, the second embodiment of the communication baud rate debugging method according to the present invention is proposed.
In this embodiment, the method for debugging the communication baud rate is applied to a lower computer, and the method includes:
step S11: when a communication abnormal message is received, switching the self baud rate to a preset baud rate;
step S21: when a connection request sent by an upper computer based on the preset baud rate is received, establishing preset communication connection with the upper computer, and switching the baud rate of the upper computer from the preset baud rate to a target baud rate based on the preset communication connection;
it should be noted that, the execution body of the method of the embodiment may be a computing service device with functions of data processing, serial communication and program running, for example, a mobile phone, a tablet computer, a personal computer, etc., or may be other electronic devices capable of implementing the same or similar functions, that is, the above-mentioned lower computer. The upper computer may be the computing service device with data processing, serial communication and program running functions or other electronic devices capable of implementing the same or similar functions. However, in contrast, the upper computer may be a device capable of directly sending out a control command, and various signal changes may be displayed on the screen thereof; the lower computer can be a computer which can directly control equipment to acquire equipment conditions, and is generally a PLC/singlechip or the like. The command sent by the upper computer can be sent to the lower computer, and the lower computer can be interpreted into a corresponding time sequence signal according to the command to directly control corresponding equipment. The lower computer can read the equipment state data according to a preset period, and then convert the equipment state data into a digital signal and feed the digital signal back to the upper computer.
It is easy to understand that in this embodiment, the baud rate switching instruction in the case of abnormal communication may be preset in the lower computer. Specifically, when the lower computer receives a message with an incorrect communication format, that is, the communication abnormal message, the lower computer can switch its baud rate to a preset fixed baud rate, that is, the preset baud rate, which can be set to 9600 in practical application. In this embodiment, when the upper computer detects that the communication with the lower computer is impossible based on the self baud rate, that is, the target baud rate, the upper computer can automatically switch the self baud rate to the preset baud rate, so that the upper computer and the lower computer can automatically switch to the same baud rate to perform serial port communication under the condition of abnormal communication, and then establish available communication connection to perform subsequent baud rate adjustment.
Further, as an implementation manner, in this embodiment, step S21 includes:
step S211: when a connection request sent by an upper computer based on the preset baud rate is received, a first connection response is sent to the upper computer, and the upper computer establishes a preset communication connection when detecting the first connection response and feeds back a baud rate switching command according to the preset communication connection;
Step S212: and when the baud rate switching command is received through the preset communication connection, the baud rate of the communication terminal is switched from the preset baud rate to the target baud rate.
It is easy to understand that the above-mentioned preset communication connection is an available communication connection established based on a preset baud rate, so when the lower computer receives a connection request sent by the upper computer based on the preset baud rate, the first connection response can be fed back to the upper computer in time, so that the upper computer establishes the preset communication connection based on the preset baud rate, feeds back a baud rate switching command based on the preset communication connection, and when the lower computer receives the baud rate switching command, adjusts its baud rate according to the target baud rate included in the baud rate switching command, i.e. switches from the preset baud rate to the target baud rate.
Step S31: and establishing target communication connection with the upper computer according to the target baud rate.
It should be understood that in this embodiment, after the lower computer successfully switches its baud rate from the preset baud rate to the target baud rate, the lower computer may feed back the second connection response to the upper computer. Correspondingly, after receiving the second connection response, the upper computer can also switch the baud rate of the upper computer from the preset baud rate to the current baud rate and then carry out serial communication with the lower computer based on the current baud rate, so that the upper computer and the lower computer can establish serial communication based on the target baud rate, namely the target communication connection.
In a specific implementation, the lower computer can predefine a baud rate abnormal switching command, that is, when the lower computer detects a communication abnormality, the lower computer can automatically switch its baud rate back to a preset baud rate. Therefore, when the upper computer detects that the lower computer cannot communicate with the lower computer based on the current baud rate and switches the baud rate back to the preset baud rate, the lower computer can timely establish the preset communication connection with the upper computer based on the preset baud rate, adjust the baud rate to the target baud rate based on the baud rate switching command sent by the upper computer through the preset communication connection, and further establish the target communication connection based on the target baud rate with the upper computer. Therefore, the embodiment can automatically solve the communication abnormal condition caused by the mismatch of baud rates of the upper computer and the lower computer, and improve the debugging efficiency.
The embodiment discloses a communication baud rate debugging method, which comprises the following steps: when a communication abnormal message is received, switching the self baud rate to a preset baud rate; when a connection request sent by the upper computer based on the preset baud rate is received, a first connection response is sent to the upper computer, the upper computer establishes a preset communication connection when detecting the first connection response, and feeds back a baud rate switching command according to the preset communication connection; when a baud rate switching command is received through a preset communication connection, the baud rate of the device is switched from a preset baud rate to a target baud rate; and establishing target communication connection with the upper computer according to the target baud rate. Compared with the existing communication baud rate debugging method during communication abnormality, the embodiment can automatically switch the baud rate of the lower computer back to the preset baud rate when the communication abnormality occurs by predefining the baud rate abnormality switching command in the lower computer, so that when the upper computer detects that the lower computer cannot communicate with the current baud rate and switches the baud rate of the lower computer back to the preset baud rate, the lower computer can timely establish preset communication connection with the upper computer based on the preset baud rate, and adjust the baud rate of the lower computer to the target baud rate based on the baud rate switching command sent by the upper computer through the preset communication connection, and further establish target communication connection with the upper computer based on the target baud rate. Therefore, the embodiment can realize the automatic adjustment of the communication baud rate when the baud rates of the upper computer and the lower computer are not matched, and improve the debugging efficiency.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a communication baud rate debugging program, and the communication baud rate debugging program realizes the steps of the communication baud rate debugging method when being executed by a processor.
Referring to fig. 6, fig. 6 is a block diagram illustrating a first embodiment of a communication baud rate debugging device according to the present invention.
As shown in fig. 6, the device for debugging a communication baud rate according to the embodiment of the present invention includes:
the baud rate switching module 601 is configured to switch the current baud rate to a preset baud rate when a failure in communication with a lower computer is detected, and the lower computer automatically switches the baud rate to the preset baud rate when a communication abnormality is detected;
the preset communication module 602 is configured to establish a preset communication connection with a lower computer based on the preset baud rate, and switch the baud rate of the lower computer to the current baud rate through the preset communication connection;
and the target communication module 603 is configured to establish a target communication connection with the lower computer according to the current baud rate.
Further, as an implementation manner, in this embodiment, the preset communication module 602 is further configured to send a connection request to the lower computer based on the preset baud rate, where the lower computer feeds back a first connection response when receiving the connection request;
The preset communication module 602 is further configured to establish a preset communication connection when the first connection response is detected, and send a baud rate switching command to the lower computer through the preset communication connection, where the lower computer switches its baud rate to the current baud rate when receiving the baud rate switching command.
Further, as an implementation manner, in this embodiment, the preset communication module 602 is further configured to record the number of continuous connection exceptions and resend the connection request to the lower computer when the first connection response is not received within a preset connection period;
the preset communication module 602 is further configured to display communication abnormality information when the number of continuous connection abnormalities is detected to exceed the preset number of connection abnormalities.
Further, as an implementation manner, in this embodiment, the target communication module 603 is further configured to switch the self baud rate from the preset baud rate to the current baud rate when a second connection response is detected, send a communication request to the lower computer according to the current baud rate, and detect whether the lower computer feeds back a communication response, where the second connection response is a response that the lower computer feeds back correspondingly after the self baud rate is switched to the current baud rate;
And the target communication module 603 is further configured to establish a target communication connection with the lower computer according to the current baud rate if yes.
Further, as an implementation manner, in this embodiment, the target communication module 603 is further configured to record the number of continuous communication anomalies if not, and resend the communication request to the lower computer;
the target communication module 603 is further configured to return to the step of sending a connection request to the lower computer based on the preset baud rate when the number of continuous communication anomalies exceeds a preset number of communication anomalies.
According to the embodiment, when the situation that communication with the lower computer is impossible is detected, the self baud rate is switched from the current baud rate to the preset baud rate, and when the communication abnormality is detected, the lower computer automatically switches the self baud rate to the preset baud rate; transmitting a connection request to a lower computer based on a preset baud rate, and feeding back a first connection response when the lower computer receives the connection request; when the first connection response is detected, a preset communication connection is established, and a baud rate switching command is sent to the lower computer through the preset communication connection, and the lower computer switches the baud rate to the current baud rate when receiving the baud rate switching command. When the first connection response is not received in the preset connection period, recording the continuous connection abnormal times and resending the connection request to the lower computer; and when the continuous connection abnormal times are detected to exceed the preset connection abnormal times, displaying communication abnormal information. When a second connection response is detected, the self baud rate is switched from the preset baud rate to the current baud rate, a communication request is sent to the lower computer according to the current baud rate, whether the lower computer feeds back the communication response or not is detected, and the second connection response is the response of the lower computer corresponding to feedback after the self baud rate is switched to the current baud rate; if yes, establishing target communication connection with the lower computer according to the current baud rate. If not, recording the abnormal times of continuous communication and resending the communication request to the lower computer; and when the continuous communication abnormal times are detected to exceed the preset communication abnormal times, returning to the step of sending the connection request to the lower computer based on the preset baud rate. Compared with the existing method for debugging the baud rate of the upper computer one by one, the embodiment can automatically switch the baud rate of the lower computer back to the preset baud rate when the lower computer is in abnormal communication by predefining the baud rate abnormal switching command of automatic switching in the lower computer, so that the upper computer can automatically adjust the baud rate of the lower computer to the current baud rate based on the preset baud rate when the upper computer detects the abnormal communication, and further establish the target communication connection between the upper computer and the lower computer based on the current baud rate. Therefore, the embodiment can automatically solve the communication abnormal condition caused by the mismatch of the baud rates of the upper computer and the lower computer under the condition of normal line, simplify the step of checking the baud rates one by one in the existing method, and improve the debugging efficiency. If the communication abnormality which cannot be solved by the embodiment occurs, the communication abnormality is usually a hardware or line problem, and the embodiment can prompt related staff of communication failure in a display screen or message sending mode, so that the staff can timely check hardware problems such as lines, and the like, thereby reducing the fault maintenance time. The embodiment can realize the accurate judgment of the abnormality based on the preset connection period, the continuous connection abnormality times and the continuous communication abnormality times, and improve the abnormality recognition precision.
Based on the first embodiment of the communication baud rate debugging device of the present invention, a second embodiment of the communication baud rate debugging device of the present invention is provided, and fig. 7 is a block diagram of the structure of the second embodiment of the communication baud rate debugging device of the present invention.
In this embodiment, as shown in fig. 7, the communication baud rate debugging device includes:
the anomaly switching module 701 is configured to switch the baud rate of itself to a preset baud rate when receiving a communication anomaly message;
the communication switching module 702 is configured to, when receiving a connection request sent by an upper computer based on the preset baud rate, establish a preset communication connection with the upper computer, and switch the baud rate of the upper computer from the preset baud rate to a target baud rate based on the preset communication connection;
and the communication connection module 703 is configured to establish a target communication connection with the upper computer according to the target baud rate.
Further, in this embodiment, the communication switching module 702 is further configured to send a first connection response to the upper computer when receiving a connection request sent by the upper computer based on the preset baud rate, where the upper computer establishes a preset communication connection when detecting the first connection response, and feeds back a baud rate switching command according to the preset communication connection;
The communication switching module 702 is further configured to switch the baud rate from the preset baud rate to a target baud rate when the baud rate switching command is received through the preset communication connection.
In the embodiment, when the communication abnormal message is received, the self baud rate is switched to the preset baud rate; when a connection request sent by the upper computer based on the preset baud rate is received, a first connection response is sent to the upper computer, the upper computer establishes a preset communication connection when detecting the first connection response, and feeds back a baud rate switching command according to the preset communication connection; when a baud rate switching command is received through a preset communication connection, the baud rate of the device is switched from a preset baud rate to a target baud rate; and establishing target communication connection with the upper computer according to the target baud rate. Compared with the existing communication baud rate debugging method during communication abnormality, the embodiment can automatically switch the baud rate of the lower computer back to the preset baud rate when the communication abnormality occurs by predefining the baud rate abnormality switching command in the lower computer, so that when the upper computer detects that the lower computer cannot communicate with the current baud rate and switches the baud rate of the lower computer back to the preset baud rate, the lower computer can timely establish preset communication connection with the upper computer based on the preset baud rate, and adjust the baud rate of the lower computer to the target baud rate based on the baud rate switching command sent by the upper computer through the preset communication connection, and further establish target communication connection with the upper computer based on the target baud rate. Therefore, the embodiment can realize the automatic adjustment of the communication baud rate when the baud rates of the upper computer and the lower computer are not matched, and improve the debugging efficiency.
Other embodiments or specific implementation manners of the communication baud rate debugging device of the present invention may refer to the above method embodiments, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (10)
1. The communication baud rate debugging method is characterized by being applied to an upper computer and comprising the following steps of:
when the situation that communication with a lower computer is impossible is detected, the self-baud rate is switched from the current baud rate to the preset baud rate, and when the communication abnormality is detected, the lower computer automatically switches the self-baud rate to the preset baud rate;
establishing a preset communication connection with a lower computer based on the preset baud rate, and switching the baud rate of the lower computer to the current baud rate through the preset communication connection;
and establishing target communication connection with the lower computer according to the current baud rate.
2. The method for debugging a baud rate according to claim 1, wherein said step of establishing a preset communication connection with a lower computer based on said preset baud rate and switching the baud rate of said lower computer to said current baud rate through said preset communication connection comprises:
Transmitting a connection request to the lower computer based on the preset baud rate, and feeding back a first connection response by the lower computer when receiving the connection request;
and when the first connection response is detected, a preset communication connection is established, a baud rate switching command is sent to the lower computer through the preset communication connection, and the lower computer switches the baud rate to the current baud rate when receiving the baud rate switching command.
3. The communication baud rate debugging method according to claim 2, wherein said step of establishing a target communication connection with said lower computer according to said current baud rate comprises:
when a second connection response is detected, switching the self baud rate from the preset baud rate to the current baud rate, sending a communication request to the lower computer according to the current baud rate, and detecting whether the lower computer feeds back the communication response or not, wherein the second connection response is a response fed back by the lower computer correspondingly after the self baud rate is switched to the current baud rate;
if yes, establishing target communication connection with the lower computer according to the current baud rate.
4. The method for debugging a communication baud rate according to claim 3, wherein after said transmitting a connection request to said lower computer based on said preset baud rate, further comprising:
When the first connection response is not received in a preset connection period, recording the continuous connection abnormal times and resending the connection request to the lower computer;
and when the continuous connection abnormal times are detected to exceed the preset connection abnormal times, displaying communication abnormal information.
5. The method for debugging the communication baud rate according to claim 1, wherein said sending a communication request to said lower computer according to said current baud rate when a second connection response is detected, and detecting whether said lower computer feeds back a communication response, further comprises:
if not, recording the abnormal times of continuous communication and resending the communication request to the lower computer;
and when the continuous communication abnormal times are detected to exceed the preset communication abnormal times, returning to the step of sending a connection request to the lower computer based on the preset baud rate.
6. The communication baud rate debugging method is characterized by being applied to a lower computer, and comprises the following steps:
when a communication abnormal message is received, switching the self baud rate to a preset baud rate;
when a connection request sent by an upper computer based on the preset baud rate is received, establishing preset communication connection with the upper computer, and switching the baud rate of the upper computer from the preset baud rate to a target baud rate based on the preset communication connection;
And establishing target communication connection with the upper computer according to the target baud rate.
7. The method for debugging a communication baud rate according to claim 6, wherein said step of establishing a preset communication connection with said host computer and switching said preset baud rate to a target baud rate based on said preset communication connection when receiving a connection request sent by said host computer based on said preset baud rate comprises:
when a connection request sent by an upper computer based on the preset baud rate is received, a first connection response is sent to the upper computer, and the upper computer establishes a preset communication connection when detecting the first connection response and feeds back a baud rate switching command according to the preset communication connection;
and when the baud rate switching command is received through the preset communication connection, the baud rate of the communication terminal is switched from the preset baud rate to the target baud rate.
8. A communication baud rate debugging device, characterized in that the communication baud rate debugging device comprises:
the baud rate switching module is used for switching the current baud rate to a preset baud rate when the communication failure with the lower computer is detected, and the lower computer automatically switches the baud rate to the preset baud rate when the communication abnormality is detected;
The preset communication module is used for establishing preset communication connection with a lower computer based on the preset baud rate and switching the baud rate of the lower computer to the current baud rate through the preset communication connection;
and the target communication module is used for establishing target communication connection with the lower computer according to the current baud rate.
9. A communication baud rate debugging device, the device comprising: a memory, a processor and a communication baud rate debugging program stored on the memory and executable on the processor, the communication baud rate debugging program being configured to implement the steps of the communication baud rate debugging method of any of claims 1 to 5 or 6 to 7.
10. A storage medium having stored thereon a communication baud rate debugging program which, when executed by a processor, implements the steps of the communication baud rate debugging method of any of claims 1 to 5 or 6 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311509932.4A CN117254884B (en) | 2023-11-14 | 2023-11-14 | Communication baud rate debugging method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311509932.4A CN117254884B (en) | 2023-11-14 | 2023-11-14 | Communication baud rate debugging method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117254884A true CN117254884A (en) | 2023-12-19 |
CN117254884B CN117254884B (en) | 2024-01-30 |
Family
ID=89137130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311509932.4A Active CN117254884B (en) | 2023-11-14 | 2023-11-14 | Communication baud rate debugging method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117254884B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117675113A (en) * | 2024-02-01 | 2024-03-08 | 北京智芯微电子科技有限公司 | Baud rate dynamic adjustment method and device based on communication terminal connection state detection |
CN117955867A (en) * | 2024-03-25 | 2024-04-30 | 常州埃依琦科技有限公司 | SF6 density monitoring system and working method thereof |
CN119629041A (en) * | 2025-02-13 | 2025-03-14 | 苏州元脑智能科技有限公司 | Serial port baud rate processing device and method, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104113391A (en) * | 2014-07-10 | 2014-10-22 | 佛山市顺德区美的电热电器制造有限公司 | Baud rate adjustment device and method and cooking utensil |
CN108845897A (en) * | 2018-05-25 | 2018-11-20 | 北京无线电测量研究所 | Serial communication adjustment method, device and storage medium |
CN112968752A (en) * | 2021-01-28 | 2021-06-15 | 歌尔科技有限公司 | Baud rate switching method and device for UART communication and initiator terminal |
CN114584261A (en) * | 2022-04-28 | 2022-06-03 | 武汉慧联无限科技有限公司 | Data processing method, device and storage medium |
CN116366202A (en) * | 2023-02-24 | 2023-06-30 | 北京鸿智电通科技有限公司 | Baud rate self-adaptive adjustment method and device |
CN116455694A (en) * | 2023-03-28 | 2023-07-18 | 凯龙高科技股份有限公司 | Baud rate setting method, baud rate setting device, baud rate setting equipment and storage medium |
-
2023
- 2023-11-14 CN CN202311509932.4A patent/CN117254884B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104113391A (en) * | 2014-07-10 | 2014-10-22 | 佛山市顺德区美的电热电器制造有限公司 | Baud rate adjustment device and method and cooking utensil |
CN108845897A (en) * | 2018-05-25 | 2018-11-20 | 北京无线电测量研究所 | Serial communication adjustment method, device and storage medium |
CN112968752A (en) * | 2021-01-28 | 2021-06-15 | 歌尔科技有限公司 | Baud rate switching method and device for UART communication and initiator terminal |
WO2022161004A1 (en) * | 2021-01-28 | 2022-08-04 | 歌尔股份有限公司 | Baud rate switching method and apparatus for uart communication, and initiator terminal |
CN114584261A (en) * | 2022-04-28 | 2022-06-03 | 武汉慧联无限科技有限公司 | Data processing method, device and storage medium |
CN116366202A (en) * | 2023-02-24 | 2023-06-30 | 北京鸿智电通科技有限公司 | Baud rate self-adaptive adjustment method and device |
CN116455694A (en) * | 2023-03-28 | 2023-07-18 | 凯龙高科技股份有限公司 | Baud rate setting method, baud rate setting device, baud rate setting equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
滕晓辉;王丽丽;: "远动通道同步失败故障一例", 农村电工, no. 12 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117675113A (en) * | 2024-02-01 | 2024-03-08 | 北京智芯微电子科技有限公司 | Baud rate dynamic adjustment method and device based on communication terminal connection state detection |
CN117675113B (en) * | 2024-02-01 | 2024-05-10 | 北京智芯微电子科技有限公司 | Baud rate dynamic adjustment method and device based on communication terminal connection state detection |
CN117955867A (en) * | 2024-03-25 | 2024-04-30 | 常州埃依琦科技有限公司 | SF6 density monitoring system and working method thereof |
CN117955867B (en) * | 2024-03-25 | 2024-06-07 | 常州埃依琦科技有限公司 | SF6 density monitoring system and working method thereof |
CN119629041A (en) * | 2025-02-13 | 2025-03-14 | 苏州元脑智能科技有限公司 | Serial port baud rate processing device and method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117254884B (en) | 2024-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117254884B (en) | Communication baud rate debugging method, device, equipment and storage medium | |
US11845451B2 (en) | Automobile diagnostic method, apparatus, device and system, and diagnostic connection device | |
CN110024435B (en) | Wireless communication device and wireless communication method | |
CN108965560B (en) | Antenna state detection method and terminal equipment | |
CN113747503A (en) | Data transmission method and device and sending end equipment | |
US6724731B1 (en) | Radio communication system and control method, and information processing apparatus used therein | |
US11507332B2 (en) | Information processing apparatus with setting of network and non-transitory computer readable medium storing program for executing information processing apparatus with setting of network | |
CN114500157B (en) | Redundancy implementation system based on CAN gateway, electronic device and computer readable storage medium | |
CN105516255A (en) | Method for pushing configuration from MoCA central office to terminal device and corresponding device | |
CN101945422A (en) | Antenna testing method and wireless communication device applying same | |
CN114337942A (en) | Message retransmission method and device and electronic equipment | |
US12127040B2 (en) | Communication apparatus and method having data transmission sorting mechanism | |
US20110302434A1 (en) | Method and device of power saving for transmitting signals | |
KR20140074685A (en) | Electron tag device and communication method thereof | |
CN108648298A (en) | Message treatment method and device, storage medium, electronic equipment | |
JP4119354B2 (en) | Mobile radio communication system, mobile radio terminal apparatus and base station apparatus | |
KR100652647B1 (en) | Automatic correction method when sending a message | |
CN101111043A (en) | Method and system for conveying monitor report when abort of transmission link | |
JP3483142B2 (en) | Inspection device for modem for mobile data communication | |
CN115484192A (en) | Communication system for rail train, rail train and communication detection method | |
CN115664921A (en) | WEB-based network switching equipment management system and method and electronic equipment | |
US20230155931A1 (en) | Method and apparatus for switching length of bidirectional forwarding detection packet and storage medium | |
US20090234464A1 (en) | Interface information outputting system | |
CN111953574A (en) | Communication abnormity reminding method of air conditioner, operation control device and air conditioner | |
KR100306162B1 (en) | Method for processing message using ooad in exchangesystem |
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 |