How to implement freely variable payload length for FlexRay dynamic frames on MPC5604P

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

How to implement freely variable payload length for FlexRay dynamic frames on MPC5604P

ソリューションへジャンプ
63件の閲覧回数
kabusiji
Contributor I

Hello everyone,

I am currently developing FlexRay communication using the MPC5604P MCU, and I need to implement frame-by-frame transmission of different payload lengths in the Dynamic Segment.

I noticed that in NXP's official FlexRay Unified Driver example, the configuration of the Dynamic Segment involves parameters such as G_NUMBER_OF_MINISLOTS, GD_MINISLOT, and P_PAYLOAD_LENGTH_DYN_MAX. However, these parameters appear to be global configuration settings rather than frame-by-frame configurable options. Is there any solution to achieve this functionality?

I would greatly appreciate any insights or suggestions. Thank you very much!

0 件の賞賛
返信
1 解決策
29件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The FlexRay cluster parameters G_NUMBER_OF_MINISLOTS, GD_MINISLOT, and P_PAYLOAD_LENGTH_DYN_MAX are global timing parameters and must remain consistent across the cluster. P_PAYLOAD_LENGTH_DYN_MAX defines the maximum payload length that any dynamic frame may use; it does not force every dynamic frame to have that length.

Dynamic-segment frames may carry different payload lengths. The actual length is specified in the payload-length field of the individual frame header and is expressed in 16-bit words. Therefore, configure P_PAYLOAD_LENGTH_DYN_MAX for the largest required frame, and update the transmit message-buffer payload-length field before each transmission. Odd byte lengths require padding to the next even number of bytes.

If the FlexRay Unified Driver version being used fixes the payload length during LPDU configuration and does not expose this field through its transmit API, then freely changing the length for one configured LPDU is not supported directly by that driver interface. In that case, either configure multiple dynamic LPDUs with different lengths or modify/use the low-level message-buffer handling to update the frame header while observing the MPC5604P message-buffer locking procedure.

Best regards,

Peter

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
30件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The FlexRay cluster parameters G_NUMBER_OF_MINISLOTS, GD_MINISLOT, and P_PAYLOAD_LENGTH_DYN_MAX are global timing parameters and must remain consistent across the cluster. P_PAYLOAD_LENGTH_DYN_MAX defines the maximum payload length that any dynamic frame may use; it does not force every dynamic frame to have that length.

Dynamic-segment frames may carry different payload lengths. The actual length is specified in the payload-length field of the individual frame header and is expressed in 16-bit words. Therefore, configure P_PAYLOAD_LENGTH_DYN_MAX for the largest required frame, and update the transmit message-buffer payload-length field before each transmission. Odd byte lengths require padding to the next even number of bytes.

If the FlexRay Unified Driver version being used fixes the payload length during LPDU configuration and does not expose this field through its transmit API, then freely changing the length for one configured LPDU is not supported directly by that driver interface. In that case, either configure multiple dynamic LPDUs with different lengths or modify/use the low-level message-buffer handling to update the frame header while observing the MPC5604P message-buffer locking procedure.

Best regards,

Peter

0 件の賞賛
返信
14件の閲覧回数
kabusiji
Contributor I
I get it, thank you very match
0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2406368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMPC5604P%E3%81%A7FlexRay%E3%83%80%E3%82%A4%E3%83%8A%E3%83%9F%E3%83%83%E3%82%AF%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%81%AE%E3%83%9A%E3%82%A4%E3%83%AD%E3%83%BC%E3%83%89%E9%95%B7%E3%82%92%E8%87%AA%E7%94%B1%E3%81%AB%E5%8F%AF%E5%A4%89%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2406368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%E3%81%BF%E3%82%93%E3%81%AA%E3%80%81%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%E7%8F%BE%E5%9C%A8%E3%80%81MPC5604P%20MCU%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6FlexRay%E9%80%9A%E4%BF%A1%E3%82%92%E9%96%8B%E7%99%BA%E3%81%97%E3%81%A6%E3%81%8A%E3%82%8A%E3%80%81%E3%83%80%E3%82%A4%E3%83%8A%E3%83%9F%E3%83%83%E3%82%AF%E3%82%BB%E3%82%B0%E3%83%A1%E3%83%B3%E3%83%88%E3%81%A7%E7%95%B0%E3%81%AA%E3%82%8B%E3%83%9A%E3%82%A4%E3%83%AD%E3%83%BC%E3%83%89%E3%81%AE%E9%95%B7%E3%81%95%E3%82%92%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E5%8D%98%E4%BD%8D%E3%81%A7%E9%80%81%E4%BF%A1%E3%81%99%E3%82%8B%E5%AE%9F%E8%A3%85%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%A7%E3%81%99%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3ENXP%E3%81%AE%E5%85%AC%E5%BC%8FFlexRay%20Unified%20Driver%E3%81%AE%E4%BE%8B%E3%81%A7%E3%81%AF%E3%80%81%E3%83%80%E3%82%A4%E3%83%8A%E3%83%9F%E3%83%83%E3%82%AF%E3%82%BB%E3%82%B0%E3%83%A1%E3%83%B3%E3%83%88%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%AF%E6%AC%A1%E3%81%AE%E3%82%88%E3%81%86%E3%81%AA%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF%E3%81%8C%E5%90%AB%E3%81%BE%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AB%E6%B0%97%E3%81%A5%E3%81%8D%E3%81%BE%E3%81%97%E3%81%9F%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EG_NUMBER_OF_MINISLOTS%3CSPAN%20class%3D%22%22%3E%E3%80%81%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EGD_MINISLOT%3CSPAN%20class%3D%22%22%3E%E3%80%81%E3%81%9D%E3%81%97%E3%81%A6%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EP_PAYLOAD_LENGTH_DYN_MAX%3CSPAN%20class%3D%22%22%3E%E3%80%82%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%E3%81%93%E3%82%8C%E3%82%89%E3%81%AE%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF%E3%81%AF%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%81%94%E3%81%A8%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%8F%E3%80%81%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%E3%81%AA%E8%A8%AD%E5%AE%9A%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E8%A6%8B%E3%81%88%E3%81%BE%E3%81%99%E3%80%82%E3%81%93%E3%81%AE%E6%A9%9F%E8%83%BD%E3%82%92%E5%AE%9F%E7%8F%BE%E3%81%99%E3%82%8B%E8%A7%A3%E6%B1%BA%E7%AD%96%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%E3%81%94%E6%84%8F%E8%A6%8B%E3%82%84%E3%81%94%E6%8F%90%E6%A1%88%E3%82%92%E3%81%84%E3%81%9F%E3%81%A0%E3%81%91%E3%82%8C%E3%81%B0%E5%A4%A7%E5%A4%89%E3%81%82%E3%82%8A%E3%81%8C%E3%81%9F%E3%81%84%E3%81%A7%E3%81%99%E3%80%82%E3%81%A9%E3%81%86%E3%82%82%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%EF%BC%81%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2406724%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20implement%20freely%20variable%20payload%20length%20for%20FlexRay%20dynamic%20frames%20on%20MPC5604P%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2406724%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%81%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2406466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20implement%20freely%20variable%20payload%20length%20for%20FlexRay%20dynamic%20frames%20on%20MPC5604P%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2406466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3C%2FP%3E%0A%3CP%3EFlexRay%E3%82%AF%E3%83%A9%E3%82%B9%E3%82%BF%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF%E3%81%A7%E3%81%82%E3%82%8BG_NUMBER_OF_MINISLOTS%E3%80%81GD_MINISLOT%E3%80%81%E3%81%8A%E3%82%88%E3%81%B3P_PAYLOAD_LENGTH_DYN_MAX%E3%81%AF%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%E3%81%AA%E3%82%BF%E3%82%A4%E3%83%9F%E3%83%B3%E3%82%B0%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF%E3%81%A7%E3%81%82%E3%82%8A%E3%80%81%E3%82%AF%E3%83%A9%E3%82%B9%E3%82%BF%E5%85%A8%E4%BD%93%E3%81%A7%E4%B8%80%E8%B2%AB%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82P_PAYLOAD_LENGTH_DYN_MAX%E3%81%AF%E3%80%81%E5%8B%95%E7%9A%84%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%81%8C%E4%BD%BF%E7%94%A8%E3%81%A7%E3%81%8D%E3%82%8B%E6%9C%80%E5%A4%A7%E3%83%9A%E3%82%A4%E3%83%AD%E3%83%BC%E3%83%89%E9%95%B7%E3%82%92%E5%AE%9A%E7%BE%A9%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E5%8B%95%E7%9A%84%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%81%AB%E3%81%9D%E3%81%AE%E9%95%B7%E3%81%95%E3%82%92%E5%BC%B7%E5%88%B6%E3%81%99%E3%82%8B%E3%82%82%E3%81%AE%E3%81%A7%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%83%80%E3%82%A4%E3%83%8A%E3%83%9F%E3%83%83%E3%82%AF%E3%82%BB%E3%82%B0%E3%83%A1%E3%83%B3%E3%83%88%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%81%AF%E3%80%81%E7%95%B0%E3%81%AA%E3%82%8B%E9%95%B7%E3%81%95%E3%81%AE%E3%83%9A%E3%82%A4%E3%83%AD%E3%83%BC%E3%83%89%E3%82%92%E6%90%AD%E8%BC%89%E3%81%A7%E3%81%8D%E3%82%8B%E3%80%82%E5%AE%9F%E9%9A%9B%E3%81%AE%E9%95%B7%E3%81%95%E3%81%AF%E3%80%81%E5%80%8B%E3%80%85%E3%81%AE%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%83%98%E3%83%83%E3%83%80%E3%83%BC%E3%81%AE%E3%83%9A%E3%82%A4%E3%83%AD%E3%83%BC%E3%83%89%E9%95%B7%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AB%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%80%8116%E3%83%93%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%83%89%E5%8D%98%E4%BD%8D%E3%81%A7%E8%A1%A8%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%E3%81%97%E3%81%9F%E3%81%8C%E3%81%A3%E3%81%A6%E3%80%81%E5%BF%85%E8%A6%81%E3%81%AA%E6%9C%80%E5%A4%A7%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%82%B5%E3%82%A4%E3%82%BA%E3%81%AB%E5%90%88%E3%82%8F%E3%81%9B%E3%81%A6P_PAYLOAD_LENGTH_DYN_MAX%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%97%E3%80%81%E9%80%81%E4%BF%A1%E5%89%8D%E3%81%AB%E9%80%81%E4%BF%A1%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%83%90%E3%83%83%E3%83%95%E3%82%A1%E3%81%AE%E3%83%9A%E3%82%A4%E3%83%AD%E3%83%BC%E3%83%89%E9%95%B7%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%82%92%E6%9B%B4%E6%96%B0%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E5%A5%87%E6%95%B0%E3%83%90%E3%82%A4%E3%83%88%E3%81%AE%E9%95%B7%E3%81%95%E3%81%AF%E3%80%81%E6%AC%A1%E3%81%AE%E5%81%B6%E6%95%B0%E3%83%90%E3%82%A4%E3%83%88%E3%81%AB%E3%81%AA%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%83%91%E3%83%87%E3%82%A3%E3%83%B3%E3%82%B0%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%82%82%E3%81%97%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8BFlexRay%20Unified%20Driver%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%81%8CLPDU%E8%A8%AD%E5%AE%9A%E6%99%82%E3%81%AB%E3%83%9A%E3%82%A4%E3%83%AD%E3%83%BC%E3%83%89%E3%81%AE%E9%95%B7%E3%81%95%E3%82%92%E5%9B%BA%E5%AE%9A%E3%81%97%E3%80%81%E9%80%81%E4%BF%A1API%E3%82%92%E9%80%9A%E3%81%98%E3%81%A6%E3%81%93%E3%81%AE%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%82%92%E5%85%AC%E9%96%8B%E3%81%97%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88%E3%80%81%E8%A8%AD%E5%AE%9A%E6%B8%88%E3%81%BF%E3%81%AELPDU%E3%81%A7%E9%95%B7%E3%81%95%E3%82%92%E8%87%AA%E7%94%B1%E3%81%AB%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AF%E3%80%81%E3%81%9D%E3%81%AE%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E3%83%BC%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%95%E3%82%A7%E3%83%BC%E3%82%B9%E3%81%A7%E7%9B%B4%E6%8E%A5%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%E3%81%9D%E3%81%AE%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%81%E7%95%B0%E3%81%AA%E3%82%8B%E9%95%B7%E3%81%95%E3%81%AE%E8%A4%87%E6%95%B0%E3%81%AE%E5%8B%95%E7%9A%84LPDU%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B%E3%81%8B%E3%80%81%E4%BD%8E%E3%83%AC%E3%83%99%E3%83%AB%E3%81%AE%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%83%90%E3%83%83%E3%83%95%E3%82%A1%E5%87%A6%E7%90%86%E3%82%92%E4%BF%AE%E6%AD%A3%E3%83%BB%E5%88%A9%E7%94%A8%E3%81%97%E3%81%A6%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%83%98%E3%83%83%E3%83%80%E3%83%BC%E3%82%92%E6%9B%B4%E6%96%B0%E3%81%97%E3%81%A4%E3%81%A4%E3%80%81MPC5604P%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%83%90%E3%83%83%E3%83%95%E3%82%A1%E3%81%AE%E3%83%AD%E3%83%83%E3%82%AF%E6%89%8B%E9%A0%86%E3%82%92%E8%A6%B3%E5%AF%9F%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%83%94%E3%83%BC%E3%82%BF%E3%83%BC%3C%2FP%3E%3C%2FLINGO-BODY%3E