# Change parameters by API ONT model HUAWEI HG8145X6-10

**URL:** <https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796>\
**Category:** Uncategorized\
**Created:** [July 30, 2024, 6:56pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796 "2024-07-30T18:56:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 30, 2024, 6:56pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/1 "2024-07-30T18:56:11Z")

</div>

Hello. I have purchased a new model of HUWEI ONT HG8145X6-10 and I am not able to modify its parameters through the GenieACS API.  
This is only happening with this ONT model. Previous Huawei ONT models work without problems.

The query I am sending through API is the following.

Example: curl -i ‘[http://172.15.0.13:7557/devices/00259E-HG8145X6-10-48575443D31190AC/tasks?timeout=120&connection\_request](http://172.15.0.13:7557/devices/00259E-HG8145X6%2D10-48575443D31190AC/tasks?timeout=120&connection_request)’ -X POST --data ‘{“name”:“setParameterValues”, “parameterValues”: [[“InternetGatewayDevice.LANDevice” .1.WLANConfig.1.SSID", “TEST”, “xsd:sring”]]}’ HTTP/1.1 404 Not Found GenieACS-Version: 1.2.9+20220822165235 Date: Tue, 30 Jul 2024 13:31:28 GMT Connection: keep-alive Keep-Alive: timeout=5  
Transfer-Encoding: chunked

The difference I find with the other ONT models is that the model name contains a “-” and this GenieACS translates as “%2D”

00259E-HG8145X6%2D10-48575443D31190AC

Could this be the possible cause??

I appreciate the help in advance.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 30, 2024, 7:02pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/2 "2024-07-30T19:02:26Z")

</div>

You need to encode the - in the device ID.  
`curl -i 'http://172.15.0.13:7557/devices/00259E-HG8145X6%2d10-48575443D31190AC/tasks?timeout=120&connection_request' -X POST --data '{"name":"setParameterValues", "parameterValues": [["InternetGatewayDevice.LANDevice.1.WLANConfig.1.SSID", "TEST", "xsd:sring"]]}'`

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 30, 2024, 7:04pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/3 "2024-07-30T19:04:33Z")

</div>

Can you show me how to do it?

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 30, 2024, 7:26pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/4 "2024-07-30T19:26:10Z")

</div>

Currently the “ **-** ” is encoded as “ **%2d** ”. Is this correct?

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 30, 2024, 7:27pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/5 "2024-07-30T19:27:47Z")

</div>

At this time I do not offer custom consulting services. You can engage with a support contract by emailing [sales@genieacs.com](mailto:sales@genieacs.com).

GenieACS is not, nor will it ever be plug-and-play. A level of familiarity with setting up and configuring server software is required. You will also need programming skills to be successful.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 30, 2024, 7:28pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/6 "2024-07-30T19:28:10Z")

</div>

> [@Dario](#):
>
> Currently the “ **-** ” is encoded as “ **%2d** ”. Is this correct?

Did you try it? Or just question if I’m wrong? I can assure you I am not.

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 30, 2024, 7:32pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/7 "2024-07-30T19:32:10Z")

</div>

Yes. I have tested it.  
In this code the device is encrypted

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 30, 2024, 7:33pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/8 "2024-07-30T19:33:13Z")

</div>

Yes.

# 00259E-HG8145X6%2D10-48575443D31190AC

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 30, 2024, 7:35pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/9 "2024-07-30T19:35:31Z")

</div>

The device firmware being encrypted has no bearing on being able to set TR-069/TR-181 parameter values.

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 30, 2024, 7:44pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/10 "2024-07-30T19:44:06Z")

</div>

Ok. Do you think I should update the firmware version of the ONT device?

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 30, 2024, 7:53pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/11 "2024-07-30T19:53:10Z")

</div>

> [@akcoder](#):
>
> The device firmware being encrypted has no bearing on being able to set TR-069/TR-181 parameter values.

I forgot to mention that the device can be manipulated without any problems from the GenieACS website. The only problem is generated by the API.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 30, 2024, 8:04pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/12 "2024-07-30T20:04:26Z")

</div>

> [@Dario](#):
>
> The only problem is generated by the API.

The issue is not with the API, but the parameters you are providing to the API. What is the output from this command:

```auto
curl -i 'http://172.15.0.13:7557/devices/00259E-HG8145X6%2D10-48575443D31190AC/tasks?timeout=120&connection_request' -X POST --data '{"name":"setParameterValues", "parameterValues": [["InternetGatewayDevice.LANDevice.1.WLANConfig.1.SSID", "TEST"]]}'

```

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 31, 2024, 2:01am UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/13 "2024-07-31T02:01:40Z")

</div>

> [@akcoder](#):
>
> The issue is not with the API, but the parameters you are providing to the API. What is the output from this command:

The output of the command is:

HTTP/1.1 404 Not Found GenieACS-Version: 1.2.9+20220822165235 Date: Wed, 31 Jul 2024 02:00:17 GMT Connection: keep-alive Keep-Alive: timeout=5 Transfer-Encoding: chunked

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 31, 2024, 2:04am UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/14 "2024-07-31T02:04:23Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/2/2e424a7d9eb3c0243616865057da9bcc24aa3e27.png)

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 31, 2024, 4:53pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/15 "2024-07-31T16:53:58Z")

</div>

Go to the page for the device in GenieACS and grab the Device ID in its entirety and substitute that in the URL.

 ![Screenshot 2024-07-31 at 8.52.00 AM](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/f/f012559a602721fee4a16635b32e1fcaeb9af663.png)

---

<div class="post-metadata">

**Author:** ![niconana25](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/niconana25/32/1931_2.png) [@niconana25](https://forum.genieacs.com/u/niconana25)\
**Post date:** [July 31, 2024, 4:54pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/16 "2024-07-31T16:54:12Z")

</div>

Hello, I have the same problem with ONT model HG8145X6-10.  
I have the same error, does anyone have the same problem or found a way to solve it?

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 31, 2024, 4:59pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/17 "2024-07-31T16:59:07Z")

</div>

> [@akcoder](#):
>
> Go to the page for the device in GenieACS and grab the Device ID in its entirety and substitute that in the URL.

If you check the Device ID is the same one I am using in the command I send the API

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/2/26c6d4e98757618ff138bb038d1974bae2662481.png)

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 31, 2024, 5:56pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/18 "2024-07-31T17:56:27Z")

</div>

🤦‍♂️. I forgot you have to URL encode device ID. Try this URL

```auto
curl -i 'http://172.15.0.13:7557/devices/00259E-HG8145X6%252D10-48575443D31190AC/tasks?timeout=120&connection_request' -X POST --data '{"name":"setParameterValues", "parameterValues": [["InternetGatewayDevice.LANDevice.1.WLANConfig.1.SSID", "TEST"]]}'

```

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 31, 2024, 5:57pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/19 "2024-07-31T17:57:15Z")

</div>

See this update:

> [@Change parameters by API ONT model HUAWEI HG8145X6-10](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/18):
>
> man_facepalming. I forgot you have to URL encode device ID. Try this URL curl -i 'http://172.15.0.13:7557/devices/00259E-HG8145X6%252D10-48575443D31190AC/tasks?timeout=120&connection\_request' -X POST --data '{"name":"setParameterValues", "parameterValues": [["InternetGatewayDevice.LANDevice.1.WLANConfig.1.SSID", "TEST"]]}'

---

<div class="post-metadata">

**Author:** ![Dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Dario](https://forum.genieacs.com/u/Dario)\
**Post date:** [July 31, 2024, 6:25pm UTC](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796/20 "2024-07-31T18:25:40Z")

</div>

> [@Change parameters by API ONT model HUAWEI HG8145X6-10](#):
>
> curl -i ‘[http://172.15.0.13:7557/devices/00259E-HG8145X6%252D10-48575443D31190AC/tasks?timeout=120&connection\_request](http://172.15.0.13:7557/devices/00259E-HG8145X6%252D10-48575443D31190AC/tasks?timeout=120&connection_request)’ -X POST --data ‘{“name”:“setParameterValues”, “parameterValues”: [[“InternetGatewayDevice.LANDevice.1.WLANConfig.1.SSID”, “TEST”]]}’

Now the error message has changed

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/b/bb52d1b57c39706858fd937ee1dd1eab0b0be564.png)

[Next page](https://forum.genieacs.com/t/change-parameters-by-api-ont-model-huawei-hg8145x6-10/5796.md?page=2)
