KEI

車両診断通信

[CanTp] Vehicle Diagnostic Communication Part 37 [Simulation 25]

Fixed the script for Python can-isotp requests. The request is now ISO14229-1 compliant. Implemented AUTOSAR-CanTp side. The response is now SO14229-1 compliant as well. The code has not been published yet for personal reasons.
車両診断通信

[CanTp] Vehicle Diagnostic Communication Part 36 [Simulation 24]

We defined a concrete configuration structure for AUTOSAR-CanTp. The number PduId is used when interacting with CanIf. In this case, the following. 0: Transmission of 0x18DAF110. 1: Receipt of 0x18DA10F1. 2: Transmission of 0x18DA10F1. 3: Receipt of 0x18DAF110. The Receive Control Block for CH_RX_CB and the Transmit Control Block for CH_TX_CB are for work.
車両診断通信

[CanTp] Vehicle Diagnostic Communication Part 35 [Simulation 23]

The configuration structure of CanTp is described in the AUTOSAR specification. However, there is no UML description. The update priority may have been lowered since it has been followed since the OSEK era. This time, we will define the corresponding structure entity manually without using a configurator.
車両診断通信

[CanTp] Vehicle Diagnostic Communication Part 34 [Simulation 22]

CanTp is based on the concept of a pair of transmitting and receiving channels. Channels can be duplicated. However, dynamic duplication is not allowed. Only static duplication is possible.
MATLAB/Simulink

Windows10(64bit)でMATLAB 2012b のmex setup(コンパイラ環境構築)

※ レジストリをいじるので、本記事をもとに作業する場合は自己責任でお願いします。 MATLAB 2012bの64bitコンパイラ環境はVisual C++ 2010にする必要があるのだが、 Windows10においてはVisual C++ 2010且つ64bitコンパイラを用意するのはかなり難儀した。 自分自身の忘備録として残しておく。
車両診断通信

[CanTp] Vehicle Diagnostic Communication Part 33 [Simulation 21]

Review of AUTOSAR CanTp interfaces. I have drawn a figure of the interfaces of AUTOSAR CanTp. Each interface is defined in its own header file. But we need to be reconciled for simulation.
車両診断通信

[CanTp] Vehicle Diagnostic Communication Part 32 [Simulation 20]

The AUTOSAR CanTp specification is published in AUTOSAR_SWS_CANTransportLayer. The minimum interfaces that need to be grasped are the following. CanTp_Transmit. CanTp_MainFunction. CanTp_RxIndication. CanTp_TxConfirmation. CanIf_Transmit. PduR_CanTpCopyRxData. PduR_CanTpCopyTxData. PduR_CanTpRxIndication. PduR_CanTpStartOfReception. PduR_CanTpTxConfirmation.
車両診断通信

[CanTp] Vehicle Diagnostic Communication Part 31 [Simulation 19]

The body of CanTp for A-COMSTACK is cantp.c. Many header files also need to be brought in. Timer interrupt and exclusion are realized by Win32API.
車両診断通信

[CanTp] Vehicle Diagnostic Communication Part 30 [Simulation 18]

A-COMSTACK, a set of communication stack BSW for AUTOSAR, is released by the TOPPERS Association. CanTp is used in this stack. A-COMSTACK can only be used commercially if you are an AUTOSAR partner. This time, it is used for learning purpose. The off-board tester side for operation check uses python can-isotp.
車両診断通信

[CanTp] Vehicle Diagnostic Communication Part 29 [Simulation 17]

The code for interrupt emulation is presented. Wait for signal with WaitForSingleObject. xlCanReceive to get various information on receive, send, and error. xlEvent.tag allocates to various processes.