# Log

## Print Log via Serial Port

### Connection Diagram

<figure><img src="https://4245975826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkg35R2FOXC4295wPDYgm%2Fuploads%2FW1llgTg85sOHRCNm5vFS%2FDecoder-Serial%20Port.jpg?alt=media&#x26;token=be29fdfd-3b5f-47ec-af30-aea614f8ef83" alt=""><figcaption></figcaption></figure>

### Wire Connection Diagram

<figure><img src="https://4245975826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkg35R2FOXC4295wPDYgm%2Fuploads%2Fa49rP9DRoAJPSO4r8bSJ%2FSerial%20Port_Wire01.jpg?alt=media&#x26;token=fa661483-288d-452f-938a-8cf43ccc1486" alt=""><figcaption><p>Black Wire to Black Wire</p></figcaption></figure>

<figure><img src="https://4245975826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkg35R2FOXC4295wPDYgm%2Fuploads%2FyFIf1xH6AB0AHRJwhwWw%2FSerial%20Port_Wire02.jpg?alt=media&#x26;token=62a319d3-6774-4065-bba7-939c47dd3113" alt=""><figcaption></figcaption></figure>

### Procedure of Print Log

1. Download driver of CP2102 from the following link:

{% file src="<https://4245975826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkg35R2FOXC4295wPDYgm%2Fuploads%2FP6Ig9aerQWvbLlWbNsvg%2FCP210x_Drivers.rar?alt=media&token=f188c17f-c9ed-427d-8866-eae9211c8c64>" %}

2. Install driver of CP2102 by double clicking the compressed file->CP2102\_Drivers\_Win10->double clik "CP210xVCPInstaller\_x64.exe" to install directly

<figure><img src="https://4245975826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkg35R2FOXC4295wPDYgm%2Fuploads%2F8hJpih6Zvo3qv2hcM4eJ%2FInstall%20driver%20of%20CP2102.jpg?alt=media&#x26;token=932faa46-eb02-48d8-806a-c8d9c61fda76" alt=""><figcaption></figcaption></figure>

3. Go to Device Manager->Click Ports (COM & LPT)->Check Silicon Labs CP210x USB to UART Bridge (COM19)

<figure><img src="https://4245975826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkg35R2FOXC4295wPDYgm%2Fuploads%2F5nymhFfA4vNx1kU2EnkQ%2FDriver_CP210%20COM19.jpg?alt=media&#x26;token=95b76448-e950-4e64-abca-041f65c8a44e" alt=""><figcaption></figcaption></figure>

4. Get encoder and Axis IP Camea (one by one)connected to the same router or switch and make sure they're on the same local area network;
5. Pull RTSP Stream of Axis IP Camera (one by one) into the encoder  directly no matter whether it's successfully streaming in the encoder;
6. Download PuTTY from following link:

{% file src="<https://4245975826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkg35R2FOXC4295wPDYgm%2Fuploads%2FLugFhL2kOSwQ0HGIBtg6%2Fputty.exe?alt=media&token=34072cba-419f-41a0-af01-64b0f7f5d037>" %}

7. Run PuTTY->Select "Serial"->Serial Line"COM19"->Speed "115200"

<figure><img src="https://4245975826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkg35R2FOXC4295wPDYgm%2Fuploads%2FrOgDLZznEy8Xpqk8TkYb%2FPuTTY_Serial_Speed.jpg?alt=media&#x26;token=e2e8141f-2952-4c35-8244-44019badd5b4" alt=""><figcaption></figcaption></figure>

8. Select Logging->Printable Output->Click"Browse"->Rename the file of log->Save->Click "Open"->Then it'll start printing the log, if it always prints one same error like gpio\_i2c\_failed->Then click "EXIT" to save this log.&#x20;

<figure><img src="https://4245975826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkg35R2FOXC4295wPDYgm%2Fuploads%2FpQzby2dA85iBmnoMWbrp%2FPuTTY_Logginig_Printable%20Output_Browse.jpg?alt=media&#x26;token=13fd3a7a-615a-46ec-97f8-0b86ecb47bb0" alt=""><figcaption></figcaption></figure>

9. Once done, then power off all devices, connect another AXIS IP Camera and do it again.

## Print Log via CGI

1. Get encoder and Axis IP Camea (one by one)connected to the same router or switch and make sure they're on the same local area network;
2. Modify the IP address (192.168.1.64 for example), username(admin) and password (12345) for the encoder via Device Manager;
3. Pull RTSP Stream of Axis IP Camera (one by one) into the encoder  directly no matter whether it's successfully streaming in the encoder;
4. Run a browser like Chrome and enter the following CGI command in the browser's Address field: <http://192.168.1.64/cgi/download?file=log&user=admin&pwd=12345>, then save the log;
5. Then connect another AXIS IP Camera and do it again.
