2022-11

車両診断通信

[DoCAN] Vehicle Diagnostic Communication Part 8 [ISO-TP 4]

CAN multiple frames can send/receive up to 4095 bytes. The parameter N_PCI is at the start of each frame, and there is a mechanism to concatenate the frames well. There are two main transmission methods depending on the number of data to be sent. If the number of data to be sent is 7 bytes or less, single frame transmission is used. If the number of transmitted data is 8 bytes or more, it is a multi-frame transmission. Multi-frame transmission has a mechanism to control the throughput by setting the CF transmission interval and the timing for receiving another FC with FC.
車両診断通信

[DoCAN] Vehicle Diagnostic Communication Part 7 [ISO-TP 3]

Extended addressing is an extended version of Normal addressing with N_TA added. Mixed addressing has 11bitID and 29bitID versions. The 11bitID (standard ID) version is based on Normal addressing and assumes gateway traversal. The 29bitID (extended ID) version is based on Normal fixed addressing and assumes gateway traversal.
車両診断通信

[DoCAN] Vehicle Diagnostic Communication Part 6 [ISO-TP 2]

Normal addressing is the simplest addressing format. Normal fixed addressing is the easiest addressing format to define as a specification
車両診断通信

[DoCAN] Vehicle Diagnostic Communication Part 5 [ISO-TP 1]

There are physical addresses for one-to-one communication and functional addresses for one-to-many communication. Physical and functional addresses are composed of four different addressing formats The addressing formats consist of N_AI, N_TAtype, N_TA, N_SA, and N_AE. However, they may or may not be used depending on the addressing format.
車両診断通信

[DoCAN] Vehicle Diagnostic Communication Part 4 [CAN 3]

To determine the sampling points, the number of quantums in each segment must be determined. There are 4 types of segments, each for 1 bit. Synchronization Segment. Propagation Segment. Phase Segment1. Phase Segment2. Propagation Segment + Phase Segment1 is called tseg1, and Phase Segment2 is called tseg2
車両診断通信

[DoCAN] Vehicle Diagnostic Communication Part 3 [CAN 2]

Basically, a Google search can provide information on the CAN data link layer. CAN baud rate setting is special. It is not possible to set the baud rate directly, but the quantum time, which is a decomposition of 1 bit, is determined first. Since the total quantum is the baud rate, it is necessary to calculate backward from the baud rate you want to set. CAN can adjust the sampling point. It can be decided at which quantum in the total quantum to sample. This is often expressed as [%]. 50[%] for the middle, 75[%] for slightly behind (around 3/4).
車両診断通信

[DoCAN] Vehicle Diagnostic Communication Part 2 [CAN 1]

The required standard numbers were reviewed. CAN has become a relatively common specification, and you can find information there on the Internet and in books. 1 Mbps is not often used in DoCAN. For legal reasons 1Mbps lacks stability in some aspects.
車両診断通信

[DoCAN] Vehicle Diagnostic Communication Part 1 [Overview]

The typical standards for vehicle diagnostic communication are ISO 15765-2 and ISO 14229-1. Depending on the manufacturer's policy, the standard number may be a requirement rather than a specific requirement. The layers of vehicle diagnostic communication can be represented by the OSI model. There are two main axes of vehicle diagnostic communication. UDS and OBD. OBD is referenced by vehicle emission regulations, so the various parameters are clear. UDS only has recommended values, and the actual values are dependent on the finished vehicle manufacturer.
数値計算

【入門】状態空間モデルをPID制御(Julia)【数値計算】

JuliaでDCモータ状態空間モデルをPID制御シミュレーション。 Juliaも構造体を定義できるが、structだと更新不可になる。よってmutableを使って更新可能な構造体にする必要がある。 シミュレーション結果は他のツール言語と同じ結果が得られた。
数値計算

【入門】状態空間モデルをPID制御(Scilab)【数値計算】

ScilabでDCモータ状態空間モデルをPID制御シミュレーション実施。 コード自体はMATLABと一緒。 構造体の生成の仕方も一緒だが、内部的には連想配列で実現されている。 シミュレーション結果もOK。