WO2017219922A1 - 一种can总线采样点位置的测试方法及装置 - Google Patents

一种can总线采样点位置的测试方法及装置 Download PDF

Info

Publication number
WO2017219922A1
WO2017219922A1 PCT/CN2017/088677 CN2017088677W WO2017219922A1 WO 2017219922 A1 WO2017219922 A1 WO 2017219922A1 CN 2017088677 W CN2017088677 W CN 2017088677W WO 2017219922 A1 WO2017219922 A1 WO 2017219922A1
Authority
WO
WIPO (PCT)
Prior art keywords
interference
measured node
frame
interference information
stepping
Prior art date
Application number
PCT/CN2017/088677
Other languages
English (en)
French (fr)
Inventor
周立功
Original Assignee
广州致远电子有限公司
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 广州致远电子有限公司 filed Critical 广州致远电子有限公司
Publication of WO2017219922A1 publication Critical patent/WO2017219922A1/zh

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • 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

Definitions

  • CAN is an ISO international standard serial communication protocol, widely used in automobiles, ships, etc.
  • CAN is a bus-type communication network in physical structure, and the reasonable setting of CAN bus parameters is the key to directly lead to CAN network communication.
  • the sampling point position of the CAN node is an important parameter of the CAN bus application; when multiple CAN nodes are networked, due to the sampling point position of each node Unreasonable settings can cause errors in CAN bus communication and even interrupt communication.
  • the present invention provides a method and a device for testing the sampling position of a CAN bus, thereby being able to accurately find the position of the sampling point, and providing a judgment basis for confirming whether the setting of the sampling point position is reasonable, and ensuring the communication quality.
  • the present invention provides the following technical solutions:
  • a test method for sampling position of a CAN bus comprising:
  • the interference position is that the interference information is sent to a position of a bit width of the measured node
  • the interference width is the interference Information is sent to the width of the bit occupied by the measured node
  • the other position point is recorded as the end point of the sampling point position.
  • the method before the generating the interference information according to the currently set interference position and the interference width, the method further includes:
  • the frame ID of the standard remote frame of the currently set frame ID is incremented by 1, and the frame ID after the addition of 1 is used as the currently set frame ID. Returning to execute the standard remote frame sending the currently set frame ID to the measured node until receiving the The measured node sends a response signal.
  • the method further includes:
  • the method further includes:
  • the interference position is stepped by one step interval in the measured node, and the stepped interference position and the interference width are taken as The currently set interference position and interference width;
  • the measured node when the measured node receives a standard remote frame carrying a specific frame ID of the interference information at a location point, receiving an active error response signal sent by the measured node, recording the location Point, after the starting point of the sampling point position, also includes:
  • the method further includes:
  • the test is terminated when the response signal from the measured node is not received.
  • the measured node when the measured node receives a standard remote frame carrying a specific frame ID of the stepping interference information at the next location point, receiving an active error response signal sent by the tested node And returning to perform the step of stepping the interference position in the measured node by a step interval, and setting the interference position and the interference width in the interference information, and obtaining the step interference information, further comprising:
  • the method further includes:
  • the test is terminated when the response signal from the measured node is not received.
  • the method further includes:
  • a range value of the sampling point position is displayed, the range value including the starting point and the ending point of the sampling point position.
  • a test device for sampling position of a CAN bus comprising:
  • a generating module configured to generate interference information according to the currently set interference position and the interference width, where the interference position is that the interference information is sent to a position of a bit width of the measured node, the interference a width is a width width of the bit occupied by the interference information being sent to the measured node;
  • a first sending module configured to send a standard remote frame carrying a specific frame ID of the interference information to the measured node
  • a first receiving module configured to receive, when the measured node receives a standard remote frame of a specific frame ID of the interference information at a location, receiving an active error response signal sent by the measured node;
  • a first recording module configured to record a position point of the detected node to issue an active error response signal as a starting point of the sampling point position, wherein the position point is to move the interference in the measured node The position at which the current bit width is located after the position;
  • a first stepping module configured to step the interference position in the measured node by a step interval, and set an interference position and an interference width in the interference information to obtain step interference information.
  • the stepping interference information includes the interference position after the stepping and the interference width;
  • a second sending module configured to send the specific frame ID that carries the stepping interference information Standard remote frame to the next position in the measured node
  • a second receiving module configured to receive, when the measured node receives a standard remote frame of a specific frame ID of the stepping interference information at the next location point, receive the active sent by the measured node Error response signal
  • the first stepping module is configured to: when the second receiving module receives, at the measured node, a standard remote frame that carries the specific frame ID of the stepping interference information at the next location point, After receiving the active error response signal sent by the measured node, the interference position is stepped by one step interval in the measured node, and the interference position and the interference width in the interference information are set, Obtaining stepping interference information;
  • a third receiving module configured to receive a normal response signal sent by the measured node, and end the test, wherein the normal response signal sent is that the detected node receives the An acknowledgment signal sent by a standard remote frame of a specific frame ID of the interference information;
  • the second recording module is configured to record a position point for causing the measured node to send a normal response signal as an ending point of the sampling point position.
  • the first sending module sends a standard remote frame carrying a specific frame ID of the interference information to the measured node
  • the first receiving module receives the measured node at the measured node.
  • the apparatus further includes:
  • a fourth receiving module configured to receive a normal response signal from the measured node
  • a second stepping module configured to step the interference position in the measured node by a step interval, and use the stepped interference position and the interference width as the currently set interference position and interference width;
  • the generating module is configured to step the interference position in the measured node by a step interval in the second stepping module, and use the stepped interference position and the interference width as current After the set interference position and interference width, the interference information is generated according to the currently set interference position and interference width.
  • the first stepping module makes the The device further includes: stepping a step interval in the measured node, and setting an interference position and an interference width in the interference information, and obtaining the step interference information, the device further includes:
  • a third sending module configured to send, to the measured node, a standard remote frame of the specific frame ID that carries m frames without interference information, where m is a positive integer;
  • the fifth receiving module is configured to receive a normal response signal sent by the measured node.
  • the second receiving module receives the standard remote frame carrying the specific frame ID of the stepping interference information at the next location point at the measured node
  • the first stepping module receives, at the measured node, the specific frame ID of the stepped interference information at the next location point.
  • the interference position is stepped by one step interval in the measured node, and the interference in the interference information is set.
  • the device further includes:
  • a fourth sending module configured to send, to the measured node, a standard remote frame of the specific frame ID that carries m frames without interference information
  • the sixth receiving module is configured to receive a normal response signal sent by the tested node.
  • the invention provides a method and a device for testing the position of a sampling point of a CAN bus, and the detected position is determined by the interference position and the interference width in the interference information carried by the standard remote frame currently setting a specific frame ID.
  • the point transmits a standard remote frame carrying a specific frame ID with interference information, and receives an active error response signal sent by the measured node due to receiving a standard remote frame carrying a specific frame ID of the interference information at a location point.
  • FIG. 1 is a flowchart of a method for testing a sampling position of a CAN bus according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for determining a standard remote frame of a specific frame ID according to an embodiment of the present invention
  • FIG. 3 is a flowchart of still another method for testing a sampling position of a CAN bus according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a device for testing a sampling position of a CAN bus according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of another apparatus for testing a sampling position of a CAN bus according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for testing a sampling position of a CAN bus. Referring to FIG. 1, the method specifically includes the following steps:
  • S101 Generate interference information according to the currently set interference position and the interference width, where the interference position is that the interference information is sent to a position of a bit width of the measured node, where the interference width is The interference information is sent to the bit width width occupied by the measured node.
  • S102 Send a standard remote frame carrying a specific frame ID of the interference information to the measured node;
  • the standard remote frame of the specific frame ID when the standard remote frame of the specific frame ID carries the interference information and is sent to the measured node, the standard remote frame of the specific frame ID can be included according to the interference information.
  • the interference position is directly sent to a specific position point of the measured node width, and at the same time, according to the interference width, occupying a short range after a certain position point of the measured node width
  • the bit width, wherein the initial state in which the measured node is located is an erroneous active state.
  • S103 When receiving, by the measured node, a standard remote frame carrying a specific frame ID of the interference information at a location, receiving an active error response signal sent by the measured node, and recording the location point a starting point of the sampling point position, wherein the position point is a position point where a current bit width is located after moving the interference position in the measured node;
  • the interference information carried by the standard remote frame of the specific frame ID sent to the measured node is only a bit within the range of the sampling point that is sent to the detected node.
  • the measured node sends an active error response signal, and when it is sent to other measured bit widths within the range of the sampling point that are not within the range of the sampling point, the measured node A normal acknowledgment signal is issued, and therefore, when the first time the active error acknowledgment signal is received, the received node is received a standard remote frame that receives the specific frame ID of the interference information at a location, Recording the position point as the starting point of the sampling point position;
  • the position of the position point as the starting point of the sampling point position in the measured node is determined according to the setting of the interference position, as the currently set interference position is At 5% of the measured node width, the location point is 5% of the measured node.
  • S104 Step the interference position in the measured node by a step interval, and set the interference position and the interference width in the interference information to obtain step interference information, where the step interference information includes The interference position after the stepping and the interference width;
  • the actual operation is to step the previously set the interference position by one step interval, thereby obtaining a new interference position, and setting the stepped interference position to the previous one.
  • the interference width is used as step interference information to continue to accurately determine the range of the sampling point position; wherein 1% of the measured node bit width can be taken as one of the step intervals, and according to the previous Determining a starting interference position to determine a direction in which the step interval moves in the measured node, and if the initial interference position is set at a leading end of the measured node width, Each of the measured nodes moves backward by one of the step intervals, and if the initial interference position is set at an end of the measured node width, each of the measured nodes One step interval is moved forward one by one.
  • S105 Send a standard remote frame carrying the specific frame ID of the stepped interference information to a next location point in the measured node;
  • the standard remote frame of the specific frame ID is sent to the next position point in the measured node according to the stepped interference position included in the stepped interference information, thereby confirming the next Whether a position point still falls within the range of the sampling point position.
  • the active error response sent by the tested node is received.
  • Signal prove that the next position point is still within the range of the sampling point position, and it is necessary to return to perform stepping the interference position in the measured node by one step interval, and setting the The interference position and the interference width in the interference information are obtained, and the step of stepping the interference information is obtained until the measured node is moved a plurality of times in the bit width of the measured node according to the interference position after the multiple stepping
  • Receiving a normal remote frame carrying a specific frame ID of the stepping interference information at a certain location and issuing a normal response signal it is proved that the location point does not belong to the sampling point location range, thereby ending the test;
  • S108 Record a position point that causes the measured node to send a normal response signal as an end point of the sampling point position.
  • the method for testing a sampling position of a CAN bus disclosed in the embodiment of the present invention generates interference information according to a currently set interference position and interference width, and carries the interference information on a standard remote frame of the specific frame ID, and Sending to the measured node, and receiving the active error response signal sent by the measured node when receiving a standard remote frame carrying a specific frame ID of the interference information at a location point, recording the location Pointing as a starting point of the sampling position, and then stepping the interference position to obtain stepping interference information, and causing the standard remote frame of the specific frame ID to carry the stepping interference information, and sending the stepping interference information again to the measured node a next position point in the point, if the measured node sends an active error response signal due to receiving a standard remote frame carrying the specific frame ID of the stepping interference information at the next location point, returning to execution Stepping the interference position, obtaining the step of stepping the interference information until receiving the standard remote location of the measured node due to receiving the specific frame ID of the stepping interference information at
  • the method further includes:
  • S201 Send a standard remote frame of the currently set frame ID to the measured node, where an initial value of the currently set frame ID is 0, and is less than or equal to a first threshold;
  • the measured node since the measured node does not respond to the frame ID of all standard remote frames, before the sampling point position test is performed, the measured node needs to be determined to the target.
  • the frame ID of the response is generated in the frame ID of a total of 2048 frames in the quasi-remote frame. Therefore, the frame ID of the standard remote frame currently being verified is set and sent to the node under test for subsequent testing.
  • S202 Determine whether the detected node sends a response signal, if the response signal is sent, execute S203a, and if the response signal is not sent, execute S203b.
  • S203a setting a standard remote frame of the currently set frame ID as a standard remote frame of the specific frame ID, and performing a step of generating interference information according to the currently set interference position and interference width;
  • the measured node can normally respond to the standard remote frame of the currently set frame ID, using the frame ID as a frame ID for testing the measured node, and entering the position of the sampling point Test session.
  • S203b The frame ID of the standard remote frame of the currently set frame ID is incremented by 1, and S204 is performed;
  • the frame ID needs to be added with one, for example, a standard remote frame with a frame ID of 0 is sent. After the node cannot be answered, the frame ID in the standard remote frame is replaced by 0 and the frame ID is 1.
  • the frame ID of the standard remote frame is only 0-2047, after each operation of adding the frame ID to the frame ID, it is necessary to verify whether the currently set frame ID to be transmitted has exceeded the above. If all the frame IDs included in the standard remote frame are less than or equal to the frame ID 2047 when the data is added again, the newly obtained frame ID needs to be sent again to the measured frame ID as the currently set frame ID. The node thus loops the steps after the execution until the detected node sends a response signal, or the value of the frame ID obtained after adding 1 exceeds the frame ID 2047.
  • the test method for the sampling position of the CAN bus disclosed in the embodiment of the present invention is adopted in the formal Before performing the test of the sampling point position, verifying whether a normal response between the frame ID of the standard remote frame and the measured node is issued, and by using a frame that cannot respond to the measured node
  • the ID performs one processing each time to sequentially determine all the frame IDs included in the standard remote frame, thereby obtaining a standard remote frame of a frame ID capable of causing the measured node to normally respond, and using the frame as the specific frame.
  • the standard remote frame of the ID provides a precondition for the subsequent successful completion of the test of the sampling point position.
  • the embodiment of the present invention provides a test method for the location of the sampling point of the CAN bus. Referring to FIG. 3, the method specifically includes the following steps:
  • S301 Generate interference information according to the currently set interference position and interference width.
  • S302 Send a standard remote frame carrying a specific frame ID of the interference information to the measured node.
  • S304a The interference position is stepped by one step interval in the measured node, and the stepped interference position and the interference width are taken as the currently set interference position and interference width, and the process returns to S301;
  • S304b Record the position point that causes the measured node to issue an active error response signal as a starting point of the sampling point position, and execute S305.
  • S305 Send, to the measured node, an m frame that carries the specific frame ID of the interference-free information.
  • Standard remote frame, m is a positive integer, after which S306 is executed;
  • the measured node may enter an erroneous passive state and no longer generate an active error. Or enter the bus off state, therefore, it is necessary to send a standard remote frame carrying the specific frame ID of the m frame non-interference information to the measured node for verification.
  • S306 determining whether the detected node sends a response signal, if a normal response signal is sent, then executing S307a, if no response signal is sent, then executing S307b;
  • the measured node does not send a response signal after receiving, it is proved that the measured node enters a bus off state; if the measured node is currently in an error passive state, then by sending an m frame Carrying a standard remote frame of the specific frame ID carrying the interference-free information to the measured node, so that the error counter in the measured node can be reduced to a certain threshold, and finally converted from an erroneous passive state to an erroneous active state.
  • the m can take a value of 10.
  • the measured node can send a normal response signal for subsequent testing; meanwhile, when the measured node is still in the wrong active state, Then, after transmitting the standard remote frame of the specific frame ID in which the m frame carries the interference-free information, the measured node can still send a normal response signal, and subsequent testing can also be performed.
  • S307a Step the interference position in the measured node by a step interval, and set the interference position and the interference width in the interference information to obtain step interference information, where the step interference information includes The stepped interference position and the interference width are performed, and then S308 is performed.
  • S308 Send a standard remote frame carrying the specific frame ID of the stepping interference information to a next location point in the measured node, and execute S309.
  • S309 Receive, when the measured node receives a standard remote frame of the specific frame ID of the stepping interference information at the next location point, receive a response signal sent by the measured node, if active The error response signal returns to execution S305, and if it is a normal response signal, executes S3010;
  • the next node when receiving the active error response signal by receiving the standard remote frame of the specific frame ID that carries the step interference information at the next location point, the next node is proved to be the next one.
  • the position point is still within the range of the sampling point position, and needs to be returned to verify the measured knot a point state, stepping the interference position, and transmitting to a certain location point of the measured node, if the received node is received at the next location
  • a normal response signal of a specific frame ID of the interference information is output and a normal response signal is issued, it is proved that the next position point is the end point of the sampling point position range.
  • S3011 Record a position point at which the detected node sends a normal response signal as an end point of the sampling point position, and execute S3012.
  • S3012 Display a range value of the sampling point position, where the range value includes the starting point and the ending point of the sampling point position.
  • the method for testing a sampling position of a CAN bus disclosed in the embodiment of the present invention, by transmitting a standard remote frame carrying a specific frame ID of the interference information to the detected node, and sending the node to be tested without receiving the measured node
  • the interference position in the interference information is stepped, the interference information is set according to the interference position after the current step, and is sent to the measured node and the like until the measured
  • the node sends an active error response signal by receiving a standard remote frame carrying a specific frame ID of the interference information at a location point, and then transmitting the m frame carrying the specific frame without interference information to the measured node.
  • the standard remote frame of the ID ensures that the measured node is still in the wrong active state, then steps the interference position, obtains step interference information, and sends the next position to the measured node.
  • the standard remote frame of the specific frame ID of the interference-free information is sent to the measured node, and after receiving the normal response, the interference position is stepped to obtain stepping interference information, and sent to the Measuring other point of the node until the test node receives a normal response frame that receives a specific frame ID of the stepped interference information at another location point and sends a normal response signal, ending the test And recording the other position point as an end point of the sampling point position, and displaying a range value of the sampling point position, so that the measured node can always be accurately in the wrong active state
  • the range value of the sampling point position is displayed to
  • An embodiment of the present invention provides a test device for a sampling position of a CAN bus.
  • the device includes:
  • the generating module 401 is configured to generate interference information according to the currently set interference position and the interference width, where the interference position is that the interference information is sent to a position of a bit width of the measured node,
  • the interference width is a width width of the bit occupied by the interference information being sent to the measured node;
  • the first sending module 402 is configured to send a standard remote frame carrying a specific frame ID of the interference information to the measured node;
  • the first receiving module 403 is configured to receive an active error response signal sent by the tested node when the measured node receives a standard remote frame carrying a specific frame ID of the interference information at a location point;
  • the measured node when the interference information carried by the standard remote frame of the specific frame ID is sent to the measured node in a range of bit widths within the range of the sampling point, the measured node sends an active initiative.
  • An error response signal when the first receiving module 403 receives an active error response signal sent by the measured node due to receiving a standard remote frame carrying a specific frame ID of the interference information at a location point It is proved that the position point is within the range of the sampling point position.
  • a first recording module 404 configured to record a position point of the detected node to issue an active error response signal as a starting point of the sampling point position, wherein the position point is to move the measured node in the measured node The position point at which the current bit width is located after the interference position;
  • a first stepping module 405 configured to step the interference position in the measured node by a step interval, and set an interference position and an interference width in the interference information to obtain step interference information
  • the step interference information includes the interference position after the stepping and the interference width
  • the first stepping module 405 needs to step through a step interval and obtain the location.
  • the stepping interference information is sent to the measured interference point after the transmitted node to obtain a more accurate sampling point position range.
  • a second sending module 406 configured to send the specific frame that carries the stepped interference information a standard remote frame of the ID to a next position in the measured node;
  • a second receiving module 407 configured to receive, when the measured node receives a standard remote frame that carries the specific frame ID of the stepping interference information at the next location point, receive the sent by the measured node Active error response signal;
  • the first stepping module 405 is configured to receive, at the second node, the second remote receiving module 407, a standard remote frame that carries the specific frame ID of the stepping interference information at the next location point. Receiving the active error response signal sent by the measured node, stepping the interference position in the measured node by a step interval, and setting the interference position and interference in the interference information. Width, get step interference information;
  • the second receiving module 407 receives an active error response signal sent by the measured node to receive a standard remote frame carrying a specific frame ID of the stepping interference information at the next location point.
  • the next position point is still in the range of the sampling point position, and the first stepping module 405 needs to be stepped again by one step interval to obtain new stepping interference information
  • the second sending module 406 sends its other location points to the measured node until a plurality of movements are made in the measured node width, and the measured node is received at a certain point.
  • a standard remote frame carrying a specific frame ID of the stepping interference information is sent until a normal response is issued.
  • the third receiving module 408 is configured to receive a normal response signal sent by the tested node, and end the test, where the normal response signal sent is that the detected node receives the location at another location. a response signal sent by a standard remote frame of a specific frame ID of the stepping interference information;
  • the third receiving module 408 receives the normal response signal that is sent by the measured node to receive the standard remote frame of the specific frame ID of the stepping interference information at another location point, the proof is obtained.
  • the position point has not belonged to the sampling point position range, and the test is ended.
  • the second recording module 409 is configured to record a position point at which the measured node sends a normal response signal as an end point of the sampling point position.
  • the standard of the specific frame ID carrying the interference information generated by the generating module by the first sending module 402 Transmitting a remote frame to the measured node
  • the first recording module 404 records that the first receiving module 403 receives a position point that causes the measured node to send an active error response signal, as a sampling point position.
  • the first stepping module 405 steps by one step interval and obtains stepping interference information
  • the second sending module 406 will carry the standard of the specific frame ID of the stepping interference information.
  • the second receiving module 407 Transmitting a remote frame to a next one of the measured nodes, the second receiving module 407 receiving the stepping interference information at the next location point after receiving the measured node
  • the first stepping module 405 again steps the interference position by one step interval to obtain stepping interference information
  • the second The sending module 406 sends it to another location point in the measured node until the third receiving module 408 receives the measured node and carries the stepping interference at another location point.
  • the second recording module 409 records the position of the signal that causes the measured node to send a normal response signal, as the end point of the sampling point position, and then at the measured node The position of the test point is moved multiple times in the point width to accurately obtain the sampling point position of the measured node, which provides a judgment basis for confirming whether the setting of the sampling point position is reasonable, and ensures the communication quality.
  • the embodiment of the present invention provides another test device for sampling position of a CAN bus.
  • the device includes:
  • the fourth receiving module 501 is configured to receive a normal response signal sent by the tested node.
  • the first sending module 402 sends the standard remote frame carrying the specific frame ID of the interference information to the measured node
  • the first receiving module 403 receives the measured node A standard remote frame that receives a specific frame ID carrying the interference information at a location point
  • the fourth receiving module 501 receives the normal response signal sent by the tested node.
  • the second stepping module 502 is configured to step the interference position in the measured node by one step interval, and use the stepped interference position and the interference width as the currently set interference. Position and interference width;
  • the fourth receiving module 501 receives the normal response signal sent by the measured node, it is proved that the detected location point still does not belong to the sampling point location range, and therefore the second The stepping module 502 steps one of the step intervals to obtain new interference information for testing again.
  • the generating module is configured to step the interference position in the measured node by a step interval in the second stepping module, and use the stepped interference position and the interference width as current After the set interference position and the interference width, the interference information is generated according to the currently set interference position and the interference width;
  • the second stepping module 502 is stepped by one step interval to obtain a new interference position and the interference width, as the currently set interference position and interference width, and then the generating module is again enabled.
  • the interference information is generated until the first receiving module 403 receives the active error response signal sent by the measured node due to receiving a standard remote frame carrying a specific frame ID of the interference information at a location.
  • the third sending module 503 is configured to send, to the measured node, a standard remote frame of the specific frame ID that carries m frames without interference information, where m is a positive integer;
  • the first recording module 404 records a location point at which the measured node sends an active error response signal, as the starting point of the sampling point location
  • the first stepping module 405 makes the interference location Stepping a step interval in the measured node, and setting an interference position and an interference width in the interference information, before the stepping interference information is obtained
  • the third sending module 503 is to the measured node
  • the point transmits an m-frame carrying a standard remote frame of the specific frame ID without interference information, so that the measured node is always kept in an erroneous active state.
  • the fifth receiving module 504 is configured to receive a normal response signal sent by the tested node
  • the third sending module 503 sends the standard remote frame of the specific frame ID that carries the interference-free information in the m frame
  • the state of the measured node is converted into an erroneous active state
  • the fifth receiving module 504 receives a normal response signal, and if the current state of the measured node is in an erroneous active state,
  • the fifth receiving module 504 can be enabled to receive a normal response signal.
  • the fourth sending module is configured to send, to the tested node, a standard remote frame of the specific frame ID that carries m frames without interference information;
  • the second receiving module 407 receives an active error response signal sent by the measured node to receive a standard remote frame carrying a specific frame ID of the stepping interference information at the next location point.
  • the first stepping module 405 receives, at the second receiving module 407, the standard remote location that the measured node receives the specific frame ID of the stepping interference information at the next location point.
  • the interference position is stepped by one step interval in the measured node, and the interference position and the interference width in the interference information are set to obtain step interference information.
  • the fourth sending module sends, to the measured node, an m-frame of a standard remote frame carrying the specific frame ID of the non-interference information, so that the measured node is after multiple interference information. The status changes, so that it cannot remain in the wrong active state all the time.
  • the sixth receiving module is configured to receive a normal response signal sent by the tested node
  • the fourth sending module sends, to the measured node, an m-frame of a standard remote frame carrying the specific frame ID of the non-interference information, and the sixth receiving module receives the measured node.
  • the normal response signal is issued, it is proved that the measured node is still in the wrong active state, and the subsequent test can be continued.
  • the test device for sampling the position of the CAN bus disclosed in the embodiment of the present invention, by using the fourth receiving module 501 and the second stepping module 502 to always send a normal response signal at the measured node, multiple times in the office
  • the measured node is moved in the width of the measured node until the detected node sends an active error response signal, and the third transmitting module 503 and the fifth receiving module 504 are used to ensure that the current state of the measured node is always in error.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提供一种CAN总线采样点位置的测试方法及装置,通过向被测结点发送携带有干扰信息的特定帧ID的标准远程帧,将收到所述干扰信息而使所述被测结点发出主动错误应答信号的一个位置点作为采样位置的起始点,并记录,之后,依据步进后的干扰位置,获得步进干扰信息,并发送给所述被测结点,在接收到所述被测结点因收到在下一位置点携带所述步进干扰信息的标准远程帧而发出主动错误应答信号时,返回执行步进所述干扰位置,获得步进干扰信息,直到接收到所述被测结点发出正常的应答信号,记录该点作为采样点位置的结束点,进而经过多次移动测试点位置获得精确的采样点位置,为后续判断采样点位置是否设置合理提供依据,保证了通信质量。

Description

一种CAN总线采样点位置的测试方法及装置 技术领域
本申请要求于2016年6月22日提交中国专利局、申请号为201610472171.3、发明名称为“一种CAN总线采样点位置的测试方法及装置”的国内申请的优先权,其全部内容通过引用结合在本申请中。
背景技术
CAN是ISO国际标准化的串行通信协议,广泛应用于汽车、船舶等,CAN在物理结构上属于总线式通信网络,而CAN总线参数的合理设置,是直接导致CAN网络能否成功通信的关键,尤其是在总线信号质量较差的情况下;其中,CAN结点的采样点位置则是CAN总线应用的一个重要参数;当多个CAN结点进行组网时,由于各个结点的采样点位置设置不合理,会导致CAN总线通信出现错误,甚至中断通信。
目前,CAN总线测量仪器多数针对CAN总线的高层协议进行测量,对其物理层的测量则只是简单的波形和眼图的测量,并没有专门针对CAN结点的采样点位置的测试,进而难以找到其采样点的准确位置,也无法进一步判断该采样点位置的设置是否合理,最终无法保证CAN网络的通信质量。
发明内容
有鉴于此,本发明提供了一种CAN总线采样点位置的测试方法及装置,从而能够准确找到采样点位置,为后续确认该采样点位置的设置是否合理提供了判断依据,保证了通信质量。
为实现上述目的,本发明提供如下技术方案:
一种CAN总线采样点位置的测试方法,包括:
依据当前设定的干扰位置和干扰宽度,生成干扰信息;其中,所述干扰位置为所述干扰信息被发送到被测结点中某一位宽所在的位置,所述干扰宽度为所述干扰信息被发送到所述被测结点中所占的位宽宽度;
发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点;
在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,记录所述位置点,作为采样点位置的起始点,其中,所述位置点为在所述被测结点中移动所述干扰位置后所处的当前位宽所在的位置点;
使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息,所述步进干扰信息包括步进后的所述干扰位置和所述干扰宽度;
发送携带有所述步进干扰信息的所述特定帧ID的标准远程帧到所述被测结点中的下一个位置点;
在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,返回执行所述使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息,直到接收到所述被测结点发出的正常的应答信号时,结束测试,其中,发出的正常的应答信号为所述被测结点收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的应答信号;
记录所述另一个位置点,作为采样点位置的结束点。
优选地,在所述依据当前设定的干扰位置和干扰宽度,生成干扰信息之前,还包括:
发送当前设定的帧ID的标准远程帧到所述被测结点,其中,当前设定的所述帧ID的初始值为0,且小于等于第一阈值;
在接收到所述被测结点发出的应答信号时,将当前设定的所述帧ID的标准远程帧设为所述特定帧ID的标准远程帧,执行依据当前设定的干扰位置和干扰宽度,生成干扰信息步骤;
在未接收到所述被测结点发出的应答信号时,使当前设定的所述帧ID的标准远程帧的帧ID加1,并将加1后的帧ID作为当前设定的帧ID,返回执行发送当前设定的帧ID的标准远程帧到所述被测结点,直到接收到所 述被测结点发出应答信号。
优选地,在所述使当前设定的所述帧ID的标准远程帧的帧ID加1之后,还包括:
判断当前设定的所述帧ID的标准远程帧的帧ID加1后的值大于所述第一阈值时,结束测试。
优选地,在所述发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点之后,还包括:
在接收到所述被测结点发出正常的应答信号时,使所述干扰位置在所述被测结点中步进一个步进间隔,并将步进后的干扰位置和所述干扰宽度作为当前设定的干扰位置和干扰宽度;
返回执行所述依据当前设定的干扰位置和干扰宽度,生成干扰信息。
优选地,在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,记录所述位置点,作为采样点位置的起始点之后,还包括:
向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,m为正整数;
在接收到所述被测结点发出的正常的应答信号时,执行使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息步骤。
优选地,在所述向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧之后,还包括:
在未接收到所述被测结点发出的应答信号时,结束测试。
优选地,在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,返回执行所述使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息之前,还包括:
向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远 程帧;
在接收到所述被测结点发出的正常的应答信号时,执行所述使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息步骤。
优选地,在所述向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧之后,还包括:
在未接收到所述被测结点发出的应答信号时,结束测试。
优选地,在所述记录所述另一个位置点,作为采样点位置的结束点之后,还包括:
显示所述采样点位置的范围值,所述范围值包括采样点位置的所述起始点与结束点。
一种CAN总线采样点位置的测试装置,包括:
生成模块,用于依据当前设定的干扰位置和干扰宽度,生成干扰信息,其中,所述干扰位置为所述干扰信息被发送到被测结点中某一位宽所在的位置,所述干扰宽度为所述干扰信息被发送到所述被测结点中所占的位宽宽度;
第一发送模块,用于发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点;
第一接收模块,用于在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号;
第一记录模块,用于记录使所述被测结点发出主动错误应答信号的位置点,作为采样点位置的起始点,其中,所述位置点为在所述被测结点中移动所述干扰位置后所处的当前位宽所在的位置点;
第一步进模块,用于使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息,所述步进干扰信息包括步进后的所述干扰位置和所述干扰宽度;
第二发送模块,用于发送携带有所述步进干扰信息的所述特定帧ID 的标准远程帧到所述被测结点中的下一个位置点;
第二接收模块,用于在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号;
所述第一步进模块,用于在所述第二接收模块在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号之后,使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息;
第三接收模块,用于接收所述被测结点发出的正常的应答信号,并结束测试,其中,发出的正常的应答信号为所述被测结点收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的应答信号;
第二记录模块,用于记录使所述被测结点发出正常的应答信号的位置点,作为采样点位置的结束点。
优选地,在所述第一发送模块发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点之后,所述第一接收模块在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号之前,所述装置还包括:
第四接收模块,用于接收所述被测结点发出正常的应答信号;
第二步进模块,用于使所述干扰位置在所述被测结点中步进一个步进间隔,并将步进后的干扰位置和所述干扰宽度作为当前设定的干扰位置和干扰宽度;
所述生成模块,用于在所述第二步进模块使所述干扰位置在所述被测结点中步进一个步进间隔,并将步进后的干扰位置和所述干扰宽度作为当前设定的干扰位置和干扰宽度之后,依据当前设定的干扰位置和干扰宽度,生成干扰信息。
优选地,在所述第一记录模块记录使所述被测结点发出主动错误应答信号的位置点,作为采样点位置的起始点之后,所述第一步进模块使所述 干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息之前,所述装置还包括:
第三发送模块,用于向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,m为正整数;
第五接收模块,用于接收所述被测结点发出的正常的应答信号。
优选地,在所述第二接收模块在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号之后,所述第一步进模块在所述第二接收模块在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号之后,使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息之前,所述装置还包括:
第四发送模块,用于向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧;
第六接收模块,用于接收所述被测结点发出的正常的应答信号。
本发明提供了一种CAN总线采样点位置的测试方法及装置,通过依据当前设定特定帧ID的标准远程帧所携带的所述干扰信息中的干扰位置与干扰宽度,向所述被测结点发送携带有干扰信息的特定帧ID的标准远程帧,接收到所述被测结点因收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号时,记录所述位置点作为采样位置的起始点,之后,步进所述干扰位置,重新设定所述干扰信息,获得步进干扰信息,并发送给所述被测结点,在接收到所述被测结点因收到在下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出主动错误应答信号时,返回执行步进所述干扰位置,重新设定所述干扰信息,获得步进干扰信息,直到接收到所述被测结点因收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出正常的应答信号时,记录该点作为采样点位置的结束点,进而在被测结点位宽中多次移动测试点 位置,来准确获得所述被测结点的采样点位置,为后续确认该采样点位置的设置是否合理提供了判断依据,保证了通信质量。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种CAN总线采样点位置的测试方法的方法流程图;
图2为本发明实施例提供的一种确定特定帧ID的标准远程帧的方法流程图;
图3为本发明实施例提供的又一种CAN总线采样点位置的测试方法的方法流程图;
图4为本发明实施例提供的一种CAN总线采样点位置的测试装置结构示意图;
图5为本发明实施例提供的又一种CAN总线采样点位置的测试装置结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供了一种CAN总线采样点位置的测试方法,请参见附图1,所述方法具体包括以下步骤:
S101:依据当前设定的干扰位置和干扰宽度,生成干扰信息;其中,所述干扰位置为所述干扰信息被发送到被测结点中某一位宽所在的位置,所述干扰宽度为所述干扰信息被发送到所述被测结点中所占的位宽宽度。
S102:发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点;
具体的,使所述特定帧ID的标准远程帧携带上所述干扰信息,再发送到所述被测结点时,所述特定帧ID的标准远程帧就能够根据所述干扰信息中包含的干扰位置,直接发送到所述被测结点位宽的某一具体位置点处,同时根据所述干扰宽度,占据所述被测结点位宽中某一位置点之后的一小段范围内的位宽,其中,所述被测结点所处的初始状态为错误主动状态。
S103:在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,记录所述位置点,作为采样点位置的起始点,其中,所述位置点为在所述被测结点中移动所述干扰位置后所处的当前位宽所在的位置点;
具体的,发送到所述被测结点的所述特定帧ID的标准远程帧所携带的所述干扰信息,只有在被发送到所述被测结点中属于采样点位置范围内的一段位宽时,所述被测结点才发出主动错误应答信号,而在被发送到所述被测结点中不属于所述采样点位置范围内的其他位宽范围,则所述被测结点会发出正常的应答信号,因此,在接收到所述被测结点因收到在一个位置点上携带所述干扰信息的特定帧ID的标准远程帧而第一次发出主动错误应答信号时,将所述位置点记录下来,作为采样点位置的起始点;
其次,被作为采样点位置的起始点的所述位置点在所述被测结点中的位置是依据所述干扰位置的设定而决定的,如当前设定的所述干扰位置为所述被测结点位宽的5%处,则所述位置点在所述被测结点中5%位宽处。
S104:使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息,所述步进干扰信息包括步进后的所述干扰位置和所述干扰宽度;
具体的,当确定了所述采样点位置的起始点后,还需要重新设定所述 干扰信息中的干扰位置,实际操作为使前一个设定好的所述干扰位置步进一个步进间隔,从而获得新的干扰位置,并将步进后的所述干扰位置与之前设定好的所述干扰宽度作为步进干扰信息,以便继续精确地确定所述采样点位置的范围;其中,可以将所述被测结点位宽的1%作为一个所述步进间隔,且根据之前设定的起始干扰位置,来决定所述步进间隔在所述被测结点中移动的方向,如所述起始干扰位置设定在所述被测结点位宽的首端,则在所述被测结点中每次向后移动一个所述步进间隔,若所述起始干扰位置设定在所述被测结点位宽的末端,则在所述被测结点中每次向前移动一个所述步进间隔。
S105:发送携带有所述步进干扰信息的所述特定帧ID的标准远程帧到所述被测结点中的下一个位置点;
具体的,所述特定帧ID的标准远程帧将依据所述步进干扰信息中包含的步进后的干扰位置,发送到所述被测结点中的下一个位置点,进而确认所述下一个位置点是否仍属于所述采样点位置范围内。
S106:在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的应答信号,若为主动错误应答信号,则返回执行S104,若为正常的应答信号,则执行S107;
具体的,若在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,则证明所述下一个位置点仍处于所述采样点位置范围内,此时需要返回执行使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息步骤,直到依据多次步进后的干扰位置,在所述被测结点位宽中移动过多次后,所述被测结点因收到在某一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出了正常的应答信号时,才证明该位置点已经不属于所述采样点位置范围,进而结束测试;
此外,还可能在发送携带有所述步进干扰信息的所述特定帧ID的标准 远程帧到所述被测结点中的下一个位置点时,若所述被测结点因收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出了正常的应答信号,则说明已确定了采样点位置的范围,进而继续执行下一步骤S107。
S107:结束测试并执行S108。
S108:记录使所述被测结点发出正常的应答信号的位置点,作为采样点位置的结束点。
本发明实施例公开的CAN总线采样点位置的测试方法,通过依据当前设定的干扰位置和干扰宽度生成干扰信息,并将所述干扰信息携带在所述特定帧ID的标准远程帧上,并发送给所述被测结点,接收到所述被测结点因收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号时,记录所述位置点作为采样位置的起始点,之后,步进所述干扰位置,获得步进干扰信息,并使所述特定帧ID的标准远程帧携带所述步进干扰信息,再次发送给所述被测结点中的下一位置点,若所述被测结点因收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出主动错误应答信号,则返回执行步进干扰位置,获取步进干扰信息的步骤,直到接收到所述被测结点因收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的正常的应答信号时,结束测试,并将所述另一位置点记录,作为采样点位置的结束点,进而在被测结点位宽中多次移动测试点位置,来准确获得所述被测结点的采样点位置,为后续确认该采样点位置的设置是否合理提供了判断依据,保证了通信质量。
可选地,请参见附图2,在所述S101之前,还包括:
S201:发送当前设定的帧ID的标准远程帧到所述被测结点,其中,所述当前设定的帧ID的初始值为0,且小于等于第一阈值;
具体的,由于所述被测结点并不是对所有标准远程帧的帧ID都响应,因此在进行所述采样点位置测试之前,需要先确定所述被测结点对所述标 准远程帧中11位共2048个的帧ID中会发生应答的帧ID,因此设定好当前进行验证的标准远程帧的帧ID后发送给所述被测结点,以便顺利进行后续测试。
S202:判断所述被测结点是否发出应答信号,若发出应答信号,则执行S203a,若未发出应答信号,则执行S203b。
S203a:将当前设定的所述帧ID的标准远程帧设为所述特定帧ID的标准远程帧,执行依据当前设定的干扰位置和干扰宽度,生成干扰信息步骤;
具体的,在确定所述被测结点能正常应答当前设定的帧ID的标准远程帧后,以此帧ID作为测试所述被测结点的帧ID,进入对所述采样点位置的测试环节。
S203b:使当前设定的所述帧ID的标准远程帧的帧ID加1,并执行S204;
具体的,在当前设定的所述帧ID的标准远程帧不能被所述被测结点应答时,需要对所述帧ID进行加1处理,如在发送了帧ID为0的标准远程帧后不能被所述被测结点应答,则将所述标准远程帧中的帧ID为0替换成帧ID为1。
S204:判断当前设定的所述帧ID的标准远程帧的帧ID加1后的值与所述第一阈值的大小,若小于等于,则将加1后的帧ID作为当前设定的帧ID,并返回执行S201,若大于,则执行S205;
具体的,由于标准远程帧的帧ID只有0-2047,故在每次对所述帧ID进行加1操作后,都需要验证一下是否即将要发送的当前设定好的帧ID已超过所述标准远程帧中所包含的所有帧ID,若当再次加1后获得的新的帧ID小于等于帧ID2047,那么需要将新获得的帧ID作为当前设定的帧ID再次发送给所述被测结点,从而循环执行之后的步骤,直到所述被测结点发出应答信号,或是加1后获得的帧ID的值超过帧ID2047。
S205:结束测试。
本发明实施例公开的CAN总线采样点位置的测试方法,通过在正式 进行所述采样点位置的测试之前,对所述标准远程帧的帧ID与所述被测结点之间能否发出正常应答进行验证,并通过对不能使所述被测结点应答的帧ID进行每次加1处理来依次判断所述标准远程帧中包含的所有帧ID,从而获得能够使所述被测结点正常应答的帧ID的标准远程帧,并将其作为所述特定帧ID的标准远程帧,进而为后续顺利完成所述采样点位置的测试提供前提。
本发明实施例提供了又一种CAN总线采样点位置的测试方法,请参见附图3,所述方法具体包括以下步骤:
S301:依据当前设定的干扰位置和干扰宽度,生成干扰信息。
S302:发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点。
S303:接收所述被测结点发出的应答信号,若为正常的应答信号,则执行S304a,若为主动错误应答信号,则执行S304b;
具体的,在接收到所述被测结点发出正常的应答信号后,证明当前测试的所述位置点不属于所述采样点位置,而接收到所述被测结点发出主动错误应答信号后,证明当前测试的所述位置点为所述采样点位置的起始点。
S304a:使所述干扰位置在所述被测结点中步进一个步进间隔,并将步进后的干扰位置和所述干扰宽度作为当前设定的干扰位置和干扰宽度,返回执行S301;
具体的,在接收到所述被测结点发出正常的应答信号后,步进所述干扰位置,并将其作为当前设定的干扰位置,与所述干扰宽度一起生成当前的干扰信息,再次发送给所述被测结点,直到接收到所述被测结点因收到在某一个位置点携带所述干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号,从而确定所述采样点位置的起始点。
S304b:记录使所述被测结点发出主动错误应答信号的所述位置点,作为采样点位置的起始点,并执行S305。
S305:向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的 标准远程帧,m为正整数,之后执行S306;
具体的,在向所述被测结点多次发送携带了所述干扰信息的所述特定帧ID的标准远程帧后,可能导致所述被测结点进入错误被动状态而不再发出主动错误或是进入总线关闭状态,因此,需要发送携带了m帧无干扰信息的所述特定帧ID的标准远程帧到所述被测结点去进行验证。
S306:判断所述被测结点是否发出应答信号,若发出正常的应答信号,则执行S307a,若未发出应答信号,则执行S307b;
具体的,若所述被测结点在接收后不发出应答信号,则证明所述被测结点进入了总线关闭状态;若所述被测结点当前处于错误被动状态,则通过发送m帧携带无干扰信息的所述特定帧ID的标准远程帧到所述被测结点,进而使得所述被测结点内的错误计数器能够减到一定阈值,最终从错误被动状态转换为错误主动状态,所述m可以取值为10,此时,所述被测结点就能够发出正常的应答信号,以便进行后续测试;同时,当所述被测结点仍处于所述错误主动状态时,则在发送了m帧携带无干扰信息的所述特定帧ID的标准远程帧后,所述被测结点仍能发出正常的应答信号,此时也可以进行后续测试。
S307a:使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息,所述步进干扰信息包括步进后的所述干扰位置和所述干扰宽度,之后执行S308。
S307b:结束测试。
S308:发送携带有所述步进干扰信息的所述特定帧ID的标准远程帧到所述被测结点中的下一个位置点,并执行S309。
S309:在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的应答信号,若为主动错误应答信号,则返回执行S305,若为正常的应答信号,则执行S3010;
具体的,在接收到所述被测结点因收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出主动错误应答信号时,证明所述下一位置点仍处于所述采样点位置范围内,需要返回验证所述被测结 点状态,步进所述干扰位置,并发送给所述被测结点的某一位置点等步骤,若在接收到所述被测结点因收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出正常的应答信号时,证明所述下一位置点为所述采样点位置范围的结束点。
S3010:结束测试并执行S3011。
S3011:记录使所述被测结点发出正常的应答信号的位置点,作为采样点位置的结束点,并执行S3012。
S3012:显示所述采样点位置的范围值,所述范围值包括采样点位置的所述起始点与结束点。
本发明实施例公开的CAN总线采样点位置的测试方法,通过向所述被测结点发送携带有所述干扰信息的特定帧ID的标准远程帧,在未接收到所述被测结点发出的主动错误应答信号时,循环进行步进所述干扰信息中的干扰位置,依据当前步进后的干扰位置设定干扰信息,并发送到所述被测结点等步骤,直到所述被测结点因收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧而发出主动错误应答信号,之后,向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,保证所述被测结点仍处于错误主动状态后,再步进所述干扰位置,获得步进干扰信息,并发送给所述被测结点的下一位置点,在接收到所述被测结点因收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号时,返回执行发送m帧携带无干扰信息的所述特定帧ID的标准远程帧到所述被测结点,并在接收到正常的应答后,再步进所述干扰位置,获得步进干扰信息,并发送给所述被测结点的其他位置点,直到接收到所述被测结点因收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出正常的应答信号时,结束测试,并记录所述另一个位置点,作为采样点位置的结束点,并显示所述采样点位置的范围值,从而能够在所述被测结点始终处于错误主动状态下,精确地得到所述采样点位置的范围值并显示给工作人员,以便为后续确认该采样点位置的设置是否合理提供了判断依据,进而保证了通信质量。
本发明实施例提供了一种CAN总线采样点位置的测试装置,请参见附图4,所述装置包括:
生成模块401,用于依据当前设定的干扰位置和干扰宽度,生成干扰信息;其中,所述干扰位置为所述干扰信息被发送到被测结点中某一位宽所在的位置,所述干扰宽度为所述干扰信息被发送到所述被测结点中所占的位宽宽度;
第一发送模块402,用于发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点;
第一接收模块403,用于在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号;
具体的,所述特定帧ID的标准远程帧携带的所述干扰信息,在发送到所述被测结点中属于采样点位置范围内的一段位宽时,所述被测结点会发出主动错误应答信号,此时所述第一接收模块403在接收到所述被测结点因收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号时,证明所述位置点处于所述采样点位置范围内。
第一记录模块404,用于记录使所述被测结点发出主动错误应答信号的位置点,作为采样点位置的起始点,其中,所述位置点为在所述被测结点中移动所述干扰位置后所处的当前位宽所在的位置点;
第一步进模块405,用于使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息,所述步进干扰信息包括步进后的所述干扰位置和所述干扰宽度;
具体的,在所述第一记录模块404将发出主动错误应答信号的位置点作为采样点位置的起始点记录后,需要通过所述第一步进模块405步进一个步进间隔,并获得所述步进干扰信息,从而发送到所述被测结点后经过移动干扰位置来获得更精确的采样点位置范围。
第二发送模块406,用于发送携带有所述步进干扰信息的所述特定帧 ID的标准远程帧到所述被测结点中的下一个位置点;
第二接收模块407,用于在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号;
所述第一步进模块405,用于在所述第二接收模块407在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号之后,使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息;
具体的,在所述第二接收模块407接收所述被测结点因收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号时,证明此时所述下一位置点仍处于所述采样点位置范围内,需要使所述第一步进模块405再次步进一个步进间隔,获得新的步进干扰信息,并令所述第二发送模块406发送其到所述被测结点的其他位置点,直到在所述被测结点位宽中经过多次移动,所述被测结点因收到在某一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出正常的应答响应为止。
第三接收模块408,用于接收所述被测结点发出的正常的应答信号,并结束测试,其中,发出的正常的应答信号为所述被测结点收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的应答信号;
具体的,在第三接收模块408接收到所述被测结点因收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的正常的应答信号时,证明该位置点已经不属于所述采样点位置范围,进而结束测试。
第二记录模块409,用于记录使所述被测结点发出正常的应答信号的位置点,作为采样点位置的结束点。
本发明实施例公开的CAN总线采样点位置的测试装置,通过所述第一发送模块402将携带有所述生成模块生成的干扰信息的特定帧ID的标准 远程帧到所述被测结点,所述第一记录模块404记录所述第一接收模块403接收到使所述被测结点发出主动错误应答信号的一个位置点,作为采样点位置的起始点,之后,所述第一步进模块405步进一个步进间隔,并获得步进干扰信息,所述第二发送模块406将携带有所述步进干扰信息的所述特定帧ID的标准远程帧发送到所述被测结点中的下一个位置点,所述第二接收模块407在接收到所述被测结点因收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号时,所述第一步进模块405再次使所述干扰位置步进一个步进间隔,获得步进干扰信息,并由所述第二发送模块406将其发送到所述被测结点中的另一个位置点,直到所述第三接收模块408接收到所述被测结点因收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的正常的应答信号,结束测试,所述第二记录模块409记录使所述被测结点发出正常的应答信号的位置点,作为采样点位置的结束点,进而在被测结点位宽中多次移动测试点位置,来准确获得所述被测结点的采样点位置,为后续确认该采样点位置的设置是否合理提供了判断依据,保证了通信质量。
本发明实施例提供了又一种CAN总线采样点位置的测试装置,请参见附图5,所述装置包括:
所述生成模块401,所述第一发送模块402,所述第一接收模块403,所述第一记录模块404,所述第一步进模块405,所述第二发送模块406,所述第二接收模块407,所述第三接收模块408,第二记录模块409,第四接收模块501,第二步进模块502,第三发送模块503,第五接收模块504,第四发送模块505,第六接收模块506;
其中,所述第四接收模块501,用于接收所述被测结点发出正常的应答信号;
具体的,在所述第一发送模块402发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点之后,所述第一接收模块403接收所述被测结点因收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧 而发出的主动错误应答信号之前,所述第四接收模块501接收所述被测结点发出的正常的应答信号。
所述第二步进模块502,用于使所述干扰位置在所述被测结点中步进一个步进间隔,并将步进后的干扰位置和所述干扰宽度作为当前设定的干扰位置和干扰宽度;
具体的,在所述第四接收模块501接收所述被测结点发出的正常的应答信号时,证明被测试的该位置点仍不属于所述采样点位置范围内,因此需要所述第二步进模块502步进一个所述步进间隔,获得新的干扰信息,以便再次测试。
所述生成模块,用于在所述第二步进模块使所述干扰位置在所述被测结点中步进一个步进间隔,并将步进后的干扰位置和所述干扰宽度作为当前设定的干扰位置和干扰宽度之后,依据当前设定的干扰位置和干扰宽度,生成干扰信息;
具体的,将所述第二步进模块502步进一个所述步进间隔后获得新的干扰位置以及所述干扰宽度,作为当前设定的干扰位置和干扰宽度,之后再次使所述生成模块生成干扰信息,直到所述第一接收模块403接收到所述被测结点因收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号为止。
所述第三发送模块503,用于向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,m为正整数;
具体的,在所述第一记录模块404记录使所述被测结点发出主动错误应答信号的位置点,作为采样点位置的起始点之后,所述第一步进模块405使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息之前,所述第三发送模块503向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,以使所述被测结点始终保持在错误主动状态。
所述第五接收模块504,用于接收所述被测结点发出的正常的应答信号;
具体的,在所述第三发送模块503发送了m帧携带无干扰信息的所述特定帧ID的标准远程帧后,若所述被测结点当前所处的状态为错误被动状态,则可使得所述被测结点的状态转换成错误主动状态,最终使所述第五接收模块504接收到正常的应答信号,若所述被测结点当前所处的状态为错误主动状态,则仍能使所述第五接收模块504接收到正常的应答信号。
所述第四发送模块,用于向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧;
具体的,在所述第二接收模块407接收所述被测结点因收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号之后,所述第一步进模块405在所述第二接收模块407接收到所述被测结点因收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的主动错误应答信号之后,使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息之前,所述第四发送模块向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,以使得所述被测结点在经过多次干扰信息后所处状态发生改变,导致不能一直保持在错误主动状态。
所述第六接收模块,用于接收所述被测结点发出的正常的应答信号;
具体的,在所述第四发送模块向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,所述第六接收模块在接收到所述被测结点发出的正常的应答信号时,证明所述被测结点仍处于错误主动状态,可以继续进行后续测试。
本发明实施例公开的CAN总线采样点位置的测试装置,通过利用所述第四接收模块501与第二步进模块502在所述被测结点一直发出正常的应答信号时,多次在所述被测结点位宽中移动,直到所述被测结点发出主动错误应答信号,利用所述第三发送模块503与第五接收模块504保证所述被测结点当前所处状态一直为错误主动状态,之后,利用所述第四发送模块505与第六接收模块506在未找到所述采样点位置的结束点前,在所 述第二接收模块407每次接收到所述被测结点发出的主动错误应答信号时,向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,以保证所述被测结点处在错误主动状态,进而能够在被测结点状态不变的前提下,经过多次移动测试点位置来顺利找到采样点位置。
本发明所公开的各个实施例之间相同相似的部分可以相互参见。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (13)

  1. 一种CAN总线采样点位置的测试方法,其特征在于,所述方法包括:
    依据当前设定的干扰位置和干扰宽度,生成干扰信息;其中,所述干扰位置为所述干扰信息被发送到被测结点中某一位宽所在的位置,所述干扰宽度为所述干扰信息被发送到所述被测结点中所占的位宽宽度;
    发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点;
    在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,记录所述位置点,作为采样点位置的起始点,其中,所述位置点为在所述被测结点中移动所述干扰位置后所处的当前位宽所在的位置点;
    使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息,所述步进干扰信息包括步进后的所述干扰位置和所述干扰宽度;
    发送携带有所述步进干扰信息的所述特定帧ID的标准远程帧到所述被测结点中的下一个位置点;
    在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,返回执行所述使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息,直到接收到所述被测结点发出的正常的应答信号时,结束测试,其中,发出的正常的应答信号为所述被测结点收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的应答信号;
    记录所述另一个位置点,作为采样点位置的结束点。
  2. 根据权利要求1所述的方法,其特征在于,在所述依据当前设定的干扰位置和干扰宽度,生成干扰信息之前,还包括:
    发送当前设定的帧ID的标准远程帧到所述被测结点,其中,当前设定的所述帧ID的初始值为0,且小于等于第一阈值;
    在接收到所述被测结点发出的应答信号时,将当前设定的所述帧ID的标准远程帧设为所述特定帧ID的标准远程帧,执行依据当前设定的干扰位置和干扰宽度,生成干扰信息步骤;
    在未接收到所述被测结点发出的应答信号时,使当前设定的所述帧ID的标准远程帧的帧ID加1,并将加1后的帧ID作为当前设定的帧ID,返回执行发送当前设定的帧ID的标准远程帧到所述被测结点,直到接收到所述被测结点发出应答信号。
  3. 根据权利要求2所述的方法,其特征在于,在所述使当前设定的所述帧ID的标准远程帧的帧ID加1之后,还包括:
    判断当前设定的所述帧ID的标准远程帧的帧ID加1后的值大于所述第一阈值时,结束测试。
  4. 根据权利要求1所述的方法,其特征在于,在所述发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点之后,还包括:
    在接收到所述被测结点发出正常的应答信号时,使所述干扰位置在所述被测结点中步进一个步进间隔,并将步进后的干扰位置和所述干扰宽度作为当前设定的干扰位置和干扰宽度;
    返回执行所述依据当前设定的干扰位置和干扰宽度,生成干扰信息。
  5. 根据权利要求1所述的方法,其特征在于,在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,记录所述位置点,作为采样点位置的起始点之后,还包括:
    向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,m为正整数;
    在接收到所述被测结点发出的正常的应答信号时,执行使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息步骤。
  6. 根据权利要求5所述的方法,其特征在于,在所述向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧之后,还包括:
    在未接收到所述被测结点发出的应答信号时,结束测试。
  7. 根据权利要求1所述的方法,其特征在于,在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收到所述被测结点发出的主动错误应答信号,返回执行所述使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息之前,还包括:
    向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧;
    在接收到所述被测结点发出的正常的应答信号时,执行所述使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息步骤。
  8. 根据权利要求7所述的方法,其特征在于,在所述向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧之后,还包括:
    在未接收到所述被测结点发出的应答信号时,结束测试。
  9. 根据权利要求1所述的方法,其特征在于,在所述记录所述另一个位置点,作为采样点位置的结束点之后,还包括:
    显示所述采样点位置的范围值,所述范围值包括采样点位置的所述起始点与结束点。
  10. 一种CAN总线采样点位置的测试装置,其特征在于,所述装置包括:
    生成模块,用于依据当前设定的干扰位置和干扰宽度,生成干扰信息,其中,所述干扰位置为所述干扰信息被发送到被测结点中某一位宽所在的位置,所述干扰宽度为所述干扰信息被发送到所述被测结点中所占的位宽宽度;
    第一发送模块,用于发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点;
    第一接收模块,用于在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答 信号;
    第一记录模块,用于记录使所述被测结点发出主动错误应答信号的位置点,作为采样点位置的起始点,其中,所述位置点为在所述被测结点中移动所述干扰位置后所处的当前位宽所在的位置点;
    第一步进模块,用于使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息,所述步进干扰信息包括步进后的所述干扰位置和所述干扰宽度;
    第二发送模块,用于发送携带有所述步进干扰信息的所述特定帧ID的标准远程帧到所述被测结点中的下一个位置点;
    第二接收模块,用于在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号;
    所述第一步进模块,用于在所述第二接收模块在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号之后,使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息;
    第三接收模块,用于接收所述被测结点发出的正常的应答信号,并结束测试,其中,发出的正常的应答信号为所述被测结点收到在另一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧而发出的应答信号;
    第二记录模块,用于记录使所述被测结点发出正常的应答信号的位置点,作为采样点位置的结束点。
  11. 根据权利要求10所述的装置,其特征在于,在所述第一发送模块发送携带有所述干扰信息的特定帧ID的标准远程帧到所述被测结点之后,所述第一接收模块在所述被测结点收到在一个位置点携带所述干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号之前,所述装置还包括:
    第四接收模块,用于接收所述被测结点发出正常的应答信号;
    第二步进模块,用于使所述干扰位置在所述被测结点中步进一个步进间隔,并将步进后的干扰位置和所述干扰宽度作为当前设定的干扰位置和干扰宽度;
    所述生成模块,用于在所述第二步进模块使所述干扰位置在所述被测结点中步进一个步进间隔,并将步进后的干扰位置和所述干扰宽度作为当前设定的干扰位置和干扰宽度之后,依据当前设定的干扰位置和干扰宽度,生成干扰信息。
  12. 根据权利要求10所述的装置,其特征在于,在所述第一记录模块记录使所述被测结点发出主动错误应答信号的位置点,作为采样点位置的起始点之后,所述第一步进模块使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息之前,所述装置还包括:
    第三发送模块,用于向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧,m为正整数;
    第五接收模块,用于接收所述被测结点发出的正常的应答信号。
  13. 根据权利要求10所述的装置,其特征在于,在所述第二接收模块在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号之后,所述第一步进模块在所述第二接收模块在所述被测结点收到在所述下一个位置点携带所述步进干扰信息的特定帧ID的标准远程帧时,接收所述被测结点发出的主动错误应答信号之后,使所述干扰位置在所述被测结点中步进一个步进间隔,并设定所述干扰信息中的干扰位置与干扰宽度,获得步进干扰信息之前,所述装置还包括:
    第四发送模块,用于向所述被测结点发送m帧携带无干扰信息的所述特定帧ID的标准远程帧;
    第六接收模块,用于接收所述被测结点发出的正常的应答信号。
PCT/CN2017/088677 2016-06-22 2017-06-16 一种can总线采样点位置的测试方法及装置 WO2017219922A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610472171.3A CN106209540B (zh) 2016-06-22 2016-06-22 一种can总线采样点位置的测试方法及装置
CN201610472171.3 2016-06-22

Publications (1)

Publication Number Publication Date
WO2017219922A1 true WO2017219922A1 (zh) 2017-12-28

Family

ID=57461531

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088677 WO2017219922A1 (zh) 2016-06-22 2017-06-16 一种can总线采样点位置的测试方法及装置

Country Status (2)

Country Link
CN (1) CN106209540B (zh)
WO (1) WO2017219922A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743228A (zh) * 2019-01-09 2019-05-10 上海科世达-华阳汽车电器有限公司 一种采样点位置的测定方法及系统
CN113347053A (zh) * 2021-04-26 2021-09-03 江铃汽车股份有限公司 一种汽车can总线采样点测试方法及系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209540B (zh) * 2016-06-22 2019-04-02 广州致远电子股份有限公司 一种can总线采样点位置的测试方法及装置
CN107948020B (zh) * 2017-12-22 2023-08-08 上汽通用五菱汽车股份有限公司 一种can总线采样点测试的方法及装置
CN110198255A (zh) * 2019-06-04 2019-09-03 深圳南方德尔汽车电子有限公司 Can网络采样点的检测方法及装置与系统和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552790A (zh) * 2009-05-11 2009-10-07 哈尔滨威帝汽车电子有限公司 一种can的mac帧捕捉方法
US20140157035A1 (en) * 2012-12-05 2014-06-05 Infineon Technologies Ag Bit-Timing Symmetrization
CN105515893A (zh) * 2015-11-26 2016-04-20 普华基础软件股份有限公司 一种确定采样点位置的方法
CN106209540A (zh) * 2016-06-22 2016-12-07 广州致远电子股份有限公司 一种can总线采样点位置的测试方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201698226U (zh) * 2010-04-15 2011-01-05 浙江吉利汽车研究院有限公司 一种can总线优化测试系统
CN101947938B (zh) * 2010-09-26 2012-05-02 重庆长安汽车股份有限公司 一种混合动力can网络通讯系统
CN203661094U (zh) * 2013-11-26 2014-06-18 广州日滨科技发展有限公司 电梯控制系统及电梯控制系统中的can 通信装置
CN104092587B (zh) * 2014-07-22 2017-07-04 中国第一汽车股份有限公司 Can网络位定时影响因素检测系统及其方法
CN105517018B (zh) * 2015-12-15 2019-04-02 中国联合网络通信集团有限公司 一种获取位置信息的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552790A (zh) * 2009-05-11 2009-10-07 哈尔滨威帝汽车电子有限公司 一种can的mac帧捕捉方法
US20140157035A1 (en) * 2012-12-05 2014-06-05 Infineon Technologies Ag Bit-Timing Symmetrization
CN105515893A (zh) * 2015-11-26 2016-04-20 普华基础软件股份有限公司 一种确定采样点位置的方法
CN106209540A (zh) * 2016-06-22 2016-12-07 广州致远电子股份有限公司 一种can总线采样点位置的测试方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743228A (zh) * 2019-01-09 2019-05-10 上海科世达-华阳汽车电器有限公司 一种采样点位置的测定方法及系统
CN109743228B (zh) * 2019-01-09 2022-08-05 上海科世达-华阳汽车电器有限公司 一种采样点位置的测定方法及系统
CN113347053A (zh) * 2021-04-26 2021-09-03 江铃汽车股份有限公司 一种汽车can总线采样点测试方法及系统
CN113347053B (zh) * 2021-04-26 2022-04-15 江铃汽车股份有限公司 一种汽车can总线采样点测试方法及系统

Also Published As

Publication number Publication date
CN106209540A (zh) 2016-12-07
CN106209540B (zh) 2019-04-02

Similar Documents

Publication Publication Date Title
WO2017219922A1 (zh) 一种can总线采样点位置的测试方法及装置
CN109714221B (zh) 网络数据包的确定方法、装置及系统
EP2903213B1 (en) Throughput test method and apparatus
KR101370553B1 (ko) 수신기 성능 테스트용 시스템, 이동통신단말 및 방법
US8004994B1 (en) System and method for intelligently analyzing performance of a device under test
CN107544463B (zh) 一种车用控制器诊断功能的自动测试方法及测试装置
US8774008B2 (en) Real-time network measurement
US20130254443A1 (en) Method For Determining The Topology Of A Serial Asynchronous Databus
TWI466489B (zh) 無線網路裝置及其自動設定參數方法
CN101124542A (zh) 使接口芯片所接收的dlpdu与外部电路得到的数据测量相关联的系统和方法
CN101951300A (zh) 一种实现以太网精确对时的方法
CN109743228B (zh) 一种采样点位置的测定方法及系统
CN112702231B (zh) 一种网络延时的测量方法及系统
CN110789580A (zh) 列车网络控制系统的通讯检测方法、设备和系统
CN117195785A (zh) 一种总线验证方法及验证知识产权核系统
US20170195903A1 (en) Verification of a wireless protocol implementation
CN109120479B (zh) 一种基于网络报文格式的网络吞吐量测试方法
CN116436540A (zh) Led显示屏接收卡测试方法、装置、测试卡及存储介质
CN113282520B (zh) Epa系统测试方法、epa系统测试设备和介质
CN110493809B (zh) 移动终端及其通信数据异常检测方法、计算机可读介质
Lei et al. DeviceNet reliability assessment using physical and data link layer parameters
CN109981394B (zh) 基于增强型can总线协议分析仪的通信方法和装置
WO2017202241A1 (zh) 一种串线检测方法、装置及操作维护服务器
CN115396282B (zh) 信息处理方法、系统及装置
CN117478561B (zh) 以太网工业总线时延分析方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17814660

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17814660

Country of ref document: EP

Kind code of ref document: A1