CN103701675A - Information transmission method, system, reading equipment, source equipment and engineering machine - Google Patents

Information transmission method, system, reading equipment, source equipment and engineering machine Download PDF

Info

Publication number
CN103701675A
CN103701675A CN201310698445.7A CN201310698445A CN103701675A CN 103701675 A CN103701675 A CN 103701675A CN 201310698445 A CN201310698445 A CN 201310698445A CN 103701675 A CN103701675 A CN 103701675A
Authority
CN
China
Prior art keywords
frame
out data
reading out
call number
source device
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
CN201310698445.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.)
Zoomlion Heavy Industry Science and Technology Co Ltd
Original Assignee
Zoomlion Heavy Industry Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zoomlion Heavy Industry Science and Technology Co Ltd filed Critical Zoomlion Heavy Industry Science and Technology Co Ltd
Priority to CN201310698445.7A priority Critical patent/CN103701675A/en
Publication of CN103701675A publication Critical patent/CN103701675A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to the technical field of engineering machine control, discloses an information transmission method, system, reading equipment, source equipment and engineering machine based on CAN (Controller Area Network) bus of engineering machine, and aims to save CAN bus resources, reducing the communication load rate and realizing openness of a communication way. The transmission system comprises reading equipment and source equipment which are communicated with each other through a CAN bus, wherein the reading equipment is used for transmitting a reading frame to the source equipment; the reading frame comprises a reading frame ID and an index number of read data; the source equipment is used for extracting read data which correspond to the index number of the read data, and transmitting a response frame to the reading equipment; the response frame comprises a response frame ID, the index number of the read data and the read data which correspond to the index number of the read data. In the technical scheme of the invention, an ask-and-answer communication way is adopted, so that the CAN bus resources are saved greatly, the communication load rate is decreased, and the communication way is open in comparison to the prior art.

Description

Information transferring method, system, fetch equipment, source device and engineering machinery
Technical field
The present invention relates to engineering machinery control technology field, particularly relate to information transferring method, system and fetch equipment, source device and the engineering machinery of a kind of engineering machinery based on CAN bus.
Background technology
In recent years; very active to the engineering machinery research based on field bus technique both at home and abroad; in addition the introducing of controller technology has brought epoch-making variation to the development of engineering machinery; constantly there is the Network with CAN(Controller Area; controller local area network, is called for short CAN) bus is main communication mechanism electric-control system product comes out.Europe large-scale engineering machinery newly developed substantially all adopts CAN Fieldbus Control, some famous engineering machinery major companies (as CAT, VOLVO, Liebherr etc.) all extensively adopt CAN bussing technique on the product of oneself in the world, greatly improved complete machine reliability, can detect and maintenanceability, improved intelligent level simultaneously.And at home, CAN bus control system is also just progressively applied in construction machinery industry.
In CAN bus, have a typical application by bus, to carry out information exchange exactly, for example display screen derives from display screen reading controller information to the demonstration of facility information; Controller derives from controller to chassis ECU(Electronic Control Unit to obtaining of chassis information, and electronic control unit is called for short ECU) the reading etc. of information.The mode that prior art adopts normally, by formulating communications protocol, is distributed different No. ID different data contents, and source device carries out data packing by data according to communications protocol, more regularly in CAN bus, sends.SAE J1939 communications protocol for example, it is the most comprehensively communications protocol of current Vehicle Electronic Control field, for ECU conventional in the vehicles such as engine, speed changer, the automobile application layer of J1939 and diagnostic application layer standard have been made specified in more detail to the data format of their major parameter, according to the significance level of information, determine the transmission cycle of each packet, the transmission of packet is also continual again.Therefore in CAN bus, constantly there is a large amount of swap datas, if be connected to fetch equipment in CAN bus can be CAN bus obtaining information.
The defect that prior art exists is, no matter whether fetch equipment needs reading information, source device all can continual timing send packing data to CAN bus, this makes to exist in CAN bus the current data that read of not needing of a large amount of fetch equipments, thereby cause the wasting of resources, and the transmission of a packet of every increase need to increase by one No. ID, too much data can cause communication load factor to increase to the transmission of CAN bus.In addition, once communications protocol is definite, be difficult to change the transmission frequency of source device data, if need to increase reading of data, just must on source device, rewrite software and write a new rule of communication, communication modes does not possess opening.
Summary of the invention
The embodiment of the present invention provides information transferring method, system and fetch equipment, source device and the engineering machinery of a kind of engineering machinery based on CAN bus, to save CAN bus resource, reduces communication load factor, makes communication modes possess opening.
The information transferring method of the engineering machinery that the embodiment of the present invention provides based on CAN bus, comprising:
To source device, send and to read frame, described in read frame and comprise the call number that reads frame ID and reading out data;
The acknowledgement frame that reception sources equipment sends, described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
Further, the method also comprises: if do not receive described acknowledgement frame within the time period of setting after frame is read in source device transmission, described in again sending to source device, read frame.
The information transferring method of the engineering machinery that the embodiment of the present invention provides based on CAN bus, comprising:
Receive the frame that reads that fetch equipment sends, described in read frame and comprise the call number that reads frame ID and reading out data;
Extract the corresponding reading out data of call number of reading out data;
To fetch equipment, send acknowledgement frame, described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
The fetch equipment of the engineering machinery that the embodiment of the present invention provides based on CAN bus, comprising:
The first transmitting apparatus, for sending and to read frame to source device, described in read frame and comprise the call number that reads frame ID and reading out data;
The first receiving equipment, the acknowledgement frame sending for reception sources equipment, described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
Further, described the first receiving equipment, also for sending to source device at the first transmitting apparatus while not receiving described acknowledgement frame in the time period of setting after reading frame, triggers described the first transmitting apparatus and reads frame described in again sending to source device.
The source device of the engineering machinery that the embodiment of the present invention provides based on CAN bus, comprising:
The second receiving equipment, for receiving the frame that reads that fetch equipment sends, described in read frame and comprise the call number that reads frame ID and reading out data;
Extraction equipment, for extracting the corresponding reading out data of call number of reading out data;
The second transmitting apparatus, for sending acknowledgement frame to fetch equipment, described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
The information transmission system of the engineering machinery that the embodiment of the present invention provides based on CAN bus, comprises the fetch equipment and the source device that by CAN bus communication, connect, wherein:
Described fetch equipment, for sending and to read frame to source device, described in read frame and comprise the call number that reads frame ID and reading out data;
Described source device, for extracting the corresponding reading out data of call number of reading out data, sends acknowledgement frame to described fetch equipment, and described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
Further, described fetch equipment, also, for sending to source device while not receiving described acknowledgement frame in the time period of setting after reading frame, reads frame described in again sending to source device.
Technical solution of the present invention adopts the communication modes of question-response, and than prior art, fetch equipment does not need the information reading can not take CAN bus resource, has greatly saved CAN bus resource; The transmission frequency of acknowledgement frame and transmission times depend on the demand that reads of fetch equipment, have greatly reduced communication load factor; When newly-increased data read, only need fetch equipment to send and read accordingly frame, source device is without carrying out software change, and therefore, communication modes possesses open advantage.
The embodiment of the present invention also provides a kind of engineering machinery, comprises the information transmission system based on CAN bus described in aforementioned techniques scheme, and information transfer rate soon, is not prone to that transmission is blocked up and the phenomenon such as information dropout.
Accompanying drawing explanation
Fig. 1 is the information transferring method schematic flow sheet (fetch equipment side) of first embodiment of the invention;
Fig. 2 is the information transferring method schematic flow sheet (source device side) of third embodiment of the invention;
Fig. 3 is the fetch equipment structural representation of fourth embodiment of the invention;
Fig. 4 is the source device structural representation of sixth embodiment of the invention;
Fig. 5 is the information transmission system structural representation of seventh embodiment of the invention.
Embodiment
In order to save CAN bus resource, reduce communication load factor, make communication modes possess opening, the embodiment of the present invention provides information transferring method, system and fetch equipment, source device and the engineering machinery of a kind of engineering machinery based on CAN bus.In technical solution of the present invention, communication adopts the communication modes of question-response, and fetch equipment does not need the information reading can not take CAN bus resource, has greatly saved CAN bus resource; The transmission frequency of acknowledgement frame and transmission times depend on the demand that reads of fetch equipment, have greatly reduced communication load factor; When newly-increased data read, only need fetch equipment to send and read accordingly frame, source device is without carrying out software change, and therefore, communication modes possesses open advantage.Below with specific embodiment and be described with reference to the accompanying drawings the present invention.
As shown in Figure 1, the information transferring method of the engineering machinery that first embodiment of the invention provides based on CAN bus, comprising:
Step 101, to source device, send and to read frame, read frame and comprise the call number that reads frame ID and reading out data;
The acknowledgement frame that step 102, reception sources equipment send, acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
Further, the method that second embodiment of the invention provides also comprises: if do not receive acknowledgement frame within the time period of setting after frame is read in source device transmission, again to source device, send and read frame.
As shown in Figure 2, the information transferring method of the engineering machinery that third embodiment of the invention provides based on CAN bus, comprising:
Step 301, receive the frame that reads that fetch equipment sends, read frame and comprise the call number that reads frame ID and reading out data;
The corresponding reading out data of call number of step 302, extraction reading out data;
Step 303, to fetch equipment, send acknowledgement frame, acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
In various embodiments of the present invention, fetch equipment index is according to party in request, and source device refers to data providing, between fetch equipment and source device, by CAN bus, carries out information data transmission.For example, fetch equipment is display screen, and source device is controller, and display screen derives from reading controller information to the demonstration of facility information; Again for example, fetch equipment is controller, and source device is engineering machinery chassis ECU, and controller derives from reading chassis ECU information to obtaining of chassis information, the particular content of reading out data is unrestricted, for example can be for the rotating speed of engine, oil temperature of the moment of torsion of engine, engine etc.Certainly, fetch equipment and source device are not limited to above corresponding device, as long as need to carry out information exchange by CAN bus, the information transferring method that all can adopt the embodiment of the present invention to provide.
If fetch equipment only needs to read a secondary data, when fetch equipment, receive after the acknowledgement frame of source device transmission, will stop sending and reading frame to source device; If desired continuous reading out data, fetch equipment, after receiving the acknowledgement frame that source device sends, also can continue to continue to send and read frame to source device, and source device also can continue to send acknowledgement frame to fetch equipment.If fetch equipment is not received replying of source device in setting-up time, can again to source device, send and read frame, until receive acknowledgement frame.
Reading frame ID and acknowledgement frame ID represents respectively request ID and replys ID.The call number of reading out data is corresponding one by one with reading out data.For example, in one embodiment, CAN bus network comprises display screen and controller, display screen need to show the tachometer value of present engine when entering one of them page, the tachometer value of engine need to read from controller, and display screen is fetch equipment, and controller is source device.Supposing to read frame ID is 16#020, and acknowledgement frame ID is 16#021, and the call number of reading out data is 01-00-00-00, and the corresponding reading out data of call number of reading out data is the tachometer value that B0-04-00-00(represents engine).
When display screen enters this page, by reading the data content following (latter four is empty, need to read from controller) of frame ID 16#020 transmission:
16#020 01 00 00 00 FF FF FF FF
Controller is after the request that receives reading out data, and the data content of replying by acknowledgement frame ID16#021 is as follows:
16#021 01 00 00 00 B0 04 00 00
As shown in Figure 3, the inventive concept based on identical, the fetch equipment 10 of the engineering machinery that fourth embodiment of the invention provides based on CAN bus, comprising:
The first transmitting apparatus 11, for sending and read frame to source device, reads frame and comprises the call number that reads frame ID and reading out data;
The first receiving equipment 12, the acknowledgement frame sending for reception sources equipment, acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
Further, in the fetch equipment 10 that fifth embodiment of the invention provides, the first receiving equipment 12, also, for sending to source device at the first transmitting apparatus 11 while not receiving acknowledgement frame in the time period of setting after reading frame, triggers the first transmitting apparatus 11 and again to source device, sends and read frame.
As shown in Figure 4, the inventive concept based on identical, the source device 20 of the engineering machinery that sixth embodiment of the invention provides based on CAN bus, comprising:
The second receiving equipment 21, for receiving the frame that reads of fetch equipment transmission, reads frame and comprises the call number that reads frame ID and reading out data;
Extraction equipment 22, for extracting the corresponding reading out data of call number of reading out data;
The second transmitting apparatus 23, for sending acknowledgement frame to fetch equipment, acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
As shown in Figure 5, the inventive concept based on identical, the information transmission system of the engineering machinery that seventh embodiment of the invention provides based on CAN bus, comprises the fetch equipment 10 and the source device 20 that by CAN bus communication, connect, wherein:
Fetch equipment 10, for sending and read frame to source device 20, reads frame and comprises the call number that reads frame ID and reading out data;
Source device 20, for extracting the corresponding reading out data of call number of reading out data, sends acknowledgement frame to fetch equipment 10, and acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
Further, fetch equipment 10, also, for sending to source device 20 while not receiving acknowledgement frame in the time period of setting after reading frame, again sends and reads frame to source device 20.
Technical solution of the present invention adopts the communication modes of question-response, and than prior art, fetch equipment does not need the information reading can not take CAN bus resource, has greatly saved CAN bus resource; The transmission frequency of acknowledgement frame and transmission times depend on the demand that reads of fetch equipment, have greatly reduced communication load factor; When newly-increased data read, only need fetch equipment to send and read accordingly frame, source device is without carrying out software change, and therefore, communication modes possesses open advantage.
The embodiment of the present invention also provides a kind of engineering machinery, comprises the information transmission system based on CAN bus of aforementioned techniques scheme, and information transfer rate soon, is not prone to that transmission is blocked up and the phenomenon such as information dropout.The particular type of engineering machinery is not limit, such as thinking crane, pump truck, the high engineering truck of act etc.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (9)

1. the information transferring method of engineering machinery based on CAN bus, is characterized in that, comprising:
To source device, send and to read frame, described in read frame and comprise the call number that reads frame ID and reading out data;
The acknowledgement frame that reception sources equipment sends, described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
2. information transferring method as claimed in claim 1, is characterized in that, also comprises:
If do not receive described acknowledgement frame within the time period of setting after frame is read in source device transmission, described in again sending to source device, read frame.
3. the information transferring method of engineering machinery based on CAN bus, is characterized in that, comprising:
Receive the frame that reads that fetch equipment sends, described in read frame and comprise the call number that reads frame ID and reading out data;
Extract the corresponding reading out data of call number of reading out data;
To fetch equipment, send acknowledgement frame, described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
4. the fetch equipment of engineering machinery based on CAN bus, is characterized in that, comprising:
The first transmitting apparatus, for sending and to read frame to source device, described in read frame and comprise the call number that reads frame ID and reading out data;
The first receiving equipment, the acknowledgement frame sending for reception sources equipment, described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
5. fetch equipment as claimed in claim 4, is characterized in that,
Described the first receiving equipment, also for sending to source device at the first transmitting apparatus while not receiving described acknowledgement frame in the time period of setting after reading frame, triggers described the first transmitting apparatus and reads frame described in again sending to source device.
6. the source device of engineering machinery based on CAN bus, is characterized in that, comprising:
The second receiving equipment, for receiving the frame that reads that fetch equipment sends, described in read frame and comprise the call number that reads frame ID and reading out data;
Extraction equipment, for extracting the corresponding reading out data of call number of reading out data;
The second transmitting apparatus, for sending acknowledgement frame to fetch equipment, described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
7. the information transmission system of engineering machinery based on CAN bus, is characterized in that, comprises the fetch equipment and the source device that by CAN bus communication, connect, wherein:
Described fetch equipment, for sending and to read frame to source device, described in read frame and comprise the call number that reads frame ID and reading out data;
Described source device, for extracting the corresponding reading out data of call number of reading out data, sends acknowledgement frame to described fetch equipment, and described acknowledgement frame comprises the call number of acknowledgement frame ID, reading out data, and the corresponding reading out data of the call number of reading out data.
8. the information transmission system as claimed in claim 7, is characterized in that,
Described fetch equipment, also, for sending to source device while not receiving described acknowledgement frame in the time period of setting after reading frame, reads frame described in again sending to source device.
9. an engineering machinery, is characterized in that, comprises the information transmission system based on CAN bus as claimed in claim 7 or 8.
CN201310698445.7A 2013-12-18 2013-12-18 Information transmission method, system, reading equipment, source equipment and engineering machine Pending CN103701675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310698445.7A CN103701675A (en) 2013-12-18 2013-12-18 Information transmission method, system, reading equipment, source equipment and engineering machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310698445.7A CN103701675A (en) 2013-12-18 2013-12-18 Information transmission method, system, reading equipment, source equipment and engineering machine

Publications (1)

Publication Number Publication Date
CN103701675A true CN103701675A (en) 2014-04-02

Family

ID=50363078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310698445.7A Pending CN103701675A (en) 2013-12-18 2013-12-18 Information transmission method, system, reading equipment, source equipment and engineering machine

Country Status (1)

Country Link
CN (1) CN103701675A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371533A (en) * 2020-03-09 2020-07-03 腾讯科技(深圳)有限公司 Data transmission method, device, storage medium and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1560806A (en) * 2004-03-04 2005-01-05 深圳市泛海三江电子有限公司 Fire alarm application layer data transmission method based on CAN2.0B
CN1677945A (en) * 2004-03-31 2005-10-05 联想(北京)有限公司 Master-slave mode multi-address communication method
CN101626333A (en) * 2009-08-07 2010-01-13 北京和利时电机技术有限公司 Controller area network (CAN) bus system and application layer communication method in same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1560806A (en) * 2004-03-04 2005-01-05 深圳市泛海三江电子有限公司 Fire alarm application layer data transmission method based on CAN2.0B
CN1677945A (en) * 2004-03-31 2005-10-05 联想(北京)有限公司 Master-slave mode multi-address communication method
CN101626333A (en) * 2009-08-07 2010-01-13 北京和利时电机技术有限公司 Controller area network (CAN) bus system and application layer communication method in same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
辉亚男: "CAN总线应用层通信协议的设计与实现", 《计算机工程与设计》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371533A (en) * 2020-03-09 2020-07-03 腾讯科技(深圳)有限公司 Data transmission method, device, storage medium and equipment
CN111371533B (en) * 2020-03-09 2022-02-22 腾讯科技(深圳)有限公司 Data transmission method, device, storage medium and equipment

Similar Documents

Publication Publication Date Title
CN102804698B (en) For running the method for bus system, especially CAN
CN105119793A (en) Identifier distribution method of sensor network CAN bus frame format
CN109861882A (en) The method, apparatus and car-mounted terminal of vehicle bus protocol identification
CN110401509A (en) For improving method, equipment, medium and the device of automobile CAN-bus efficiency of transmission
JP2011166421A (en) In-vehicle-data relaying device, and vehicle control system
US10050864B2 (en) Operation mode transition method in network
CN107196771A (en) Vehicle netbios synchronization dormancy method, system and gateway controller
CN102664779B (en) CAN bus data transmitting method
CN103192738A (en) Electric automobile fault handling method and system
CN103780508A (en) Software wave filtering method and system of CAN bus messages and electronic control unit
CN103546354A (en) Communicating method being based on Internet of Things electric temperature measurement equipment and enabling RS485 bus and CAN bus to be compatible
CN101808132A (en) Communication method of application layer in CAN bus system
CN101895462B (en) Serial communication gateway
CN204650755U (en) A kind of material flow tracking supervisory system based on cloud computing
CN201914192U (en) Controller Area Network (CAN) bus control system of electric vehicle
CN104753749A (en) Multi-host communication method and multi-host communication system
CN103701675A (en) Information transmission method, system, reading equipment, source equipment and engineering machine
CN102710656A (en) Communication protocol inverse analysis method based on automotive gateway system
CN103888462A (en) Controller area network model verification method based on local partial order reduction
CN103368944A (en) Memory shared network architecture and protocol specifications for same
CN102710479A (en) Automobile gateway system for inverse resolution of communication protocols
CN202837977U (en) Engineering machinery vehicle, ZigBee adapter applied on engineering machinery vehicle and detecting system thereof
CN103067213A (en) Data recording system
CN201828970U (en) Train operation data recorder based on CAN (Controller Area Network) interface
CN103809579A (en) Method for extracting vehicle state information from center

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

Application publication date: 20140402

RJ01 Rejection of invention patent application after publication