CN117439836A - Communication rate determining method, device, electronic equipment and storage medium - Google Patents

Communication rate determining method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117439836A
CN117439836A CN202311553933.9A CN202311553933A CN117439836A CN 117439836 A CN117439836 A CN 117439836A CN 202311553933 A CN202311553933 A CN 202311553933A CN 117439836 A CN117439836 A CN 117439836A
Authority
CN
China
Prior art keywords
signal
length
target
terminal
target length
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.)
Pending
Application number
CN202311553933.9A
Other languages
Chinese (zh)
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.)
Nanjing North Road Intelligent Control Technology Co ltd
Original Assignee
Nanjing North Road Intelligent Control Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing North Road Intelligent Control Technology Co ltd filed Critical Nanjing North Road Intelligent Control Technology Co ltd
Priority to CN202311553933.9A priority Critical patent/CN117439836A/en
Publication of CN117439836A publication Critical patent/CN117439836A/en
Pending legal-status Critical Current

Links

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
    • 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

Landscapes

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

Abstract

The invention discloses a communication rate determining method, a device, electronic equipment and a storage medium. The method comprises the following steps: determining a second target length signal having an opposite level to the first target length signal in the case where the signal width of the first target length signal is similar to a common divisor of the signal widths between the first end signal and the second end signal; determining a target signal length based on the signal width of the first target length signal and the signal width of the second target length signal, and searching for a third terminal signal and a fourth terminal signal in the directions of two ends of the first target length signal based on the target signal length; in the case where the signal between the third terminal signal and the fourth terminal signal satisfies the communication specification, a target communication rate is determined based on the length between the third terminal signal and the fourth terminal signal, and the number of bits between the fourth terminal signal and the fourth terminal signal. According to the technical scheme, the automatic determination of the communication rate is realized, so that the self-adaptive adjustment of the communication rate is completed.

Description

Communication rate determining method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for determining a communication rate, an electronic device, and a storage medium.
Background
In the fields of industrial control and mining industry, in order to ensure the communication quality, the communication rate of a CAN (Controller Area Network) bus under different use environments needs to be adaptively adjusted.
The current method for self-adapting rate adjustment mainly comprises a monitoring mode and a data sending mode, wherein the two rate self-adapting adjustment modes are limited to a plurality of preset communication rates and cannot adapt to the situation beyond the preset rates.
Disclosure of Invention
The invention provides a communication rate determining method, a device, electronic equipment and a storage medium, which are used for automatically determining a communication rate and completing self-adaptive adjustment of the communication rate.
According to an aspect of the present invention, there is provided a communication rate determining method including:
capturing a transmission signal with a preset time length, and cutting the transmission signal with the preset time length to obtain a transmission signal containing at least one complete data frame;
determining a first target length signal in the transmission signal containing at least one complete data frame, searching a first end signal and a second end signal in the directions of two ends of the first target length signal, and determining a common divisor of signal widths between the first end signal and the second end signal;
determining a second target length signal having an opposite level to the first target length signal in the case where the signal width of the first target length signal is similar to a common divisor of the signal widths between the first end signal and the second end signal;
determining a target signal length based on the signal width of the first target length signal and the signal width of the second target length signal, and searching a third terminal signal and a fourth terminal signal in the directions of two ends of the first target length signal based on the target signal length;
in the case where the signal between the third terminal signal and the fourth terminal signal satisfies a communication specification, a target communication rate is determined based on a length between the third terminal signal and the fourth terminal signal, and the number of bits between the fourth terminal signal and the fourth terminal signal.
According to another aspect of the present invention, there is provided a communication rate determining apparatus including:
the transmission signal clipping module is used for capturing a transmission signal with a preset time length, clipping the transmission signal with the preset time length and obtaining a transmission signal containing at least one complete data frame;
a signal width common divisor determining module, configured to determine a first target length signal in the transmission signal including at least one complete data frame, search a first end signal and a second end signal in two end directions of the first target length signal, and determine a common divisor of a signal width between the first end signal and the second end signal;
a second target length signal determining module, configured to determine a second target length signal opposite to the first target length signal level, in a case where a signal width of the first target length signal is similar to a common divisor of signal widths between the first end signal and the second end signal;
a transmission signal searching module, configured to determine a target signal length based on a signal width of the first target length signal and a signal width of the second target length signal, and search a third terminal signal and a fourth terminal signal in both end directions of the first target length signal based on the target signal length;
a target communication rate determining module, configured to determine a target communication rate based on a length between the third terminal signal and the fourth terminal signal, and a number of bits between the fourth terminal signal and the fourth terminal signal, in a case where a signal between the third terminal signal and the fourth terminal signal satisfies a communication specification.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the communication rate determination method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a communication rate determining method according to any one of the embodiments of the present invention when executed.
According to the technical scheme provided by the embodiment of the invention, the target signal length is calculated by utilizing the captured transmission signal, and the communication rate of the current bus transmission is determined according to the target signal length, so that the self-adaptive adjustment of the communication rate is completed, and compared with the scheme limited to a plurality of preset communication rates, the accuracy and reliability of the self-adaptive communication rate are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a communication network topology system according to an embodiment of the present invention;
fig. 2 is a flowchart of a communication rate determining method according to a first embodiment of the present invention;
fig. 3 is a flowchart of a communication rate determining method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a communication rate determining apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a communication rate determining method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The data acquisition, storage, use, processing and the like in the technical scheme meet the relevant regulations of national laws and regulations.
Before describing the specific embodiment, an application scenario of the communication rate determining method is described. Specifically, the communication rate determining method can be applied to a communication network topology system, and fig. 1 is a schematic structural diagram of the communication network topology system according to an embodiment of the present invention. As shown in fig. 1, the communication network topology system may include, but is not limited to, a master node 1, at least one slave node 2, a CAN bus 3 (not shown in fig. 1), a termination resistor 4, and the like. The CAN bus may include a high level signal line 31 and a low level signal line 32. The slave node 2 can adapt to the rate of the master node 1 by the communication rate method provided by the embodiment of the present invention.
Example 1
Fig. 2 is a flowchart of a communication rate determining method according to an embodiment of the present invention, where the method may be applied to the case of adaptive adjustment of a CAN communication rate, and the method may be performed by a communication rate determining device, which may be implemented in hardware and/or software, and the communication rate determining device may be configured in an electronic device such as a computer or a microcontroller. As shown in fig. 2, the method includes:
s110, capturing a transmission signal with a preset time length, and cutting the transmission signal with the preset time length to obtain a transmission signal containing at least one complete data frame.
In this embodiment, the transmission signal refers to data captured by a receiving pin (CANRX) of the microcontroller, for example, the transmission signal may be a transmission signal of 100ms captured by CANRX.
Illustratively, when the receive pin of the microcontroller is zero, starting timing to capture the 100ms transmission signal and retaining the high level signal prior to timing; and further, the transmission signal containing at least one complete data frame is screened out from the transmission signals of 100 ms.
Optionally, clipping the transmission signal with a preset time length to obtain a transmission signal containing at least one complete data frame, including: and determining a signal between two signals with the longest high level lengths in the transmission signals with the preset time length as a transmission signal containing at least one complete data frame, and deleting signals except the signals with the longest high level lengths.
In some embodiments, a packet containing bits may be designed in advance in the CAN ID or data, so that a transmission signal containing a complete data frame may be directly obtained.
S120, determining a first target length signal in the transmission signal containing at least one complete data frame, searching a first end signal and a second end signal in the directions of two ends of the first target length signal, and determining a common divisor of signal widths between the first end signal and the second end signal.
In this embodiment, the first target length signal refers to a signal with the shortest length in the transmission signal including at least one complete data frame. Optionally, determining a first target length signal in the transmission signal containing at least one complete data frame includes: and determining the signal with the shortest length in the transmission signals containing at least one complete data frame as a first target length signal.
The first end signal and the second end signal are respectively positioned at two sides of the first target length signal.
Optionally, searching for the first end signal and the second end signal in the directions of two ends of the first target length signal includes: and searching signals with signal length larger than the signal width preset times of the first target length signal in the directions of the two ends of the first target length signal to obtain a first end signal and a second end signal.
For example, a signal with a signal width of the first target length signal, which is greater than six times the signal length, may be searched for in the directions of both ends of the first target length signal, to obtain the first end signal and the second end signal.
S130, determining a second target length signal with opposite level to the first target length signal under the condition that the signal width of the first target length signal is similar to the common divisor of the signal width between the first end signal and the second end signal.
In this embodiment, the condition that the signal width of the first target length signal is judged to be similar may be that the difference between the common divisor of the signal widths between the first end signal and the second end signal is within a preset difference range, where the preset difference range may be 15% or other difference ranges, which is not limited herein. The second target length signal is a signal having a level opposite to that of the first target length signal and having the shortest length.
Under the condition that the signal width of the first target length signal is dissimilar to the common divisor of the signal width between the first end signal and the second end signal, the signal width of the first target length signal can be updated according to the common divisor of the signal width between the first end signal and the second end signal, and then according to the signal width of the updated first target length signal, in the two end directions of the first target length signal, the signal with the signal length larger than the preset multiple of the signal width of the updated first target length signal is searched, so that the updated first end signal and the updated second end signal are obtained, the common divisor of the signal width between the updated first end signal and the updated second end signal is further determined, and S130 is continuously executed or the signal width of the first target length signal is updated until the two signals are similar.
And S140, determining a target signal length based on the signal width of the first target length signal and the signal width of the second target length signal, and searching a third terminal signal and a fourth terminal signal in the directions of two ends of the first target length signal based on the target signal length.
The third terminal signal and the fourth terminal signal are respectively located at two sides of the first target length signal.
It should be noted that, calculating the target signal length through the signal widths of two signals with opposite levels can eliminate the signal deformation in the long-distance data transmission, so as to improve the accuracy of estimating the target signal length.
In this embodiment, the target signal length refers to the signal length of the transmission signal. Optionally, determining the target signal length based on the signal width of the first target length signal and the signal width of the second target length signal includes: determining a scaled signal width of the second target length signal based on the signal width of the first target length signal and the signal width of the second target length signal; a target signal length is determined based on a signal width of the first target length signal and a scaled signal width of the second target length signal.
Illustratively, the target signal length is calculated as follows:
Ts =(Ta+Tb )/2;
Ts=Ts
wherein Ts represents the target signal length, ta represents the signal width of the first target length signal, tb represents the signal width of the second target length signal, tb Representing the scaled signal width of the second target length signal.
And S150, determining a target communication rate based on the length between the third terminal signal and the fourth terminal signal and the number of bits between the fourth terminal signal and the fourth terminal signal when the signals between the third terminal signal and the fourth terminal signal meet the communication specification.
In this embodiment, the communication specification refers to a CAN communication specification, and may include, but is not limited to, padding rules, reserved bits, data length, CRC (Cyclic Redundancy Check) check, and the like. It should be noted that if the signal meets the communication specification, the signal analysis is successful, and if the signal does not meet the communication specification, the signal analysis is failed.
For example, if the signal between the third terminal signal and the fourth terminal signal meets the CAN communication specification, dividing the length between the third terminal signal and the fourth terminal signal by the number of bits between the third terminal signal and the fourth terminal signal to obtain the target communication rate. If the signal between the third terminal signal and the fourth terminal signal does not meet the CAN communication specification, the target signal length is updated, and the updated calculation formula is as follows:
Ts=Ts /A;
wherein A may be 2, 3, 4 or 5, and is not particularly limited herein. Further, searching for the third terminal signal and the fourth terminal signal in the directions of the two ends of the first target length signal according to the updated target signal length, and continuously executing S150 or updating the target signal length until the communication specification is met.
Optionally, the searching for the third terminal signal and the fourth terminal signal in the directions of two ends of the first target length signal based on the target length signal includes: and searching signals with signal length larger than the preset multiple of the target signal length in the directions of the two ends of the first target length signal to obtain a third terminal signal and a fourth terminal signal.
In an exemplary embodiment, in the directions of two ends of the first target length signal, a signal with a signal length greater than a preset multiple of the six times of the target signal length is searched to obtain a third terminal signal and a fourth terminal signal.
According to the technical scheme provided by the embodiment of the invention, the target signal length is calculated by utilizing the captured transmission signal, and the communication rate of the current bus transmission is determined according to the target signal length, so that the self-adaptive adjustment of the communication rate is completed, and compared with the scheme limited to a plurality of preset communication rates, the accuracy and reliability of the self-adaptive communication rate are improved.
Example two
Fig. 3 is a flowchart of a communication rate determining method according to a second embodiment of the present invention, where the method according to the present embodiment may be combined with each of the alternatives in the communication rate determining method according to the foregoing embodiment. The communication rate determining method provided in this embodiment is further optimized. Optionally, after the determining the target communication rate based on the length between the third terminal signal and the fourth terminal signal, and the number of bits between the fourth terminal signal and the fourth terminal signal, the method includes: and sending data to be transmitted to a CAN bus based on the target communication rate.
As shown in fig. 3, the method includes:
s210, capturing a transmission signal with a preset time length, and clipping the transmission signal with the preset time length to obtain a transmission signal containing at least one complete data frame.
S220, determining a first target length signal in the transmission signal containing at least one complete data frame, searching a first end signal and a second end signal in the directions of two ends of the first target length signal, and determining a common divisor of signal widths between the first end signal and the second end signal.
S230, determining a second target length signal with opposite level to the first target length signal under the condition that the signal width of the first target length signal is similar to the common divisor of the signal width between the first end signal and the second end signal.
S240, determining a target signal length based on the signal width of the first target length signal and the signal width of the second target length signal, and searching a third terminal signal and a fourth terminal signal in the two-end directions of the first target length signal based on the target signal length.
S250, determining a target communication rate based on a length between the third terminal signal and the fourth terminal signal, and a number of bits between the fourth terminal signal and the fourth terminal signal, in a case where a signal between the third terminal signal and the fourth terminal signal satisfies a communication specification.
And S260, sending data to be transmitted to a CAN bus based on the target communication rate.
According to the technical scheme provided by the embodiment of the invention, after the target communication rate is determined, the data to be transmitted is sent to the CAN bus according to the target communication rate, and the data transmission is performed at the communication rate after self-adaption adjustment, so that the stability and accuracy of the data transmission are improved.
Example III
Fig. 4 is a schematic structural diagram of a communication rate determining apparatus according to a third embodiment of the present invention. As shown in fig. 4, the apparatus includes:
a transmission signal clipping module 310, configured to capture a transmission signal with a preset time length, clip the transmission signal with the preset time length, and obtain a transmission signal containing at least one complete data frame;
a signal width common divisor determining module 320, configured to determine a first target length signal in the transmission signal including at least one complete data frame, search a first end signal and a second end signal in two end directions of the first target length signal, and determine a common divisor of a signal width between the first end signal and the second end signal;
a second target length signal determining module 330, configured to determine a second target length signal opposite to the first target length signal in a case where a signal width of the first target length signal is similar to a common divisor of signal widths between the first end signal and the second end signal;
a transmission signal searching module 340, configured to determine a target signal length based on a signal width of the first target length signal and a signal width of the second target length signal, and search a third terminal signal and a fourth terminal signal in both end directions of the first target length signal based on the target signal length;
a target communication rate determining module 350, configured to determine a target communication rate based on a length between the third terminal signal and the fourth terminal signal, and a number of bits between the fourth terminal signal and the fourth terminal signal, in a case where a signal between the third terminal signal and the fourth terminal signal satisfies a communication specification.
According to the technical scheme provided by the embodiment of the invention, the target signal length is calculated by utilizing the captured transmission signal, and the communication rate of the current bus transmission is determined according to the target signal length, so that the self-adaptive adjustment of the communication rate is completed, and compared with the scheme limited to a plurality of preset communication rates, the accuracy and reliability of the self-adaptive communication rate are improved.
In some alternative embodiments, the transmission signal clipping module 310 is further configured to:
and determining a signal between two signals with the longest high level length in the transmission signals with the preset time length as a transmission signal containing at least one complete data frame.
In some alternative embodiments, the signal width common divisor determination module 320 is further configured to:
and determining the signal with the shortest length in the transmission signals containing at least one complete data frame as a first target length signal.
In some alternative embodiments, the signal width common divisor determination module 320 is further configured to:
and searching signals with signal length larger than the signal width preset times of the first target length signal in the directions of the two ends of the first target length signal to obtain a first end signal and a second end signal.
In some alternative embodiments, the transmission signal search module 340 is further configured to:
determining a scaled signal width of the second target length signal based on the signal width of the first target length signal and the signal width of the second target length signal;
a target signal length is determined based on a signal width of the first target length signal and a scaled signal width of the second target length signal.
In some alternative embodiments, the transmission signal search module 340 is further configured to:
and searching signals with signal length larger than the preset multiple of the target signal length in the directions of the two ends of the first target length signal to obtain a third terminal signal and a fourth terminal signal.
In some alternative embodiments, the communication rate determining apparatus further includes:
and the data sending module is used for sending data to be transmitted to the CAN bus based on the target communication rate.
The communication rate determining device provided by the embodiment of the invention can execute the communication rate determining method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices (e.g., helmets, eyeglasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An I/O interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a communication rate determination method, which includes:
capturing a transmission signal with a preset time length, and cutting the transmission signal with the preset time length to obtain a transmission signal containing at least one complete data frame;
determining a first target length signal in the transmission signal containing at least one complete data frame, searching a first end signal and a second end signal in the directions of two ends of the first target length signal, and determining a common divisor of signal widths between the first end signal and the second end signal;
determining a second target length signal having an opposite level to the first target length signal in the case where the signal width of the first target length signal is similar to a common divisor of the signal widths between the first end signal and the second end signal;
determining a target signal length based on the signal width of the first target length signal and the signal width of the second target length signal, and searching a third terminal signal and a fourth terminal signal in the directions of two ends of the first target length signal based on the target signal length;
in the case where the signal between the third terminal signal and the fourth terminal signal satisfies a communication specification, a target communication rate is determined based on a length between the third terminal signal and the fourth terminal signal, and the number of bits between the fourth terminal signal and the fourth terminal signal.
In some embodiments, the communication rate determination method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the communication rate determination method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the communication rate determination method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system-on-chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A communication rate determining method, comprising:
capturing a transmission signal with a preset time length, and cutting the transmission signal with the preset time length to obtain a transmission signal containing at least one complete data frame;
determining a first target length signal in the transmission signal containing at least one complete data frame, searching a first end signal and a second end signal in the directions of two ends of the first target length signal, and determining a common divisor of signal widths between the first end signal and the second end signal;
determining a second target length signal having an opposite level to the first target length signal in the case where the signal width of the first target length signal is similar to a common divisor of the signal widths between the first end signal and the second end signal;
determining a target signal length based on the signal width of the first target length signal and the signal width of the second target length signal, and searching a third terminal signal and a fourth terminal signal in the directions of two ends of the first target length signal based on the target signal length;
in the case where the signal between the third terminal signal and the fourth terminal signal satisfies a communication specification, a target communication rate is determined based on a length between the third terminal signal and the fourth terminal signal, and the number of bits between the fourth terminal signal and the fourth terminal signal.
2. The method of claim 1, wherein the clipping the transmission signal for the predetermined time period to obtain a transmission signal comprising at least one complete data frame comprises:
and determining a signal between two signals with the longest high level length in the transmission signals with the preset time length as a transmission signal containing at least one complete data frame.
3. The method of claim 1, wherein said determining a first target length signal of said transmission signal comprising at least one complete data frame comprises:
and determining the signal with the shortest length in the transmission signals containing at least one complete data frame as a first target length signal.
4. The method of claim 1, wherein looking up the first end signal and the second end signal in both end directions of the first target length signal comprises:
and searching signals with signal length larger than the signal width preset times of the first target length signal in the directions of the two ends of the first target length signal to obtain a first end signal and a second end signal.
5. The method of claim 1, wherein the determining a target signal length based on the signal width of the first target length signal and the signal width of the second target length signal comprises:
determining a scaled signal width of the second target length signal based on the signal width of the first target length signal and the signal width of the second target length signal;
a target signal length is determined based on a signal width of the first target length signal and a scaled signal width of the second target length signal.
6. The method of claim 1, wherein the looking up third and fourth end signals in both end directions of the first target length signal based on the target signal length comprises:
and searching signals with signal length larger than the preset multiple of the target signal length in the directions of the two ends of the first target length signal to obtain a third terminal signal and a fourth terminal signal.
7. The method according to any one of claims 1-6, comprising, after said determining a target communication rate based on a length between said third terminal signal and said fourth terminal signal, a number of bits between said fourth terminal signal and said fourth terminal signal:
and sending data to be transmitted to a CAN bus based on the target communication rate.
8. A communication rate determining apparatus, comprising:
the transmission signal clipping module is used for capturing a transmission signal with a preset time length, clipping the transmission signal with the preset time length and obtaining a transmission signal containing at least one complete data frame;
a signal width common divisor determining module, configured to determine a first target length signal in the transmission signal including at least one complete data frame, search a first end signal and a second end signal in two end directions of the first target length signal, and determine a common divisor of a signal width between the first end signal and the second end signal;
a second target length signal determining module, configured to determine a second target length signal opposite to the first target length signal level, in a case where a signal width of the first target length signal is similar to a common divisor of signal widths between the first end signal and the second end signal;
a transmission signal searching module, configured to determine a target signal length based on a signal width of the first target length signal and a signal width of the second target length signal, and search a third terminal signal and a fourth terminal signal in both end directions of the first target length signal based on the target signal length;
a target communication rate determining module, configured to determine a target communication rate based on a length between the third terminal signal and the fourth terminal signal, and a number of bits between the fourth terminal signal and the fourth terminal signal, in a case where a signal between the third terminal signal and the fourth terminal signal satisfies a communication specification.
9. An electronic device, the electronic device comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the communication rate determination method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the communication rate determination method of any one of claims 1-7.
CN202311553933.9A 2023-11-21 2023-11-21 Communication rate determining method, device, electronic equipment and storage medium Pending CN117439836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311553933.9A CN117439836A (en) 2023-11-21 2023-11-21 Communication rate determining method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311553933.9A CN117439836A (en) 2023-11-21 2023-11-21 Communication rate determining method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117439836A true CN117439836A (en) 2024-01-23

Family

ID=89553410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311553933.9A Pending CN117439836A (en) 2023-11-21 2023-11-21 Communication rate determining method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117439836A (en)

Similar Documents

Publication Publication Date Title
CN117632431A (en) Scheduling method, device, equipment and storage medium for cloud computing task
CN116796085A (en) File processing method and device, electronic equipment and storage medium
CN116594563A (en) Distributed storage capacity expansion method and device, electronic equipment and storage medium
CN114564149B (en) Data storage method, device, equipment and storage medium
CN117439836A (en) Communication rate determining method, device, electronic equipment and storage medium
CN116528177A (en) Short message sending method and device, electronic equipment and storage medium
CN112887426B (en) Information stream pushing method and device, electronic equipment and storage medium
CN115408858A (en) Pulse spectrum parameter partitioning method and device, electronic equipment and storage medium
CN114363209B (en) Performance detection method, device, equipment and storage medium based on TCP (Transmission control protocol) network
CN118118386A (en) Link delay detection method, device, equipment and storage medium
CN115333715B (en) Synchronization method, device, communication equipment and medium of narrowband communication system
CN115293096B (en) Line generation method, device, electronic equipment and storage medium
CN113470380B (en) Data processing method and device, electronic equipment and readable storage medium
CN116107763B (en) Data transmission method, device, equipment and storage medium
CN114610511B (en) Input verification method and device, electronic equipment and storage medium
CN116703963A (en) AR tracking method and device, AR equipment and storage medium
CN117609237A (en) Data table field attribute determining method, device, equipment and storage medium
CN117715187A (en) Resource selection method, device, equipment and storage medium
CN118337341A (en) Equipment communication method and device, electronic equipment and storage medium
CN117118848A (en) Bus network topology generation method and device, electronic equipment and storage medium
CN117670137A (en) Assessment result distribution condition determining method and device, electronic equipment and medium
CN118296594A (en) Risk monitoring method and device, electronic equipment and storage medium
CN118313102A (en) Method, device, equipment and medium for predicting ultimate recoverable reserves of shale gas reservoirs
CN118300745A (en) Message adjustment method, device, equipment and storage medium
CN115225556A (en) Detection method, device, 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