<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aan Choto 阿安國德 &#187; IPSTAR</title>
	<atom:link href="http://aanchoto.com/category/ipstar/feed/" rel="self" type="application/rss+xml" />
	<link>http://aanchoto.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 May 2012 16:18:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Detect Signal Strength on IPSTAR Terminal Properties</title>
		<link>http://aanchoto.com/2011/02/detect-signal-strength-on-ipstar-terminal-properties/</link>
		<comments>http://aanchoto.com/2011/02/detect-signal-strength-on-ipstar-terminal-properties/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 04:51:43 +0000</pubDate>
		<dc:creator>Aan Choto 阿安國德</dc:creator>
				<category><![CDATA[IPSTAR]]></category>
		<category><![CDATA[Ipstar]]></category>

		<guid isPermaLink="false">http://aanchoto.com/?p=1052</guid>
		<description><![CDATA[URL yang hanya dapat diakses dengan baik dengan menggunakan browser Internet Explorer. cara membaca data kekuatan sinyal langsung tanpa menggunakan web browser. Format URL untuk mendeteksi IPSTAR properti VSAT terminal seperti di bawah ini. http://PUBLIC_IP_ADDRESS_FROM_IPSTAR:8080/xWebGateway.cgi Berikut ini adalah contoh screen shot normal sifat IPSTAR terminal VSAT bawah web browser Internet Explorer Standard IPSTAR terminal properties&#8230;]]></description>
			<content:encoded><![CDATA[<p>URL yang hanya dapat diakses dengan baik dengan menggunakan browser Internet Explorer. cara membaca data kekuatan sinyal langsung tanpa menggunakan web browser.</p>
<p>Format URL untuk mendeteksi IPSTAR properti VSAT terminal seperti di bawah ini.</p>
<div>
<div>
<pre>http://PUBLIC_IP_ADDRESS_FROM_IPSTAR:8080/xWebGateway.cgi</pre>
</div>
</div>
<p>Berikut ini adalah contoh screen shot normal sifat IPSTAR terminal VSAT bawah web browser Internet Explorer</p>
<div id="attachment_763">
<p style="text-align: center;"><a href="http://aanchoto.com/wp-content/uploads/2011/02/normal_ipstar.jpg"><img class="aligncenter size-full wp-image-1059" title="normal_ipstar" src="http://aanchoto.com/wp-content/uploads/2011/02/normal_ipstar.jpg" alt="" width="590" height="346" /></a>Standard IPSTAR terminal properties on Internet Explorer</p>
</div>
<p>Setelah beberapa percobaan, akhirnya aku punya beberapa cara untuk langsung terhubung dengan data terminal. Berikut adalah tepat XML data yang berisi informasi dari terminal VSAT.<span id="more-1052"></span></p>
<div id="attachment_767">
<p style="text-align: center;"><img class="aligncenter size-full wp-image-1062" title="ipstar_xml_info" src="http://aanchoto.com/wp-content/uploads/2011/02/ipstar_xml_info.jpg" alt="" width="481" height="130" />IPSTAR raw XML data that contains VSAT terminal properties</p>
</div>
<p>Berikut adalah script kecil untuk mencapai itu. Kode ini menggunakan PHP dan curl.</p>
<pre>&lt;?php
  // script name: ipstar_satellite_status.php
  // coder: Sony AK Knowledge Center - www.sony-ak.com

  $ipStarPublicIp = "xxx.xxx.xxx.xxx"; // IP address of your VSAT terminal (public IP address)

  // get the cookie of ipstar
  $curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, "http://" . $ipStarPublicIp . ":8080/xWebGateway.cgi");
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_ENCODING, "");
  curl_setopt($curl, CURLOPT_COOKIEJAR, getcwd() . '/cookies_ipstar.cookie');
  curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; EmbeddedWB 14.52 from: http://www.bsalsa.com/ EmbeddedWB 14,52; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)");
  if (curl_exec($curl) === false) {
    echo "Something Error: " . curl_error($curl);
  } else {
    $curlData = curl_exec($curl);
  }
  curl_close($curl);

  // do access the ipstar machine with authentication from previous cookie
  $curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, "http://" . $ipStarPublicIp . ":8080/xWebGateway.cgi?post=yes");
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_POST, 1);
  curl_setopt($curl, CURLOPT_POSTFIELDS, "&lt;Get doc=\"ConsumerBoxConfig.xml\" path=\"/parameters/WWW/STATUS\"&gt;&lt;/Get&gt;");
  curl_setopt($curl, CURLOPT_ENCODING, "");
  curl_setopt($curl, CURLOPT_COOKIEFILE, getcwd() . '/cookies_ipstar.cookie');
  curl_setopt($curl, CURLOPT_COOKIEJAR, getcwd() . '/cookies_ipstar.cookie');
  curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; EmbeddedWB 14.52 from: http://www.bsalsa.com/ EmbeddedWB 14,52; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)");
  $curlData = curl_exec($curl);
  curl_close($curl);

  // process the returned xml data
  $xml = $curlData;
  $xmlDoc = new DOMDocument();
  $xmlDoc-&gt;loadXML($xml);

  $signalStrength = $xmlDoc-&gt;getElementsByTagName("RXSignalStrength")-&gt;item(0)-&gt;nodeValue;
  $bytesSent = $xmlDoc-&gt;getElementsByTagName("BytesSent")-&gt;item(0)-&gt;nodeValue;
  $bytesReceived = $xmlDoc-&gt;getElementsByTagName("BytesReceived")-&gt;item(0)-&gt;nodeValue;
  $EsN0 = $xmlDoc-&gt;getElementsByTagName("EsN0")-&gt;item(0)-&gt;nodeValue;

  echo "IP: " . $ipStarPublicIp . "&lt;br/&gt;";
  echo "Signal Strength: " . number_format((float)$signalStrength, 2, ".", "") . "&lt;br/&gt;";
  echo "Bytes sent: " . number_format($bytesSent / 1048576, 2, ".", "") . " MB&lt;br/&gt;";
  echo "Bytes received: " . number_format($bytesReceived / 1048576, 2, ".", "") . "MB&lt;br/&gt;";
  echo "EsN0: " . number_format((float)$EsN0, 2, ".", "") . "&lt;br/&gt;";
?&gt;</pre>
<p>Simpan sebagai ipstar_satellite_status.php. Anda harus menyesuaikan alamat IP dengan alamat IP IPSTAR. Berikut adalah screen shot hasil script di atas.</p>
<div id="attachment_761">
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1061" title="simple_ipstar_dashboard" src="http://aanchoto.com/wp-content/uploads/2011/02/simple_ipstar_dashboard.jpg" alt="" width="220" height="195" />Hasil script di atas</p>
<p>Anda dapat memodifikasi dan menyesuaikan diri sesuai dengan kebutuhan Anda. Sebagai contoh, Anda dapat menggabungkan dengan auto update-periodik, sehingga ketersediaan koneksi IPSTAR VSAT dapat dipantau. Anda juga dapat menggunakan kode dasar untuk mengintegrasikan dengan aplikasi Anda.</p>
<p><a href="http://www.sony-ak.com/2010/04/create-dashboard-to-detect-signal-strength-on-ipstar-terminal-properties/" target="_blank">Sumber</a></p>
</div>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://aanchoto.com/2011/02/detect-signal-strength-on-ipstar-terminal-properties/&via=aanchoto&text=Detect Signal Strength on IPSTAR Terminal Properties&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://aanchoto.com/2011/02/detect-signal-strength-on-ipstar-terminal-properties/&via=aanchoto&text=Detect Signal Strength on IPSTAR Terminal Properties&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://aanchoto.com/2011/02/detect-signal-strength-on-ipstar-terminal-properties/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

