CN105099945A - CAN network system and packet transmission control method - Google Patents

CAN network system and packet transmission control method Download PDF

Info

Publication number
CN105099945A
CN105099945A CN201410168724.7A CN201410168724A CN105099945A CN 105099945 A CN105099945 A CN 105099945A CN 201410168724 A CN201410168724 A CN 201410168724A CN 105099945 A CN105099945 A CN 105099945A
Authority
CN
China
Prior art keywords
message
transducer
network node
monitoring host
host computer
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
CN201410168724.7A
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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201410168724.7A priority Critical patent/CN105099945A/en
Publication of CN105099945A publication Critical patent/CN105099945A/en
Pending legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention provides a packet transmission control method based on a CAN network system. The method comprises the steps that a CAN converter receives CAN packets sent by a number of network nodes; the type of the CAN packets is analyzed; if the CAN packets are the first type, the CAN packets are sent to a monitoring host; if the CAN packets are the second type, the CAN packets are written into corresponding transmitting buffer areas; and the CAN converter sequentially sends the CAN packets in a number of transmitting buffer areas to the monitoring host according to a predetermined period. According to the packet transmission control method based on the CAN network system, which is provided by the invention, CAN network congestion can be effectively avoided, and the packet response speed is improved. The invention further provides the CAN network system.

Description

CAN network system and message transmission control method
Technical field
The present invention relates to communication technical field, particularly a kind of CAN network system and the message transmission control method based on CAN network system.
Background technology
At present, in a lot of vehicle, each function element is communicated by CAN network, and this just needs CAN network reliable and stable, can transmit various message in time.But, because the message transmitted in CAN is a lot, cause CAN network to block sometimes.Such as: for electric automobile, need the operating state of multiple cells (by battery analog board simulation cell) of monitoring electrokinetic cell, and the message that multiple cell sends needs to pass to monitoring host computer by CAN network.Each cell is equivalent to a network node in CAN network, and in a CAN network, network node suggestion is no more than 32.
In order to avoid CAN network blocking, conventional way reduces number of network node, adds CAN transducer between monitoring host computer and battery analog board.
The downward layer network of battery analog board sends message, by CAN transducer, these messages is turned to upper layer network.Conventional CAN converter is flip-over type, by lower floor's network message repeating of receiving to upper layer network, if lower floor's network node (battery analog board) is a lot, the quantities of messages of lower floor's network is very large, the disposal ability of CAN transducer is inadequate, and the message much from lower floor's network node can not be forwarded to upper layer network, causes frame losing, the quantities of messages of upper layer network is also larger simultaneously, and CAN network may cause blocking.
Summary of the invention
Object of the present invention is intended at least solve one of described technological deficiency.
For this reason, one object of the present invention is to propose a kind of message transmission control method based on CAN network system.The method can effectively avoid CAN network to block, and improves the response speed of message.
Another object of the present invention is to propose a kind of CAN network system.
For achieving the above object, the embodiment of a first aspect of the present invention discloses a kind of message transmission control method based on CAN network system, described CAN network system comprises: monitoring host computer, CAN transducer and multiple network node, described CAN transducer is between described monitoring host computer and described multiple network node, described CAN transducer is provided with the multiple transmission buffering areas corresponding with described multiple network node, said method comprising the steps of:
The CAN message that described CAN converter accepts sends from described multiple network node; Judge the type of described CAN message; If be the CAN message of the first kind, then described CAN message is sent to described monitoring host computer; If be the CAN message of Second Type, then by transmission buffering area corresponding for described CAN message write; And the CAN message in multiple transmission buffering area is sent to described monitoring host computer with predetermined period by described CAN transducer successively.
According to the message transmission control method based on CAN network system of the embodiment of the present invention, CAN transducer carries out judgement to the message that network node sends and sorts out, the CAN message (the response feedback message that such as requirement of real-time is high) of the first kind is directly forwarded to upper layer network, the CAN message (periodically packet that such as requirement of real-time is not high) of Second Type is postponed sending, thus effectively can reduce the operating frequency of CAN transducer CAN sending mode, and the load factor that can reduce upper layer network is blocked to avoid upper layer network, thus, ensure that the response feedback message that such as requirement of real-time is high can arrive monitoring host computer in time, improve message response speed.
The embodiment of second aspect present invention discloses a kind of CAN network system, comprising: multiple network node, for generating CAN message, monitoring host computer, for monitoring described multiple network node, and CAN transducer, described CAN transducer is between described monitoring host computer and described multiple network node, described CAN transducer is provided with the multiple transmission buffering areas corresponding with described multiple network node, described CAN transducer is for receiving the CAN message sent from described multiple network node, and judge the type of described CAN message, if be the CAN message of the first kind, then described CAN message is sent to described monitoring host computer, if be the CAN message of Second Type, then by transmission buffering area corresponding for described CAN message write, and successively the CAN message in multiple transmission buffering area is sent to described monitoring host computer with predetermined period.
According to the CAN network system of the embodiment of the present invention, CAN transducer carries out judgement to the message that network node sends and sorts out, the CAN message (the response feedback message that such as requirement of real-time is high) of the first kind is directly forwarded to upper layer network, the CAN message (periodically packet that such as requirement of real-time is not high) of Second Type is postponed sending, thus effectively can reduce the operating frequency of CAN transducer CAN sending mode, and the load factor that can reduce upper layer network is blocked to avoid upper layer network, thus, ensure that the response feedback message that such as requirement of real-time is high can arrive monitoring host computer in time, improve message response speed.
The aspect that the present invention adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
Of the present invention and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein:
Fig. 1 is the schematic diagram of CAN network system according to an embodiment of the invention;
Fig. 2 is according to an embodiment of the invention based on the flow chart of the message transmission control method of CAN network system; And
Fig. 3 is according to an embodiment of the invention based on the schematic diagram of the message transmission control method of CAN network system.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.
In describing the invention, it will be appreciated that, term " longitudinal direction ", " transverse direction ", " on ", D score, "front", "rear", "left", "right", " vertically ", " level ", " top ", " end " " interior ", the orientation of the instruction such as " outward " or position relationship be based on orientation shown in the drawings or position relationship, only the present invention for convenience of description and simplified characterization, instead of indicate or imply that the device of indication or element must have specific orientation, with specific azimuth configuration and operation, therefore can not be interpreted as limitation of the present invention.
In describing the invention, it should be noted that, unless otherwise prescribed and limit, term " installation ", " being connected ", " connection " should be interpreted broadly, such as, can be mechanical connection or electrical connection, also can be the connection of two element internals, can be directly be connected, also indirectly can be connected by intermediary, for the ordinary skill in the art, the concrete meaning of described term can be understood as the case may be.
Below in conjunction with accompanying drawing description according to the message transmission control method based on CAN network system of the embodiment of the present invention and CAN network system.
Fig. 1 is the schematic diagram of CAN network system according to an embodiment of the invention.As shown in Figure 1, the CAN network system 100 of the embodiment of the present invention comprises: monitoring host computer 110, CAN transducer 120 and multiple network node 130.
Wherein, CAN transducer 120 between monitoring host computer 110 and multiple network node 130, in the following description, will in one embodiment of the invention, be provided with the multiple transmission buffering areas corresponding with multiple network node 130 in CAN transducer 120.
Shown in composition graphs 1, CAN transducer 120 can be multiple, as illustrated M CAN transducer in Fig. 1, i.e. CAN transducer 1 to CAN transducer M, and each CAN transducer can be connected with multiple network node, such as CAN transducer 1 to CAN transducer M is all connected with N number of network node, and as shown in Figure 1, CAN transducer 1 is connected with N number of network node (network node 1 to network node N).Certainly, the quantity of the network node be connected from each CAN transducer also can be different.In the examples described above, M is positive integer, and N is positive integer.
Composition graphs 1 again, can be in the following description, the part that CAN transducer 120 is connected with multiple network node 130 is such as called lower floor's network (CAN lower floor network), the part that monitoring host computer 110 is connected with CAN transducer 120 is called upper layer network (CAN upper layer network).
Multiple network node 130 is for generating message, and message is sent to corresponding CAN transducer 120 by lower floor's network, CAN transducer 120 forwards the packet to upper layer network, so that monitoring host computer 110 obtains message, and then multiple network node 130 is monitored, the such as operating state etc. of monitor network node 130.
Fig. 2 is according to an embodiment of the invention based on the flow chart of the message transmission control method of CAN network system.As shown in Figure 2, and composition graphs 3, the method comprises the steps:
Step S101:CAN transducer 120 receives the CAN message sent from multiple network node 130.Namely message is sent to CAN transducer 120 by lower floor's network by network node 130.Wherein, network node is such as the battery analog board of each cell in simulation electrokinetic cell.
Step S102:CAN transducer 120 judges the type of CAN message.CAN transducer 120, to the CAN message of the network node obtained from lower floor's network, first judged the type of CAN message before being sent to upper layer network.
Step S103: if be the CAN message of the first kind, then CAN message is sent to monitoring host computer 110.As a concrete example, the CAN message of the first kind for but be not limited to response feedback message.That is, if be response feedback message, then CAN transducer 120 is directly forwarded to upper layer network CAN message.
Be understandable that, for such as responding for feedback message, CAN transducer 120 role is equivalent to terminal, does not process CAN message, just the CAN message obtained from lower floor's network is forwarded to upper layer network.
Step S104: if be the CAN message of Second Type, then by transmission buffering area corresponding for CAN message write.As a concrete example, the CAN message of Second Type is but is not limited to periodically packet (i.e. the frame of cycle transmission), therefore, when CAN message is such as periodically packet, then the data sent in transmission buffering area corresponding to the network node of this message are upgraded.
That is, for the CAN message of Second Type, CAN transducer 120 is not directly forward it to upper layer network, but is kept in corresponding transmission buffering area.Send buffering area by software code realization, such as, just can realize above-mentioned transmission buffering area with a two-dimensional array.
CAN message in multiple transmission buffering area is sent to monitoring host computer 110 with predetermined period by step S105:CAN transducer 120 successively.
Particularly, can arrange a timer controling time, the CAN message in multiple transmission buffering area is sent to upper layer network by the same time cycle (i.e. predetermined period) one by one successively.Such as: send buffering area 1 to the CAN message sending buffering area N corresponding stored network node 1 to network node N.Like this, according to the time cycle, be forwarded to upper layer network by sending buffering area 1 to the CAN message sent in the N of buffering area successively.
Through above-mentioned step S101 to step S105, monitoring host computer 110 can obtain such as periodically packet and the response feedback message of the transmission of multiple network node 130 from upper layer network.Wherein, monitoring host computer 110 is but is not limited to computer, can monitor network node.
According to the message transmission control method based on CAN network system of the embodiment of the present invention, CAN transducer carries out judgement to the message that network node sends and sorts out, the CAN message (the response feedback message that such as requirement of real-time is high) of the first kind is directly forwarded to upper layer network, the CAN message (periodically packet that such as requirement of real-time is not high) of Second Type is postponed sending, thus effectively can reduce the operating frequency of CAN transducer CAN sending mode, and the load factor that can reduce upper layer network is blocked to avoid upper layer network, thus, ensure that the response feedback message that such as requirement of real-time is high can arrive monitoring host computer in time, improve message response speed.
Further embodiment of the present invention provides a kind of CAN network system, as shown in Figure 1, CAN network system 100 comprises: monitoring host computer 110, CAN transducer 120 and multiple network node 130, wherein, network node is such as battery analog board, for simulating the cell of electrokinetic cell.Monitoring host computer 110 is computer.
Wherein, multiple network node 130 is for generating CAN message.Monitoring host computer 110 is monitored for saving at 130 to multiple network.CAN transducer 120 is between monitoring host computer 110 and multiple network node 130, CAN transducer 120 is provided with the multiple transmission buffering areas corresponding with multiple network node 130, CAN transducer 120 is for receiving the CAN message sent from multiple network node 130, and judge the type of CAN message, if be the CAN message of the first kind, then CAN message is sent to monitoring host computer 110, if be the CAN message of Second Type, then by transmission buffering area corresponding for CAN message write, and successively the CAN message in multiple transmission buffering area is sent to monitoring host computer 110 with predetermined period.
Wherein, the CAN message of the first kind is but is not limited to the high response feedback message of such as requirement of real-time, and the CAN message of Second Type is but is not limited to periodically packet.
In one embodiment of the invention, CAN transducer 120 is multiple, and each CAN transducer is all connected with multiple network node.
According to the CAN network system of the embodiment of the present invention, CAN transducer carries out judgement to the message that network node sends and sorts out, the CAN message (the response feedback message that such as requirement of real-time is high) of the first kind is directly forwarded to upper layer network, the CAN message (periodically packet that such as requirement of real-time is not high) of Second Type is postponed sending, thus effectively can reduce the operating frequency of CAN transducer CAN sending mode, and the load factor that can reduce upper layer network is blocked to avoid upper layer network, thus, ensure that the response feedback message that such as requirement of real-time is high can arrive monitoring host computer in time, improve message response speed.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of described term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although illustrate and describe embodiments of the invention, for the ordinary skill in the art, be appreciated that and can carry out multiple change, amendment, replacement and modification to these embodiments without departing from the principles and spirit of the present invention, scope of the present invention is by claims and equivalency thereof.

Claims (10)

1. the message transmission control method based on CAN network system, it is characterized in that, described CAN network system comprises: monitoring host computer, CAN transducer and multiple network node, described CAN transducer is between described monitoring host computer and described multiple network node, described CAN transducer is provided with the multiple transmission buffering areas corresponding with described multiple network node, said method comprising the steps of:
The CAN message that described CAN converter accepts sends from described multiple network node;
Judge the type of described CAN message;
If be the CAN message of the first kind, then described CAN message is sent to described monitoring host computer;
If be the CAN message of Second Type, then by transmission buffering area corresponding for described CAN message write; And
CAN message in multiple transmission buffering area is sent to described monitoring host computer with predetermined period by described CAN transducer successively.
2. method according to claim 1, is characterized in that, the CAN message of the described first kind is response feedback message, and the CAN message of described Second Type is periodically packet.
3. method according to claim 1, is characterized in that, described CAN transducer is multiple, and each CAN transducer is all connected with multiple network node.
4. the method according to any one of claim 1-3, is characterized in that, described network node is battery analog board.
5. the method according to any one of claim 1-3, is characterized in that, described monitoring host computer is computer.
6. a CAN network system, is characterized in that, comprising:
Multiple network node, for generating CAN message;
Monitoring host computer, for monitoring described multiple network node; And
CAN transducer, described CAN transducer is between described monitoring host computer and described multiple network node, described CAN transducer is provided with the multiple transmission buffering areas corresponding with described multiple network node, described CAN transducer is for receiving the CAN message sent from described multiple network node, and judge the type of described CAN message, if be the CAN message of the first kind, then described CAN message is sent to described monitoring host computer, if be the CAN message of Second Type, then by transmission buffering area corresponding for described CAN message write, and successively the CAN message in multiple transmission buffering area is sent to described monitoring host computer with predetermined period.
7. CAN network system according to claim 6, is characterized in that, the CAN message of the described first kind is response feedback message, and the CAN message of described Second Type is periodically packet.
8. CAN network system according to claim 6, is characterized in that, described CAN transducer is multiple, and each CAN transducer is all connected with multiple network node.
9. the CAN network system according to any one of claim 6-8, is characterized in that, described network node is battery analog board.
10. the CAN network system according to any one of claim 6-8, is characterized in that, described monitoring host computer is computer.
CN201410168724.7A 2014-04-24 2014-04-24 CAN network system and packet transmission control method Pending CN105099945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410168724.7A CN105099945A (en) 2014-04-24 2014-04-24 CAN network system and packet transmission control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410168724.7A CN105099945A (en) 2014-04-24 2014-04-24 CAN network system and packet transmission control method

Publications (1)

Publication Number Publication Date
CN105099945A true CN105099945A (en) 2015-11-25

Family

ID=54579525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410168724.7A Pending CN105099945A (en) 2014-04-24 2014-04-24 CAN network system and packet transmission control method

Country Status (1)

Country Link
CN (1) CN105099945A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055504A (en) * 2016-05-17 2016-10-26 华为技术有限公司 Method and device for controlling data transmission and computer equipment
CN109159716A (en) * 2018-08-30 2019-01-08 东莞塔菲尔新能源科技有限公司 A kind of operating method simulated from control equipment
CN109962858A (en) * 2017-12-25 2019-07-02 郑州宇通客车股份有限公司 CAN bus data transmission method and control system
CN111158339A (en) * 2019-12-30 2020-05-15 北京京航计算通讯研究所 CAN bus simulation monitoring system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610435A (en) * 2009-07-17 2009-12-23 清华大学 Queue-type all-optical buffer
CN102780705A (en) * 2012-08-10 2012-11-14 浙江工业大学 Ethernet-(controller area network) CAN protocol converter

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610435A (en) * 2009-07-17 2009-12-23 清华大学 Queue-type all-optical buffer
CN102780705A (en) * 2012-08-10 2012-11-14 浙江工业大学 Ethernet-(controller area network) CAN protocol converter

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
凌秀泽: "嵌入式档案控制管理***的研究与开发", 《中国优秀硕士论文全文数据库》 *
王炫等: "基于无线通信和光通信的高压输电线路监测***", 《电网技术》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055504A (en) * 2016-05-17 2016-10-26 华为技术有限公司 Method and device for controlling data transmission and computer equipment
CN106055504B (en) * 2016-05-17 2019-08-16 华为技术有限公司 Control the method, apparatus and computer equipment of data transmission
CN109962858A (en) * 2017-12-25 2019-07-02 郑州宇通客车股份有限公司 CAN bus data transmission method and control system
CN109159716A (en) * 2018-08-30 2019-01-08 东莞塔菲尔新能源科技有限公司 A kind of operating method simulated from control equipment
CN111158339A (en) * 2019-12-30 2020-05-15 北京京航计算通讯研究所 CAN bus simulation monitoring system
CN111158339B (en) * 2019-12-30 2021-05-18 北京京航计算通讯研究所 CAN bus simulation monitoring system

Similar Documents

Publication Publication Date Title
CN102415059B (en) Bus control device
CN101401089B (en) Control system with predictive field device response time over wireless network
CN111343085B (en) Routing system and method of vehicle-mounted CAN bus gateway
CN105099945A (en) CAN network system and packet transmission control method
CN102497649B (en) Satellite network route establishing method based on reliability assurance
CN102685839B (en) Method, gateway, terminal and system for communication of Internet of things
CN104184546B (en) The method and system of message retransmission are reduced in a kind of mobile communications network
CN103053146B (en) Data migration method and device
CN102739560A (en) Instant communication method, system thereof and device thereof
CN112165413B (en) Equipment state reporting method and device and electronic device
CN111107572A (en) Redundancy backup method and device
CN109347965B (en) Communication method, device and related equipment
CN113365253A (en) Method, device, equipment, system and storage medium for node communication in network
CN103037483A (en) Network server and method for connecting same and application server
CN103560947A (en) Method and device for avoiding vibration of neighboring relationship of intermediate system
CN103853105A (en) Electronic control unit flash method based on controller area network (CAN)
CN105072145A (en) IOT (Internet of Things) communication method and system
CN105554151A (en) Keep-alive time determining method and electronic device
CN102332948B (en) Control the method and system of main micro/nano satellite communication
JP2011066769A (en) Communication gateway device
CN111279727B (en) Wireless communication device for process management in factory and process management method
CN105338195A (en) Terminal power saving method and terminal
CN102565477A (en) Electric energy meter alarm information transmission system and electric energy meter alarm information uploading method
CN104486787A (en) Method and device for detecting wireless link fault
CN105491638A (en) Routing method of intelligent anti-slide system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151125