KR20140061043A - Lin communication system for vehicle and method for driving slave module in the system - Google Patents

Lin communication system for vehicle and method for driving slave module in the system Download PDF

Info

Publication number
KR20140061043A
KR20140061043A KR1020120128173A KR20120128173A KR20140061043A KR 20140061043 A KR20140061043 A KR 20140061043A KR 1020120128173 A KR1020120128173 A KR 1020120128173A KR 20120128173 A KR20120128173 A KR 20120128173A KR 20140061043 A KR20140061043 A KR 20140061043A
Authority
KR
South Korea
Prior art keywords
module
master
slave module
identifier
slave
Prior art date
Application number
KR1020120128173A
Other languages
Korean (ko)
Other versions
KR101958477B1 (en
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 현대모비스 주식회사
Priority to KR1020120128173A priority Critical patent/KR101958477B1/en
Priority to CN201310438827.6A priority patent/CN103809552B/en
Publication of KR20140061043A publication Critical patent/KR20140061043A/en
Application granted granted Critical
Publication of KR101958477B1 publication Critical patent/KR101958477B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • 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/40234Local Interconnect Network LIN
    • 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/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

In the present invention, an existing master command used when requesting a specific operation of a slave module in the master module is deleted, and instead, a plurality of IDs, one for each slave module, are assigned, and when the respective slave modules are called, The corresponding function is operated. By doing so, the communication time required for master command transmission is reduced, and the total communication time can be reduced.

Description

TECHNICAL FIELD [0001] The present invention relates to a LIN communication system for a vehicle and a method for operating the slave module in the system.

The present invention relates to a LIN (Local Interconnect Network) communication system for a vehicle and a method of operating a slave module using the system, and it is an object of the present invention to reduce a LIN communication time so that a master module can quickly transmit a response signal from a slave module The present invention relates to a vehicle LIN communication system and a method of operating the slave module in the system.

In automotive network communication, a LIN network communication method, which is a kind of serial communication method, is widely used to efficiently control a mechatronic node such as a parking assist sensor, a driver and other modules on a distributed network.

In LIN communication, there are a master module for requesting data and a plurality of slave modules for processing and responding to data requests from the master module.

1 is a diagram illustrating a message frame configuration used in a general LIN communication.

Referring to FIG. 1, the structure of a message frame (a) in LIN communication is mainly composed of a header part and a response part. The header part is composed of a break field, a sync field, and a protected identifier field. The response part includes a data field (Data field: Data1, Data2, ..., DataN) (Checksum field). A Break field is a field that defines the start of a message frame. The Sync field is a field used by the slave to synchronize with the master clock. The Protected Identifier field provides information about the content and length of the message.

According to such a message frame configuration, the master module and the slave modules each have an ID, and as shown in FIG. 1B, the master module transmits a master command in the form of "master ID + command to be requested to the slave" (Slave Response) in the form of "corresponding slave ID + response data" as shown in FIG. 1 (c), and transmits the slave command to the master module It communicates by way of reply.

However, if the master module makes any request to the slave module, it takes a lot of time for communication. Communication time of about 15 ms is required for 8 byte transmission. That is, in a sensor application or the like, a large amount of communication time is wasted in the master command (a) communication, thereby increasing the total schedule time.

SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a LIN (Local Interconnect Network) communication system for a vehicle which can reduce the communication time of a master command in LIN communication and can quickly receive a response from a slave module.

It is another object of the present invention to provide a method of operating a slave module in the system.

According to another aspect of the present invention, there is provided a vehicular LIN communication system including a master module and a slave module communicating in accordance with a LIN communication scheme in a vehicle, the master module requesting a specific operation of the slave module The slave module transmits the identifier associated with the specific operation to the slave module as an operation request command, and the slave module receives the operation request command and performs the specific operation associated with the identifier.

A method of driving a slave module in a vehicle LIN communication system including a master module and a slave module communicating in accordance with a LIN communication method in a vehicle according to another aspect of the present invention is characterized in that the master module includes a plurality of specific operations Assigning a plurality of identifiers associated with each of the plurality of specific operations to the slave module; and requesting, as the operation request command, an identifier associated with the certain specific operation, Transmitting to the slave module; and receiving the operation request command by the slave module to perform the specific operation associated with the identifier.

According to the present invention, instead of deleting a master command to be used at the time of requesting an operation of the slave module in the master module, a plurality of identifiers associated with a plurality of specific operations of the slave module are assigned, The identifier replaces the role of the master command. As a result, it is possible to reduce the operation time of the slave module and improve the performance at the same time, and it is not necessary to use a complicated master command when driving the slave module. Therefore, software development is facilitated and software (s / w) And the number of hardware (h / w) modules is minimized.

1 is a diagram illustrating a message frame configuration used in a general LIN communication.
2 is a block diagram showing the overall configuration of a vehicle LIN communication system according to an embodiment of the present invention.
FIG. 3 is a block diagram showing the internal structure of each slave module shown in FIG. 2 together with the internal structure of a conventional slave module.
4 is a diagram for explaining a LIN communication method according to an embodiment of the present invention.
FIG. 5 is a flow chart illustrating a LIN communication method and a conventional LIN communication method according to an embodiment of the present invention.

Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily carry out the present invention. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. In order to clearly illustrate the present invention, parts not related to the description are omitted, and similar parts are denoted by like reference characters throughout the specification.

Throughout the specification, when an element is referred to as "comprising ", it means that it can include other elements as well, without excluding other elements unless specifically stated otherwise. Also, the terms " part, "" module," and " module ", etc. in the specification mean a unit for processing at least one function or operation and may be implemented by hardware or software or a combination of hardware and software have.

2 is a block diagram showing the overall configuration of a vehicle LIN communication system according to an embodiment of the present invention.

2, a vehicle LIN communication system 300 according to an exemplary embodiment of the present invention includes a master module 100 and a plurality of slave modules 200 communicating with the master module 100 according to the LIN communication protocol. . In this embodiment, a plurality of slave modules is composed of four slave modules (Sensor # 1, Sensor # 2, Sensor # 3, Sensor # 4).

The master module 100 is a unit for instructing the operation of each slave module (Sensor # 1, Sensor # 2, Sensor # 3, Sensor # 4) have. Each slave module 2 can be a parking assistant sensor or a driver in the vehicle as a configuration for processing and responding to data. In the present embodiment, it is assumed as a parking assist sensor, and the term "slave module" Module "

The master module 100 according to the embodiment of the present invention does not transmit the master command and transmits the master command used when requesting the specific operation of each sensor module, Only an operation request command including a PID (Protected Identifier) is transmitted. Herein, the PID according to the present invention is LIN The concept of sensor ID used in communication can be composed of 60 IDs from 0 to 59. In the present embodiment, the PID may be composed of 8 bits, the upper 6 bits are numbers from 0 to 59, and the lower 2 bits are set to a value obtained by inverting the upper 6 bits, that is, a check sum .

Each sensor module (Sensor # 1, Sensor # 2, Sensor # 3, Sensor # 4) receives the operation request command and performs the specific operation associated with the identifier. To this end, each sensor module includes a PID storage unit 210 and a PID recognition logic 230, as shown in FIG. The PID storage unit 210 stores a plurality of specific operation information associated with the plurality of PIDs and the plurality of PIDs. The PID recognition logic 230 refers to the PID storage unit 210, Recognizes the PID transmitted from the module 100 and the specific operation associated with the PID and executes a predetermined operation defined in the PID.

By doing so, it is possible to perform the same function as the conventional method of transmitting the master command by only calling the corresponding sensor module.

Hereinafter, a communication method in the LIN communication system according to an embodiment of the present invention shown in FIG. 1 will be described in detail with reference to FIG. 4 in comparison with a conventional master command transmission method.

FIG. 4 is a diagram for explaining a LIN communication method according to an embodiment of the present invention, wherein (a), (b), and (c) are diagrams for explaining a conventional master command transmission method, 1 is a diagram illustrating a frame structure according to a communication method of the present invention.

Referring to FIGS. 4A, 4B and 4C, first, the ID of the sensor of the master module is "0x08", and the sensor modules (Sensor # 1, Sensor # 2, # 4 are assumed to be "0x01 "," 0x02 ", "0x03 ", and" 0x04 ", respectively.

In the case where the sensor module (Sensor # 1) transmits the ultrasonic signal and simultaneously transmits / receives the ultrasonic signal, the master command according to the related art should constitute a message frame as shown in (b) , It takes about 10 ms to transmit the master command composed of three data bytes if the communication is performed at a transmission rate of 19.2 kbps. (b), the frame structure of the sensor response to the master command is configured as shown in (c).

In contrast, in an embodiment of the present invention, a plurality of PIDs are preset for each sensor module. That is, it is defined that PID (1) = 0x00 and the direct noise detection is PID (2) = 0x01 in the case where the sensor module (Sensor # 1) And the frequency measurement is defined as PID (3) = 0x02, a total of three IDs can be assigned to the sensor module (Sensor # 1). At this time, if the sensor module (Sensor # 1) transmits and receives the ultrasonic sensor as described above and performs noise measurement, the frame can be configured as shown in FIG. 4 (d) without a master command.

Compared with the existing LIN communication method, the present invention disappeared from the master command itself and is able to communicate only by an operation request (Slave Request or Response) command to the sensor module. That is, assuming a master command of 3 bytes in length, it takes about 10 ms to transfer 3 bytes, so that a time of about 10 ms can be saved in one sensor module measurement. For example, in the conventional communication method, the time required for the sensor module to measure an object once is "master command (10ms) + slave response request (15ms) = 25ms. In the communication method of the present invention, Slave response request (15ms) = 15ms ", which saves about 10ms of time for one sensor module measurement.

FIG. 5 is a flowchart illustrating a LIN communication method and a conventional LIN communication method according to an embodiment of the present invention, wherein (a) is a flowchart illustrating a LIN communication method according to an embodiment of the present invention, and (b) FIG. 4 is a flowchart showing a conventional LIN communication method. FIG.

Referring to FIG. 5A, if a plurality of PIDs are assigned to each slave module through the PID command of the master module, the master module (e.g., ECU) And transmitting the PID associated with the operation to the slave module as an operation request command (S510).

 Then, the slave module determines whether the PID received as an operation request command is a self command through the internal PID recognition logic (S520). If the command is not a self command, the step S510 is performed again.

As a result of the determination, if it is a magnetic command, step S540 is performed in which the specific operation set in association with the PID is executed (S530) and the executed sensor execution result is transmitted to the master module as a response message (S540) And is terminated.

As described above, the LIN communication method of the present invention can reduce the time required for transmitting the master command by replacing the master module with the process of transmitting the master command instead of the process of transmitting the master command. That is, omitting the step S51 of transmitting the master command of FIG. 5 (b), the communication time for operating the sensor module can be reduced. As a result, the step of requesting the result of the sensor operation as shown in (b) of FIG. 5 and the step (S55) Communication time required for receiving a response from the slave module can be reduced. As a result, by replacing the process of transmitting the master command used when requesting the operation of the sensor module from the master module with the process of transmitting the PID associated with the specific operation of each sensor module, the time required for transmitting the master command is reduced, The total communication time for operation and response of the corresponding sensor module can be reduced.

The foregoing description is merely illustrative of the technical idea of the present invention and various changes and modifications may be made by those skilled in the art without departing from the essential characteristics of the present invention. Therefore, the embodiments disclosed in the present invention are intended to illustrate rather than limit the scope of the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The scope of protection of the present invention should be construed according to the following claims, and all technical ideas falling within the scope of the same shall be construed as falling within the scope of the present invention.

Claims (8)

1. A vehicle LIN communication system comprising a master module and a slave module for communicating in a vehicle according to a LIN communication system,
The master module comprises:
Transmitting an identifier associated with the specific operation to the slave module as an operation request command to request a specific operation of the slave module,
The slave module includes:
And receives the operation request command to perform the specific operation associated with the identifier.
The communication system according to claim 1, wherein, in the slave module,
Wherein a plurality of identifiers are associated with each of a plurality of specific operations.
3. The system of claim 2, wherein the slave module comprises:
A storage unit storing a plurality of specific identifiers and a plurality of specific operation information associated with the plurality of identifiers; And
An identifier recognizing unit for recognizing the identifier transmitted from the master module and the specific operation associated with the identifier,
And the LIN communication system.
3. The method of claim 2, wherein the plurality of identifiers are assigned by the master module,
The master module comprises:
And assigns the identifier of the slave module via an 'Assign PID (Protected Identifier)' command.
A method of driving a slave module in a vehicle LIN communication system including a master module and a slave module communicating in a vehicle according to a LIN communication method,
Assigning to the slave module a plurality of identifiers associated with a plurality of specific operations performed by the slave module;
Transmitting to the slave module an identifier associated with any particular operation for requesting any particular one of the plurality of specific operations by the master module as an operation request command; And
Wherein the slave module receives the operation request command and performs the certain specific operation associated with the identifier
The method comprising the steps of:
6. The method of claim 5, wherein the step of assigning the plurality of identifiers to the slave module comprises:
Wherein the master module is assigned via an 'Assign PID (Protected Identifier)' command.
6. The method of claim 5,
Wherein the master command does not transmit a master command defined in the LIN communication standard.
6. The method of claim 5, wherein performing the particular action comprises:
Recognizing an identifier transmitted from the master module by referring to a storage unit storing a plurality of identifiers and a plurality of specific operation information associated with the plurality of identifiers; And
Performing a specific operation associated with the recognized identifier;
The method comprising the steps of:
KR1020120128173A 2012-11-13 2012-11-13 Lin communication system for vehicle and method for driving slave module in the system KR101958477B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020120128173A KR101958477B1 (en) 2012-11-13 2012-11-13 Lin communication system for vehicle and method for driving slave module in the system
CN201310438827.6A CN103809552B (en) 2012-11-13 2013-09-24 LIN communication system for vehicle and method for driving slave module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120128173A KR101958477B1 (en) 2012-11-13 2012-11-13 Lin communication system for vehicle and method for driving slave module in the system

Publications (2)

Publication Number Publication Date
KR20140061043A true KR20140061043A (en) 2014-05-21
KR101958477B1 KR101958477B1 (en) 2019-03-14

Family

ID=50706490

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120128173A KR101958477B1 (en) 2012-11-13 2012-11-13 Lin communication system for vehicle and method for driving slave module in the system

Country Status (2)

Country Link
KR (1) KR101958477B1 (en)
CN (1) CN103809552B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160005524A (en) * 2014-07-07 2016-01-15 현대모비스 주식회사 Sensor module for a vehicle and method for assigning sensor id using the system
KR101593338B1 (en) 2014-12-31 2016-02-11 현대다이모스(주) Apparatus for lin communication of vehicle and control method thereof
KR20160050142A (en) * 2014-10-28 2016-05-11 대성전기공업 주식회사 Apparatus for multi switch relay
KR101866093B1 (en) * 2016-12-06 2018-06-11 현대오트론 주식회사 Apparatus and method for controlling operation of Slave Controller
US20200412756A1 (en) * 2018-05-23 2020-12-31 Panasonic Intellectual Property Corporation Of America Communication control device, anomaly detection electronic control unit, mobility network system, communication control method, anomaly detection method, and recording medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007142694A (en) * 2005-11-17 2007-06-07 Fujitsu Ten Ltd Lin communication apparatus and lin communication control method
JP2010136286A (en) * 2008-12-08 2010-06-17 Denso Corp Onboard communication network system
JP2010268066A (en) * 2009-05-12 2010-11-25 Hitachi Automotive Systems Ltd Lin communication device and lin communication control method
KR20110046073A (en) * 2009-10-28 2011-05-04 동의대학교 산학협력단 System and Method for Monitoring Integrated Gateway in ???

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ITTO20060799A1 (en) * 2006-11-09 2008-05-10 Enzo Tarizzo CONTROL SYSTEM OF ELECTRICAL AND / OR ELECTRONIC EQUIPMENT AND DEVICES DISPLACED IN AN ENVIRONMENT, IN PARTICULAR IN A DOMESTIC ENVIRONMENT
CN101539775A (en) * 2009-04-09 2009-09-23 南京赛格微电子科技有限公司 Automobile control module system for identifying address automatically
FR2969451B1 (en) * 2010-12-17 2013-01-11 St Microelectronics Rousset METHOD AND DEVICE FOR COMMUNICATING BETWEEN ONE MASTER AND SEVERAL SLAVES FOLLOWING A SERIAL COMMUNICATION PROTOCOL, ESPECIALLY OF THE OPEN DRAIN TYPE
CN102156477A (en) * 2011-05-19 2011-08-17 苏州市职业大学 AGV (automatic guided vehicle) control platform and realizing method of AGV control platform
CN202285095U (en) * 2011-10-27 2012-06-27 广东省电子技术研究所 Communication system for card collector/dispenser
CN102738525A (en) * 2012-06-14 2012-10-17 沈阳中科正方新能源技术有限公司 Battery management system of vehicle-mounted lithium power battery

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007142694A (en) * 2005-11-17 2007-06-07 Fujitsu Ten Ltd Lin communication apparatus and lin communication control method
JP2010136286A (en) * 2008-12-08 2010-06-17 Denso Corp Onboard communication network system
JP2010268066A (en) * 2009-05-12 2010-11-25 Hitachi Automotive Systems Ltd Lin communication device and lin communication control method
KR20110046073A (en) * 2009-10-28 2011-05-04 동의대학교 산학협력단 System and Method for Monitoring Integrated Gateway in ???

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIN 프로토콜 시간 모델링 및 메시지 응답 시간 해석에 대한 연구(연제명 등 2명, 2005년) *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160005524A (en) * 2014-07-07 2016-01-15 현대모비스 주식회사 Sensor module for a vehicle and method for assigning sensor id using the system
KR20160050142A (en) * 2014-10-28 2016-05-11 대성전기공업 주식회사 Apparatus for multi switch relay
KR101593338B1 (en) 2014-12-31 2016-02-11 현대다이모스(주) Apparatus for lin communication of vehicle and control method thereof
KR101866093B1 (en) * 2016-12-06 2018-06-11 현대오트론 주식회사 Apparatus and method for controlling operation of Slave Controller
US10541834B2 (en) 2016-12-06 2020-01-21 Hyundai Autron Co., Ltd. Apparatus and method of controlling operation of slave controller
US20200412756A1 (en) * 2018-05-23 2020-12-31 Panasonic Intellectual Property Corporation Of America Communication control device, anomaly detection electronic control unit, mobility network system, communication control method, anomaly detection method, and recording medium

Also Published As

Publication number Publication date
CN103809552B (en) 2017-04-12
KR101958477B1 (en) 2019-03-14
CN103809552A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
WO2020216235A1 (en) Vehicle-mounted gateway communication method, vehicle-mounted gateway, and smart vehicle
KR101958477B1 (en) Lin communication system for vehicle and method for driving slave module in the system
US9800319B2 (en) Relay apparatus
KR101500094B1 (en) Message transmission/reception system and method for ethernet-based vehicle network
CN106453465B (en) System and method for interworking between a vehicle controller and an external resource
CN110535667A (en) Method and apparatus for the communication node in selective wake-up vehicle network
EP3534257B1 (en) System for updating software in moving body using vehicle-mounted gateway
CN105897652A (en) Standard protocol based heterogeneous terminal dynamic access method
CN102404306B (en) Protocol configuration method and device
CN106200567A (en) Improve CAN communication method and the data frame structure of traffic rate
CN105388858A (en) Operation method of communication node in network
US9596225B2 (en) Out-of-vehicle device interface apparatus and method for protecting in-vehicle network
CN112075063B (en) Gateway for data communication in a vehicle
KR20170040326A (en) Communication control device for a subscriber station of a bus system, programming tool and method for programming subscriber stations in a bus system which has subscriber stations communicating according to different protocols
CN113434168A (en) Vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power
CN106506228A (en) Method for sharing mobile network in multiple systems and terminal system
US10250434B2 (en) Electronic control apparatus
CN103217956B (en) Industrial control system as well as control method and control device thereof
CN106506303A (en) A kind of main station system of controller real-time ethernet EtherCAT
KR20180074128A (en) Diagnosis message routing system and method for gateway of vehicle
KR101704300B1 (en) Method for transmitting/receiving can message and system performing the same
CN101539775A (en) Automobile control module system for identifying address automatically
CN104253727A (en) Diagnosis method and system of vehicle LIN (local interconnect network)
CN115695067A (en) Communication method and device for vehicle bus
CN111357244B (en) Method for providing data packets from a CAN bus, control device and system having a CAN bus

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right