0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

概要

TunerStudioを、究める。
debug手順

debug手順

プロジェクトをオープンする。

TunerStudioのメニューにある「Communications」>「Debug Log Comm」を有効にする。

マイドキュメントの TunerStudioProjects内のTunerStudioAppDebug.txtを見る。

logサンプル

serial
COM6
115200

26/08/04 10:46:09 :Time: 0:17.228: SENT 1 bytes iwd=3, rd=250, rt=200, ers=3, 1 bytes
x46                                                                   F

26/08/04 10:46:09 :Time: 0:17.491: READ 3 bytes, 3 bytes
x6F x68 x69                                                           ohi


26/08/04 10:46:09 :Debug: Purged 8 orphaned bytes:
26/08/04 10:46:09 :Debug: Time:17.499s. 0x45 0x46 0x49 0x20 0x76 0x30 0x2E 0x31 
26/08/04 10:46:09 :Debug: Time:17.499s. 

26/08/04 10:46:09 :Debug: Time:17.499s.   E    F    I         v    0    .    1  
26/08/04 10:46:09 :Time: 0:17.494: SENT 1 bytes iwd=3, rd=250, rt=250, ers=-1, 1 bytes
x48                                                                   H

26/08/04 10:46:09 :Time: 0:17.741: READ 11 bytes, 11 bytes
x6F x68 x69 x45 x46 x49 x20 x76 x30 x2E x31                           ohiEFI.v0.1

26/08/04 10:46:09 :Time: 0:17.741: SENT 1 bytes iwd=3, rd=250, rt=200, ers=3, 1 bytes
x46                                                                   F

26/08/04 10:46:10 :Warning: Unsupported Controller Firmware: ohiEFI v0.1
26/08/04 10:46:10 :Time: 0:18.006: READ 3 bytes, 3 bytes
x6F x68 x69                                                           ohi

26/08/04 10:46:10 :Info: Connecting to controller on: RS232: Port:COM6, Baud:115200

26/08/04 10:46:10 :Debug: Purged 8 orphaned bytes:
26/08/04 10:46:10 :Debug: Time:18.421s. 0x45 0x46 0x49 0x20 0x76 0x30 0x2E 0x31 
26/08/04 10:46:10 :Debug: Time:18.421s. 

26/08/04 10:46:10 :Debug: Time:18.421s.   E    F    I         v    0    .    1  
26/08/04 10:46:10 :Time: 0:18.416: SENT 1 bytes iwd=3, rd=250, rt=200, ers=3, 1 bytes
x46                                                                   F

TunerStudioで変更したINIファイルを再読み込み(リロード)する方法

状況(ECUとの接続状態など)によって主に3つの方法があります。
状況に合わせて最適な方法を選んでください。

1. プロジェクトを開いたまま再読み込みする(一番おすすめ)

TunerStudioを終了せずに、キーボードのショートカットかメニューからプロジェクトをリロードできます。

  • ショートカットキー: Ctrl + W を押す(Macは Cmd + W)
  • メニューから: 上部メニューの [File] > [Close Project] をクリック。
  • 手順:
    一度プロジェクトを閉じたら、再びスタート画面から同じプロジェクトを開き直します。これでINIファイルの最新の状態が画面(UIや変数定義)に反映されます。

2. ECUと接続中に差分を強制同期する(ファームウェア定義が変わった場合)

INIファイル内の [Constants](設定変数)のオフセットや構造を書き換えた場合、ECU内のデータと不一致が起きて警告が出ることがあります。その場合は強制同期を行います。

  • 手順:
  1. プロジェクトを開き、ECUと通信を確立(オンライン状態に)します。
  2. 上部メニューの [Communications] > [Msq Online-Offline Diff] を開きます。
  3. 画面の指示に従い、PC側(INIベース)の定義をECUに書き込むか、ECUから再読み込み(Fetch)を行います。

3. TunerStudio自体を完全に再起動する

INIファイルの構成を大きく書き換えた場合や、上記の方法でUIのバグが直らない場合は、ソフトの再起動が最も確実です。

  • 手順:
  1. TunerStudioを一度完全に終了します。
  2. (確認)編集したINIファイルが、プロジェクトフォルダ内の projectCfg/mainController.ini に上書き保存されていることを確認します。
  3. 再びTunerStudioを起動し、プロジェクトを開きます。

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?