<?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>Simon &#8211; Simon</title>
	<atom:link href="https://www.luisimon.com/author/simon/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.luisimon.com</link>
	<description>blog</description>
	<lastBuildDate>Tue, 10 Dec 2024 01:43:44 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>

<image>
	<url>https://www.luisimon.com/wp-content/uploads/2019/09/cbrks-x5t4i-001.ico</url>
	<title>Simon &#8211; Simon</title>
	<link>https://www.luisimon.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>WinSCP和SecureCRT开启心跳，保持连接</title>
		<link>https://www.luisimon.com/2024/09/08/912/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Sun, 08 Sep 2024 05:08:19 +0000</pubDate>
				<category><![CDATA[Linux日记]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Putty]]></category>
		<category><![CDATA[SecureCRT]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[TCP]]></category>
		<category><![CDATA[WinSCP]]></category>
		<category><![CDATA[心跳]]></category>
		<category><![CDATA[断线]]></category>
		<category><![CDATA[断连]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[运维]]></category>
		<guid isPermaLink="false">https://www.luisimon.com/?p=912</guid>

					<description><![CDATA[WinSCP和SecureCRT是服务器运维人员常用的两个软件工具，用于连接登录Linux服务器。但是，在连接 ... <a title="WinSCP和SecureCRT开启心跳，保持连接" class="read-more" href="https://www.luisimon.com/2024/09/08/912/" aria-label="继续阅读WinSCP和SecureCRT开启心跳，保持连接">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p>WinSCP和SecureCRT是服务器运维人员常用的两个软件工具，用于连接登录Linux服务器。但是，在连接公网的服务器时，如果比较长时间不操作，电信运营商会丢弃长时间没有没有数据传输的TCP连接，这样会导致我们需要频繁重新登录服务器。</p>



<p></p>



<p class="has-medium-font-size"><strong>WinSCP设置心跳</strong></p>



<p>在登录窗口选择你要设置心跳的服务器，点击【编辑】</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="640" height="430" src="https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908123847.png" alt="" class="wp-image-913" srcset="https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908123847.png 640w, https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908123847-300x202.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></figure>



<p>然后点击【高级】</p>



<figure class="wp-block-image size-full"><img decoding="async" width="640" height="430" src="https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908123902.png" alt="" class="wp-image-914" srcset="https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908123902.png 640w, https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908123902-300x202.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></figure>



<p>选择【连接】设置，如下图开启【Keeplives】</p>



<figure class="wp-block-image size-full is-resized"><img decoding="async" width="567" height="461" src="https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908123908.png" alt="" class="wp-image-915" style="width:647px;height:auto" srcset="https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908123908.png 567w, https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908123908-300x244.png 300w" sizes="(max-width: 567px) 100vw, 567px" /></figure>



<p></p>



<p class="has-medium-font-size"><strong>SecureCRT设置心跳</strong></p>



<p>选择要设置心跳的服务器，右键菜单点击【Properties】(属性)</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="376" height="354" src="https://www.luisimon.com/wp-content/uploads/2024/09/Screenshot-2024-09-08-125053.png" alt="" class="wp-image-916" style="width:644px;height:auto" srcset="https://www.luisimon.com/wp-content/uploads/2024/09/Screenshot-2024-09-08-125053.png 376w, https://www.luisimon.com/wp-content/uploads/2024/09/Screenshot-2024-09-08-125053-300x282.png 300w" sizes="auto, (max-width: 376px) 100vw, 376px" /></figure>



<p>选择【Terminal】(终端)设置，开启【Send Protocol NO-OP】，时间间隔一般设置30秒</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="543" height="512" src="https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908125711.png" alt="" class="wp-image-917" style="width:659px;height:auto" srcset="https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908125711.png 543w, https://www.luisimon.com/wp-content/uploads/2024/09/微信图片_20240908125711-300x283.png 300w" sizes="auto, (max-width: 543px) 100vw, 543px" /></figure>



<p></p>



<p>这样设置后就可以很大程度避免断线的问题啦</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>购买打印机后的感受想告诉你的注意事项</title>
		<link>https://www.luisimon.com/2024/07/26/857/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Fri, 26 Jul 2024 14:01:46 +0000</pubDate>
				<category><![CDATA[未分类]]></category>
		<guid isPermaLink="false">https://www.luisimon.com/?p=857</guid>

					<description><![CDATA[打印机在大约十年前对于个人（家庭）来说还是个稀罕的东西。大家对打印机还是“办公室” “打印店”的印象。但随着今 ... <a title="购买打印机后的感受想告诉你的注意事项" class="read-more" href="https://www.luisimon.com/2024/07/26/857/" aria-label="继续阅读购买打印机后的感受想告诉你的注意事项">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p>打印机在大约十年前对于个人（家庭）来说还是个稀罕的东西。大家对打印机还是“办公室” “打印店”的印象。但随着今年来个人家庭对打印需求的增加和打印机价格的降低，打印机逐渐走进个人家庭。</p>



<p class="has-medium-font-size"><strong>进纸</strong></p>



<p>前进纸纸张需要转一个弯，这意味着纸张会弯曲，某些也比较硬的时候可能会打印，也就是打印机的适用范围变窄了。</p>



<p class="has-medium-font-size"><strong>相片纸压痕</strong></p>



<p>相片纸打印时可能出现送纸机构齿轮的压印（不算特别明显，毕竟不是专业的相片打印机）。这个问题你可能需要在网上向网友咨询一下你的意向机器的情况，这可能跟相纸厚度方面也有关系。我个人的是佳能G3800墨仓打印机。不过其他品牌也可能有类似的问题。</p>



<p class="has-medium-font-size"><strong>无边距</strong></p>



<p>似乎只要支持A4（打印机最大支持尺寸）的无边距，那么这个范围下的其他尺寸理论上也可以支持，不过最好咨询一下客服。</p>



<p class="has-medium-font-size"><strong>耗材价格</strong></p>



<p>关于耗材，主要是说墨水。一般建议购买墨仓式的打印机，后期直接购买一瓶瓶的墨水这样成本比较低。个人还是建议使用原厂墨水。特别是还在保修期内的机器，因为如果你使用了第三方的墨水，厂家是能检测出来的，你的机器将会失去保修。</p>



<p class="has-medium-font-size"><strong>墨水防水性</strong></p>



<p>所谓防水，指的是打印出来的文档不会因为纸张沾了水导致字体化开和渗透到反面。一般来说，防水墨水属于颜料墨水，不防水的属于染料墨水。通常家用的入门机器是只有黑色墨水是防水的（相对价格而言感觉家用也是够的）。</p>



<p class="has-medium-font-size"><strong>打印速度</strong></p>



<p>通常喷墨打印机打印速度不如激光打印机，如果你打印需求不大，大部分机器的速度还是没有问题的。打印<strong>7寸</strong>照片通常需要50-60秒，普通文本因为不是满版所以速度通常1分钟有20张左右的速度。具体机器也有差异。</p>



<p class="has-medium-font-size"><strong>屏幕显示</strong></p>



<p>配备屏幕的机器通常比较贵，屏幕主要是方便直接操作。如果支持APP（手机）操作，那么可以忽视屏幕，省下钱来。</p>



<p class="has-medium-font-size"><strong>喷墨技术（微压电/热发泡）</strong></p>



<p><strong>微压电</strong>技术。这个是爱普生的专利技术，代表厂家有<strong>爱普生</strong>和<strong>兄弟</strong>。利用压电陶瓷的压电效应来挤压墨水</p>



<p><strong>热发泡</strong>技术。佳能公司的专利技术。代表厂家有<strong>佳能</strong>和<strong>惠普</strong>。技术实现，在喷头里设置加热体，浸泡在墨水，瞬间将周围的墨水加热到100°C，水汽膨胀将墨水喷射出去。</p>



<p>微压电，喷头价格相对较高（是热发泡2倍左右），使用寿命较长，爱普生宣称喷头不是耗材，无需更换，打印分辨率相比热发泡稍高。</p>



<p>热发泡，价格相对较低，堵头后维修或者更换方便，寿命相对微压电较短（从佳能保修政策猜测是30000张寿命）。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>解决MSI微星主板开启WOL远程唤醒无效</title>
		<link>https://www.luisimon.com/2024/07/09/860/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Tue, 09 Jul 2024 04:31:11 +0000</pubDate>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[BIOS]]></category>
		<category><![CDATA[MSI]]></category>
		<category><![CDATA[Wake On Lan]]></category>
		<category><![CDATA[WOL]]></category>
		<category><![CDATA[主板]]></category>
		<category><![CDATA[微星]]></category>
		<category><![CDATA[远程开机]]></category>
		<guid isPermaLink="false">https://www.luisimon.com/?p=860</guid>

					<description><![CDATA[今天升级了电脑的微星主板BIOS后发现在[唤醒事件设置]里启用了[PCIe设备唤醒]依然无效。 我找到原因了， ... <a title="解决MSI微星主板开启WOL远程唤醒无效" class="read-more" href="https://www.luisimon.com/2024/07/09/860/" aria-label="继续阅读解决MSI微星主板开启WOL远程唤醒无效">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p>今天升级了电脑的微星主板BIOS后发现在<strong>[唤醒事件设置]</strong>里启用了<strong>[PCIe设备唤醒]</strong>依然无效。</p>



<p>我找到原因了，下面来讲一下。</p>



<p><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color">关键是在于<strong>开启【PCIE设备唤醒】</strong>和<strong>关闭【ErP Ready】</strong></mark></p>



<ul class="wp-block-list">
<li>开机后一直按<strong>[Del]</strong>键进入BIOS，如下图，找到 <strong>[SETTINGS]</strong> -> <strong>[高级]</strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="768" src="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_00.jpg" alt="" class="wp-image-867" srcset="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_00.jpg 1024w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_00-300x225.jpg 300w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_00-768x576.jpg 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li>进入 <strong>[唤醒事件设置]</strong></li>
</ul>



<ol class="wp-block-list"></ol>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="768" data-id="868" src="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_01.jpg" alt="" class="wp-image-868" srcset="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_01.jpg 1024w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_01-300x225.jpg 300w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_01-768x576.jpg 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
</figure>



<ul class="wp-block-list">
<li>选择<strong> [PCIE设备唤醒]</strong> -> <strong>[允许]</strong></li>
</ul>



<p><strong>为什么是PCIE设备呢？</strong>因为WOL远程唤醒是通过板载<strong>以太网卡</strong>来实现的，网卡虽然不是直接插在PCIE插槽上，但实际上线路使用的是PCIE的通道。所以<strong>网卡属于PCIE设备</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="768" src="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_03.jpg" alt="" class="wp-image-869" srcset="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_03.jpg 1024w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_03-300x225.jpg 300w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_03-768x576.jpg 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li>返回 <strong>[高级]</strong> 菜单，选择 <strong>[电源管理设置]</strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="768" src="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_04.jpg" alt="" class="wp-image-870" srcset="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_04.jpg 1024w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_04-300x225.jpg 300w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_04-768x576.jpg 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li>选择 <strong>[ErP Ready] </strong>-> <strong>[禁止]</strong></li>
</ul>



<p>我猜测是禁止了节能模式，网卡在关机后才能正常供电。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="768" src="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_06.jpg" alt="" class="wp-image-871" srcset="https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_06.jpg 1024w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_06-300x225.jpg 300w, https://www.luisimon.com/wp-content/uploads/2024/07/MSI_SnapShot_06-768x576.jpg 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li>最后 <strong>[保存并退出]</strong> 设置，或者直接按 <strong>[F10]</strong> 保存</li>
</ul>



<p><strong>测试远程开机成功！</strong></p>



<p><em>后记</em></p>



<p><em>你的主板界面上有所区别，不过基本就是按照这个菜单模式，可以自己找一找。</em></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>將電風扇改造為支持紅外遙控的思路</title>
		<link>https://www.luisimon.com/2024/06/12/814/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Wed, 12 Jun 2024 04:34:08 +0000</pubDate>
				<category><![CDATA[单片机]]></category>
		<category><![CDATA[日常]]></category>
		<category><![CDATA[C語言]]></category>
		<category><![CDATA[嘉立創]]></category>
		<category><![CDATA[紅外遙控]]></category>
		<category><![CDATA[遙控]]></category>
		<category><![CDATA[風扇]]></category>
		<guid isPermaLink="false">https://www.luisimon.com/?p=814</guid>

					<description><![CDATA[最近天氣好熱，到了開風扇的時候了。突然發現家中老舊的電風扇經過30多年的使用後，風速檔按鍵出現了一些小故障。雖 ... <a title="將電風扇改造為支持紅外遙控的思路" class="read-more" href="https://www.luisimon.com/2024/06/12/814/" aria-label="继续阅读將電風扇改造為支持紅外遙控的思路">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p>最近天氣好熱，到了開風扇的時候了。突然發現家中老舊的電風扇經過30多年的使用後，風速檔按鍵出現了一些小故障。雖然不影響使用，修理一下也可以回復青春。但是在我看來，這個每次調速換檔都要走過去的操作的老古董已經與這個【智能】的時代和懶惰的我顯得格格不入。於是我萌生了要將它改成遙控的想法。</p>



<p>故事的開始，我先是想到了萬能的淘寶。於是用【風扇】【遙控】【改裝】這些關鍵詞進行搜索。我發現出來的結果基本都是下圖這樣的需要整個“身體”換掉。對於那個鑄鐵的老古董老，這樣的塑料件恐怕是不堪重負。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="698" height="721" src="https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-11-192136.jpg" alt="" class="wp-image-815" srcset="https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-11-192136.jpg 698w, https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-11-192136-290x300.jpg 290w" sizes="auto, (max-width: 698px) 100vw, 698px" /></figure>



<p>另外，也有直接是一套控制板的類型（如下圖），這種大概率是可以進行改裝的。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="674" height="689" src="https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-11-195819.jpg" alt="" class="wp-image-816" srcset="https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-11-195819.jpg 674w, https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-11-195819-293x300.jpg 293w" sizes="auto, (max-width: 674px) 100vw, 674px" /></figure>



<p>不過强迫症轉念一想，這豈不是很不美觀，另外也沒有狀態顯示，這顯然不合我意。</p>



<p>通過觀察和思考，我發現風扇的調速其實原來很簡單。傳統的交流電(AC)風扇實現調速其實是電機中有多組綫圈（受限于體積和成本以及實用性基本都是3組綫），給不同的綫圈進行通電會使電機輸出不同的功率，體現在風扇中就是不同的轉速。那麽我想，如果能自己設計一個電路使用（傳説中）單片機進行控制給綫圈通電，不就可能可以實現遙控了嗎。</p>



<p>於是我馬上從0開始學習單片機的控制開發。由於我本來有計算機變成的基礎，所以學習起來也是相對容易的。</p>



<p>電路設計</p>



<p>單片機允許通過編程的方式改變功能引脚的輸出狀態。OK，那麽就可以用來控制電風扇的開關狀態。不過顯然單片機使用的是低壓電直流電，不能夠直接驅動帶你風扇的電機，所以我們需要神奇的半導體【開關管】來幫我們在電路中充當開關。</p>



<p>思路</p>



<p>風扇有3個檔，那麽對應三個開關。所以我們在電路設計中需要有三個半導體開關，因爲這裏控制的是交流電，不能直接用三極管或者MOS管這種單向導通的元件。爲了減輕設計的複雜都，我這裏使用【雙向可控硅】（晶閘管）來做交流電的開關，另外配合一個【光耦】（光電耦合器）來做電氣隔離。單片機通過控制【光耦】間接控制雙向可控硅。</p>



<p>控制控制電機的開關就是這麽簡單的思路了，至於其他的還有RC（阻容）尖峰吸收的設計（主要是用來吸收電機啓停是產生的尖峰電壓）保護開關管不被擊穿。</p>



<p>聽起來好像有點複雜，確實。一開始我是想直接選用繼電器來做開關，不過想起繼電器有“噠噠噠”的聲音所以又放棄了。</p>



<p>那麽一個風扇怎麽能沒有狀態顯示呢？我是用了兩個數碼管來做狀態顯示，另外還配合了4顆LED燈珠，以及一個蜂鳴器做聲音的反饋。數碼管主要用來顯示當前的風速檔位和定時信息。</p>



<p>紅外遙控</p>



<p>電路中還需要集成一個紅外脈衝信號接收元件。由於紅外遙控的信號屬於載波信號，爲了方便單片機處理信號，我選用了直接輸出調製后信號的紅外接收傳感器，單片機可以直接處理輸出的信號。</p>



<p>至於遙控器，可以直接選用一個品牌電風扇的遙控器，使用【邏輯分析儀】分析遙控器發送的信號，自己編程做對應的處理。家中沒有遙控器，當然也可以直接在網上購買一個（如下圖）</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="686" height="680" src="https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-12-113456.jpg" alt="" class="wp-image-818" srcset="https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-12-113456.jpg 686w, https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-12-113456-300x297.jpg 300w, https://www.luisimon.com/wp-content/uploads/2024/06/Screenshot-2024-06-12-113456-150x150.jpg 150w" sizes="auto, (max-width: 686px) 100vw, 686px" /></figure>



<p><strong>這是我是在【嘉立創】打樣製作的測試驗證板</strong></p>



<figure class="wp-block-video"><video controls src="https://html.luisimon.com/RDfan.mp4"></video></figure>



<p>製作這個紅外遙控板需要學習單片機編程和使用單片機資源</p>



<p>定時器</p>



<p>PWM功能</p>



<p>系統中斷</p>



<p>數碼管的控制（38譯碼器）</p>



<p>PWM方波驅動蜂鳴器</p>
]]></content:encoded>
					
		
		<enclosure url="https://html.luisimon.com/RDfan.mp4" length="3104120" type="video/mp4" />

			</item>
		<item>
		<title>士兰微SC7A20加速度传感（陀螺仪）器技术文档</title>
		<link>https://www.luisimon.com/2024/05/26/770/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Sun, 26 May 2024 07:07:48 +0000</pubDate>
				<category><![CDATA[单片机]]></category>
		<guid isPermaLink="false">https://www.luisimon.com/?p=770</guid>

					<description><![CDATA[早前在制作一个T12电烙铁时，由于手柄的上架休眠功能需要用到加速度传感器，于是购买了最便宜的传感器【士兰微SC ... <a title="士兰微SC7A20加速度传感（陀螺仪）器技术文档" class="read-more" href="https://www.luisimon.com/2024/05/26/770/" aria-label="继续阅读士兰微SC7A20加速度传感（陀螺仪）器技术文档">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="132" src="https://www.luisimon.com/wp-content/uploads/2024/05/1716706056899-2-1024x132.jpg" alt="" class="wp-image-771" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/1716706056899-2-1024x132.jpg 1024w, https://www.luisimon.com/wp-content/uploads/2024/05/1716706056899-2-300x39.jpg 300w, https://www.luisimon.com/wp-content/uploads/2024/05/1716706056899-2-768x99.jpg 768w, https://www.luisimon.com/wp-content/uploads/2024/05/1716706056899-2.jpg 1209w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>早前在制作一个T12电烙铁时，由于手柄的上架休眠功能需要用到加速度传感器，于是购买了最便宜的传感器【士兰微SC7A20】。由于立创商城和官网所提供的这份颗芯片的文档没有给出数据的处理示例，导致走了一些弯路。下面提供一个更详细的士兰微的文档。</p>



<p class="has-medium-font-size"><strong>下载：</strong><a href="https://www.luisimon.com/goto/v57h" rel="nofollow"><strong>SC7660-SC7A30E-SC7A20内部功能应用说明书_0.2</strong></a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Arduino使用ISP烧写程序不擦除（保留）EEPROM（教程）</title>
		<link>https://www.luisimon.com/2024/05/01/736/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Wed, 01 May 2024 09:14:20 +0000</pubDate>
				<category><![CDATA[单片机]]></category>
		<category><![CDATA[編程三兩事]]></category>
		<guid isPermaLink="false">https://www.luisimon.com/?p=736</guid>

					<description><![CDATA[复刻GitHub开源的基于Arduino的T12恒温电烙铁时，每次修改控制程序或者修复bug使用ISP重新升级 ... <a title="Arduino使用ISP烧写程序不擦除（保留）EEPROM（教程）" class="read-more" href="https://www.luisimon.com/2024/05/01/736/" aria-label="继续阅读Arduino使用ISP烧写程序不擦除（保留）EEPROM（教程）">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p>复刻GitHub开源的基于Arduino的T12恒温电烙铁时，每次修改控制程序或者修复bug使用ISP重新升级程序时EEPROM的数据都会清空。导致每次都要重新录入烙铁的校准信息和配置烙铁，这样显得很麻烦。</p>



<p>其实，Arduino中有一个保险丝可以配置不擦除EEPROM。可以参考<a href="https://www.luisimon.com/goto/59lm" rel="nofollow">AVR® Fuse Calculator</a>对bootloder进行配置</p>



<p>我使用的是<strong>ATmega328P</strong>主控(MUC)</p>



<p>我们来分析一下配置</p>



<p><strong>修改前</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="788" src="https://www.luisimon.com/wp-content/uploads/2024/05/image-1024x788.png" alt="" class="wp-image-737" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/image-1024x788.png 1024w, https://www.luisimon.com/wp-content/uploads/2024/05/image-300x231.png 300w, https://www.luisimon.com/wp-content/uploads/2024/05/image-768x591.png 768w, https://www.luisimon.com/wp-content/uploads/2024/05/image.png 1108w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>修改后</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="721" src="https://www.luisimon.com/wp-content/uploads/2024/05/image-1-1024x721.png" alt="" class="wp-image-738" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/image-1-1024x721.png 1024w, https://www.luisimon.com/wp-content/uploads/2024/05/image-1-300x211.png 300w, https://www.luisimon.com/wp-content/uploads/2024/05/image-1-768x541.png 768w, https://www.luisimon.com/wp-content/uploads/2024/05/image-1.png 1129w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>由上面的两个图片红框的信息可以看出来，当勾选<strong>EESAVE</strong>（保留EEPROM数据）<strong>AVRDUDE<em> arguments</em></strong> 中<strong>hfuse</strong>的值由<strong>d9</strong>变成了<strong>d1</strong></p>



<p>我们来对比这两个值</p>



<p><strong>D9</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="455" height="110" src="https://www.luisimon.com/wp-content/uploads/2024/05/image-2.png" alt="" class="wp-image-739" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/image-2.png 455w, https://www.luisimon.com/wp-content/uploads/2024/05/image-2-300x73.png 300w" sizes="auto, (max-width: 455px) 100vw, 455px" /></figure>



<p><strong>D1</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="442" height="107" src="https://www.luisimon.com/wp-content/uploads/2024/05/image-4.png" alt="" class="wp-image-741" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/image-4.png 442w, https://www.luisimon.com/wp-content/uploads/2024/05/image-4-300x73.png 300w" sizes="auto, (max-width: 442px) 100vw, 442px" /></figure>



<p>可以看出，<strong>这个寄存器hfuse的第四位由1变成了0，可以确定第四位是用来配置是否保留EEPROM数据的</strong></p>



<p>那么我们在烧写bootloader的时候就可以配置这个寄存器的第四位为0则可实现烧写程序时保留EEPROM的数据。下面我们来看看怎么操作。</p>



<p>我使用Arduino UNO做ISP，按下图进行接线，但是需要<strong><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color">注意RESET的接线</mark></strong>（请看下面的说明）不能使用Arduino UNO上的RESET，需要根据ISP程序的定义来接线。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="684" src="https://www.luisimon.com/wp-content/uploads/2024/05/1714551572660-2-1024x684.jpg" alt="" class="wp-image-742" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/1714551572660-2-1024x684.jpg 1024w, https://www.luisimon.com/wp-content/uploads/2024/05/1714551572660-2-300x201.jpg 300w, https://www.luisimon.com/wp-content/uploads/2024/05/1714551572660-2-768x513.jpg 768w, https://www.luisimon.com/wp-content/uploads/2024/05/1714551572660-2.jpg 1384w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>烧写ISP程序</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="496" height="511" src="https://www.luisimon.com/wp-content/uploads/2024/05/image-5.png" alt="" class="wp-image-744" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/image-5.png 496w, https://www.luisimon.com/wp-content/uploads/2024/05/image-5-291x300.png 291w" sizes="auto, (max-width: 496px) 100vw, 496px" /></figure>



<p>按上图在Arduino IDE的【文件】->【示例】->【ArduinoISP】->【ArduinoISP】打开ISP程序的代码</p>



<p>准备烧录ISP之前来说一下RESET的接线问题</p>



<p><strong>RSET的接线</strong></p>



<p>从ISP程序的代码注释可以看出来RESET控制被定义为Pin 10</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="810" height="305" src="https://www.luisimon.com/wp-content/uploads/2024/05/image-7.png" alt="" class="wp-image-746" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/image-7.png 810w, https://www.luisimon.com/wp-content/uploads/2024/05/image-7-300x113.png 300w, https://www.luisimon.com/wp-content/uploads/2024/05/image-7-768x289.png 768w" sizes="auto, (max-width: 810px) 100vw, 810px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="632" height="113" src="https://www.luisimon.com/wp-content/uploads/2024/05/image-8.png" alt="" class="wp-image-747" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/image-8.png 632w, https://www.luisimon.com/wp-content/uploads/2024/05/image-8-300x54.png 300w" sizes="auto, (max-width: 632px) 100vw, 632px" /></figure>



<p>也就是<strong>被烧写的芯片的RESET引脚要接到UNO的10号引脚</strong>，如下图</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="684" src="https://www.luisimon.com/wp-content/uploads/2024/05/1714552792151-2-1024x684.jpg" alt="" class="wp-image-748" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/1714552792151-2-1024x684.jpg 1024w, https://www.luisimon.com/wp-content/uploads/2024/05/1714552792151-2-300x201.jpg 300w, https://www.luisimon.com/wp-content/uploads/2024/05/1714552792151-2-768x513.jpg 768w, https://www.luisimon.com/wp-content/uploads/2024/05/1714552792151-2.jpg 1384w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>接好先之后我们直接点击【上传】即可将ISP程序烧录到UNO中。</p>



<p><strong>烧写Bootloader(引导程序)</strong></p>



<p><strong><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color">重新烧写Bootloader会导致EEPROM数据丢失</mark></strong></p>



<p><strong><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color">重新烧写Bootloader会导致EEPROM数据丢失</mark></strong></p>



<p><strong><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color">重新烧写Bootloader会导致EEPROM数据丢失</mark></strong></p>



<p>点击烧录Bootloader(引导程序)可以在输出窗口看到一下命令代码</p>



<p><strong>烧写bootloader命令</strong></p>



<pre class="wp-block-code"><code>"C:\Users\XXXX\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\XXXX\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -patmega328p -cstk500v1 -PCOM6 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m</code></pre>



<p>我们需要关注<strong>-Uhfuse:w:0xDE:m</strong>这个参数</p>



<p>前面说到<strong>hfuse</strong>的第四位需要改成0，我们可以直接用电脑计算器的程序员模式修改</p>



<p>如下图，先在计算器的16进制模式下输入DE，<strong>点击箭头所指的第四位数字将其改为0</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="475" height="535" src="https://www.luisimon.com/wp-content/uploads/2024/05/image-11.png" alt="" class="wp-image-751" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/image-11.png 475w, https://www.luisimon.com/wp-content/uploads/2024/05/image-11-266x300.png 266w" sizes="auto, (max-width: 475px) 100vw, 475px" /></figure>



<p>如下图，我们得到了配置值为16进制的<strong>D6</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="467" height="530" src="https://www.luisimon.com/wp-content/uploads/2024/05/image-12.png" alt="" class="wp-image-752" srcset="https://www.luisimon.com/wp-content/uploads/2024/05/image-12.png 467w, https://www.luisimon.com/wp-content/uploads/2024/05/image-12-264x300.png 264w" sizes="auto, (max-width: 467px) 100vw, 467px" /></figure>



<p>熟悉的位运算的小伙伴可以直接使用位运算亦可</p>



<p><strong>DE &amp; F7 = D6</strong></p>



<p>将<strong>烧写bootloader命令</strong>的<strong><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color">-Uhfuse:w:0xDE:m</mark></strong>的<strong>DE</strong>改为<strong>D6</strong></p>



<pre class="wp-block-code"><code>
"C:\Users\XXXX\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\XXXX\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -patmega328p -cstk500v1 -PCOM6 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD6:m -Ulfuse:w:0xFF:m</code></pre>



<p>执行上面的新的命令重新烧写bootloader即可。<strong>(可能会报错，需要先关闭Arduino IDE)</strong></p>



<p><strong>重要提示</strong>：<strong>烧写bootloader亦会擦除EEPROM的数据</strong></p>



<p>完结，下次使用ISP升级程序就不会清除EEPROM的数据了</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>TrueNAS Scale系统开启Wake On Lan（网络唤醒）功能（教程）</title>
		<link>https://www.luisimon.com/2023/07/16/727/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Sat, 15 Jul 2023 18:04:42 +0000</pubDate>
				<category><![CDATA[Linux日记]]></category>
		<category><![CDATA[极客记录]]></category>
		<category><![CDATA[FreeNAS]]></category>
		<category><![CDATA[TrueNAS]]></category>
		<category><![CDATA[WOL]]></category>
		<guid isPermaLink="false">https://www.luisimon.com/?p=727</guid>

					<description><![CDATA[Wake-on-LAN简称WOL或WoL，中文多译为“网路唤醒”、“远端唤醒”技术。WOL是一种技术，同时也是 ... <a title="TrueNAS Scale系统开启Wake On Lan（网络唤醒）功能（教程）" class="read-more" href="https://www.luisimon.com/2023/07/16/727/" aria-label="继续阅读TrueNAS Scale系统开启Wake On Lan（网络唤醒）功能（教程）">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p><strong>Wake-on-LAN</strong>简称<strong>WOL</strong>或<strong>WoL</strong>，中文多译为“<strong>网路唤醒</strong>”、“<strong>远端唤醒</strong>”技术。WOL是一种技术，同时也是该技术的规范标准，它的功效在于让<a href="https://www.luisimon.com/goto/57h5" rel="nofollow">休眠</a>状态或<a href="https://www.luisimon.com/goto/csi9" rel="nofollow">关机</a>状态的电脑，透过<a href="https://www.luisimon.com/goto/jzy1" rel="nofollow">区域网路</a>的另一台电脑对其发令，使其唤醒、恢复成运作状态，或从关机状态转成<a href="https://www.luisimon.com/goto/gi4s" rel="nofollow">开机</a>状态。该消息通常由在连接到同一局域网的设备上执行的程序发送到目标计算机。也可以使用子网定向广播或 WoL 网关服务从另一个网络发起消息。<strong>——<em>维基百科</em></strong></p>



<p>我使用昂达的一款<strong>昂达B365CD4</strong>主板安装了TrueNAS Scale系统，出于节能减碳的需要，设置了晚上自动关机。清晨使用WOL唤醒机器。</p>



<p>开启WOL共功能</p>



<p>开机，在屏幕出现主板logo或者其他信息的时候按Del进入BIOS</p>



<p><strong>开启PXE功能</strong>，如下图，将<strong>Network Stack</strong>配置下的<strong>Ipv4 PXE Support</strong>设置为<strong>Enable</strong></p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.pomato.eu.org/img/20230715_102309-16893922115971.jpg" alt=""/></figure>



<p>开启网卡的WOL功能</p>



<pre class="wp-block-code"><code># 用以下命令查看网卡名称
ifconfig</code></pre>



<pre class="wp-block-code"><code># 添加WOL配置文件
# 这里的eth0需要跟wol唤醒网卡的名称
vim /etc/network/interfaces.d/eth0</code></pre>



<pre class="wp-block-code"><code># 配置文件内容
auto enp8s0
iface enp8s0 inet dhcp
    ethernet-wol g</code></pre>



<p><strong>重新系统后测试是否成功</strong></p>



<p><strong><em>注：如果网络唤醒失效，尝试重新保存eth0文件（猜测是重新保存才能令设置生效，从而系统会按当前设置去修改BIOS）。by Alan</em></strong></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>打包和导入Docker镜像（教程）</title>
		<link>https://www.luisimon.com/2023/07/05/718/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Wed, 05 Jul 2023 13:55:24 +0000</pubDate>
				<category><![CDATA[Docker]]></category>
		<guid isPermaLink="false">https://www.luisimon.com/?p=718</guid>

					<description><![CDATA[打包Docker镜像 命令格式 或者使用下面的脚本批量导出 打包导出的镜像文件，以压缩文件体积 解压压缩包 导 ... <a title="打包和导入Docker镜像（教程）" class="read-more" href="https://www.luisimon.com/2023/07/05/718/" aria-label="继续阅读打包和导入Docker镜像（教程）">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p>打包Docker镜像</p>



<p>命令格式</p>



<pre class="wp-block-code"><code>docker save -o your_image.tar &#91;IMAGE_ID]</code></pre>



<p>或者使用下面的脚本批量导出</p>



<pre class="wp-block-code"><code>\#!/bin/bash
docker images &gt; images.txt
awk '{print $1}' images.txt &gt; images_cut.txt
sed -i '1d' images_cut.txt
mkdir dockerImages
while read LINE
do
  FILENAME="${LINE//\//_}.train.tar"
  docker save "$LINE" &gt; "dockerImages/$FILENAME"
  echo "$FILENAME" &gt;&gt; tarName.txt
  echo "ok"
done &lt; images_cut.txt
echo "finish"</code></pre>



<p>打包导出的镜像文件，以压缩文件体积</p>



<pre class="wp-block-code"><code>zip -r dockerImages.zip dockerImages
</code></pre>



<p>解压压缩包</p>



<pre class="wp-block-code"><code>unzip dockerImages.zip -d &#91;targetDirectory]</code></pre>



<p>导入镜像</p>



<pre class="wp-block-code"><code>docker  load -i &#91;image.tar]</code></pre>



<p>批量导入镜像</p>



<pre class="wp-block-code"><code>cat tarName.txt | while read LINE
do
    # 在这里处理每一行的内容
    docker  load -i $LINE
done</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Linux磁盘分区格式化挂载（教程）</title>
		<link>https://www.luisimon.com/2022/11/13/620/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Sun, 13 Nov 2022 01:30:18 +0000</pubDate>
				<category><![CDATA[未分类]]></category>
		<guid isPermaLink="false">https://www.luisimon.xyz/?p=620</guid>

					<description><![CDATA[parted /dev/sdb 可以输入p打印磁盘信息，查看分区的情况，找到起始和结束位置。 /dev/sdb ... <a title="Linux磁盘分区格式化挂载（教程）" class="read-more" href="https://www.luisimon.com/2022/11/13/620/" aria-label="继续阅读Linux磁盘分区格式化挂载（教程）">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<pre class="wp-block-preformatted"><strong>parted /dev/sdb</strong>
可以输入p打印磁盘信息，查看分区的情况，找到起始和结束位置。
<strong>/dev/sdb</strong>是你的磁盘

<strong>mklabel gpt
</strong>设置分区类型为gpt

<strong>mkpart primary 0% 100%
</strong>primary指分区类型为主分区，0是分区开始位置，100%是分区结束位置。相同的命令为：mkpart primary 0 -1 或者是：mkpart  primary 0  XXX 结束的空间

<strong>print</strong>
打印当前分区,查看分区设置是否正确
　　
<strong>quit</strong>
退出
　　
<strong>mkfs.xfs /dev/sdb1
</strong>格式化成xfs文件系统<strong> </strong>

如果要格式化成ext4则是
<strong>mkfs -t ext4 /dev/sdb1</strong>

<strong>mount /dev/sdb1 /data
</strong>挂载分区
/data是指/dev/sdb1分区要挂载的目录

<strong><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color">配置开机自动挂载：</mark></strong>

<strong>blkid</strong>
查看磁盘分区的UUID
显示类似的信息

<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-purple-color">/dev/sda1: UUID="8048997a-16c9-447b-a209-82e4d380326e" TYPE="ext4"
/dev/sda5: UUID="0c5f073a-ad3f-414f-85c2-4af83f6a437f" TYPE="swap"
/dev/sdb1: UUID="11263962-9715-473f-9421-0b604e895aaa" TYPE="ext4"
/dev/sr0: LABEL="Join Me" TYPE="iso9660"</mark>

 <strong>vim /etc/fstab</strong>
编辑/etc/fstab，在其中加入

<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-purple-color">UUID=11263962-9715-473f-9421-0b604e895aaa /data ext4 defaults 0 1</mark>

&lt;fs spec> &lt;fs file> &lt;fs vfstype> &lt;fs mntops> &lt;fs freq> &lt;fs passno>
具体说明，以挂载/dev/sdb1为例：

<strong>&lt;fs spec>：分区定位，可以给UUID或LABEL，例如：UUID=6E9ADAC29ADA85CD或LABEL=software
&lt;fs file>：具体挂载点的位置，例如：/data
&lt;fs vfstype>：挂载磁盘类型，linux分区一般为ext4，windows分区一般为ntfs
&lt;fs mntops>：挂载参数，一般为defaults
&lt;fs freq>：磁盘检查，默认为0
&lt;fs passno>：磁盘检查，默认为0，不需要检查</strong>


修改完/etc/fstab文件后，运行以下命令检查配置是否正确，否则系统无法正常启动
<strong>sudo mount -a</strong></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>使用NaiveProxy進行系統代理（教程）</title>
		<link>https://www.luisimon.com/2022/10/08/602/</link>
		
		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Sat, 08 Oct 2022 15:58:25 +0000</pubDate>
				<category><![CDATA[技艺分享]]></category>
		<category><![CDATA[VPN]]></category>
		<guid isPermaLink="false">https://www.luisimon.xyz/?p=602</guid>

					<description><![CDATA[最近又即將迎來舉國歡慶的時刻，所以在此寫這篇文章希望藉此文章跟大家一起通過這段美好的時光。 安卓（Androi ... <a title="使用NaiveProxy進行系統代理（教程）" class="read-more" href="https://www.luisimon.com/2022/10/08/602/" aria-label="继续阅读使用NaiveProxy進行系統代理（教程）">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p>最近又即將迎來舉國歡慶的時刻，所以在此寫這篇文章希望藉此文章跟大家一起通過這段美好的時光。</p>



<p class="has-medium-font-size"><strong>安卓（Android）客戶端使用方法</strong></p>



<p>1.首先我們需要下載一下兩個軟件</p>



<p><a href="https://www.luisimon.com/goto/rqif" rel="nofollow">naive-plugin</a></p>



<p><a href="https://www.luisimon.com/goto/ojjj" rel="nofollow">SagerNet</a></p>



<p>當然你可以在<a href="https://www.luisimon.com/goto/htkx" rel="nofollow">此頁面</a>找到最新的版本</p>



<p>2.現在開始配置</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="461" height="1024" src="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231633_SagerNet-461x1024.jpg" alt="" class="wp-image-604" srcset="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231633_SagerNet-461x1024.jpg 461w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231633_SagerNet-135x300.jpg 135w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231633_SagerNet-768x1707.jpg 768w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231633_SagerNet-691x1536.jpg 691w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231633_SagerNet-922x2048.jpg 922w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231633_SagerNet-scaled.jpg 1152w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>點擊右上角“＋”號菜單</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="461" height="1024" src="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231732_SagerNet-461x1024.jpg" alt="" class="wp-image-605" srcset="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231732_SagerNet-461x1024.jpg 461w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231732_SagerNet-135x300.jpg 135w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231732_SagerNet-768x1707.jpg 768w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231732_SagerNet-691x1536.jpg 691w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231732_SagerNet-922x2048.jpg 922w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231732_SagerNet-scaled.jpg 1152w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>選擇“手動設定”</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="461" height="1024" src="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231750_SagerNet-461x1024.jpg" alt="" class="wp-image-606" srcset="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231750_SagerNet-461x1024.jpg 461w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231750_SagerNet-135x300.jpg 135w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231750_SagerNet-768x1707.jpg 768w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231750_SagerNet-691x1536.jpg 691w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231750_SagerNet-922x2048.jpg 922w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231750_SagerNet-scaled.jpg 1152w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>選擇“Naive”類型</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="461" height="1024" src="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231934_SagerNet-461x1024.jpg" alt="" class="wp-image-607" srcset="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231934_SagerNet-461x1024.jpg 461w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231934_SagerNet-135x300.jpg 135w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231934_SagerNet-768x1707.jpg 768w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231934_SagerNet-691x1536.jpg 691w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231934_SagerNet-922x2048.jpg 922w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-231934_SagerNet-scaled.jpg 1152w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>填寫伺服器信息</p>



<p>a.填寫【伺服器(地址)】【伺服器端口】【用戶名】【密碼】</p>



<p>b.點擊右上角的“√”保存當前配置信息</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232213_SagerNet-461x1024.jpg" alt="" class="wp-image-608" width="461" height="1024" srcset="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232213_SagerNet-461x1024.jpg 461w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232213_SagerNet-135x300.jpg 135w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232213_SagerNet-768x1707.jpg 768w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232213_SagerNet-691x1536.jpg 691w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232213_SagerNet-922x2048.jpg 922w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232213_SagerNet-scaled.jpg 1152w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>a.點擊選中剛才保存的配置項</p>



<p>b.點擊右下角的小飛機圖標開啓連接服務器</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="461" height="1024" src="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232226_SagerNet-461x1024.jpg" alt="" class="wp-image-609" srcset="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232226_SagerNet-461x1024.jpg 461w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232226_SagerNet-135x300.jpg 135w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232226_SagerNet-768x1707.jpg 768w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232226_SagerNet-691x1536.jpg 691w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232226_SagerNet-922x2048.jpg 922w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-232226_SagerNet-scaled.jpg 1152w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>看到這樣的界面表示已經配置成功</p>



<p><strong>注意：</strong>如果手機有禁止APP自動啓動功能，請將SagerNet和NaivePlugin設置為自動啓動，否則在連接時可能會提示”<strong>找不到插件</strong>“ 。</p>



<p></p>



<p>接下來我們點擊左上角菜單(<strong>三條杠</strong>)配置一下路由規則</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="461" height="1024" src="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234409_SagerNet-461x1024.jpg" alt="" class="wp-image-610" srcset="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234409_SagerNet-461x1024.jpg 461w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234409_SagerNet-135x300.jpg 135w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234409_SagerNet-768x1707.jpg 768w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234409_SagerNet-691x1536.jpg 691w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234409_SagerNet-922x2048.jpg 922w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234409_SagerNet-scaled.jpg 1152w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>選擇路由</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="461" height="1024" src="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234429_SagerNet-461x1024.jpg" alt="" class="wp-image-611" srcset="https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234429_SagerNet-461x1024.jpg 461w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234429_SagerNet-135x300.jpg 135w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234429_SagerNet-768x1707.jpg 768w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234429_SagerNet-691x1536.jpg 691w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234429_SagerNet-922x2048.jpg 922w, https://www.luisimon.com/wp-content/uploads/2022/10/Screenshot_20221008-234429_SagerNet-scaled.jpg 1152w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>開啓最底下三個規則，然後我們就可以愉快地去嘗試暢游互聯網啦</p>



<p></p>



<p><strong>後記：這個軟件的版本還在早期，似乎存在一些小bug，相信後期會逐步完善</strong></p>



<p><strong>Windows客戶端使用方法</strong></p>



<p>未完待續&#8230;</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
