Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for simulating LIN bus host to send LIN data packet

A data packet and bus technology, applied in bus network, data exchange network, electrical digital data processing, etc., can solve the problem that RS232 serial port does not support LIN bus, etc., and achieve the effect of improving the level of intelligence

Inactive Publication Date: 2020-06-19
明见(厦门)技术有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the RS232 serial ports of most MCUs support the LIN bus mode, but the RS232 serial ports of some more advanced MCUs do not support the LIN bus, such as the current popular chip with AI

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for simulating LIN bus host to send LIN data packet

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The present invention will be further described in conjunction with the accompanying drawings and specific embodiments.

[0017] Such as figure 1 Shown, a kind of method of simulating LIN bus master to send LIN data packet, wherein, described method comprises the following steps:

[0018] S1. Initialize the RS232 serial port of the MCU, and set its baud rate to the first baud rate, which is lower than the working baud rate of the LIN bus. Preferably, the first baud rate is equal to half of the working baud rate of the LIN bus. For example, if the working baud rate of the LIN bus is 19200bps, the first baud rate may be set to 9600bps. Suppose the time for each bit of the first baud rate is t1, and the time for each bit of the working baud rate of the LIN bus is t2, then t1=2*t2.

[0019] S2. Send a byte of data 0 (low level). Like this, will produce the low level time of 9*t1 under the first baud rate, will be the low level time of 9*(2*t2)=18*t2 for the working baud...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for simulating an LIN bus host to send an LIN data packet, and the method comprises the following steps: S1, initializing an RS232 serial port of an MCU, setting theBaud rate of the RS232 serial port as a first Baud rate, and enabling the first Baud rate to be smaller than the working Baud rate of an LIN bus; s2, sending data 0 of one byte; s3, blocking a predetermined time, the predetermined time multiplied by the first Baud rate being at least greater than 10 bits (bits); s4, the RS232 serial port of the MCU is reinitialized, the Baud rate of the RS232 serial port is set to be a second Baud rate, and the second Baud rate is equal to the working Baud rate of the LIN bus; s5, sending normal data. According to the method, the MCU which does not support theLIN bus can be applied to the LIN bus in a basically zero-cost mode, and therefore the intelligent level of the vehicle-mounted equipment is improved.

Description

technical field [0001] The invention relates to the field of vehicle data transmission, in particular to a method for simulating a LIN bus master to send LIN data packets. Background technique [0002] In the vehicle bus, the LIN bus is a commonly used vehicle low-cost bus. The LIN master will have a break field before sending LIN data. This break field requires at least 10 bits of low level, and the low level of 10 bits cannot be realized without LIN mode. At present, the RS232 serial ports of most MCUs support the LIN bus mode, but the RS232 serial ports of some relatively advanced MCUs do not support the LIN bus, such as the currently popular chips with AI. However, LIN bus is still used in many vehicle-mounted low-cost solutions. How to use MCUs that do not support LIN bus for LIN bus has become an urgent problem to be solved. Contents of the invention [0003] The present invention aims to provide a method for simulating a LIN bus master to send LIN data packets, so...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/42G06F13/38H04L12/40
CPCG06F13/382G06F13/4286H04L12/4013H04L2012/40234H04L2012/40273
Inventor 朱进阳
Owner 明见(厦门)技术有限公司