# RX-Power- converter

**URL:** <https://forum.genieacs.com/t/rx-power-converter/3921>\
**Category:** Uncategorized\
**Created:** [May 5, 2023, 6:38pm UTC](https://forum.genieacs.com/t/rx-power-converter/3921 "2023-05-05T18:38:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magnospeed](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Magnospeed](https://forum.genieacs.com/u/Magnospeed)\
**Post date:** [May 5, 2023, 6:38pm UTC](https://forum.genieacs.com/t/rx-power-converter/3921/1 "2023-05-05T18:38:56Z")

</div>

Hey guys!

How do I make this conversion for the Optical Signal appear in the correct pattern?

Example;

Hey guys!

![Signal](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/7/7374f228e868891d6ce26aa02da016afe32adcb5.png)

---

<div class="post-metadata">

**Author:** ![hellracer](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/hellracer/32/1047_2.png) [@hellracer](https://forum.genieacs.com/u/hellracer)\
**Post date:** [May 6, 2023, 10:26pm UTC](https://forum.genieacs.com/t/rx-power-converter/3921/2 "2023-05-06T22:26:09Z")

</div>

Ask your device manufacturer, this can not magically compute without their help

In our device from some chinese brand this is how we compute this as per their support

I’m going to use your data sample data 154 and 32 respectively the result is -18 and -24, take it with a grain of salt!

```auto

console.log(Math.ceil(30 + (Math.log10((154 * (Math.pow(10,-7))))*10))); /* -18 */
console.log(Math.ceil(30 + (Math.log10((32 * (Math.pow(10,-7))))*10))); /* -24 */

```

---

<div class="post-metadata">

**Author:** ![Magnospeed](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Magnospeed](https://forum.genieacs.com/u/Magnospeed)\
**Post date:** [May 8, 2023, 12:54pm UTC](https://forum.genieacs.com/t/rx-power-converter/3921/3 "2023-05-08T12:54:47Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![BRnetwork](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/brnetwork/32/1635_2.png) [@BRnetwork](https://forum.genieacs.com/u/BRnetwork)\
**Post date:** [January 2, 2024, 6:49am UTC](https://forum.genieacs.com/t/rx-power-converter/3921/4 "2024-01-02T06:49:36Z")

</div>

how to add in my virtual parameter?

value rx power =

- InternetGatewayDevice.WANDevice.\*.X\_ZTE-COM\_WANPONInterfaceConfig.RXPower
- InternetGatewayDevice.WANDevice.\*.X\_CT-COM\_GponInterfaceConfig.RXPower

---

<div class="post-metadata">

**Author:** ![Nandang](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/nandang/32/1593_2.png) [@Nandang](https://forum.genieacs.com/u/Nandang)\
**Post date:** [February 8, 2024, 7:50am UTC](https://forum.genieacs.com/t/rx-power-converter/3921/5 "2024-02-08T07:50:24Z")

</div>

Where do I enter this script?

---

<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:** [February 8, 2024, 11:29pm UTC](https://forum.genieacs.com/t/rx-power-converter/3921/6 "2024-02-08T23:29:00Z")

</div>

[https://docs.genieacs.com/en/latest/virtual-parameters.html](https://docs.genieacs.com/en/latest/virtual-parameters.html)

---

<div class="post-metadata">

**Author:** ![Nandang](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/nandang/32/1593_2.png) [@Nandang](https://forum.genieacs.com/u/Nandang)\
**Post date:** [February 11, 2024, 12:26pm UTC](https://forum.genieacs.com/t/rx-power-converter/3921/7 "2024-02-11T12:26:54Z")

</div>

Hi, friend

I don’t understand programming languages, so I tried to learn  
where should I save this script?  
So I can convert RX power to dBm

![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/e/e8d00e0e32972216a7b6161f1054a689c641ed9c.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:** [February 12, 2024, 5:15pm UTC](https://forum.genieacs.com/t/rx-power-converter/3921/8 "2024-02-12T17:15:34Z")

</div>

It sounds like you need more help than can reasonably be offered via this forum. You should probably engage with a support contract by emailing [sales@genieacs.com](mailto:sales@genieacs.com).
