<?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=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%BA%8C--MESH_network_on_microWRT</id>
		<title>项目十二--MESH network on microWRT - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%BA%8C--MESH_network_on_microWRT"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%BA%8C--MESH_network_on_microWRT&amp;action=history"/>
		<updated>2026-04-21T22:29:42Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%BA%8C--MESH_network_on_microWRT&amp;diff=10339&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：/* QMP介绍 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%BA%8C--MESH_network_on_microWRT&amp;diff=10339&amp;oldid=prev"/>
				<updated>2015-10-01T01:37:22Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;QMP介绍&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年10月1日 (四) 01:37的版本&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-l27&quot; &gt;第27行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第27行：&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;下面是一个MESH Comunity Mode 的原理图：&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;下面是一个MESH Comunity Mode 的原理图：&lt;/div&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:qmp_community_mdoe.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;jpg&lt;/del&gt;|600px|thumb|center|QMP Community Mode]]&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:qmp_community_mdoe.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;png&lt;/ins&gt;|600px|thumb|center|QMP Community Mode]]&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;更难能可贵的是，QMP是一个开源软件，玩家可以做二次开发，并编译适合自己设备的固件。当然它也对市面上一些主流路由器提供了稳定的固件版本。&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;更难能可贵的是，QMP是一个开源软件，玩家可以做二次开发，并编译适合自己设备的固件。当然它也对市面上一些主流路由器提供了稳定的固件版本。&lt;/div&gt;&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-l33&quot; &gt;第33行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第33行：&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;http://qmp.cat/Home&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;http://qmp.cat/Home&lt;/div&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%BA%8C--MESH_network_on_microWRT&amp;diff=10338&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：Created page with &quot;{| style=&quot;width: 800px;&quot; |- | 本教程主要介绍一下无线MESH网络，以及在microWRT上的实现。  ==无线MESH技术简介== 在传统的无线局域网(WLAN)中...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%BA%8C--MESH_network_on_microWRT&amp;diff=10338&amp;oldid=prev"/>
				<updated>2015-10-01T01:35:33Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- | 本教程主要介绍一下无线MESH网络，以及在microWRT上的实现。  ==无线MESH技术简介== 在传统的无线局域网(WLAN)中...&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;
本教程主要介绍一下无线MESH网络，以及在microWRT上的实现。&lt;br /&gt;
&lt;br /&gt;
==无线MESH技术简介==&lt;br /&gt;
在传统的无线局域网(WLAN)中，每个客户端均通过一条与AP(Access Point)相连的无线链路来访问网络，形成一个局部的BSS(Basic Service Set)。&lt;br /&gt;
用户如果要进行相互通信的话，必须首先访问一个固定的接入点(AP)，这种网络结构被称为单跳网络。而在无线Mesh网络中，&lt;br /&gt;
任何无线设备节点都可以同时作为AP和路由器，网络中的每个节点都可以发送和接收信号，每个节点都可以与一个或者多个对等节点进行直接通信。&lt;br /&gt;
这种结构的最大好处在于：如果最近的AP由于流量过大而导致拥塞的话，那么数据可以自动重新路由到一个通信流量较小的邻近节点进行传输。&lt;br /&gt;
依此类推，数据包还可以根据网络的情况，继续路由到与之最近的下一个节点进行传输，直到到达最终目的地为止。这样的访问方式就是多跳访问。&lt;br /&gt;
其实人们熟知的Internet就是一个Mesh网络的典型例子。例如，当我们发送一份E-mail时，电子邮件并不是直接到达收件人的信箱中，&lt;br /&gt;
而是通过路由器从一个服务器转发到另外一个服务器，最后经过多次路由转发才到达用户的信箱。在转发的过程中，路由器一般会选择效率最高的传输路径，&lt;br /&gt;
以便使电子邮件能够尽快到达用户的信箱。&lt;br /&gt;
&lt;br /&gt;
与传统的交换式网络相比，无线Mesh网络去掉了节点之间的布线需求，但仍具有分布式网络所提供的冗余机制和重新路由功能。&lt;br /&gt;
在无线Mesh网络里，如果要添加新的设备，只需要简单地接上电源就可以了，它可以自动进行自我配置，并确定最佳的多跳传输路径。&lt;br /&gt;
添加或移动设备时，网络能够自动发现拓扑变化，并自动调整通信路由，以获取最有效的传输路径。&lt;br /&gt;
&lt;br /&gt;
无线MESH具有部署安装简便，稳定性高，结构灵活，高带宽等特点，是一种比较先进的无线网络技术，在室外和公共场所有着光放的应用前景。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==QMP介绍==&lt;br /&gt;
&lt;br /&gt;
QMP(Quick Mesh Project）是一个可以方便部署MESH网络的开源系统。它提供基于Openwrt的固件，可以方便的应用与多种嵌入式设备。使用这个系统可以方便的&lt;br /&gt;
搭建MESH网络。它提出了一种无线社区模式，能快速的创建一个无线覆盖的区域，并提供高质量的网络服务。&lt;br /&gt;
&lt;br /&gt;
下面是一个MESH Comunity Mode 的原理图：&lt;br /&gt;
[[File:qmp_community_mdoe.jpg|600px|thumb|center|QMP Community Mode]]&lt;br /&gt;
&lt;br /&gt;
更难能可贵的是，QMP是一个开源软件，玩家可以做二次开发，并编译适合自己设备的固件。当然它也对市面上一些主流路由器提供了稳定的固件版本。&lt;br /&gt;
详细信息可以访问QMP的官方网站。&lt;br /&gt;
&lt;br /&gt;
http://qmp.cat/Home&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==固件编译==&lt;br /&gt;
&lt;br /&gt;
1. 设置环境变量&lt;br /&gt;
在我们编译openwrt的时候，您的系统应该已经安装了编译所需的软件包，但是为了保险起见，可以把下面的软件包在安装一下。&lt;br /&gt;
基于Debian的系统，如ubuntu，需要安装下面的软件包：&lt;br /&gt;
&lt;br /&gt;
  sudo aptitude install git subversion zlib1g-dev gawk flex unzip bzip2 gettext build-essential \&lt;br /&gt;
  libncurses5-dev libncursesw5-dev binutils cpp psmisc docbook-to-man&lt;br /&gt;
&lt;br /&gt;
如果您的机器是x86_64系统，还需要下面的软件包：&lt;br /&gt;
&lt;br /&gt;
Debin/Ubuntu:&lt;br /&gt;
&lt;br /&gt;
  sudo aptitude install gcc-multilib&lt;br /&gt;
  &lt;br /&gt;
CentOS/Fedora/RHEL:&lt;br /&gt;
  &lt;br /&gt;
  gcc.i686, libgcc.i686, and glibc-devel.i686&lt;br /&gt;
  &lt;br /&gt;
2. 下载源码并编译&lt;br /&gt;
通过下面的命令下载源码&lt;br /&gt;
&lt;br /&gt;
  git clone git://qmp.cat/qmpfw.git qmpfw&lt;br /&gt;
&lt;br /&gt;
进入到源码目录：&lt;br /&gt;
 &lt;br /&gt;
  cd qmpfw&lt;br /&gt;
&lt;br /&gt;
check out 特定的分支：&lt;br /&gt;
&lt;br /&gt;
  make .checkout_qmp QMP_GIT_BRANCH=branch_name&lt;br /&gt;
&lt;br /&gt;
制定Traget并编译，例如：&lt;br /&gt;
&lt;br /&gt;
  make build T=alix&lt;br /&gt;
  &lt;br /&gt;
编译完成后，你可以在下面目录下找到相应设备的固件。&lt;br /&gt;
&lt;br /&gt;
  qmpfw/images/&lt;br /&gt;
  &lt;br /&gt;
==添加新设备支持==&lt;br /&gt;
QMP作为一个开源项目，已经制作了很多稳定的固件针对流行的路由器，如果对于一些新的嵌入式设备，如何对它进行定制，编译特定的固件呢？&lt;br /&gt;
下面我们来介绍添加对新设备的支持。&lt;br /&gt;
&lt;br /&gt;
1.下载源码&lt;br /&gt;
&lt;br /&gt;
  git clone git://qmp.cat/qmpfw.git&lt;br /&gt;
&lt;br /&gt;
2. 执行menuconfig来获取相应的source code并启动openwrt 的menuconfig。&lt;br /&gt;
   &lt;br /&gt;
  make T=NEW_DEVICE_NAME menuconfig&lt;br /&gt;
&lt;br /&gt;
配置menuconfig中相应的选项，一定要使能 base/qmp-small-node 或者qmp-big-node。&lt;br /&gt;
&lt;br /&gt;
3. 编译&lt;br /&gt;
&lt;br /&gt;
  make T=NEW_DEVICE_NAME build&lt;br /&gt;
&lt;br /&gt;
在这一步中，应该会遇到错误，提示信息可能是（when trying to copy the output binaries into images/ directory). 不用担心，&lt;br /&gt;
确定生成的二进制文件名字是： build/NEW_DEVICE_NAME/bin/*/, 然后修改targets.mk 文件，添加类似下面的新设备的编译条目。&lt;br /&gt;
&lt;br /&gt;
  ifeq ($(T),nsm5)&lt;br /&gt;
   NAME:=NanoStation M5&lt;br /&gt;
   ARCH:=ar71xx&lt;br /&gt;
   IMAGE:=bin/$(ARCH)/openwrt-ar71xx-ubnt-nano-m-squashfs-factory.bin&lt;br /&gt;
   SYSUPGRADE:=bin/$(ARCH)/openwrt-ar71xx-ubnt-nano-m-squashfs-sysupgrade.bin&lt;br /&gt;
  endif &lt;br /&gt;
&lt;br /&gt;
4. 重新编译&lt;br /&gt;
	&lt;br /&gt;
	make T=NEW_DEVICE_NAME build&lt;br /&gt;
&lt;br /&gt;
5. 如果能正确编译，复制临时的config文件&lt;br /&gt;
&lt;br /&gt;
  cp -rf build/configs/NEW_DEVICE_NAME configs/&lt;br /&gt;
&lt;br /&gt;
6. 生成patch文件&lt;br /&gt;
&lt;br /&gt;
  git add configs/NEW_DEVICE_NAME&lt;br /&gt;
  git add targets.mk&lt;br /&gt;
  git commit -m 'Support for new device NEW_DEVICE_NAME'&lt;br /&gt;
  git diff &amp;gt; ../NEW_DEVICE_NAME.patch&lt;br /&gt;
&lt;br /&gt;
7. 提交Patch 文件给qmp的开发list：qmp-dev@mail.qmp.cat&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Shengkai81@gmail.com</name></author>	</entry>

	</feed>