Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of contents

...

Table of Contents
minLevel1
maxLevel4

Introduction

...

You can output a debug log from AdamApp by using ADAM_DEBUG_PRINT() fuction function included in AdamDebug.h. (In this case, you do not need to call ADAM_DEBUG_OPEN() function nor ADAM_DEBUG_CLOSE() function.)

Info

For Python, please use the adam_debug_print() function.

The logs will be saved in non-volatile memory of i-PRO camera itself if the UDP Log setting shown below
was not set.
The non-volatile memory is a ring buffer, thus the older logs will be overwritten by new ones.
The AdamApp log output will be in pf_<install ID>_<processId>.log* within log/adam in syslog.tgz which
can be obtained from the i-PRO Web display.

...

Also, this tutorial refers to the SDK installation directory as ${SDK_DIR}.

How to view debug logs on i-PRO

...

(1) Launch Google Chrome

(2) Click the "Extensions" button on the right side of the address bar in Chrome and click "Adam application manager for i-pro".

...

(3) Enter the IP address of the camera in Target and click the Connect button.

...

Note

However, you cannot connect to the camera unless you are logged in to the camera.
If you cannot connect, enter the camera's IP address (eg 192.168.0.10) in the browser URL as shown below, and click the "Connect" button while logged into the camera.

...

Image Added

Enable UDPLog

...

Set IP address and port number of PC to receive UDPLog by using Adam Control Extension.

Info

Check the PC's IP address by using ipconfig at the command prompt.

...

Image RemovedImage Added

Image RemovedImage Added

Image RemovedImage Added

Receive UDPLog

The tools for receiving and displaying UDPLog consists of ‘UDPLog receiving server’ and ‘UDPLog Receiver (Google Chrome extension)’. They are included in the iPRO_CAMERA_SDK as shown below.

...

${SDK_DIR}/tool/ResourceMonitorExtension
* ‘UDPLog Receiver’ is included in ‘Resource Monitor’.

...

UDPLog receiving server

Start UDP Log receiving server by disabling the firewall on your PC(If you do not disable the firewall, please set the port appropriately or configure the security software appropriately).

Note

It is the customer's responsibility to change or disable firewall and security software settings. Please note that we cannot be held responsible for any trouble that may occur.

On Windows, run UDPLogRecvSrv.exe. On Linux, run startup.sh.
Here, run ${SDK_DIR}/tool/UDPLogRecvSrv/UDPLogRecvSrv-win32-x64/UDPLogRecvSrv.exe.
Run a startup.sh using a root privilege if you are using well-known port for the UDP Log port number on Linux.

...

Here, leave the default values and click the START button to start the UDPLog receiving server.

UDPLog Receiver

Launch Resource Monitor. Please refer to here(how to install)★link★ and here(how to launch)★link★ for how to install Resource Monitor and how to launch Resource Monitor respectively.

Select ‘UDPLog Receiver’ in ‘Select Mode’.

...

Operation - Save To Files
UDPLog をファイル保存する場合、チェックします。本項目にチェックが入っている場合、START ボタン押下時にログ保存ディレクトリ名を設定するダイアログボックスが表示されます。ログ保存ディレクトリは UDPLog 受信サーバ「UDPLogRecvSrv.exe」と同じディレクトリ内に生成されます。Tick if you want to save UDPLog as files. If this item is ticked, a dialog box to set up the storage directory name appears when you click “START”. The log storage directory is created in the same directory as the UDPLog receiving server.

Operation - Single file
最大行数ごとにファイルを分割せず、単一ファイルにすべての UDPLog を保存する場合にチェックします。Tick if you want to save all UDPLogs in a single file without splitting the files by the maximum number of lines.

Operation - Show realtime
UDPLog を表示エリアに表示する場合にチェックします。Tick if you want to display UDPLog on the display area.

Operation - Original log
受信ログをそのまま表示する場合にチェックします。チェックしていない場合、ログデータの行頭にシーケンス番号及び受信時の PC 時刻を付与します。Tick to display the reception log as it is. The sequence number and the PC time at the time of reception will be added to the beginning of the log data line unless you tick this box.

Operation - Show the latest [NNNN] lines
表示エリアに最新何行を表示するかを選択します。古いログから消えます。Select how many lines are displayed on the display area. Older logs will be taken place by the newer logs.

...

Clock the Operation - STARTボタンを押してUDPLogが表示されることを確認してください。 START button and confirm that UDPLog is displayed.