chevron_left

メインカテゴリーを選択しなおす

cancel
KEI
フォロー
住所
未設定
出身
未設定
ブログ村参加

2020/02/11

arrow_drop_down
  • [CanTp] Vehicle Diagnostic Communication Part 18 [Simulation 6]

    CAN transmissions were replayed in can.player and recorded in can.logger. There are three file formats recorded by can.logger. asc, blf, and csv.

  • [CanTp] Vehicle Diagnostic Communication Part 17 [Simulation 5]

    I installed python-can. Checked the operation of python-can. Sent by can.player and recorded by BusMaster. The performance of python-can is on the order of 1-2[ms]. CANoe has better accuracy.

  • [CanTp] Vehicle Diagnostic Communication Part 16 [Simulation 4]

    Finally, we get into Python. I'll use Anaconda, but you can use the official Python for Windows. You'd better make sure each one works! (I keep telling myself that…)

  • [CanTp] Vehicle Diagnostic Communication Part 15 [Simulation 3]

    We set up BusMaster. Monitored CAN frames on Virtual CAN Bus with BusMaster.

  • [CanTp] Vehicle Diagnostic Communication Part 14 [Simulation 2]

    We installed Vector's free XL Driver Library and Vector Driver Setup. There is an application called xlCANControl in the XL Driver Library, so it is a quick way to check the operation. You can assign channels to each app, so you need to assign them in VectorHardware in the control panel.

  • [CanTp] Vehicle Diagnostic Communication Part 13 [Simulation 1]

    We are tired of studying and it's time to do some simulations. I will also do AUTOSAR related things. I will also dare the challenge of using Python.

  • [DoCAN] Vehicle Diagnostic Communication Part 12 [ISO-TP 8]

    ISO15765-2 (UDS) and ISO15765-4 (OBD) have different values for the timeout parameter. The UDS side is looser and the OBD side is stricter. Some timeout parameters are set as performance requirements. N_Br and N_Cs.

  • [DoCAN] Vehicle Diagnostic Communication Part 11 [ISO-TP 7]

    ISO-TP has six timeout parameters. N_As, N_Bs, N_Cs, N_Ar, N_Br, and N_Cr. Single frame transmission is complete in one frame, so only N_As. Multi-frame transmission uses all parameters. ISO-TP only determines the timeout at the frame level, and the timeout per message is determined by a higher layer.

  • [DoCAN] Vehicle Diagnostic Communication Part 10 [ISO-TP 6]

    Decomposition of SF-SF and MF-MF communications into type of frame. MF-MF communication behaves slightly differently in the BS and FS of FC. The parts of the message that are not included in the message for DLC reasons are filled in with padding. Any value can be used for padding. Commonly used values are 00, 55, AA, CC, and FF.

  • [DoCAN] Vehicle Diagnostic Communication Part 9 [ISO-TP 5]

    Four types of frames are explained. The first N_PCItype is available for immediate judgment upon reception. Each has its own unique parameters. SF. SF_DL. FF. FF_DL. FC. FS. BS. STmin. CF. SN.

  • [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]

    Click here for back issues.Introduction.This article is the second part of a series on the data link layer of CAN, ISO 1

  • [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。

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

    MATLABでやったDCモータ状態空間モデルをPID制御をPython(Numpy)で実施。 Pythonの場合、構造体はclassで実現。 事前にclassを定義する必要はある。 MATLABと同様の結果が得られた。

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

    PID制御器のブロック線図と全体構成を再掲。 上記をMATLABで実現。 接続に関してはコード上では分かり難いので全体構成図と見比べながら確認した方が良い。 シミュレーション実施。 u(t)の挙動と見るとPID制御っぽい挙動になっている。 各PIDゲインを調整すると挙動が変わるはず。

  • MATLAB,Python,Scilab,Julia比較【バックナンバー】

    はじめにMATLAB,Python,Scilab,Julia比較するシリーズ。といっても基本はベクトル行列ベースの演算に留め、各環境独自の機能はあまり使わない方針。あくまでベクトル&行列でどこまでできて、ベクトル&行列に留めているが故に各ツ

  • MATLAB,Python,Scilab,Julia比較 その80【PID制御⑨】

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

  • MATLAB,Python,Scilab,Julia比較 その79【PID制御⑧】

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

  • MATLAB,Python,Scilab,Julia比較 その78【PID制御⑦】

    MATLABでやったDCモータ状態空間モデルをPID制御をPython(Numpy)で実施。 Pythonの場合、構造体はclassで実現。 事前にclassを定義する必要はある。 MATLABと同様の結果が得られた。

  • MATLAB,Python,Scilab,Julia比較 その77【PID制御⑥】

    PID制御器のブロック線図と全体構成を再掲。 上記をMATLABで実現。 接続に関してはコード上では分かり難いので全体構成図と見比べながら確認した方が良い。 シミュレーション実施。 u(t)の挙動と見るとPID制御っぽい挙動になっている。 各PIDゲインを調整すると挙動が変わるはず。

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

    DCモータの状態空間モデルを制御するためPID制御器を追加する。 上記を実現するためPID制御器の離散化を行う必要がある。 PID制御器は速度型PIDとする。 ワインドアップ対策の都合、速度型PIDを使うことが多い。 数式は複雑っぽく見えるがブロック線図としてはシンプル。

  • MATLAB,Python,Scilab,Julia比較 その75【PID制御④】

    PID制御の数式をオイラー法で微分解決して離散化。 一見するとカオスには見えるが、似たような式が並んではいる。 上記がブロック線図にする際にいい感じに効いてくる。(たぶん)

arrow_drop_down

ブログリーダー」を活用して、KEIさんをフォローしませんか?

ハンドル名
KEIさん
ブログタイトル
シミュレーションの世界に引きこもる部屋
フォロー
シミュレーションの世界に引きこもる部屋

にほんブログ村 カテゴリー一覧

商用