CN112769663A - Communication method, communication apparatus, computer device, and storage medium - Google Patents

Communication method, communication apparatus, computer device, and storage medium Download PDF

Info

Publication number
CN112769663A
CN112769663A CN202011627094.7A CN202011627094A CN112769663A CN 112769663 A CN112769663 A CN 112769663A CN 202011627094 A CN202011627094 A CN 202011627094A CN 112769663 A CN112769663 A CN 112769663A
Authority
CN
China
Prior art keywords
target
bus
mode
communication
target communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011627094.7A
Other languages
Chinese (zh)
Other versions
CN112769663B (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.)
Shenzhen Yhlo Biotech Co Ltd
Original Assignee
Shenzhen Yhlo Biotech 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 Shenzhen Yhlo Biotech Co Ltd filed Critical Shenzhen Yhlo Biotech Co Ltd
Priority to CN202011627094.7A priority Critical patent/CN112769663B/en
Publication of CN112769663A publication Critical patent/CN112769663A/en
Application granted granted Critical
Publication of CN112769663B publication Critical patent/CN112769663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/4013Management of data rate on the bus
    • H04L12/40136Nodes adapting their rate to the physical link properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application relates to a communication method, a communication device, a computer device and a storage medium. The method comprises the following steps: receiving a bus communication signal; determining a target level grade corresponding to the bus communication signal; determining a target communication mode corresponding to a target communication unit according to the target level grade, wherein the target communication mode is determined from a main control mode and an adaptive mode; when the target communication mode is the master control mode, controlling the target communication unit to send target communication data corresponding to the bus communication signal through a bus; and when the target communication mode is the adaptive mode, controlling the target communication unit to receive target communication data corresponding to the bus communication signal through a bus. The method can improve the reliability of communication.

Description

Communication method, communication apparatus, computer device, and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method, an apparatus, a computer device, and a storage medium.
Background
With the development of communication technology, the application of communication lines is almost spread in communication devices used in various fields. The communication signals are transmitted via a set of communication lines forming a bus, which connects the components of the communication device or the communication devices together for mutual information exchange. For example, a CAN (controller Area network) bus, through which a user CAN control a communication device in real time, may be mounted with a plurality of CAN bus communication units, and these CAN bus communication units may implement data communication between the units through the CAN bus. Meanwhile, the communication module with the CAN bus interface CAN realize the multiplexing of the module and CAN be directly applied to other communication equipment applying the CAN bus.
However, the conventional communication method has a problem of low communication reliability.
Disclosure of Invention
In view of the above, it is necessary to provide a communication method, an apparatus, a computer device, and a storage medium capable of improving communication reliability in view of the above technical problems.
A method of communication, the method comprising: receiving a bus communication signal; determining a target level grade corresponding to the bus communication signal; determining a target communication mode corresponding to a target communication unit according to the target level grade, wherein the target communication mode is determined from a main control mode and an adaptive mode; when the target communication mode is the master control mode, controlling the target communication unit to send target communication data corresponding to the bus communication signal through a bus; and when the target communication mode is the adaptive mode, controlling the target communication unit to receive target communication data corresponding to the bus communication signal through a bus.
In one embodiment, the determining the target communication mode corresponding to the target communication unit according to the target level class includes: if the target level grade is the first grade level, determining that the target communication mode is the master control mode, and carrying out level grade promotion on the bus communication signal so as to enable the target communication unit to keep the master control mode; and if the target level is a second level, determining that the target communication mode is an adaptive mode, wherein the first level is lower than the second level.
In one embodiment, when the target communication mode is the master control mode, the controlling the target communication unit to send the target communication data corresponding to the bus communication signal through a bus includes: when the target communication mode is the master control mode, acquiring a first preset baud rate corresponding to the target communication unit; and under the condition of controlling the target communication unit to be at the first preset baud rate, sending the bus communication data through a bus.
In one embodiment, when the target communication mode is the master control mode, the controlling the target communication unit to send the target communication data corresponding to the bus communication signal through a bus further includes: when the target communication mode is the master control mode, determining the target priority of the target communication data according to the data frame identification corresponding to the target communication data; and controlling the target communication unit to send the bus communication data through a bus according to the target priority.
In one embodiment, the method further comprises: when the target communication mode is the adaptive mode, acquiring a second preset baud rate corresponding to the target communication unit; under the condition that the target communication unit is controlled to be at the second preset baud rate, the bus communication data are received through a bus; and if the bus communication data is successfully received, determining the second preset baud rate as the working baud rate of the target communication unit.
In one embodiment, the method further comprises: under the condition that the target communication unit is controlled to be at the second preset baud rate, if the bus communication data is not received within the first preset time, sequentially selecting candidate baud rates from the candidate baud rate set as the current working baud rate; under the condition of controlling the target communication unit to be at the current working baud rate, receiving the bus communication data through a bus; under the condition that the target communication unit is controlled to be at the second preset baud rate, if the bus communication data are not received within the second preset time, the step of sequentially selecting the candidate baud rate from the candidate baud rate set as the current working baud rate is returned until the bus communication data are successfully received.
In one embodiment, the method further comprises: acquiring a candidate communication unit set; in the candidate communication unit set, obtaining a baud rate corresponding to each candidate communication unit according to a clock signal value, a time parameter and a frequency division value corresponding to each candidate communication unit; and obtaining a candidate baud rate set according to the baud rate corresponding to each candidate communication unit.
A communications apparatus, the apparatus comprising: the bus communication signal receiving module is used for receiving bus communication signals; the target level grade determining module is used for determining a target level grade corresponding to the bus communication signal; the target communication mode determining module is used for determining a target communication mode corresponding to a target communication unit according to the target level grade, wherein the target communication mode is determined from a main control mode and an adaptive mode; the target communication data sending module is used for controlling the target communication unit to send target communication data corresponding to the bus communication signal through a bus when the target communication mode is the master control mode; and the target communication data receiving module is used for controlling the target communication unit to receive the target communication data corresponding to the bus communication signal through a bus when the target communication mode is the adaptive mode.
In one embodiment, the target communication mode determination module is further configured to: if the target level grade is the first grade level, determining that the target communication mode is the master control mode, and carrying out level grade promotion on the bus communication signal so as to enable the target communication unit to keep the master control mode; and if the target level is a second level, determining that the target communication mode is an adaptive mode, wherein the first level is lower than the second level.
In one embodiment, the target communication data sending module is further configured to: when the target communication mode is the master control mode, acquiring a first preset baud rate corresponding to the target communication unit; and under the condition of controlling the target communication unit to be at the first preset baud rate, sending the bus communication data through a bus.
In one embodiment, the target communication data sending module is further configured to: when the target communication mode is the master control mode, determining the target priority of the target communication data according to the data frame identification corresponding to the target communication data; and controlling the target communication unit to send the bus communication data through a bus according to the target priority.
In one embodiment, the apparatus is further configured to: when the target communication mode is the adaptive mode, acquiring a second preset baud rate corresponding to the target communication unit; under the condition that the target communication unit is controlled to be at the second preset baud rate, the bus communication data are received through a bus; and if the bus communication data is successfully received, determining the second preset baud rate as the working baud rate of the target communication unit.
In one embodiment, the apparatus is further configured to: under the condition that the target communication unit is controlled to be at the second preset baud rate, if the bus communication data is not received within the first preset time, sequentially selecting candidate baud rates from the candidate baud rate set as the current working baud rate; under the condition of controlling the target communication unit to be at the current working baud rate, receiving the bus communication data through a bus; under the condition that the target communication unit is controlled to be at the second preset baud rate, if the bus communication data are not received within the second preset time, the step of sequentially selecting the candidate baud rate from the candidate baud rate set as the current working baud rate is returned until the bus communication data are successfully received.
In one embodiment, the apparatus is further configured to: acquiring a candidate communication unit set; in the candidate communication unit set, obtaining a baud rate corresponding to each candidate communication unit according to a clock signal value, a time parameter and a frequency division value corresponding to each candidate communication unit; and obtaining a candidate baud rate set according to the baud rate corresponding to each candidate communication unit.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: receiving a bus communication signal; determining a target level grade corresponding to the bus communication signal; determining a target communication mode corresponding to a target communication unit according to the target level grade, wherein the target communication mode is determined from a main control mode and an adaptive mode; when the target communication mode is the master control mode, controlling the target communication unit to send target communication data corresponding to the bus communication signal through a bus; and when the target communication mode is the adaptive mode, controlling the target communication unit to receive target communication data corresponding to the bus communication signal through a bus.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: receiving a bus communication signal; determining a target level grade corresponding to the bus communication signal; determining a target communication mode corresponding to a target communication unit according to the target level grade, wherein the target communication mode is determined from a main control mode and an adaptive mode; when the target communication mode is the master control mode, controlling the target communication unit to send target communication data corresponding to the bus communication signal through a bus; and when the target communication mode is the adaptive mode, controlling the target communication unit to receive target communication data corresponding to the bus communication signal through a bus.
According to the communication method, the communication device, the computer equipment and the storage medium, the bus communication signal is received, the target level grade corresponding to the bus communication signal is determined, and the target communication mode corresponding to the target communication unit is determined according to the target level grade. Wherein the target communication mode is determined from the master mode and the adaptation mode; when the target communication mode is the master control mode, a target communication unit connected on a control communication bus sends target communication data corresponding to a bus communication signal through the bus; and when the target communication mode is the adaptive mode, the control target communication unit receives target communication data corresponding to the bus communication signal through the bus. It is thereby achieved that the communication unit determines whether to transmit or receive target communication data in dependence on different target level levels of the communication signal on the bus. The target communication mode is determined before the target communication data is transmitted, and the data is transmitted or received again based on the determined target communication mode, so that the reliability of communication is improved.
Drawings
FIG. 1 is a diagram of an application environment of a communication method in one embodiment;
FIG. 2 is a flow diagram of a communication method in one embodiment;
FIG. 3 is a flow diagram illustrating a process for determining a target communication mode corresponding to a target communication unit based on a target level according to one embodiment;
fig. 4 is a schematic flow chart illustrating a process of controlling the target communication unit to send target communication data corresponding to the bus communication signal through the bus when the target communication mode is the master control mode in one embodiment;
fig. 5 is a schematic flow chart illustrating a process of controlling the target communication unit to send target communication data corresponding to the bus communication signal through the bus when the target communication mode is the master mode in another embodiment;
FIG. 6 is a flow chart illustrating a communication method according to another embodiment;
FIG. 7 is a flow chart illustrating a communication method according to another embodiment;
FIG. 8 is a flow chart illustrating a communication method according to another embodiment;
FIG. 9 is a flow chart illustrating a communication method according to another embodiment;
FIG. 10 is a block diagram showing the structure of a communication apparatus according to one embodiment;
FIG. 11 is a diagram illustrating an internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The communication method provided by the application can be applied to the application environment shown in fig. 1. It finds particular application in a communication system that includes a first terminal 102 and a second terminal 104. Wherein the first terminal 102 communicates with the second terminal 104 via a bus. The first terminal 102 or the second terminal 104 performs a communication method. Specifically, taking the first terminal 102 as an example for executing the above communication method, the first terminal 102 receives the bus communication signal, determines a target level corresponding to the bus communication signal, and determines a target communication mode corresponding to the target communication unit according to the target level, where the target communication mode is determined from the master control mode and the adaptive mode. When the target communication mode is the master control mode, the first terminal 102 controls the target communication unit to send target communication data corresponding to the bus communication signal to the second terminal 104 through the bus, and the second terminal 104 is in the adaptive mode. When the target communication mode is the adaptation mode, the first terminal 102 controls the target communication unit to receive the target communication data corresponding to the bus communication signal from the second terminal 104 through the bus. The first terminal 102 or the second terminal 104 may be, but is not limited to, various communication devices, personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In one embodiment, as shown in fig. 2, a communication method is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
in step 202, a bus communication signal is received.
The bus communication signal is a communication signal for performing communication through a bus. The communication signal is a communication signal transmitted by a signal synchronization unit connected to the communication unit. The communication signal comprises an analog signal or a digital signal.
Specifically, a bus communication signal sent by the communication unit is transmitted on the communication bus, and the bus communication signal may be received by other terminals or may be received by other third-party devices. The terminal comprises a communication unit and a signal synchronization unit connected with the communication unit.
In one embodiment, a bus communication signal sent by one communication unit is received by a signal synchronization unit connected with the communication unit, and after receiving the bus communication signal, the signal synchronization unit can analyze the bus communication signal and transmit the synchronized signal to another communication unit.
And step 204, determining a target level grade corresponding to the bus communication signal.
The target level refers to a level of a bus communication signal sent by the terminal. The terminal is provided with a signal synchronization unit which can independently judge the level of the target level, and the signal synchronization unit is connected with a bus communication signal line. The terminal can determine the target level grade corresponding to the bus communication signal by monitoring the communication signal on the bus communication signal line. For example, in the case where a plurality of terminals perform communication, the signal synchronizing unit in each terminal is connected to the same bus communication signal line, and the terminal functioning as the monitoring can monitor the communication signal of the signal synchronizing unit in each terminal on the bus communication signal line, and when it is monitored that the communication signal is at a low level, it is determined that the target level is at a low level. When the communication signal is monitored to be high level, the target level is determined to be high level.
Specifically, when the terminal is started, the bus communication signal may be received by the signal synchronization device connected to the communication unit, and the target level corresponding to the bus communication signal may be determined by analyzing the bus communication signal.
In one embodiment, the determination of the target level is determined by a corresponding signal synchronized to the communication bus on a signal synchronization device connected to the communication unit. After the terminal is started, the bus communication signal of the terminal is firstly synchronized to the synchronizing device, and the synchronized bus communication signal can be transmitted to the communication bus through the communication bus connected with the synchronizing device. Meanwhile, the synchronization device can process the bus communication signal transmitted by the terminal into a communication signal capable of determining the target level. For example, the signal after signal processing is a digital signal. The target level corresponding to the bus communication signal can be determined by the processed signal.
And step 206, determining a target communication mode corresponding to the target communication unit according to the target level grade, wherein the target communication mode is determined from the main control mode and the adaptive mode.
The target communication unit is a unit capable of communicating via a bus. The master control mode and the adaptation mode are both modes of at least one communication unit in the process of signal synchronization through the corresponding signal synchronization unit. Wherein, the communication unit needs to transmit data in the master control mode. The communication unit needs to receive data in the adaptation mode.
Specifically, after the synchronization device connected to the communication unit determines the target level corresponding to the bus communication signal of the communication unit, the target communication mode corresponding to the target communication unit may be determined according to the target level.
In one embodiment, the target communication mode is the master mode if the target level is low. If the target level is high level, the target communication mode is the adaptive mode.
And step 208, when the target communication mode is the master control mode, controlling the target communication unit to send target communication data corresponding to the bus communication signal through the bus.
Specifically, by the determination of the target communication mode, the mode in which the target communication unit transmits or receives the target communication data may be controlled.
In one embodiment, when the target communication mode is the master control mode, the communication unit transmits data, and if the communication unit is in a data receiving state, the communication unit stops receiving the data and transitions to a data transmitting state.
And step 210, when the target communication mode is the adaptive mode, controlling the target communication unit to receive target communication data corresponding to the bus communication signal through the bus.
In one embodiment, when the target communication mode is the adaptation mode, the communication unit performs data reception, and if the communication unit is in a data transmission state at this time, the transmission of data is stopped, and a transition is made to a data reception state.
In the communication method, the bus communication signal is received, the target level corresponding to the bus communication signal is determined, and the target communication mode corresponding to the target communication unit is determined according to the target level. Wherein the target communication mode is determined from the master mode and the adaptation mode; when the target communication mode is the master control mode, a target communication unit connected on a control communication bus sends target communication data corresponding to a bus communication signal through the bus; and when the target communication mode is the adaptive mode, the control target communication unit receives target communication data corresponding to the bus communication signal through the bus. It is thereby achieved that the communication unit determines whether to transmit or receive target communication data in dependence on different target level levels of the communication signal on the bus. The target communication mode is determined before the target communication data is transmitted, and the data is transmitted or received again based on the determined target communication mode, so that the reliability of communication is improved.
In one embodiment, as shown in fig. 3, determining the target communication mode corresponding to the target communication unit according to the target level comprises:
step 302, if the target level is the first level, determining that the target communication mode is the master control mode, and performing level upgrade on the bus communication signal to enable the target communication unit to maintain the master control mode.
The level raising means raising the current level of the communication unit. For example, the current level of the communication unit is low, and the level is raised to high.
In one embodiment, if the target level is at the first level, after determining that the target communication mode is the master control mode, in order to maintain the current target communication mode, the target communication mode may be maintained in the master control mode by raising the first level.
Step 304, if the target level is the second level, determining that the target communication mode is the adaptive mode, and the first level is lower than the second level.
Specifically, the level classes are determinative of the determination of the target communication mode, with different level classes corresponding to different target communication modes. For example, the first hierarchical level corresponds to a master mode and the second hierarchical level corresponds to an adaptation mode.
In one embodiment, after determining that the target communication mode is the adaptation mode, the second level is a higher level relative to the first level if the target level is the second level. For example, if the first level is a logic 0 and the second level is a logic 1, the target communication mode is determined to be the adaptive mode if the target level is a logic 1.
In this embodiment, the target communication mode of the terminal can be determined by determining the target level of the terminal, and the target level is a quantifiable index, and the reliability of communication can be further improved by determining the target communication mode by the target level.
In one embodiment, as shown in fig. 4, when the target communication mode is the master mode, controlling the target communication unit to send the target communication data corresponding to the bus communication signal through the bus includes:
step 402, when the target communication mode is the master control mode, obtaining a first preset baud rate corresponding to the target communication unit.
The baud rate refers to the number of minimum data units transmitted per second, which can be expressed as symbols. For example, the baud rate is 9600Band (baud rate unit), and indicates that data of 9600 symbols is transmitted for 1 second. The preset baud rate refers to a preset baud rate.
Specifically, when the communication mode of the target communication mode of the communication unit has been determined, based on this communication mode, the communication unit may perform data transmission, and before data transmission, the baud rate of the communication unit needs to be configured, so as to ensure the stability of communication.
In one embodiment, when the target communication mode of the communication unit is the master control mode, after delaying for a preset time, the interface program is automatically called, and the baud rate preset in the program of the communication unit is obtained and used as the first preset baud rate.
In one embodiment, when the target communication mode of the communication unit is the master control mode, the upper computer connected with the communication unit receives a baud rate setting instruction, sends the baud rate which is successfully set to the communication unit, and the communication unit takes the received baud rate as a first preset baud rate.
And step 404, under the condition that the control target communication unit is at the first preset baud rate, sending bus communication data through the bus.
Specifically, after the target communication unit successfully obtains the first preset baud rate, the bus communication data of the local terminal is sent through the bus based on the first preset baud rate.
In one embodiment, data frames corresponding to bus communication data are sent at preset time intervals, two data frame frames transmitted before and after are added together to form a complete data frame when the preset time intervals are smaller, and two data frame frames transmitted before and after are complete two independent data frames when the preset time intervals are larger. Proper spacing between data frames can ensure data frame integrity and correctness. And sending bus communication data through a data sending module in the communication unit through a bus by utilizing a preset time interval and a first preset baud rate.
In this embodiment, the baud rate of the target communication unit is set in the master control mode, so that the stability of communication can be achieved.
In one embodiment, as shown in fig. 5, when the target communication mode is the master mode, the controlling the target communication unit to send the target communication data corresponding to the bus communication signal through the bus further includes:
step 502, when the target communication mode is the master control mode, determining the target priority of the target communication data according to the data frame identifier corresponding to the target communication data.
The data frame identification refers to marking information capable of uniquely determining the data frame. For example, a data frame id (identity document). The target priority is a weight sequence formed by arranging weights based on the data frame IDs from big to small, and the weights and the priorities have positive correlation. The higher the weight, the higher the priority, the lower the weight, the lower the priority. For example, the data frame ID weights are represented by IDs 10 to 0, ID10 is the highest weight bit, ID0 is the lowest weight bit, the data frame corresponding to ID10 has the highest priority, and so on, and the data frame corresponding to ID0 has the lowest priority.
Specifically, when the target communication mode is the master control mode, the data frame corresponding to the target communication data is acquired by using data frame analysis software, the data frame is analyzed, the data frame identifier is acquired, and the target priority of the target communication data is determined according to the data frame identifier. For example, the target communication unit transmits the data frame through the CAN bus, taking the standard frame as an example, the arbitration segment of the standard frame is 2-12 bits of the standard frame, the arbitration segment is used for determining the ID weight, the ID weight of the data frame CAN be calculated through the standard frame of 2-12 bits, and the priority CAN be determined according to the weight.
In one embodiment, the data frame ID weights may be used directly to determine the target priority. For example, if the data frame has binary 000000111111 bits 2-12, respectively, and the weight is calculated as decimal 31, the priority may be determined as decimal 31.
And step 504, controlling the target communication unit to send bus communication data through the bus according to the target priority.
Specifically, after the target priority of the target communication data is determined, if there are a plurality of target communication units on the same bus, the target communication units are controlled to transmit the bus communication data through the bus according to the target priority of each communication unit.
In one embodiment, when the target communication mode is the master mode, the data frame priority of the target communication unit is set to the highest priority. For example, if 2-12 bits of the data frame are respectively the largest binary 111111111111 and the weight is calculated as decimal 2047, the priority is determined as decimal 2047. The target communication data in the master control mode can be guaranteed to be sent preferentially.
In this embodiment, the target priority is determined by the data frame identifier corresponding to the target communication data, so that the target communication unit can send the bus communication data according to the specific target priority, interference of other communication units in communication is avoided, and reliability of communication is improved.
In one embodiment, as shown in fig. 6, the communication method further includes:
step 602, when the target communication mode is the adaptation mode, obtaining a second preset baud rate corresponding to the target communication unit.
Specifically, when the target communication mode of the target communication unit is the adaptation mode, the baud rate of the local terminal needs to be set before the bus communication data is received, and the accurate bus communication data can be received.
In one embodiment, when the target communication mode of the target communication unit is the adaptation mode, the second preset baud rate stored in the local terminal may be read. For example, the target communication unit stores a default baud rate corresponding to the main controller according to the type of the local main controller, and the baud rate is used as a second preset baud rate.
In one embodiment, when the target communication mode of the target communication unit is the adaptation mode, the second preset baud rate corresponding to the target communication unit is obtained by receiving the baud rate set on the upper computer connected with the target communication unit.
And step 604, receiving bus communication data through the bus under the condition that the control target communication unit is at a second preset baud rate.
Specifically, when the target communication unit obtains the second preset baud rate, the bus communication data can be received by using the preset baud rate.
In one embodiment, in the case that the control target communication unit is at the second preset baud rate, the target communication unit receives the bus communication data through the data receiving module of the local terminal. And when the bus communication data is received, the data receiving condition can be monitored in real time through a terminal interface or an upper computer interface connected with the target communication unit. For example, the second preset Baud rate is 19200Baud, and if the Baud rate of the transmitting end connected to the target communication unit is also 19200Baud, the target communication unit may receive correct bus communication data through the bus.
And step 606, if the bus communication data is successfully received, determining a second preset baud rate as the working baud rate of the target communication unit.
Specifically, if the communication data received by the target communication unit is correct, it indicates that the bus communication data is successfully received, and the currently acquired second preset baud rate can be obtained as the appropriate baud rate.
In one embodiment, the received data frame may be analyzed by data frame analysis software corresponding to the bus communication data to determine whether the bus communication data corresponding to the data frame is successfully received. And if the data is successfully received, determining the current second preset baud rate as the working baud rate of the target communication unit.
In this embodiment, when the target communication mode is the adaptation mode, the purpose of accurately determining the working baud rate of the target communication unit in the adaptation mode can be achieved by acquiring the second preset baud rate corresponding to the target communication unit and receiving bus communication data according to the second preset baud rate.
In one embodiment, as shown in fig. 7, the communication method further includes:
step 702, under the condition that the control target communication unit is at the second preset baud rate, if the bus communication data is not received within the first preset time, sequentially selecting candidate baud rates from the candidate baud rate set as the current working baud rate.
The candidate baud rate is the baud rate which can be used as the preselected working baud rate before the working baud rate of the target communication unit is determined. The candidate baud rate set refers to a set consisting of a plurality of candidate baud rates. For example, the candidate Baud rates include 300Baud, 1200Baud, 2400Baud, 9600Baud, 19200Baud, 38400Baud, or 115200Baud, etc., which constitute the set of candidate Baud rates.
Specifically, the candidate baud rate set is stored in a memory of the target communication unit, and the candidate baud rates in the candidate baud rate set are tried as the current working baud rate in sequence.
And step 704, receiving bus communication data through the bus under the condition that the control target communication unit is at the current working baud rate.
Specifically, the candidate baud rate in the candidate baud rate set is used as the current working baud rate to try to receive bus communication data, and if the bus communication data is not received within a first preset time, the next candidate baud rate is sequentially received to try to receive the bus communication data.
And step 706, under the condition that the control target communication unit is at the second preset baud rate, if the bus communication data is not received within the second preset time, returning to the step of sequentially selecting the candidate baud rate from the candidate baud rate set as the current working baud rate until the bus communication data is successfully received.
Specifically, in order to determine the working baud rate of the target communication unit, it is necessary to sequentially try candidate baud rates in the candidate baud rate set as the current working baud rate until the bus communication data is successfully received.
In one embodiment, the candidate baud rate set may be a candidate baud rate list of an ordered sequence, and the candidate baud rates may be sequentially searched from the middle position of the sequence to both sides of the sequence, and the searched candidate baud rates are used as the current working baud rate until the bus communication data is successfully received. And taking the baud rate used when the bus communication data is successfully received as the working baud rate of the communication unit.
In one embodiment, the candidate baud rates in the set of candidate baud rates are ordered according to empirically used frequency. For example, the higher the use frequency, the earlier the sequence, the lower the use frequency, the later the sequence, and the current working baud rate is selected in sequence according to the sequence until the bus communication data is successfully received. And taking the baud rate used when the bus communication data is successfully received as the working baud rate of the communication unit.
In the embodiment, the purpose of quickly and accurately determining the working baud rate of the target communication unit can be achieved by utilizing the candidate baud rate set.
In one embodiment, as shown in fig. 8, the communication method further includes:
step 802, a set of candidate communication units is obtained.
The communication unit set refers to a set formed by at least one communication unit. A set of candidate communication units refers to a set of communication units that may be pre-selected.
Specifically, the communication unit set may be connected to the same bus, and the candidate communication unit set is obtained by the monitoring device connected to the bus.
In one embodiment, the composed communication unit set of the respective communication units may be acquired by the communication unit management apparatus on the bus.
And 804, in the candidate communication unit set, obtaining the baud rate corresponding to each candidate communication unit according to the clock signal value, the time parameter and the frequency division value corresponding to each candidate communication unit.
The clock signal value refers to the number of cycles per second of the main controller in the communication unit and represents the performance of the main controller, the larger the clock signal value is, the better the performance of the main controller is, and otherwise, the smaller the clock signal value is, the worse the performance of the main controller is. The time parameter refers to a parameter of a time class related to signal sampling, and the phase of a sampled signal point can be adjusted. A divide value means that a master controller in a communication unit can divide a clock signal value into different divide values for use by different units.
Specifically, according to the difference of the master controller in each candidate communication unit, the clock signal value, the time parameter and the frequency division value corresponding to each candidate communication unit are also different, and the parameters of the clock signal value, the time parameter and the frequency division value directly influence the baud rate corresponding to each communication unit, so that the baud rates corresponding to each candidate communication unit are different.
In one embodiment, the baud rate corresponding to each candidate communication unit can be obtained by using the clock signal value, the time parameter and the frequency division value corresponding to each candidate communication unit through a functional relationship between the clock signal value, the time parameter and the frequency division value and the baud rate. For example, if the clock signal value on the CAN bus is denoted as PCLK1, the time parameter of the sampling signal and the time parameter of the transmission signal are denoted as CAN _ BS1 and CAN _ BS2, respectively, and the frequency division value is denoted as CAN _ Prescaler, the baud rate of the CAN bus is obtained by the functional relationship of PCLK1/((CAN _ SJW + CAN _ BS1+ CAN _ BS2) × CAN _ Prescaler). Assuming that PCLK1 is 72MHz, CAN _ SJW is 1, CAN _ BS1 is 8, CAN _ BS2 is 7, and CAN _ Prescaler is 9, the baud rate of the CAN bus is PCLK1/((1+8+7) ((9)) 36MHz/16/9 is 500 Kbits.
And 806, obtaining a candidate baud rate set according to the baud rate corresponding to each candidate communication unit.
Specifically, after the baud rates corresponding to the candidate communication units are obtained, the obtained baud rates are combined into a baud rate set serving as a sample, so that each communication unit can obtain a working baud rate meeting the data receiving or sending condition of the unit from the baud rate set.
In one embodiment, after the baud rates corresponding to the candidate communication units are obtained, the baud rates are sequenced from large to small, so that the sequenced baud rates form a baud rate list, and the list is stored in the candidate communication units.
In one embodiment, after the baud rates corresponding to the candidate communication units are obtained, the baud rates are ranked in priority according to the number of the baud rates obtained by the candidate communication units, so that the baud rate with the highest occurrence frequency is ranked at the head, and by analogy, the baud rate with the lowest frequency is ranked at the tail, the baud rates which are ranked completely form a baud rate list and are stored in the communication unit management equipment, and the communication unit can obtain the baud rates in the communication unit management equipment in real time.
In the embodiment, the purpose of obtaining the candidate baud rate set can be achieved by obtaining the baud rate corresponding to each communication unit, the adaptive matching of each communication unit can be ensured to be suitable for the working baud rate of the unit, and the reliability of communication is improved.
In one embodiment, as shown in fig. 9, communication between the communication units is performed through a CAN bus, for example. When the communication unit is started, when the signal synchronization unit connected with the communication unit detects that a signal on a CAN bus connected with the communication unit is at a low level, the communication unit is adjusted to be in a master control mode, and simultaneously, a level signal of the communication unit is pulled high and converted into a high level. Such that the communication unit remains in master mode. And after the high level is stabilized at the time of T1, reading the historical baud rate configuration, acquiring the appropriate baud rate of the communication unit, sending data by using the baud rate, and continuously sending the data according to the baud rate when the data is successfully sent. When data transmission fails or the communication unit is started, the signal synchronization unit detects that a signal on a CAN bus connected with the communication unit is in a high level, the communication unit enters an adaptation mode, under the adaptation mode, historical baud rate configuration is read, a proper working baud rate of the communication unit is obtained through the historical baud rate configuration, data transmitted by the CAN bus connected with the communication unit is received by using the working baud rate, if the received data is consistent with data of a transmitting end, the working baud rate is stored, if the received data is incorrect, the baud rate is proved to be not matched with the communication unit, the communication unit continues to read from a preset baud rate list, the proper baud rate is obtained from the preset baud rate list, and the data on the CAN bus is received until the correct data is received.
It should be understood that although the various steps in the flow charts of fig. 2-9 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-9 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 10, there is provided a communication apparatus 1000 comprising: a bus communication signal receiving module 1002, a target level determining module 1004, a target communication mode determining module 1006, a target communication data transmitting module 1008, and a target communication data receiving module 1010, wherein: a bus communication signal receiving module 1002, configured to receive a bus communication signal; a target level determining module 1004, configured to determine a target level corresponding to the bus communication signal; a target communication mode determining module 1006, configured to determine a target communication mode corresponding to the target communication unit according to the target level, where the target communication mode is determined from the master control mode and the adaptive mode; a target communication data sending module 1008, configured to, when the target communication mode is the master control mode, control the target communication unit to send target communication data corresponding to the bus communication signal through the bus; and a target communication data receiving module 1010, configured to control the target communication unit to receive target communication data corresponding to the bus communication signal through the bus when the target communication mode is the adaptation mode.
In one embodiment, the target communication mode determination module 1006 is further configured to: if the target level grade is the first grade level, determining that the target communication mode is the master control mode, and carrying out level grade promotion on the bus communication signals so as to enable the target communication unit to keep the master control mode; and if the target level is the second level, determining that the target communication mode is the adaptive mode, wherein the first level is lower than the second level.
In one embodiment, the target communication data sending module 1008 is to: when the target communication mode is the master control mode, acquiring a first preset baud rate corresponding to the target communication unit; and under the condition that the control target communication unit is at the first preset baud rate, transmitting bus communication data through the bus.
In one embodiment, the target communication data sending module 1008 is to: when the target communication mode is the master control mode, determining the target priority of the target communication data according to the data frame identification corresponding to the target communication data; according to the target priority, the control target communication unit transmits the bus communication data through the bus.
In one embodiment, communications apparatus 1000 is further configured to: when the target communication mode is the adaptation mode, acquiring a second preset baud rate corresponding to the target communication unit; under the condition that the control target communication unit is at a second preset baud rate, bus communication data are received through a bus; and if the bus communication data is successfully received, determining the second preset baud rate as the working baud rate of the target communication unit.
In one embodiment, communications apparatus 1000 is further configured to: under the condition that the control target communication unit is at a second preset baud rate, if bus communication data are not received within a first preset time, sequentially selecting candidate baud rates from the candidate baud rate set as current working baud rates; under the condition that the control target communication unit is at the current working baud rate, bus communication data are received through a bus; and under the condition that the control target communication unit is at a second preset baud rate, if the bus communication data are not received within a second preset time, returning to the step of sequentially selecting the candidate baud rate from the candidate baud rate set as the current working baud rate until the bus communication data are successfully received.
In one embodiment, a set of candidate communication units is obtained; in the candidate communication unit set, obtaining baud rates corresponding to the candidate communication units according to the clock signal values, the time parameters and the frequency division values corresponding to the candidate communication units; and obtaining a candidate baud rate set according to the baud rate corresponding to each candidate communication unit.
For the specific limitations of the communication device, reference may be made to the above limitations of the communication method, which are not described herein again. The respective modules in the above-described communication apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a communication method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: receiving a bus communication signal; determining a target level grade corresponding to a bus communication signal; determining a target communication mode corresponding to the target communication unit according to the target level grade, wherein the target communication mode is determined from the main control mode and the adaptive mode; when the target communication mode is the master control mode, the control target communication unit sends target communication data corresponding to the bus communication signal through the bus; and when the target communication mode is the adaptive mode, the control target communication unit receives target communication data corresponding to the bus communication signal through the bus.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the target level grade is the first grade level, determining that the target communication mode is the master control mode, and carrying out level grade promotion on the bus communication signals so as to enable the target communication unit to keep the master control mode; and if the target level is the second level, determining that the target communication mode is the adaptive mode, wherein the first level is lower than the second level.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the target communication mode is the master control mode, acquiring a first preset baud rate corresponding to the target communication unit; and under the condition that the control target communication unit is at the first preset baud rate, transmitting bus communication data through the bus.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the target communication mode is the master control mode, determining the target priority of the target communication data according to the data frame identification corresponding to the target communication data; according to the target priority, the control target communication unit transmits the bus communication data through the bus. In one embodiment, the processor, when executing the computer program, further performs the steps of: when the target communication mode is the adaptation mode, acquiring a second preset baud rate corresponding to the target communication unit; under the condition that the control target communication unit is at a second preset baud rate, bus communication data are received through a bus; and if the bus communication data is successfully received, determining the second preset baud rate as the working baud rate of the target communication unit.
In one embodiment, the processor, when executing the computer program, further performs the steps of: under the condition that the control target communication unit is at a second preset baud rate, if bus communication data are not received within a first preset time, sequentially selecting candidate baud rates from the candidate baud rate set as current working baud rates; under the condition that the control target communication unit is at the current working baud rate, bus communication data are received through a bus; and under the condition that the control target communication unit is at a second preset baud rate, if the bus communication data are not received within a second preset time, returning to the step of sequentially selecting the candidate baud rate from the candidate baud rate set as the current working baud rate until the bus communication data are successfully received.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a candidate communication unit set; in the candidate communication unit set, obtaining baud rates corresponding to the candidate communication units according to the clock signal values, the time parameters and the frequency division values corresponding to the candidate communication units; and obtaining a candidate baud rate set according to the baud rate corresponding to each candidate communication unit.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a bus communication signal; determining a target level grade corresponding to a bus communication signal; determining a target communication mode corresponding to the target communication unit according to the target level grade, wherein the target communication mode is determined from the main control mode and the adaptive mode; when the target communication mode is the master control mode, the control target communication unit sends target communication data corresponding to the bus communication signal through the bus; and when the target communication mode is the adaptive mode, the control target communication unit receives target communication data corresponding to the bus communication signal through the bus.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target level grade is the first grade level, determining that the target communication mode is the master control mode, and carrying out level grade promotion on the bus communication signals so as to enable the target communication unit to keep the master control mode; and if the target level is the second level, determining that the target communication mode is the adaptive mode, wherein the first level is lower than the second level.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the target communication mode is the master control mode, acquiring a first preset baud rate corresponding to the target communication unit; and under the condition that the control target communication unit is at the first preset baud rate, transmitting bus communication data through the bus.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the target communication mode is the master control mode, determining the target priority of the target communication data according to the data frame identification corresponding to the target communication data; according to the target priority, the control target communication unit transmits the bus communication data through the bus.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the target communication mode is the adaptation mode, acquiring a second preset baud rate corresponding to the target communication unit; under the condition that the control target communication unit is at a second preset baud rate, bus communication data are received through a bus; and if the bus communication data is successfully received, determining the second preset baud rate as the working baud rate of the target communication unit.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the control target communication unit is at a second preset baud rate, if bus communication data are not received within a first preset time, sequentially selecting candidate baud rates from the candidate baud rate set as current working baud rates; under the condition that the control target communication unit is at the current working baud rate, bus communication data are received through a bus; and under the condition that the control target communication unit is at a second preset baud rate, if the bus communication data are not received within a second preset time, returning to the step of sequentially selecting the candidate baud rate from the candidate baud rate set as the current working baud rate until the bus communication data are successfully received.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a candidate communication unit set; in the candidate communication unit set, obtaining baud rates corresponding to the candidate communication units according to the clock signal values, the time parameters and the frequency division values corresponding to the candidate communication units; and obtaining a candidate baud rate set according to the baud rate corresponding to each candidate communication unit.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of communication, the method comprising:
receiving a bus communication signal;
determining a target level grade corresponding to the bus communication signal;
determining a target communication mode corresponding to a target communication unit according to the target level grade, wherein the target communication mode is determined from a main control mode and an adaptive mode;
when the target communication mode is the master control mode, controlling the target communication unit to send target communication data corresponding to the bus communication signal through a bus;
and when the target communication mode is the adaptive mode, controlling the target communication unit to receive target communication data corresponding to the bus communication signal through a bus.
2. The method of claim 1, wherein determining the target communication mode corresponding to the target communication unit according to the target level comprises:
if the target level grade is the first grade level, determining that the target communication mode is the master control mode, and carrying out level grade promotion on the bus communication signal so as to enable the target communication unit to keep the master control mode;
and if the target level is a second level, determining that the target communication mode is an adaptive mode, wherein the first level is lower than the second level.
3. The method according to claim 2, wherein when the target communication mode is the master mode, the controlling the target communication unit to send the target communication data corresponding to the bus communication signal through a bus comprises:
when the target communication mode is the master control mode, acquiring a first preset baud rate corresponding to the target communication unit;
and under the condition of controlling the target communication unit to be at the first preset baud rate, sending the bus communication data through a bus.
4. The method according to claim 3, wherein when the target communication mode is the master mode, controlling the target communication unit to send target communication data corresponding to the bus communication signal via a bus further comprises:
when the target communication mode is the master control mode, determining the target priority of the target communication data according to the data frame identification corresponding to the target communication data;
and controlling the target communication unit to send the bus communication data through a bus according to the target priority.
5. The method of claim 1, further comprising:
when the target communication mode is the adaptive mode, acquiring a second preset baud rate corresponding to the target communication unit;
under the condition that the target communication unit is controlled to be at the second preset baud rate, the bus communication data are received through a bus;
and if the bus communication data is successfully received, determining the second preset baud rate as the working baud rate of the target communication unit.
6. The method of claim 5, further comprising:
under the condition that the target communication unit is controlled to be at the second preset baud rate, if the bus communication data is not received within the first preset time, sequentially selecting candidate baud rates from the candidate baud rate set as the current working baud rate;
under the condition of controlling the target communication unit to be at the current working baud rate, receiving the bus communication data through a bus;
under the condition that the target communication unit is controlled to be at the second preset baud rate, if the bus communication data are not received within the second preset time, the step of sequentially selecting the candidate baud rate from the candidate baud rate set as the current working baud rate is returned until the bus communication data are successfully received.
7. The method of claim 6, further comprising:
acquiring a candidate communication unit set;
in the candidate communication unit set, obtaining a baud rate corresponding to each candidate communication unit according to a clock signal value, a time parameter and a frequency division value corresponding to each candidate communication unit;
and obtaining a candidate baud rate set according to the baud rate corresponding to each candidate communication unit.
8. A communications apparatus, the apparatus comprising:
the bus communication signal receiving module is used for receiving bus communication signals;
the target level grade determining module is used for determining a target level grade corresponding to the bus communication signal;
the target communication mode determining module is used for determining a target communication mode corresponding to a target communication unit according to the target level grade, wherein the target communication mode is determined from a main control mode and an adaptive mode;
the target communication data sending module is used for controlling the target communication unit to send target communication data corresponding to the bus communication signal through a bus when the target communication mode is the master control mode;
and the target communication data receiving module is used for controlling the target communication unit to receive the target communication data corresponding to the bus communication signal through a bus when the target communication mode is the adaptive mode.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011627094.7A 2020-12-30 2020-12-30 Communication method, communication apparatus, computer device, and storage medium Active CN112769663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011627094.7A CN112769663B (en) 2020-12-30 2020-12-30 Communication method, communication apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011627094.7A CN112769663B (en) 2020-12-30 2020-12-30 Communication method, communication apparatus, computer device, and storage medium

Publications (2)

Publication Number Publication Date
CN112769663A true CN112769663A (en) 2021-05-07
CN112769663B CN112769663B (en) 2022-08-19

Family

ID=75699172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011627094.7A Active CN112769663B (en) 2020-12-30 2020-12-30 Communication method, communication apparatus, computer device, and storage medium

Country Status (1)

Country Link
CN (1) CN112769663B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113552859A (en) * 2021-07-27 2021-10-26 特灵空调系统(中国)有限公司 Communication control method, main controller, device, temperature controller and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0381385A2 (en) * 1989-01-30 1990-08-08 Honeywell Inc. Detector for colliding signals in asynchronous communication
CN101404556A (en) * 2008-10-24 2009-04-08 伊玛精密电子(苏州)有限公司 One-wire bus communication method
CN104391814A (en) * 2014-11-10 2015-03-04 中国电子科技集团公司第二十研究所 Parameter-regulable universal RS232-CAN (Controller Area Network) bus adapter
CN106603358A (en) * 2016-11-24 2017-04-26 南京国电南自电网自动化有限公司 High-speed bus system based on an MLVDS interface and implementation method
CN109274567A (en) * 2018-09-27 2019-01-25 潍柴动力股份有限公司 A kind of adaptive approach and system of baud rate
CN109902053A (en) * 2017-12-07 2019-06-18 厦门雅迅网络股份有限公司 A kind of SPI communication method, terminal device and storage medium based on dual controller
CN110581814A (en) * 2019-09-06 2019-12-17 惠州志顺电子实业有限公司 Baud rate adjusting method of communication equipment and communication equipment
CN110941218A (en) * 2019-12-10 2020-03-31 北京振兴计量测试研究所 CAN bus controller test method
CN111176699A (en) * 2018-11-09 2020-05-19 深圳阿凡达智控有限公司 Control method, control device, and computer storage medium
CN111737175A (en) * 2020-06-12 2020-10-02 明见(厦门)技术有限公司 High-speed SPI master-slave machine communication method, terminal equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0381385A2 (en) * 1989-01-30 1990-08-08 Honeywell Inc. Detector for colliding signals in asynchronous communication
CN101404556A (en) * 2008-10-24 2009-04-08 伊玛精密电子(苏州)有限公司 One-wire bus communication method
CN104391814A (en) * 2014-11-10 2015-03-04 中国电子科技集团公司第二十研究所 Parameter-regulable universal RS232-CAN (Controller Area Network) bus adapter
CN106603358A (en) * 2016-11-24 2017-04-26 南京国电南自电网自动化有限公司 High-speed bus system based on an MLVDS interface and implementation method
CN109902053A (en) * 2017-12-07 2019-06-18 厦门雅迅网络股份有限公司 A kind of SPI communication method, terminal device and storage medium based on dual controller
CN109274567A (en) * 2018-09-27 2019-01-25 潍柴动力股份有限公司 A kind of adaptive approach and system of baud rate
CN111176699A (en) * 2018-11-09 2020-05-19 深圳阿凡达智控有限公司 Control method, control device, and computer storage medium
CN110581814A (en) * 2019-09-06 2019-12-17 惠州志顺电子实业有限公司 Baud rate adjusting method of communication equipment and communication equipment
CN110941218A (en) * 2019-12-10 2020-03-31 北京振兴计量测试研究所 CAN bus controller test method
CN111737175A (en) * 2020-06-12 2020-10-02 明见(厦门)技术有限公司 High-speed SPI master-slave machine communication method, terminal equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
束庆冉等: "面向无线传感器节点的集成CAN总线芯片设计", 《传感技术学报》 *
石虎山等: "带有在片CAN的微控制器P80C592的通信研究", 《宝鸡文理学院学报(自然科学版)》 *
苏虎平等: "基于冗余CAN总线的实时通信系统设计", 《自动化与仪表》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113552859A (en) * 2021-07-27 2021-10-26 特灵空调系统(中国)有限公司 Communication control method, main controller, device, temperature controller and readable storage medium

Also Published As

Publication number Publication date
CN112769663B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
WO2021142609A1 (en) Information reporting method, apparatus and device, and storage medium
EP3573367B1 (en) Resource allocation for ran slicing
US10681711B2 (en) Method for data scheduling and power control and electronic device thereof
CN104935390A (en) Synchronized low-energy detection technique
CN112769663B (en) Communication method, communication apparatus, computer device, and storage medium
CN108513361A (en) channel access method, device and storage medium
CN107820322B (en) Network access method, terminal and device with storage function
US9526026B2 (en) Method for controlling information processing apparatus and information processing apparatus
CN112738913A (en) Ad hoc network system, communication method, device, computer equipment and storage medium
CN110392417A (en) Power consumption management method, terminal, computer equipment and storage medium
CN102195805B (en) Communication apparatus and communication method
US10321394B2 (en) Information processing apparatus, information processing method, and control program for adjusting a switching interval that changes the activation state of base band units
KR102112627B1 (en) Apparatus and Method for Displaying Indicator According to Interwork Network
CN115878991A (en) Trust model training method and device
CN116415476A (en) Model construction method and device and communication equipment
CN114327671A (en) Parameter configuration method, device, equipment and storage medium
CN113556200A (en) Clock calibration method, and network security protection method and device based on clock synchronization
CN108920122B (en) Screen display method, device, terminal and computer readable storage medium
CN112015458A (en) Device upgrading method, terminal device, electronic device and storage medium
CN113840313B (en) Network mode control method and device of mobile terminal and computer equipment
US20240040589A1 (en) Method, device and terminal for monitoring pdcch
EP3462766B1 (en) Determining a behaviour of a wireless device
US20240107457A1 (en) Method and apparatus for information reception, receiving device, storage medium and program product
CN116528296A (en) Resource allocation method, device, equipment and storage medium in Internet of things scene
CN112435015A (en) Asset auditing method and device, terminal equipment and storage medium

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