Lin periodicity [ Cycle Time ]

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Lin periodicity [ Cycle Time ]

1,450件の閲覧回数
itsnewforme
Contributor IV

Hii, I want to manipulate the time periodicity to send Lin frame on Bus.

How can I do that ?

Thanks in advance

タグ(2)
0 件の賞賛
返信
1 返信

1,414件の閲覧回数
DanNguyenDuy
NXP Employee
NXP Employee

Hi itsnewforme,

Lin stack sends frames based on schedule table. The frames in the schedule table are sent sequentially on the bus. When the end of the current schedule is reached, the schedule is started
again, at the beginning of the schedule. So, you can add the frames you want to send to a schedule in ldf file. And then you must use the l_sch_set() function to active this schedule. Please refer the chapter 2.4 of LIN_Specfication_package_2.2A.ldf for detail.
 
For example:
  1. Define NormalTable schedule in the ldf file. The schedule has two frames, there are Motor1Control and Motor1State_Cycl. The frame slot of each frame is 50ms.
            nxf78987_0-1669370198003.png

 

  1. After initialize LIN network interface, call the l_sch_set() function to active this schedule.
  2. nxf78987_1-1669370198004.png

     

  1. There are the frames that are sent sequentially on the bus.
          nxf78987_2-1669370198006.png

 

Best regards,

Dan

0 件の賞賛
返信