Tuesday, January 4, 2011

What is Decibel - Difference between dB vs. dBm

The decibel (dB) is a logarithmic unit that indicates the ratio of a physical quantity (usually power or intensity) relative to a specified or implied reference level. A ratio in decibels is ten times the logarithm to base 10 of the ratio of two power quantities.[1] Being a ratio of two measurements of a physical quantity in the same units, it is a dimensionless unit. A decibel is one tenth of a bel, a seldom-used unit.
The decibel is widely known as a measure of sound pressure level, but is also used for a wide variety of other measurements in science and engineering, most prominently in acoustics, electronics, and control theory. In electronics, the gain of amplifiers, attenuation of signals, and signal to noise ratios are often expressed in decibels. It confers a number of advantages, such as the ability to conveniently represent very large or small numbers, a logarithmic scaling that roughly corresponds to the human perception of sound and light, and the ability to carry out multiplication of ratios by simple addition and subtraction.
The decibel symbol is often qualified with a suffix, that indicates which reference quantity or frequency weighting function has been used. For example, dBm indicates that the reference quantity is one milliwatt, while dBu is referenced to 0.775 volts RMS.[2] and dBμV/m referenced to microvolts per meter for radio frequency signal strength.
The definitions of the decibel and bel use logarithms to base 10. The neper, used in electronics, uses natural logarithm to base (e).

History

The decibel originates from methods used to quantify reductions in audio levels in telephone circuits. These losses were originally measured in units of Miles of Standard Cable (MSC), where 1 MSC corresponded to the loss of power over a 1 mile (approximately 1.6 km) length of standard telephone cable at a frequency of 5000 radians per second (795.8 Hz), and roughly matched the smallest attenuation detectable to an average listener. Standard telephone cable was defined as "a cable having uniformly distributed resistances of 88 ohms per loop mile and uniformly distributed shunt capacitance of .054 microfarad per mile" (approximately 19 gauge).

The transmission unit (TU) was devised by engineers of the Bell Telephone Laboratories in the 1920s to replace the MSC. 1 TU was defined as ten times the base-10 logarithm of the ratio of measured power to a reference power level.[3] The definitions were conveniently chosen such that 1 TU approximately equaled 1 MSC (specifically, 1.056 TU = 1 MSC).[4] Eventually, international standards bodies adopted the base-10 logarithm of the power ratio as a standard unit, named the bel in honor of the Bell System's founder and telecommunications pioneer Alexander Graham Bell.[5] The bel was larger by a factor of ten than the TU, such that 1 TU equaled 1 decibel.[6] For many measurements, the bel proved inconveniently large, giving way to the decibel becoming the common unit of choice.
In April 2003, the International Committee for Weights and Measures (CIPM) considered a recommendation for the decibel's inclusion in the International System of Units (SI), but decided not to adopt the decibel as an SI unit.[7] However, the decibel is recognized by other international bodies such as the International Electrotechnical Commission (IEC).[8] The IEC permits the use of the decibel with field quantities as well as power and this recommendation is followed by many national standards bodies, such as NIST, which justifies the use of the decibel for voltage ratios.[9]

Definition

A decibel (dB) is one tenth of a bel (B), i.e. 1B = 10dB. The bel is the logarithm of the ratio of two power quantities of 10:1, and for two field quantities in the ratio \sqrt{10}: 1 .[10] A field quantity is a quantity such as voltage, current, sound pressure, electric field strength, velocity and charge density, the square of which in linear systems is proportional to power. A power quantity is a power or a quantity directly proportional to power, e.g. energy density, acoustic intensity and luminous intensity.
The calculation of the ratio in decibels varies depending on whether the quantity being measured is a power quantity or a field quantity.

Power quantities

When referring to measurements of power or intensity, a ratio can be expressed in decibels by evaluating ten times the base-10 logarithm of the ratio of the measured quantity to the reference level. Thus, the ratio of a power value P1 to another power value P0 is represented by LdB, that ratio expressed in decibels, which is calculated using the formula:
L_\mathrm{dB} = 10 \log_{10} \bigg(\frac{P_1}{P_0}\bigg) \,
P1 and P0 must measure the same type of quantity, and have the same units before calculating the ratio. If P1 = P0 in the above equation, then LdB = 0. If P1 is greater than P0 then LdB is positive; if P1 is less than P0 then LdB is negative.
Rearranging the above equation gives the following formula for P1 in terms of P0 and LdB:
P_1 = 10^\frac{L_\mathrm{dB}}{10} P_0 \,.
Since a bel is equal to ten decibels, the corresponding formulae for measurement in bels (LB) are
L_\mathrm{B} = \log_{10} \bigg(\frac{P_1}{P_0}\bigg) \,
P_1 = 10^{L_\mathrm{B}} P_0 \,.

Field quantities

When referring to measurements of field amplitude it is usual to consider the ratio of the squares of A1 (measured amplitude) and A0 (reference amplitude). This is because in most applications power is proportional to the square of amplitude, and it is desirable for the two decibel formulations to give the same result in such typical cases. Thus the following definition is used:
L_\mathrm{dB} = 10 \log_{10} \bigg(\frac{A_1^2}{A_0^2}\bigg) = 20 \log_{10} \bigg(\frac{A_1}{A_0}\bigg). \,
This formula is sometimes called the 20 log rule, and similarly the formula for ratios of powers is the 10 log rule, and similarly for other factors.[citation needed] The equivalence of 10 \log_{10} \frac{a^2}{b^2} and 20 \log_{10} \frac{a}{b} is one of the standard properties of logarithms.
The formula may be rearranged to give
A_1 = 10^\frac{L_\mathrm{dB}}{20} A_0 \,
Similarly, in electrical circuits, dissipated power is typically proportional to the square of voltage or current when the impedance is held constant. Taking voltage as an example, this leads to the equation:
G_\mathrm{dB} =20 \log_{10} \left (\frac{V_1}{V_0} \right ) \quad \mathrm \quad
where V1 is the voltage being measured, V0 is a specified reference voltage, and GdB is the power gain expressed in decibels. A similar formula holds for current.

Examples

An example scale showing x and 10 log x. It is easier to grasp and compare 2 or 3 digit numbers than to compare up to 10 digits.
Note that all of these examples yield dimensionless answers in dB because they are relative ratios expressed in decibels.
  • To calculate the ratio of 1 kW (one kilowatt, or 1000 watts) to 1 W in decibels, use the formula
G_\mathrm{dB} = 10 \log_{10} \bigg(\frac{1000~\mathrm{W}}{1~\mathrm{W}}\bigg) \equiv 30~\mathrm{dB} \,
  • To calculate the ratio of \sqrt{1000}~\mathrm{V} \approx 31.62~\mathrm{V} to 1~\mathrm{V} in decibels, use the formula
G_\mathrm{dB} = 20 \log_{10} \bigg(\frac{31.62~\mathrm{V}}{1~\mathrm{V}}\bigg) \equiv 30~\mathrm{dB} \,
Notice that ({31.62\,\mathrm{V}}/{1\,\mathrm{V}})^2 \approx {1\,\mathrm{kW}}/{1\,\mathrm{W}}, illustrating the consequence from the definitions above that GdB has the same value, 30~\mathrm{dB}, regardless of whether it is obtained with the 10-log or 20-log rules; provided that in the specific system being considered power ratios are equal to amplitude ratios squared.
  • To calculate the ratio of 1 mW (one milliwatt) to 10 W in decibels, use the formula
G_\mathrm{dB} = 10 \log_{10} \bigg(\frac{0.001~\mathrm{W}}{10~\mathrm{W}}\bigg) \equiv -40~\mathrm{dB} \,
  • To find the power ratio corresponding to a 3 dB change in level, use the formula
G = 10^\frac{3}{10} \times 1\ = 1.99526...  \approx 2 \,

A change in power ratio by a factor of 10 is a 10 dB change. A change in power ratio by a factor of two is approximately a 3 dB change. More precisely, the factor is 103/10, or 1.9953, about 0.24% different from exactly 2. Similarly, an increase of 3 dB implies an increase in voltage by a factor of approximately \scriptstyle\sqrt{2}, or about 1.41, an increase of 6 dB corresponds to approximately four times the power and twice the voltage, and so on. In exact terms the power ratio is 106/10, or about 3.9811, a relative error of about 0.5%.

 Please see the pic at right hand side :An example scale showing x and 10 log x. It is easier to grasp and compare 2 or 3 digit numbers than to compare up to 10 digits.
  
Common reference levels and corresponding units

Although decibel measurements are always relative to a reference level, if the numerical value of that reference is explicitly and exactly stated, then the decibel measurement is called an "absolute" measurement, in the sense that the exact value of the measured quantity can be recovered using the formula given earlier. For example, since dBm indicates power measurement relative to 1 milliwatt,
  • 0 dBm means no change from 1 mW. Thus, 0 dBm is the power level corresponding to a power of exactly 1 mW.
  • 3 dBm means 3 dB greater than 0 dBm. Thus, 3 dBm is the power level corresponding to 103/10 × 1 mW, or approximately 2 mW.
  • −6 dBm means 6 dB less than 0 dBm. Thus, −6 dBm is the power level corresponding to 10−6/10 × 1 mW, or approximately 250 μW (0.25 mW).
If the numerical value of the reference is not explicitly stated, as in the dB gain of an amplifier, then the decibel measurement is purely relative. The practice of attaching a suffix to the basic dB unit, forming compound units such as dBm, dBu, dBA, etc., is not permitted for use with the SI.[15] However, outside of documents adhering to SI units, the practice is very common as illustrated by the following examples.

[edit] Electric power

dBm or dBmW
dB(1 mW) – power measurement relative to 1 milliwatt. XdBm = XdBW + 30.
dBW
dB(1 W) – similar to dBm, except the reference level is 1 watt. 0 dBW = +30 dBm; −30 dBW = 0 dBm; XdBW = XdBm − 30.
--------------
Decibel (dB) and dB relative to a milliwatt (dBm) represent two different but related concepts.
A dB is a shorthand way to express the ratio of two values. As a unit for the strength of a signal, dB expresses the ratio between two power levels. To be exact, dB = log (P1/P2).
Using the decibel allows us to contrast greatly differing power levels (a common predicament in radio link design) with a simple two- or three-digit number instead of a more burdensome nine- or 10-digit one.
For instance, instead of characterizing the difference in two power levels as 1,000,000,000 to 1, it's much simpler to use the decibel representation as 10*log (1,000,000,000/1), or 90 dB. The same goes for very small numbers: The ratio of 0.000000001 to 1 can be characterized as -90 dB. This makes keeping track of signal levels much simpler.
The unit dBm denotes an absolute power level measured in decibels and referenced to 1 milliwatt (mW). To convert from absolute power "P" (in watts) to dBm, use the formula dBm = 10*log (P/1 mW). This equation looks almost the same as that for the dB. However, now the power level "P" has been referenced to 1 mW. It turns out that in the practical radio world, 1 mW is a convenient reference point from which to measure power.
Use dB when expressing the ratio between two power values. Use dBm when expressing an absolute value of power.

-----

Working with Decibels

If you want to communicate effectively with EMC engineers, it’s important to get comfortable with decibels (dB). Decibel notation is a convenient way of expressing ratios of quantities that may or may not span many orders of magnitude. It is also used to express the amplitude of various signal parameters such as voltage or current relative to a given reference level.
A power ratio, P2:P1, in dB is simply calculated as,
Equation 1 (1)
For example, if we are comparing a 10-watt received power to a 5-watt specification, we could say that the received power exceeded the specification by,
Equation 1 (2)
If the impedance associated with two power levels is constant, then the power is proportional to the voltage (or current) squared. In this case, we can also express voltage (or current) ratios in dB,
Equation 1 (3)
or,
Equation 1 (4)
Decibels can also be used to express ratios of power densities or electromagnetic field strengths. For example, if the electric field strength incident on a composite surface is 3 V/m and the reflected field strength is 1 V/m, the ratio of incident to reflected field strengths is,
Equation 1 (5)
Antenna or amplifier gains are usually reported in dB. So are cable or filter losses. An amplifier that receives a 1-watt signal and produces a 100-watt signal has a gain of,
Equation 1 (6)
A cable whose input signal has an amplitude of 3.0 volts and whose output signal has an amplitude of 2.8 volts exhibits a gain of,
Equation 1 (7)
or a loss of,
Equation 1 (8)
Note that the inverse of any ratio is expressed by changing its sign in dB. A ratio of 1 is 0 dB. Phase or negative values cannot be expressed in dB.

Quiz Question:

A signal traveling one kilometer in a coaxial cable loses one-half its voltage. Express the,
            a.) input-to-output voltage ratio
            b.) input-to-output power ratio
            c.) input-to-output voltage ratio in dB
            d.) input-to-output power ratio in dB.
Of course, the input-to-output voltage ratio is 2:1, while the input-to-output power ratio is (2)2:(1)2=4:1. The voltage ratio expressed in dB is 20 log (2/1) = 6 dB. The power ratio is 10 log (4/1) = 6 dB. This illustrates one of the primary advantages to expressing gains or losses in dB. As long as the impedance is constant, it is not necessary to specify whether a ratio is power or voltage when it is expressed in dB. A 6-dB gain unambiguously means the power has quadrupled whether the original measurement was voltage, current or power. On the other hand, if we were simply to say that one signal was twice as strong as another, it would not be clear whether it had twice the power or twice the amplitude.

Example 1-1: Specifying ratios in dB
Specify the following ratios in dB:
200 μV/m : 100 μV/m = 6 dB
300 mV : 100 mV = 10 dB
400 mA : 100 mA = 12 dB
500 μA/m : 100 μA/m =14 dB
2 μW : 1 μW = 3 dB
3 mW : 1 mW = 7 dB

Expressing Signal Amplitudes in dB

Signal amplitudes can also be expressed in decibels as a ratio of the amplitude to a specified reference. For example, a 100-μvolt signal amplitude can also be expressed as,
Equation 1 (9)

Quiz Question:

Express the following signal or field amplitudes in their normal units,
           a.) 6 dB(μV)
            b.) 20 dB(μA)
            c.) 20 dB(A)
            d.) 100 dB(μV/m)
            e.) 100 dB(μW)
The units in parentheses following the "dB" indicate that the quantity being expressed is an amplitude.
Each of the quantities above is simply converted as follows:
Equation 1 (10)
Equation 1 (11)
Equation 1 (12)
Equation 1 (13)
Equation 1 (14)

Using Decibels

Why bother expressing signal amplitudes in dB? After all, there's never any ambiguity concerning whether a quantity is a power or voltage when the amplitude and its units are provided. The real power of working in dB is calculating ratios.
Previously, we mentioned comparing a 10-watt receiver to a 5-watt specification. Using Equation (2), we showed that the receiver was 3 dB over the specification. In this case, if the powers had been expressed in dB(W),
Equation 1 (15)
Equation 1 (16)
we could have calculated the ratio as,
Equation 1 (17)
Rather than dividing amplitudes to determine the ratio, we can simply subtract amplitudes expressed in dB(·). Again, as long as the impedance is constant, it won't matter whether we are working with units of power, voltage or current.

Example 1-2: Specifying ratios in dB
Specify the following ratios in dB:
46 dBμV/m) : 40 dB(μV/m)
-> 46 dB(μV/m) - 40 dB(μV/m) = 6 dB
50 dB(mV)) : 40 dB(mV) -> 50 dB(mV) - 40 dB(mV) = 10 dB
52 dB(mA) : 40 dB(mA) -> 52 dB(mA) - 40 dB(mA) = 12 dB
54 dB(μA/m) : 40 dB(μA/m) -> 54 dB(μA/m) - 40 dB(μA/m) = 14 dB
3 dB(μW) : 0 dB(μW) ->> 3 dB(μW) - 0 dB(μW) = 3 dB
7 dB(mW) : 0 dB(mW) -> 7 dB(mW) - 0 dB(mW) = 7 dB

dBm

One of the most common units expressed in decibels is dB(mW) or dB relative to 1 milliwatt. This is almost always written in the abbreviated form, dBm (i.e. without the "W" and without the parentheses).Many oscilloscopes and spectrum analyzers optionally display voltage amplitudes in dBm. Since dBm is a unit of power, we must know the impedance of the measurement in order to convert dBm to volts. For example, a voltage expressed as 0 dBm on a 50-ohm spectrum analyzer is,
Equation 1 (18)


Example 1-3: Specifying voltages in dBm
Specify the following voltages in dBm assuming they were measured with a 50-ohm oscilloscope:
1 μV   = -107 dBm
2 μV   = -101 dBm
10 μV  = -87 dBm
1 V  = 13 dBm
2 V  = 19 dBm
10 V = 33 dBm

In this example, we can see that doubling the voltage adds 6 dB (e.g. 13 dBm + 6 dB = 19 dBm) and increasing a voltage by a factor of 10 adds 20 dB. This is true no matter what units of voltage are being used and is an example of why it is often convenient to work with decibels.

Summary:
1. dB is used to quantify ratio between two intensity or power values while dBm is used to express an absolute value of power.
2. dB is a dimensionless unit while dBm is an absolute unit.
3. dB is relative often relative to the power of the input signal while dBm is always relative to 1 mW signal.

Thanks to :

Monday, January 3, 2011

FC9 boot problem after upgrading the Kernel - Solution to boot in terminal and GUI of FC9 OS

You have to reconfigure display settings.
Boot up in Command Line Mode. Highlight Fedora title in GRUB Menu using up/down arrow keys and press 'e'. Select kernel line and press 'e' again. Type 3 and hit Enter key. Press 'b'.
Highlight Fedora title -- e -- select kernel line -- e -- type 3 -- hit Enter key -- b.
Fedora will boot up in Command Line Mode and drop you at command line prompt.
Execute this
Code:
su -
system-config-display
Reconfigure display settings and reboot machine.
Code:
shutdown -r now
-----------------
Hash: SHA1
Le 03/08/2009 19:50, yoga nand a écrit :
> i install fedora 9 in text mode ,
> now i want to switch to graphic mode
> i tried with command init 5 after login in
>
> i go to graphic mode but it work just like a computer freeze
> the mouse and keyboard are not working and i think they get stuck
>
> please tell me the solution to switch to graphic mode.
For one session: startx
At boot tine: edit, as root, the file /etc/inittab then change the line:
id:3:initdefault:
into:
id:5:initdefault:
reboot....
 
------
To: fedora-list@redhat.com
Date: Tue, 3 Feb 2004 14:56:55 +0000

On Mon, Feb 02, 2004 at 02:59:27PM +0800, Jasin #14 wrote:
> how do i boot up in text console in fedora? it seems that i always boot
> up directly into graphical one. thanks
Others told you already about /etc/inittab, but if you want to change
to graphical, text mode or single user just for once, you can pass the
runlevel to init o boot.
On grub:
* highlight the correct entry
* press 'a' for "append"
* enter the new runlevel:
  single: single mode, without network and multiuser
  3 : multiuser, text mode
  5 : multiuser, graphical
  -b : emergency, boot only a shell
(on new grub. On old, press 'e' for "edit" and add the runlevel at the end
of the line)
On lilo:
* switch to text ui if on gui
* enter the boot label followed by the runlevel
Regards,
Luciano Rocha
--
fedora-list mailing list
fedora-list@redhat.com

Monday, December 27, 2010

Solution for - Acer Aspire One (happy) Netbook - Ethernet Problem - for both Win7 and Ubuntu 10.04 OS

I bought the Acer Aspire one happy.But i was not able to connect to internet due to ethernet problem in my netbook.So i did some fix for it in my Ubuntu 10.04 os.
Find out which manufacturers Ethernet card you are using by the following commands.
lspci
$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GME Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
03:00.0 Ethernet controller: Attansic Technology Corp. Device 1062 (rev c0)
sudo lshw -C network 

$ sudo lshw -C network
  *-network              
       description: Wireless interface
       product: AR242x 802.11abg Wireless PCI Express Adapter
       vendor: Atheros Communications Inc.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wmaster0
       version: 01
       serial: 00:26:5e:2b:1d:b4
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list logical ethernet physical wireless
       configuration: broadcast=yes driver=ath5k_pci latency=0 module=ath5k multicast=yes wireless=IEEE 802.11bg
If the Ethernet card is Atheros Communications then do the following steps.
Step 1:
----------
 Edit the following file   sudo gedit /etc/network/interfaces
make the changes as follows

auto lo
iface lo inet loopback
auto ath0
iface eth0 inet dhcp
Now save the file .If now also the ethernet is not detecting then do the following step also.
Step 2:
-------------
Driver Installed and Problem Solved. Now online.

Finally I found my way out following this thread,
http://ubuntuforums.org/showthread.p...ht=D250&page=2

SOLUTION:

Download AR81Family-linux-v1.0.0.10.tar.gz from
http://partner.atheros.com/Drivers.aspx
Put it in a directory

Code:
$ gunzip AR81Family-linux-v1.0.0.10.tar.gz
$ tar xvf AR81Family-linux-v1.0.0.10.tar
$ cd src
$ make
$ sudo make install
$ cd /lib/modules/2.6.28-11-generic/kernel/drivers/net/atl1e/
$ sudo insmod ./atl1e.ko
(For Windows please choose the appropriate driver from the following link http://partner.atheros.com/Drivers.aspx )
Thus the driver is installed and the eth0 deviced can be detected and configured. Problem solved.

If the above solution is not working then you can go for the below link, where i have a updated one posted.
http://sivanihonjin.blogspot.com/2011/11/acer-aspire-one-happy-netbook-driver.html

Now you are done. Happily browse and enjoy
Thanks to:
http://ubuntuforums.org/showthread.php?t=1244898