# How to convert Optical RX Value to dBm Few Value are Ok But Few Value not ok

**URL:** <https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766>\
**Category:** Uncategorized\
**Created:** [November 29, 2023, 1:03pm UTC](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766 "2023-11-29T13:03:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsikder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/bsikder/32/1600_2.png) [@bsikder](https://forum.genieacs.com/u/bsikder)\
**Post date:** [November 29, 2023, 1:03pm UTC](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766/1 "2023-11-29T13:03:03Z")

</div>

**How to convert Optical RX Value to dBm Few Value are Ok But Few Value not ok**

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

---

<div class="post-metadata">

**Author:** ![bsikder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/bsikder/32/1600_2.png) [@bsikder](https://forum.genieacs.com/u/bsikder)\
**Post date:** [November 29, 2023, 1:10pm UTC](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766/2 "2023-11-29T13:10:19Z")

</div>

**I Need Some For Convert To dBm Value**

---

<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:** [November 29, 2023, 7:07pm UTC](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766/3 "2023-11-29T19:07:35Z")

</div>

The easiest way to accomplish this is is a [virtual param](https://docs.genieacs.com/en/latest/virtual-parameters.html). This will give you the most flexibility.

Another way of accomplishing your goal is Admin → Config → Edit index page, then find your Pwr param and append ` || ' dBm'` so you end up with something like this:

```auto
- label: "'Pwr'"
  parameter: Device.Some.Node.PowerOrSomeOtherParamName || ' dBm'

```

---

<div class="post-metadata">

**Author:** ![bsikder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/bsikder/32/1600_2.png) [@bsikder](https://forum.genieacs.com/u/bsikder)\
**Post date:** [November 29, 2023, 8:05pm UTC](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766/4 "2023-11-29T20:05:28Z")

</div>

thanks for the same but this is not right — {Math.ceil(10\*Math.log10(Value/10000))} for raw value to dbm convert

---

<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:** [November 30, 2023, 1:02am UTC](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766/5 "2023-11-30T01:02:07Z")

</div>

Then use a vparam to do the calculations

---

<div class="post-metadata">

**Author:** ![bsikder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/bsikder/32/1600_2.png) [@bsikder](https://forum.genieacs.com/u/bsikder)\
**Post date:** [November 30, 2023, 6:18am UTC](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766/6 "2023-11-30T06:18:42Z")

</div>

please give me some examples

---

<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:** [November 30, 2023, 5:23pm UTC](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766/7 "2023-11-30T17:23:33Z")

</div>

> [@How to convert Optical RX Value to dBm Few Value are Ok But Few Value not ok](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766/3):
>
> The easiest way to accomplish this is is a [virtual param](https://docs.genieacs.com/en/latest/virtual-parameters.html). This will give you the most flexibility. Another way of accomplishing your goal is Admin → Config → Edit index page, then find your Pwr param and append || ' dBm' so you end up with something like this: - label: "'Pwr'" parameter: Device.Some.Node.PowerOrSomeOtherParamName || ' dBm'

---

<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:43am UTC](https://forum.genieacs.com/t/how-to-convert-optical-rx-value-to-dbm-few-value-are-ok-but-few-value-not-ok/4766/8 "2024-01-02T06:43:56Z")

</div>

console.log(Math.ceil(30 + (Math.log10((value rx power \* (Math.pow(10,-7))))\*10)));

i have this logic, how to add in my virtual parameter?

value rx power =

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