Change parameters by API ONT model HUAWEI HG8145X6-10

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’ -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.

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"]]}'

Can you show me how to do it?

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

At this time I do not offer custom consulting services. You can engage with a support contract by emailing 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.

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

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

Yes.

00259E-HG8145X6%2D10-48575443D31190AC

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

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

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.

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

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"]]}'

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

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

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?

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

: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"]]}'

See this update:

Now the error message has changed