<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E7%AC%AC%E5%85%AD%E8%AF%BE--microWRT_%E8%BF%9C%E7%A8%8B%E5%AE%9E%E6%97%B6%E7%9B%91%E6%8E%A7</id>
		<title>第六课--microWRT 远程实时监控 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E7%AC%AC%E5%85%AD%E8%AF%BE--microWRT_%E8%BF%9C%E7%A8%8B%E5%AE%9E%E6%97%B6%E7%9B%91%E6%8E%A7"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%85%AD%E8%AF%BE--microWRT_%E8%BF%9C%E7%A8%8B%E5%AE%9E%E6%97%B6%E7%9B%91%E6%8E%A7&amp;action=history"/>
		<updated>2026-04-21T22:37:59Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%85%AD%E8%AF%BE--microWRT_%E8%BF%9C%E7%A8%8B%E5%AE%9E%E6%97%B6%E7%9B%91%E6%8E%A7&amp;diff=8251&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：/* 家用路由器配置 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%85%AD%E8%AF%BE--microWRT_%E8%BF%9C%E7%A8%8B%E5%AE%9E%E6%97%B6%E7%9B%91%E6%8E%A7&amp;diff=8251&amp;oldid=prev"/>
				<updated>2015-04-26T05:58:26Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;家用路由器配置&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2015年4月26日 (日) 05:58的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot; &gt;第36行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第36行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;公网域名，然后就可以通过域名来访问摄像头。配置如下：&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;公网域名，然后就可以通过域名来访问摄像头。配置如下：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:remote-monitor-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;3&lt;/del&gt;.jpg|600px|thumb|center|microWRT Configuration]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:remote-monitor-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;5&lt;/ins&gt;.jpg|600px|thumb|center|microWRT Configuration]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==测试==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==测试==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Shengkai81@gmail.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%85%AD%E8%AF%BE--microWRT_%E8%BF%9C%E7%A8%8B%E5%AE%9E%E6%97%B6%E7%9B%91%E6%8E%A7&amp;diff=8247&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：Created page with &quot;{| style=&quot;width: 800px;&quot; |- | 本节教程基于USB摄像头一节的内容，来介绍如何使用microWRT来完成一个远程监控功能。考虑到microWRT的功耗，完...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E5%85%AD%E8%AF%BE--microWRT_%E8%BF%9C%E7%A8%8B%E5%AE%9E%E6%97%B6%E7%9B%91%E6%8E%A7&amp;diff=8247&amp;oldid=prev"/>
				<updated>2015-04-26T05:56:58Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- | 本节教程基于USB摄像头一节的内容，来介绍如何使用microWRT来完成一个远程监控功能。考虑到microWRT的功耗，完...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
本节教程基于USB摄像头一节的内容，来介绍如何使用microWRT来完成一个远程监控功能。考虑到microWRT的功耗，完全可以在家运行一个摄像头，你在办公室&lt;br /&gt;
或者其他有网络接入的地方，随时可以观察家里的状况。本教程只是一个demo，基于此教程的其他非法应用，概不负责。^_^&lt;br /&gt;
&lt;br /&gt;
==microWRT 配置==&lt;br /&gt;
&lt;br /&gt;
1. 首先参考我们的开机教程，保证microWRT能连接到家里的路由器。以下教程中假设microWRT的ip（lan）为192.168.8.1，一般家用路由器的内网网段都是在192.168.1.x,&lt;br /&gt;
这里要将microWRT设置到另外一个网段。&lt;br /&gt;
&lt;br /&gt;
2. 参考USB摄像头教程，保证在内网能正确接收图像。&lt;br /&gt;
&lt;br /&gt;
3. 启动microWRT后，它将从上级路由获得ip (wan), 本教程用192.168.1.101为例进行讲解。首先登陆microWRT的网页配置界面，添加端口映射，&lt;br /&gt;
主要是将对wan口（192.168.1.101）的访问映射到lan 口（192.168.8.1）。目前运营商已经封掉了一些常用的端口，比如80,8080。所以本教程采用8567这个&lt;br /&gt;
端口进行测试。玩家也可以用其他的端口。如下是网页设置，包括端口映射，及防火墙配置。&lt;br /&gt;
&lt;br /&gt;
[[File:remote-monitor-1.jpg|600px|thumb|center|microWRT Configuration]]&lt;br /&gt;
&lt;br /&gt;
[[File:remote-monitor-2.jpg|600px|thumb|center|microWRT Configuration]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==家用路由器配置==&lt;br /&gt;
&lt;br /&gt;
1. 设置家用路由的端口映射。目的是完成对家用路由器公网地址的访问，映射到microWRT的wan口。当然一般家用路由的ip是动态分配的，只要路由器不重启&lt;br /&gt;
这个iIP是固定不变的。设置如下。&lt;br /&gt;
&lt;br /&gt;
[[File:remote-monitor-3.jpg|600px|thumb|center|microWRT Configuration]]&lt;br /&gt;
&lt;br /&gt;
2. 上述设置中，我们假设microWRT的wan口 IP 是192.168.1.101，但是一般家里的无线设备都很多，在他们接入局域网的时候，有可能首先占用这个IP，这样的话&lt;br /&gt;
我们就要给microWRT配置个静态IP. 如图所示：&lt;br /&gt;
&lt;br /&gt;
[[File:remote-monitor-4.jpg|600px|thumb|center|microWRT Configuration]]&lt;br /&gt;
&lt;br /&gt;
至此，我们就可以通过外网来接受摄像头的图像了，使用命令和在局域网中一样。只是IP地址换成了路由器的公网IP地址。最后我们还可以通过花生壳来注册一个&lt;br /&gt;
公网域名，然后就可以通过域名来访问摄像头。配置如下：&lt;br /&gt;
&lt;br /&gt;
[[File:remote-monitor-3.jpg|600px|thumb|center|microWRT Configuration]]&lt;br /&gt;
&lt;br /&gt;
==测试==&lt;br /&gt;
&lt;br /&gt;
1. 因为我们的映射端口采用8567，所以在microWRT上启动摄像头时，要把端口改成8567，采用如下命令。&lt;br /&gt;
 mjpg_streamer -i &amp;quot;input_uvc.so -d /dev/video0 -r 640x480 -f 20&amp;quot; -o &amp;quot;output_http.so -p 8567 -w /www/webcam&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
2. 在外网用Firefox浏览器，输入下面的网址，就可以实时接收摄像头的图像。有时会出现刷屏，这和网速有一定关系。&lt;br /&gt;
 http://域名:8567/?action=stream&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Shengkai81@gmail.com</name></author>	</entry>

	</feed>