> For the complete documentation index, see [llms.txt](https://irnas.gitbook.io/opencollar/-MDJCI9OmpOqWrQzjNIR/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://irnas.gitbook.io/opencollar/-MDJCI9OmpOqWrQzjNIR/manufacturing/primary-test-otii.md).

# Primary test - Otii

{% hint style="success" %}
<https://github.com/IRNAS/otii-consumption-analysis>
{% endhint %}

![Otii setup](/files/-MSSUTCmETRV9QnM5jIf)

![Connection for power](/files/-MSSUTCYjoCfPLQEZX6_)

## Instructions

### Step 1 - Download "otii-consumption-analysis" from Github.

### Step 2 - Connect otii setup to your computer and run Otii software - open New project.

```
otii settings:  new project
        project settings
        
        -> arc
        supply: power box
        main voltage: 3,30V
        over current protection: 0,500A
        digital voltage level: check ''same as supply''
        
        -> current 
        check main current
        check auto range
        
        -> voltage
        check GPI1 value
        
        -> logs
        check UART
        baud rate: 115200
```

### Step 3 - In Otii software navigate to File -> Preferences -> Server and click "Start"

![Start Otii server](/files/-MSSUTClNvENBPT6RwGu)

### Step 4 - Connect the device via "tag-connect".

![Lion PCB](/files/-MSSUTCmETRV9QnM5jIf)

![On Rhino PCB connect + directly to bat + on PCB](/files/-MSSU14bFPolpN2sdJAW)

### Step 5 - Run the command with Command Prompt or Visual Studio Code

a) Command Prompt: Navigate to your folder with "otii-consumption-analysis" and run:

```
python .\otii_analyzer.py -f .\otii_smartparks_rhino.json
```

b) Visual Studio Code: Navigate to your folder with "otii-consumption-analysis" and run command:&#x20;

```
PS C:\Users\Sticker\Documents\otii-consumption-analysis> python .\otii_analyzer.py -f .\otii_smartparks_rhino.json
```

![Command prompt](/files/-MSWVenWe4zLomIwHKnp)

### Step 6 - Log file after a successful test should look like this:

```
OK 0.0400186968914555 μWh
OK 0.2927783995633925 μWh
OK 0.029815154270834313 μWh
OK 0.012477693194445067 μWh
OK 140.1002367360885 μWh
OK 0.02873970756828776 μWh
OK 9.717506900152328 μWh
.
----------------------------------------------------------------------
Ran 1 test in 47.983s
OK
```

### Step 7 - Rename the device log in Otii software "week number"-"device number".


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://irnas.gitbook.io/opencollar/-MDJCI9OmpOqWrQzjNIR/manufacturing/primary-test-otii.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
