フーリエ変換には角周波数を扱うものと周波数を扱うものがある。角周波数と周波数の間には角度と1回転という差があるのみ。よって、周波数に2πをかければ角周波数となる。
シミュレーションで実物を扱わなくても仕事ができる環境を目指す。つまり家に引きこもって外に出なくてもOKな世界。
[DoCAN] Vehicle Diagnostic Communication Part 47 [UDS 8]
There are five services to be realized by UDS simulation DiagnosticSessionControl. SecurityAccess. TesterPresent. ReadDataByIdentifier. WriteDataByIdentifier. When explaining the request and response messages, the CAN frame is not explained. I will only explain the ISO 14229-1 layer and not the ISO 15765-2 layer.
[DoCAN] Vehicle Diagnostic Communication Part 46 [UDS 7]
Presentation of the overall structure of the USD simulation. A-COMSTACK is AUTOSAR r3.x series and OpenSAR is AUTOSAR r4.x series. Therefore, illegal construction.
[DoCAN] Vehicle Diagnostic Communication Part 45 [UDS 6]
Click here for back issues.Introduction.Explanation of ISO 14229, or UDS.This time, the open source AUTOSAR, which is di
[DoCAN] Vehicle Diagnostic Communication Part 44 [UDS 5]
Routine explanation. Mainly used for functions such as those used during development. Explanation of Upload/Download. A group of services for data transfer that can also compress and encrypt data.
[DoCAN] Vehicle Diagnostic Communication Part 43 [UDS 4]
Stored Data Transmission Description. Getting and clearing DTC and freeze data. Description of Input/Output Control. I/O control of ECU. While convenient, this service can be dangerous depending on the condition of the vehicle,so it is necessary to consider safety functions.
Windows10でフォトが消えた。というかストアも消えてた。ってところからの復旧
PowerShellを管理者権限で起動し、ストアを削除&再インストール。 ストアからフォトをインストール。 なぜ消えたかは不明。
[DoCAN] Vehicle Diagnostic Communication Part 42 [UDS 3]
Diagnostic services fall into six categories of functional units. Diagnostic and Communications Management explained. Session, Security, and Communications Control. Data Transmission Description. Read/write data by memory address and DID.
[DoCAN] Vehicle Diagnostic Communication Part 41 [UDS 2]
P2 time is explained with figures. P2* timeout will be explained later. S3 time is explained with figures. S3 time is explained in detail. It is difficult if you don't know the various services.
[DoCAN] Vehicle Diagnostic Communication Part 40 [UDS 1]
Click here for back issues.Introduction.I will start explaining ISO 14229 (UDS) from this time.Vehicle Diagnostic Commun
[CanTp] Vehicle Diagnostic Communication Part 39 [Simulation 27]
Click here for back issues.Introduction.Let's simulate ISO-TP. Series of.Continuation of the times to simulate.This
[CanTp] Vehicle Diagnostic Communication Part 38 [Simulation 26]
Review of simulation configuration. Code handling on the virtual ECU side. Currently, it's private, give me a break. Confirmation of communication logs of SF-SF, SF-MF, and MF-MF.
[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.
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 they 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.
[CanTp] Vehicle Diagnostic Communication Part 28 [Simulation 16]
To realize MCAL-CANDRV, it is necessary to reproduce the receive and transmit completion interrupts. The XL driver library notifies the events of received, sent, and error via Win32API event object. Therefore, knowledge of thread and event object handling by Win32API is required.
[CanTp] Vehicle Diagnostic Communication Part 27 [Simulation 15]
We are now in the AUTOSAR CanTp section! AUTOSAR has a layered structure of SW-C, RTE, BSW, and MCAL. AUTOSAR CanTp is one of BSW and reproduces ISO 15765-2.
[CanTp] Vehicle Diagnostic Communication Part 26 [Simulation 14]
We experimented with changing FC parameters in can-isotp. can-isotp is highly complete. At least, it is much better than those vehicle diagnostic communication whose structure is broken.
[CanTp] Vehicle Diagnostic Communication Part 25 [Simulation 13]
We experimented with can-isotp request-response. SF-SF communication -> OK! MF-MF communication -> OK!
[CanTp] Vehicle Diagnostic Communication Part 24 [Simulation 12]
Most vehicle diagnostic communication is a single request-response communication. There are some exceptions such as request-only and response-only communication, but they are quite rare. Both the request and response sides are script fatted by the receive thread mechanism.
[CanTp] Vehicle Diagnostic Communication Part 23 [Simulation 11]
I changed the FC equivalent to change the behavior of can-isotp multi-frame requests. The behavior is now compliant with the specified STmin. The time parameters for communication are wide enough to allow for synchronization between systems. If it is more than 10[ms], we aim for 11[ms] to ensure that it meets 10[ms] or more.
[CanTp] Vehicle Diagnostic Communication Part 22 [Simulation 10]
In the default state of can-isotp, the DLC optimization specification is adopted. If you set padding and MIN_DLC in the parameters passed to CanStack, it switches to the padding specification.
[CanTp] Vehicle Diagnostic Communication Part 21 [Simulation 9]
The FC's add up in python-can. Supported by inserting CAN frames with a bit of timing in python-can. This allowed the multi-frame request to go through for now.
[CanTp] Vehicle Diagnostic Communication Part 20 [Simulation 8]
The Python package can-isotp can communicate ISO15765-2, or ISO-TP. However, python-can must also be installed due to dependencies. For now, SF (SingleFrame) transmission is possible. The multi-frame transmission stopped at FF (FirstFrame) and ended in an error. The protocol specification is that the next sequence cannot proceed unless FC is received after FF.
[CanTp] Vehicle Diagnostic Communication Part 19 [Simulation 7]
Listed the devices supported by python-can. Sending/receiving by python-can was realized.
「ブログリーダー」を活用して、KEIさんをフォローしませんか?
フーリエ変換には角周波数を扱うものと周波数を扱うものがある。角周波数と周波数の間には角度と1回転という差があるのみ。よって、周波数に2πをかければ角周波数となる。
動画作成関連のバックナンバー用ページ。立ち絵を作ったり、動画作ったり、アイキャッチ画像作ったりなどを掲載していく。
MATLAB,Python,Scilab,Julia比較するシリーズの第4章。第4章では分類問題で最終的にはニューラルネットワークや最適化アルゴリズムの話だった。第5章はフーリエ解析学から高速フーリエの話がメインとなる。
立ち絵の配置: PSDファイルをAviUtlに配置し、画面サイズやフレームレートを設定。のっぺらぼう化: 目と口を消して、アニメーション効果を追加。アニメーション効果: 目パチと口パクの設定を行い、リップシンクを調整。
フーリエ変換を定義。フーリエの積分公式の一部を抜き出す。逆フーリエ変換を定義。フーリエの積分公式にフーリエ変換を代入するだけ。
Δωで刻みにしたので、極限を利用して連続系へ。数式上は連続ではあるが、一般的な表現ではない。区分求積法とリーマン積分について。フーリエの積分公式を導出した。
VOICEVOXとAivisSpeechキャラと一緒に!AviUtlを使った動画作成 バックナンバーはじめに以前、AivisSpeechのAnneliというキャラの立ち絵を作成した。さらにそこに加えて、AivisSpeechのアイコン画像を...
PSDToolKitプラグインの導入の仕方を説明。PSDファイルを探してGIMPで内容を確認。GIMPで瞬き用、口パク用のレイヤー編集。
フーリエに積分公式は複素フーリエ級数と複素フーリエ係数から導出する。周期2Lの波の数を示すnを周期2πに於ける波の数である角周波数ωに変換。角周波数ωの刻みであるΔωについて説明。Δωを定義することで、離散的な係数算出が連続的な角周波数算出に近づけていっている。
区分求積法とリーマン積分について。離散と連続の分け目。フーリエの積分公式を導出した。演算したはずなのに変化しない。つまり変換、逆変換が成立することを示している。
Δωで刻みにしたので、極限を利用して連続系へ。数式上は連続ではあるが、一般的な表現ではない。よって、一般的な表現に書き換える必要がある。
角周波数ωの刻みであるΔωについて説明。Δωを定義することで、離散的な係数算出が連続的な角周波数算出に近づけていっている。
周期2Lの波の数を示すnを周期2πに於ける波の数である角周波数ωに変換。ω=nπ/Lを使用して変換するだけ。これにより少し数式がシンプルになった。
VOICEVOXとAivisSpeechキャラと一緒に!AviUtlを使った動画作成 バックナンバーはじめに以前、AivisSpeechのAnneliというキャラの立ち絵を作成した。ほぼ独自に作成したが、Anneliの画像自体はAivisS...
フーリエに積分公式は複素フーリエ級数と複素フーリエ係数から導出する。変換を想定した式に変換。複素指数関数との積と積分、総和を経由すると元に関数に戻るというイメージが重要。
AviUtlのセットアップと拡張編集Pluginの導入を行った。mp4ファイルの入力と出力の方法を説明。アニメーションgifの対応方法を説明。
分数は割り算の別表現として理解しやすく、逆数を掛けることで計算が簡単になる。これにより、小数の掛け算や割り算の理解が深まる。一次関数の数式をグラフにすることや、グラフから数式を導くことは、データのトレンド分析や物理現象の理解に役立つ。微分は関数の変化率を求める手法であり、数値微分を使って近似的に求めることができる。これにより、物理学や経済学など多くの分野で応用可能。
Youtube動画やブログ記事のアイキャッチ用に作成した、VOCEIVX(四国めたん、ずんだもん、春日部つむぎ)、AivisSpeech(Anneli)の画像たち。Stable Diffusionで生成&少しペン入れ&GIMPによる補正したものになります。
各種フーリエについてまとめてみた。いままでは級数→係数の順番でやっていたため、逆フーリエ変換→フーリエ変換の順番が自然。実際には「フーリエの積分公式を求める」ことになるが、これは逆フーリエ変換そのものである。
各種フーリエについてまとめてみた。いままでは級数→係数の順番でやっていたため、逆フーリエ変換→フーリエ変換の順番が自然。実際には「フーリエの積分公式を求める」ことになるが、これは逆フーリエ変換そのものである。
モーメンタムを確認するプログラムの方針を確認。 以前の勾配降下法のプログラムをベースにする。 隠れ層のユニット数は4。 プログラムのフローを確認。 モーメンタム項とパラメータ更新が基本的な差分となる。
モーメンタムの更新式について確認。 指数移動平均を利用して直近の値を重視する。 モーメンタムの動作イメージについて確認。 最初は大きく更新して、最適解が近いと小さく更新。 勾配降下法で言うところの学習率が可変と同義な動きになる。
勾配降下法の更新式を確認。 勾配降下法の動作イメージを確認。 学習率が大きい場合と小さい場合で挙動が変わる。 ちょうど良い学習率を人間の手で探す。 これにより、一般的なパラメータとは異なるハイパーパラメータというカテゴリになる。
最適化アルゴリズムを取り扱う。 今回のネットワークだとさほど恩恵はないが知っていて損はない。 まずはモーメンタムから解説&実験をしていく。 最初は復習を兼ねて勾配降下法についても確認する。
モーメンタムを確認するプログラムの方針を確認。 以前の勾配降下法のプログラムをベースにする。 隠れ層のユニット数は4。 プログラムのフローを確認。 モーメンタム項とパラメータ更新が基本的な差分となる。
モーメンタムの動作イメージについて確認。 動作イメージの表現は難しい。 最初は大きく更新して、最適解が近いと小さく更新。 勾配降下法で言うところの学習率が可変と同義な動きになる。
モーメンタムの更新式について確認。 指数移動平均を利用して直近の値を重視する。 実際の指数移動平均とは異なっているので、その点は注意。
勾配降下法の動作イメージを確認。 学習率が大きい場合と小さい場合で挙動が変わる。 ちょうど良い学習率を人間の手で探す。 これにより、一般的なパラメータとは異なるハイパーパラメータというカテゴリになる。
今回改めてまじめに更新式を確認。 勾配降下法の更新式が一番シンプルなので今後の最適化アルゴリズムの更新式を見る際は比較対象になりやすい。
最適化アルゴリズムを取り扱う。 今回のネットワークだとさほど恩恵はないが知っていて損はない。 まずはモーメンタムから解説&実験をしてい 最初は復習を兼ねて勾配降下法についても確認する。
多層パーセプトロンの隠れ層のユニット数を2から4に変えたJuliaコードで分類を実施。 大きく2パターンの分類パターンがある。 やや複雑な分類パターンが4ユニットにすることで出てきたもの。
多層パーセプトロンの隠れ層のユニット数を2から4に変えたScilabコードで分類を実施。 大きく2パターンの分類パターンがある。 やや複雑な分類パターンが4ユニットにすることで出てきたもの。
多層パーセプトロンの隠れ層のユニット数を2から4に変えたPythonコードで分類を実施。 大きく2パターンの分類パタ やや複雑な分類パターンが4ユニットにすることで出てきたもの。
多層パーセプトロンの隠れ層のユニット数を2から4に変えたMATLABコードで分類を実施。 大きく2パターンの分類パターン やや複雑な分類パターンが4ユニットにすることで出てきたもの。
多層パーセプトロンの隠れ層のユニット数を2から4に変えたJuliaコードで分類を実施。 大きく2パターンの分類パターンがある。 やや複雑な分類パターンが4ユニットにすることで出てきたもの。
多層パーセプトロンの隠れ層のユニット数を2から4に変えたScilabコードで分類を実施。 大きく2パターンの分類パターンがある。 やや複雑な分類パターンが4ユニットにすることで出てきたもの。
多層パーセプトロンの隠れ層のユニット数を2から4に変えたPythonコードで分類を実施。 大きく2パターンの分類パターンがある。 やや複雑な分類パターンが4ユニットにすることで出てきたもの。
多層パーセプトロンの隠れ層のユニット数を2から4に変えたMATLABコードで分類を実施。 大きく2パターンの分類パターンがある やや複雑な分類パターンが4ユニットにすることで出てきたもの。
多層パーセプトロンの隠れ層のユニット数を増やす。 表現力が上がるはず。 局所最適解にハマらないというより大域最適解に近い局所最適解が増えるというイメージ。 プログラム上の修正点確認。 ベクトル、行列演算ができるため修正範囲は極小。
多層パーセプトロンの隠れ層のユニット数を増やす。 表現力が上がるはず。 局所最適解にハマらないというより大域最適解に近い局所最適解が増えるというイメージ。 プログラム上の修正点確認。 ベクトル、行列演算ができるため修正範囲は極小。