{"id":827,"date":"2013-07-26T02:59:16","date_gmt":"2013-07-26T09:59:16","guid":{"rendered":"https:\/\/www.uniteng.com\/?p=827"},"modified":"2023-02-12T08:41:15","modified_gmt":"2023-02-12T00:41:15","slug":"channel-power-measurements","status":"publish","type":"post","link":"https:\/\/www.uniteng.com\/index.php\/2013\/07\/26\/channel-power-measurements\/","title":{"rendered":"Channel power measurements"},"content":{"rendered":"<h4><strong>Part I: Understanding the RF Spectrum Measurements<\/strong><\/h4>\n<p style=\"text-align: justify;\">The Spectrum Analyzer has a bandpass filter (IF filter) which is used as the &#8220;window&#8221; for detecting signals. The bandpass filter&#8217;s bandwidth is also called the resolution bandwidth(RBW) of the analyzer and can be changed by the user [2]. For example, the Figure 1 shows the Spectrum of WIFI Channel 9 which has the 2452Mhz center frequency and the 20Mhz Channel Width. Green <span class=\"st\">vertical bar indicates <\/span>the power measurement in the corresponding &#8220;window&#8221; (10KHz).<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.uniteng.com\/wp-content\/uploads\/2013\/07\/Spectrum_CH9_RBW10k.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-839\" src=\"https:\/\/www.uniteng.com\/wp-content\/uploads\/2013\/07\/Spectrum_CH9_RBW10k.png\" alt=\"Spectrum_CH9_RBW10k\" width=\"735\" height=\"381\" srcset=\"https:\/\/www.uniteng.com\/wp-content\/uploads\/2013\/07\/Spectrum_CH9_RBW10k.png 735w, https:\/\/www.uniteng.com\/wp-content\/uploads\/2013\/07\/Spectrum_CH9_RBW10k-300x155.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/a><br \/>\nFigure 1: Spectrum of the WIFI router Channel 9, measured from distance of 1 meter<\/p>\n<p style=\"text-align: justify;\">Sometimes, we may want to know what is the power within a frequency range, called the channel bandwidth. E.g. We may want to measure the power within the channel bandwidth shown in the Figure 1. Actually, the power within a channel bandwidth could be calculated based on the Spectrum Measurements [1]. The result comes from the computation:<\/p>\n<p style=\"text-align: center;\">$latex {{P}_{ch}}=10{{\\log }_{10}}((\\frac{{{B}_{s}}}{RBW})(\\frac{1}{N})\\sum\\limits_{i=1}^{N}{{{10}^{(\\frac{{{P}_{i}}}{10})}}})$<\/p>\n<p>$latex P_{ch}$ is the power in the channel (dBm)<br \/>\n$latex B_{s}$ is the specified bandwidth, also known as the channel bandwidth (Hz)<br \/>\nRBW is the resolution bandwidth (Hz)<br \/>\nN is the number of data points in the summation<br \/>\n$latex P_{i}$ is the sample of the power in measurement cell i in dBm units.<\/p>\n<p>If we need the $latex P_{ch}$ in milliwatts, then the formula will be:<\/p>\n<p style=\"text-align: center;\">$latex {{P}_{ch}}=(\\frac{{{B}_{s}}}{RBW})(\\frac{1}{N})\\sum\\limits_{i=1}^{N}{{{10}^{(\\frac{{{P}_{i}}}{10})}}}$<\/p>\n<h4><strong>Part II: Channel Power Calculation using Matlab<\/strong><\/h4>\n<p style=\"text-align: justify;\">We already got the method which can calculate the Channel Power based on the Spectrum Measurements in the Part I, but the practical problem is that we may have a great number of data points in the summation which causes the hand calculation to be meaningless. Therefore, I wrote a Matlab function to do the calculation for us.<\/p>\n<pre class=\"brush:cpp;\">function [ power ] = RFpower( BS,RBW,P )\n%   Author: Neil (Bing) Hao\n% HomePage: https:\/\/www.uniteng.com\n% BS is the specified bandwidth (Hz)\n% RBW (Hz)\n% P is the sample of the power in measurement cell i in dBm units\n% power is the Channel power (dBm)\n\n%print out BS and RBW\nfprintf( 'BS is %d \\n', BS );\nfprintf( 'RBW is %d \\n', RBW );\n\n%Get size of P, P is expected to be a 1*n or n*1 matrix\nn = max(size(P));\n%print out n\nfprintf( 'n is %d \\n', n);\n\n% Summation\nsum =0;\nfor i=1:n\n    sum = sum+10^(P(i)\/10);\nend\n\n% Calculate power in dBm\npower = 10*log10((BS\/RBW)*(1\/n)*sum);\n\nend<\/pre>\n<p style=\"text-align: justify;\">Note: Modify the line 25 to be power = (BS\/RBW)*(1\/n)*sum;, the power will be in milliwatts.<\/p>\n<p style=\"text-align: justify;\">To use this function, we need to export the Spectrum Measurements form the Spectrum Analyzer, and then import the data into a 1*n or n*1 matrix in the Matlab. E.g. I imported the data shown in the Figure 1 into the matrix P in Matlab. The calculation result is shown in the following segment:<\/p>\n<pre class=\"brush:plain;\">&gt;&gt; RFpower(20000000,10000,P)\nBS is 20000000 \nRBW is 10000 \nn is 2034 \n\nans =\n\n  -41.1004<\/pre>\n<p style=\"text-align: justify;\">The channel bandwidth is 20Mhz, the RBW is 10KHz and the P contains 2034 data points. Finally, the channel power is -41.1004 dBm.<\/p>\n<h4><strong>Part III: References<\/strong><\/h4>\n<p>[1] Agilent Spectrum and Signal Analyzer Measurements and Noise. Retrieved July 25, 2013, from http:\/\/literature.agilent.com\/litweb\/pdf\/5966-4008E.pdf (<a href=\"https:\/\/www.uniteng.com\/neildocs\/references\/Agilent_Spectrum_and_Signal_Analyzer.pdf\" target=\"_blank\" rel=\"noopener\">Local Mirror<\/a>)<br \/>\n[2] Spectrum Analyzer Basics. Retrieved July 25, 2013, from http:\/\/literature.agilent.com\/litweb\/pdf\/5965-7920E.pdf<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part I: Understanding the RF Spectrum Measurements The Spectrum Analyzer has a bandpass filter (IF filter) which is used as the &#8220;window&#8221; for detecting signals. The bandpass filter&#8217;s bandwidth is also called the resolution bandwidth(RBW) of the analyzer and can be changed by the user [2]. For example, the Figure 1 shows the Spectrum of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ngg_post_thumbnail":0,"footnotes":""},"categories":[5],"tags":[15,17],"class_list":["post-827","post","type-post","status-publish","format-standard","hentry","category-hardware-notes","tag-emi","tag-rf"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"neilhao","author_link":"https:\/\/www.uniteng.com\/index.php\/author\/neilhao\/"},"uagb_comment_info":0,"uagb_excerpt":"Part I: Understanding the RF Spectrum Measurements The Spectrum Analyzer has a bandpass filter (IF filter) which is used as the &#8220;window&#8221; for detecting signals. The bandpass filter&#8217;s bandwidth is also called the resolution bandwidth(RBW) of the analyzer and can be changed by the user [2]. For example, the Figure 1 shows the Spectrum of&hellip;","_links":{"self":[{"href":"https:\/\/www.uniteng.com\/index.php\/wp-json\/wp\/v2\/posts\/827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.uniteng.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uniteng.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uniteng.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uniteng.com\/index.php\/wp-json\/wp\/v2\/comments?post=827"}],"version-history":[{"count":0,"href":"https:\/\/www.uniteng.com\/index.php\/wp-json\/wp\/v2\/posts\/827\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.uniteng.com\/index.php\/wp-json\/wp\/v2\/media?parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uniteng.com\/index.php\/wp-json\/wp\/v2\/categories?post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uniteng.com\/index.php\/wp-json\/wp\/v2\/tags?post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}