This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to print decibel values?

0

Wireshark capture results show -127.876344 dBm corresponding to HEX values D6 5B CC D8. Please, let me know how to incorporate this conversion in my dissector file.

asked 07 Jun '13, 00:00

sunshine's gravatar image

sunshine
16559
accept rate: 0%

Can you paste some (4-5) samples with their hexadecimal reprensentation

(08 Jun '13, 02:00) mrEEde2

There are several places where Wireshark reports a value in dBm. Some of them encode it as an 8-bit value, so it only corresponds to one hex digit. Which particular dBm value are you talking about? What does Wireshark call the value (no, it doesn't call it "dBm", it calls it something such as "Maximum Transmit Power Level" or "dBm antenna signal" or "SSI Signal" or something such as that). The way it's encoded depends on which particular value it is.

(08 Jun '13, 17:10) Guy Harris ♦♦

The HEX values are for "Maximum per tone Rx Power measured per symbol over all Antennas" transmitted in "Ranging Measurement Indication" msg over PHY-UL in Wimax 802.16e-2005.

Ranging Measurement Indication is used to indicate the Rx Power estimate on the Ranging region in an uplink subframe.

We are not having the source code of Wireshark for the particular dissector. And in order to create one, I need to know the method of displaying 'dBm' values.

Other sample outputs are: WMX MAX MEAS VALUES: -129.998030dbm HEX : d5 70 a4 1d

WMX MAX MEAS VALUES: -130.555241dbm HEX : d5 63 13 e0

WMX MAX MEAS VALUES: -131.037723dbm HEX : d5 58 a8 f2

(09 Jun '13, 22:26) sunshine

Well, I'm confused. You say that, "Wireshark capture results show -127.876344 dBm corresponding to HEX values D6 5B CC D8."; yet you then go on to mention in your comments that, "We are not having the source code of Wireshark for the particular dissector. And in order to create one, I need to know the method of displaying 'dBm' values."

If Wireshark is presenting the hex values of D6 5B CC D8 as -127.876344 dBm, then there is a dissector doing that. Obviously it must be the WiMax dissector in this case, and you can find the WiMax source code in 3 subdirectories, wimax, wimaxasncp and wimaxmacphy under the plugins directory.

Also, I searched the 802.16e-2005 standard, but failed to find any of the text you mentioned. Which section exactly are you referring to? It would help if you could provide a small capture file.

(10 Jun '13, 07:43) cmaynard ♦♦

A Google search for

wimax "ranging measurement indication"

finds only, err, umm, this question. Perhaps you're using the wrong terminology when you say "Ranging Measurement Indication"?

The same happens for a Google search for

"Maximum per tone Rx Power measured per symbol over all Antennas"

even without adding "wimax" to the search argument.

And I can't find that text in 802.16e-2005, either.

(13 Jun '13, 14:37) Guy Harris ♦♦

One Answer:

0

Try looking at the Wireshark source code of the particular dissector doing the conversion.

Of course, if you know the protocol in question, you could also read the relevant RFC or specification, if it's available, to see how the dBm value is being encoded.

If you still can't figure it out, try posting a sample capture file to cloudshark and providing a link to it here so we'll know which protocol this pertains to and how it's being dissected and presented.

answered 08 Jun '13, 08:59

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142
accept rate: 20%