tag:blogger.com,1999:blog-74425228392012724912024-03-14T06:05:09.848+08:00D.I.V.E in TechnologyD.I.V.E 是 Do It Via Experiment 的縮寫,我們希望將簡單的、複雜的科技與內容,透過各種實驗快速的複製與重現。經由這些實驗結果,相信將會讓人更加振奮並擁有熱情,然後一頭跳入這美麗的科技世界。Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.comBlogger70125tag:blogger.com,1999:blog-7442522839201272491.post-8814952254657226492018-10-16T18:17:00.001+08:002018-10-16T18:17:41.324+08:00正確的將 Excel 轉存為 UTF-8 格式的 CSV 檔 最近因為工作需要,常需要將同事傳來的公司 Excel 檔案轉存為 UTF-8 格式的 CSV 檔案,但網路上有很多文章的教學或說明,都沒有辦法完整或正確的把 Excel 轉存到 UTF-8 格式的 CSV,所以趁著這次的工作之餘趕緊記錄一下。<br />
<br />
<br />
<br />
<h2>
<span style="font-size: large;"><b>準備工作</b></span></h2>
我們就直接切入正題,列出需要的軟體和操作環境:<br />
<br />
<u>操作環境</u>: <b>Windows</b><br />
<br />
<u>需求軟體</u>:<b> Excel、<a href="https://notepad-plus-plus.org/download/v7.5.9.html">Notepad ++</a></b><br />
<br />
<br />
<br />
<h2>
流程介紹</h2>
<h3>
1. 首先準備一份空白的 CSV 檔案</h3>
<div>
打開一份空白的 Excel 表,直接點選「<b>檔案</b>」、「<b>存檔位置</b>」、「<b>存檔類型</b>」,在存檔類型裡頭選擇<b> CSV 格式</b>,<b><u><i>但先不要按下「儲存」</i></u></b>。</div>
<div>
<br /></div>
<div>
在「儲存」的旁邊會有一個「工具」,點下「<b>工具</b>」後,進入「<b>Web 選項</b>」、「<b>編碼</b>」,接著在「<b>將這份文件另存成</b>」找到 <b>Unicode (UTF-8)</b>,接著按下確定,這時候就可以將這份空白檔案儲存囉。</div>
<div>
<br /></div>
<div>
若已經儲存完成空白的 CSV 檔,請先不要關閉,因為我們待會要將另一份 Excel 檔案裡的內容複製貼過來。</div>
<div>
<br /></div>
<div>
<br /></div>
<h3>
2. 開啟欲轉換格式的 Excel 檔</h3>
<div>
打開文件後,直接將你所要轉換的內容全部複製,並貼上到稍早建立的空白 CSV 檔案。完成複製貼上後,將 CSV 檔儲存、關閉。</div>
<div>
<br /></div>
<div>
於儲存、關閉的過程中,系統將會跳出一些關於存檔後格式會有異動的提示,不用太擔心,全部都是按下是就可以了。</div>
<div>
<br /></div>
<div>
<b><u>若你一個檔案內有多個 sheet 分頁需要存為 CSV 格式,請將步驟 1 的空白 CSV 多複製幾份,因為 Excel 不支援將單一檔案多個 sheet 同時轉存至 CSV 格式。 </u></b>若你的檔案中有10 個 sheet ,那就辛苦一點,將步驟 1、步驟 2 重複操作 10 次。</div>
<div>
<br /></div>
<div>
<br /></div>
<h3>
3. 以 Notepad ++ 打開 CSV 檔案</h3>
<div>
在 CSV 檔案上點右鍵,以 Notepad ++ 開啟,接著到上方的工具列找「<b>編碼</b>」,並指定「<b>轉換至 UTF-8 碼格式</b>」。</div>
<div>
<br /></div>
<div>
不要使用「編譯成 UTF-8 碼」,因為根據我的使用經驗,還有外國網友的討論,多半都會留意到使用這個選項,沒有辦法完整的轉換全部文件內容成 UTF-8 格式。</div>
<div>
<br /></div>
<div>
<b><u>所以再說一次,請選擇「轉換至 UTF-8 碼格式」!</u></b></div>
<div>
<b><u><br /></u></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-Ao5OhU0eWaM/W8W6XI1RqDI/AAAAAAAABCM/GPIqzUZMwj8KA_kNzd6YLxuJgjbgmrg9wCLcBGAs/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="274" data-original-width="280" src="https://1.bp.blogspot.com/-Ao5OhU0eWaM/W8W6XI1RqDI/AAAAAAAABCM/GPIqzUZMwj8KA_kNzd6YLxuJgjbgmrg9wCLcBGAs/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
確定選擇了轉換至 UTF-8 碼格式,就可以將檔案存檔、關閉了。若有多個 CSV 檔案,請依照步驟三的方式來回重複操作就可以了。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
以上轉檔經驗筆記,希望對大家都有幫助!</div>
<div>
<b><u><br /></u></b></div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-26100499327543296262018-02-08T17:13:00.000+08:002018-02-08T17:13:00.913+08:00Wordpress 4.9.4 更新問題解決方案(設定權限就可改善)<h2>
Wordpress Dashboard 要求輸入 FTP 帳號密碼</h2>
如果你在 VPS 上安裝新的 Wordpress,在一段時間後發現 Dashboard 上出現提示 Wordpress 已經可以更新,但當你按下更新按鍵卻發現他要求你提供 FTP 的登入 IP、帳號、密碼。<br />
<br />
為何會發生這個問題?如何避開這個 FTP 登入要求?<br />
<br />
因為 VPS 在 Apache 安裝的過程中,因為資料庫裡的資料夾權限不是使用 root 權限針對一些相關的資料夾進行設定,所以導致 Wordpress 有些資料夾無法在指定的帳號下進行更新。解決方式很容易,只需要修正資料夾的權限就可以了。<br />
<br />
<br />
<h2>
修正料夾權限,將系統資料夾權限統一化</h2>
<br />
首先請先確認你可以用 <a href="https://www.putty.org/">Putty</a> 這類的連線軟體登入你的伺服器。順利登入伺服器之後,直接輸入:<br />
<br />
<blockquote class="tr_bq">
<pre class="code-pre " style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; color: #3a3a3a; font-size: 14px; margin-bottom: 24px; overflow: auto !important; padding: 1rem; word-wrap: normal;"><code langs="" style="background-color: transparent; border-radius: 3px; box-sizing: inherit; line-height: 22px; margin: 0px; padding: 0px;">chown -R apache:apache /var/www/</code></pre>
</blockquote>
<br />
接著你只要重新載入一次你的 Wordpress Dashboard 就可以按下更新,這時後 Dashboard 向你要求 FTP 登入資訊的畫面也消失囉!<br />
<br />
更多相關討論,可以參考這一篇: <span style="background-color: white; color: #3a3a3a; font-family: proxima-nova, sans-serif;"><a href="https://www.digitalocean.com/community/questions/wordpress-asking-for-ftp-credentials">Wordpress asking for FTP Credentials</a></span><br />
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-2758709905325248452017-12-05T12:00:00.000+08:002017-12-05T12:47:35.317+08:00使用 Testdisk 拯救變成 RAW 格式後無法打開的硬碟<h2>
<u>20171205 Testdisk 救援無法打開的 RAW 格式硬碟</u></h2>
今天要分享的是如何將手上莫名變成 RAW 格式的硬碟拯救回來的工具與步驟。相信每個找到這篇文章的人一定是心急如焚,就不鋪陳什麼劇情了,請直接往下看吧!先下載好 Testdisk,然後解壓縮即可。<br />
<br />
<span style="background-color: #d9ead3; color: #e69138; font-size: large;">下載: <a href="http://www.cgsecurity.org/wiki/TestDisk_Download">Testdisk</a></span><br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
1. 如果你的硬碟呈現下面這張圖的情況,<span style="color: #e69138;"><b style="background-color: #d9ead3;">千萬不要格式化或磁碟重組 </b></span><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-cwqNAFPkOnc/WiYRoixxoiI/AAAAAAAABAM/urGUSG28L0s1isH3mhboRTVIhE4xAJOcgCLcBGAs/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="453" data-original-width="923" height="312" src="https://2.bp.blogspot.com/-cwqNAFPkOnc/WiYRoixxoiI/AAAAAAAABAM/urGUSG28L0s1isH3mhboRTVIhE4xAJOcgCLcBGAs/s640/1.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
2. 在無法正常開啟的硬碟點右鍵、內容,看看是不是全部空間都是 0,如果是這樣的情況,多半是硬碟格式跑掉了,而且已經變成了 RAW 格式</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-TBBTdw3SAVE/WiYRrShKGJI/AAAAAAAABAk/P1OF3NLKtUET5BDsQsr4jha00DkdLFi5QCLcBGAs/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="726" data-original-width="748" height="620" src="https://3.bp.blogspot.com/-TBBTdw3SAVE/WiYRrShKGJI/AAAAAAAABAk/P1OF3NLKtUET5BDsQsr4jha00DkdLFi5QCLcBGAs/s640/2.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
3. 開啟電腦管理,點選磁碟管理,你可以看到磁碟 E、磁碟 F 都已經是 RAW 格式,所以接下來我們要開啟稍早請你先下載的 Testdisk 來挽救你的硬碟。如果你還沒有下載,這裡是下載連結:<a href="http://www.cgsecurity.org/wiki/TestDisk_Download"><span style="background-color: #d9ead3; color: #e69138; font-size: large;">Testdisk</span></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-cYL1-0h8tZA/WiYRrgY0RMI/AAAAAAAABAo/LZLQc7KCaGU_WdATaBYcxicXMDslQld-ACLcBGAs/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="717" data-original-width="1003" height="456" src="https://2.bp.blogspot.com/-cYL1-0h8tZA/WiYRrgY0RMI/AAAAAAAABAo/LZLQc7KCaGU_WdATaBYcxicXMDslQld-ACLcBGAs/s640/3.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
4. Testdisk 上的全部操作都是透過鍵盤上的方向鍵,或簡單的字母指令,非常容易,也不囉唆!只要你會上 PTT,相信這些操作也不困難,所以以下每個步驟我就不囉唆。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
打開 Testdisk 後,第一個看到的畫面就是以下這張圖,請直接在 Create 上按下 Enter 進入</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-cEDAYM4oYas/WiYRsZHoqBI/AAAAAAAABAs/sVuaD0OUg2gBxFkP-RZl0cDDipBzSQhMACLcBGAs/s1600/4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="439" data-original-width="675" height="416" src="https://1.bp.blogspot.com/-cEDAYM4oYas/WiYRsZHoqBI/AAAAAAAABAs/sVuaD0OUg2gBxFkP-RZl0cDDipBzSQhMACLcBGAs/s640/4.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
5. 使用方向鍵將光標移動到稍早打不開的 RAW 格式硬碟,在這裡我的選擇是 第三顆 WDC 那顆硬碟,並按下 Enter</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-V4-2CY1birw/WiYRsmVaK6I/AAAAAAAABAw/vY0NFjaEDNsXayETTrY0Bu0DreD7RP0UwCLcBGAs/s1600/5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="438" data-original-width="671" height="416" src="https://4.bp.blogspot.com/-V4-2CY1birw/WiYRsmVaK6I/AAAAAAAABAw/vY0NFjaEDNsXayETTrY0Bu0DreD7RP0UwCLcBGAs/s640/5.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
6. 直接在 Intel 選項上按下 Enter</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-Cf0UExd2eQg/WiYRswFv6QI/AAAAAAAABA0/EsI3Afbp7ZYoqY6CIlJg3zl-bIEyRmWvQCLcBGAs/s1600/6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="438" data-original-width="669" height="418" src="https://1.bp.blogspot.com/-Cf0UExd2eQg/WiYRswFv6QI/AAAAAAAABA0/EsI3Afbp7ZYoqY6CIlJg3zl-bIEyRmWvQCLcBGAs/s640/6.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
7. 在這個選單畫面,幾乎你在網路上能找到的 Testdisk 教學都會要你按下 Analyse,但強烈建議不要浪費時間,<span style="background-color: #d9ead3; color: #e69138;">請直接按下 Advanced</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-yUjDZFiodKo/WiYRtRg_a-I/AAAAAAAABA4/E9j4XTEg2bs_xju6VKy2QqxP4I_pCoVagCLcBGAs/s1600/7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="437" data-original-width="673" height="414" src="https://1.bp.blogspot.com/-yUjDZFiodKo/WiYRtRg_a-I/AAAAAAAABA4/E9j4XTEg2bs_xju6VKy2QqxP4I_pCoVagCLcBGAs/s640/7.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
8. </div>
<div class="separator" style="clear: both; text-align: left;">
上半部光標:移動到你要分析的硬碟區塊(使用上下鍵)</div>
<div class="separator" style="clear: both; text-align: left;">
下半部光標:上面這個光標確定移動到要備份的硬碟後,選擇<b style="background-color: #d9ead3;"><span style="color: #e69138;"> List</span></b>(使用左右鍵),按 Enter</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-4wFHOOc6Aks/WiYRtgE7qoI/AAAAAAAABA8/vM7ntZH5TB8OB_ksQGmlAnCS-1CdctH5gCLcBGAs/s1600/8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="438" data-original-width="673" height="416" src="https://4.bp.blogspot.com/-4wFHOOc6Aks/WiYRtgE7qoI/AAAAAAAABA8/vM7ntZH5TB8OB_ksQGmlAnCS-1CdctH5gCLcBGAs/s640/8.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
9. 在這裡我少了一個截圖,但其實不影響操作。因為我只是進入了那顆打不開的硬碟中的 C 槽,並且進入了 /Users 這個資料夾,進入後就顯示如下。</div>
<br />
因為我在這裡所要備份的是/Users/Admin/Desktop 裡頭的所有資料,所以一樣將光標移動到要操作進入的項目上按 Enter 進入<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-VA5cyjsU8gs/WiYRt8UttiI/AAAAAAAABBA/9gtWXRJgzD4xReWDG3zH8dBKeXNKXQNQgCLcBGAs/s1600/9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="436" data-original-width="669" height="416" src="https://4.bp.blogspot.com/-VA5cyjsU8gs/WiYRt8UttiI/AAAAAAAABBA/9gtWXRJgzD4xReWDG3zH8dBKeXNKXQNQgCLcBGAs/s640/9.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
10. 找到要備份的 Desktop 這個資料夾後,再次觀察一下你現在畫面裡的中間靠上方一點,所顯示的路徑是否為 /Users/Admin,並且目前光標是停留在 Desktop ? 如果以上都確定,<span style="background-color: #d9ead3; color: #e69138;">請按下 c</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-WUUtDbZHq_I/WiYRo24EHvI/AAAAAAAABAQ/NRWv0WwSSicHmLAayuZmKBVJMTRC0QjSQCLcBGAs/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="438" data-original-width="669" height="418" src="https://4.bp.blogspot.com/-WUUtDbZHq_I/WiYRo24EHvI/AAAAAAAABAQ/NRWv0WwSSicHmLAayuZmKBVJMTRC0QjSQCLcBGAs/s640/10.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
11. 下面這個選單是你現在電腦上的硬碟區塊,選擇要儲存的位置,我選擇 D 槽(光標那一欄的右側有顯示硬碟的代號),按下 Enter</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-Yi0j5917QKw/WiYRotbgUdI/AAAAAAAABAI/V9qB7vL4irgfERLSkjhk_j-xjfs1DE-MACLcBGAs/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="437" data-original-width="673" height="414" src="https://3.bp.blogspot.com/-Yi0j5917QKw/WiYRotbgUdI/AAAAAAAABAI/V9qB7vL4irgfERLSkjhk_j-xjfs1DE-MACLcBGAs/s640/11.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
12. 進入 D 槽後,我早就建立好一個 TEST-Copy,所以將光標移動到這個資料夾上,然後<span style="background-color: #d9ead3; color: #e69138;">按下 c </span>,備份就會開始了</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-L12JWrc7Mvw/WiYRp32KLzI/AAAAAAAABAU/I9Un-kzoFpQ3myzbfSYIybXAd_g_WT83wCLcBGAs/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="351" data-original-width="672" height="334" src="https://2.bp.blogspot.com/-L12JWrc7Mvw/WiYRp32KLzI/AAAAAAAABAU/I9Un-kzoFpQ3myzbfSYIybXAd_g_WT83wCLcBGAs/s640/12.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
13. 備份中</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-tefcRIBW1Zg/WiYRqDgUpPI/AAAAAAAABAY/p6nPh5l5N-8QXLBaiyOMGKJF4sKzfV2kACLcBGAs/s1600/13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="439" data-original-width="672" height="418" src="https://4.bp.blogspot.com/-tefcRIBW1Zg/WiYRqDgUpPI/AAAAAAAABAY/p6nPh5l5N-8QXLBaiyOMGKJF4sKzfV2kACLcBGAs/s640/13.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
14. 備份完成, 0 failed </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-CvYb_9oe9No/WiYRqV-VmMI/AAAAAAAABAc/58h-htOuYqIHn3SavvLYBr9VQ_vsqvQxgCLcBGAs/s1600/14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="437" data-original-width="672" height="416" src="https://3.bp.blogspot.com/-CvYb_9oe9No/WiYRqV-VmMI/AAAAAAAABAc/58h-htOuYqIHn3SavvLYBr9VQ_vsqvQxgCLcBGAs/s640/14.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
15. 進入 TEST-Copy 資料夾,基本上從無法開啟的硬碟備份出來的資料都在裡頭了。因為這顆示範用的救援硬碟是客戶的電腦,商業資料敏感就不方便公開了,僅顯示資料夾容量有高達 1.1 GB 的檔案救援成功。</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-uwwoyBJoF2w/WiYRrI0U9WI/AAAAAAAABAg/SpgYhUs-zsskM_Vv5Tnt2qzlkSgkGTQoACLcBGAs/s1600/15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="724" data-original-width="616" height="640" src="https://2.bp.blogspot.com/-uwwoyBJoF2w/WiYRrI0U9WI/AAAAAAAABAg/SpgYhUs-zsskM_Vv5Tnt2qzlkSgkGTQoACLcBGAs/s640/15.jpg" width="544" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h3 style="clear: both; text-align: left;">
<span style="font-size: large;">後記:</span></h3>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
如果需要救援其他資料夾裡的檔案,請按照上面的流程再跑一次就可以了。有些人來信詢問我,為什麼不要推薦圖形化介面或其他牌子的軟體? 因為多數圖形化介面的軟體不是有檔案救援的大小限制(例如只能救援 500 MB),就是執行的時間相當長,或者分析成功,但救援資料的容量依舊有大小限制。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
這已經是我第二次救援 RAW 格式的硬碟,幾乎市面上能安裝、測試過的軟體我都使用過,我還是大力推薦 Testdisk ! 希望這個小筆記可以讓你很快脫離困境! Peace out !LOL</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com4tag:blogger.com,1999:blog-7442522839201272491.post-64479142930253957872017-08-07T13:04:00.001+08:002017-12-06T13:31:03.083+08:00Ubuntu 更新錯誤 apt update error - "An error occurred during the signature verification"<h2>
套件更新錯誤</h2>
<h3>
public key 遺失問題</h3>
大約每兩三天我就會 update 一下我的電腦套件,但今天早上遇到了一點狀況。<br />
先說明一下我的作業系統和電腦:<br />
<div>
<br /></div>
<div>
電腦: x230 </div>
<div>
OS: Ubuntu 17.04 (從 16.10 直接升級到 17.04 )</div>
<div>
<br /></div>
早上打開電腦嘗試使用 sudo apt-get update 更新一下系統套件,但出現了以下錯誤資訊:<br />
<br />
<pre style="background-color: #eff0f1; border: 0px; color: #111111; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used.
GPG error: http://dl.google.com/linux/chrome/deb stable Release:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done</code></pre>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
遇到上述的 apt update 問題,可以經由兩個步驟來檢查:</div>
<div>
<br /></div>
<h3>
1. 修改 google-chrome.list </h3>
<div>
<br /></div>
<div>
打開 terminal 輸入以下資訊,以 gedit 編輯以下檔案</div>
<div>
<pre style="background: rgb(238, 238, 238); border: 0px; box-sizing: border-box; color: #333333; font-size: 14px; font-stretch: inherit; font-variant-numeric: inherit; line-height: 1.5; margin-bottom: 16px; margin-top: 16px; overflow: auto; padding: 16px; vertical-align: baseline;">sudo gedit /etc/apt/sources.list.d/google-chrome.list</pre>
<div>
<br /></div>
<div>
檢查檔案中 deb 後方的 arch 有沒有加上 amd64,如果沒有,請手動將它改寫為 [arch=amd64],然後存檔再執行一次 sudo apt-get update</div>
<pre style="background: rgb(238, 238, 238); border: 0px; box-sizing: border-box; color: #333333; font-size: 14px; font-stretch: inherit; font-variant-numeric: inherit; line-height: 1.5; margin-bottom: 16px; margin-top: 16px; overflow: auto; padding: 16px; vertical-align: baseline;">deb [arch=amd64] http://dl.google.com/linux/<wbr style="box-sizing: border-box;"></wbr>chrome/deb/ stable main</pre>
<div>
<br /></div>
<div>
<br /></div>
<h3>
2. 重新取得 <span style="background-color: white; color: #111111; font-family: "ubuntu" , "arial" , "libra sans" , sans-serif; font-size: 15px;">repo key from Google</span></h3>
</div>
<div>
<span style="color: #111111; font-family: "ubuntu" , "arial" , "libra sans" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #111111; font-family: "ubuntu" , "arial" , "libra sans" , sans-serif;"><span style="font-size: 15px;">打開 terminal 輸入以下資訊</span></span></div>
<div>
<pre style="background-color: #eff0f1; border: 0px; color: #111111; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -</code></pre>
</div>
<div>
<br /></div>
<div>
上述兩個步驟都執行成功的話,重新 sudo apt-get update 就可以修正了!</div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-32266613476591243362017-01-21T16:57:00.001+08:002017-01-24T13:45:46.288+08:00ASUS Thinker V.S. Raspberry Pi 3 <h3>
<span style="color: yellow;">為什麼開放式硬體這麼紅?</span></h3>
自 Arduino 開啟了開放式硬體與 Marker 風潮後,將這一股波瀾推上高峰的就是 Raspberry Pi 。Raspberry Pi(以下稱 RPi)除了採開放式硬體架構,在其平台上可以運作的作業系統更是如雨後春筍一樣不斷的冒出來。<br />
<br />
至今在教育界、Maker 界,甚至許多新創公司的新品設計、開發,都是相當精良的開發基礎平台,也因此讓 RPi 在銷售量上有著出乎意料的銷售成績。<br />
<br />
許多硬體公司在這 5 年內正陷入銷售低潮,當他們看見 Arduino 和 RPi 驚人的銷售成績後,紛紛也跳入了這股開放式硬體的風潮,希望能將公司原有的生產線轉移。<br />
<br />
<h3>
<span style="color: yellow;"><br />誰也跟上了這陣風潮?</span></h3>
<br />
台灣也有數家廠商開始投產基於 RPi 的架構改良而來的強力運算平台,目前有 Banana Pi ,近期又有 ASUS 推出的 Thinker。<br />
<br />
以下是國外知名評測網站撰寫的 RPi 和 Thinker 的比較文:<br />
<a href="http://hexus.net/ce/news/gadgets/101686-asus-tinker-board-designed-trump-raspberry-pi-3/">http://hexus.net/ce/news/gadgets/101686-asus-tinker-board-designed-trump-raspberry-pi-3/</a><br />
<br />
在這個比較的網頁中, ASUS Thinker 只有在藍芽部分輸給了 RPi ,看起來其他部分贏的非常有面子。但其實許多台灣做硬體的廠商都搞錯了一個重點,<u>硬體做得再好,軟體、系統沒有人投入開發、平台使用率不夠廣泛,硬體再好都沒有用。</u><br />
<br />
<br />
軟體的易用、系統的穩定度將會決定使用者打開後使用的感受和使用的頻繁度。如果系統好用穩定,一般人會長期使用,甚至作為主力設備;但如果軟體的生態圈並不繁盛,只有少數非常非常 Geek 的人使用,這樣是很難以普及的。<br />
<br />
<h3>
<br /><span style="color: yellow;"><br /> 學習不是只要披上皮,還要有自己的內容</span></h3>
對於台灣廠商的開發技術,我相信還是有很強的開發背景和過往經驗,但以 Arduino 和 RPi 這兩個當紅炸子雞而言,他們用的都是「功能有限」的硬體,但軟體、系統的生態圈是非常非常的蓬勃發展。<br />
<br />
台灣所推出的硬體總是「功能過剩」的硬體,軟體則是非常後繼無力,這好可惜。明明我們有良好的體質,卻常常把自己的優勢給白白浪費了。<br />
<br />
希望台灣的廠商可以慢慢調整自己的思維,將硬體優先的概念,漸漸轉換為軟體優先的概念,先將環境建立出一個生態圈,慢慢的再將硬體打通整個市場,這樣才能在新的社群市場打出一段新的輝煌戰績!<br />
<br />
<br />
--------------------------------------------------------------------------------------------------------------<br />
<br />
對於創業和自我成長有興趣的朋友,歡迎訂閱我的個人網頁:<br />
<a href="http://iammarcushsieh.com/">http://iammarcushsieh.com/</a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-20520578969577877912016-12-09T11:07:00.001+08:002016-12-09T21:03:47.159+08:00創業的 234<h2>
關於標題</h2>
<div>
對於標題為什麼叫做創業的 234,因為創業需要的是先踏出第 1 步,不是原地踏步,頂著額頭向著太陽說: 我要創業!<br />
<br />
這是在騙自己、安慰自己。創業是有很多大小事要規劃、安排、執行,而且一旦踏出了這 1 步,後續緊接而來的 234 的未知狀況將會讓你每天處於挑戰的情緒下,如何收拾、如何沈澱、如何冷靜,這都是過程中很重要的課題。</div>
<div>
<br /></div>
<h2>
關於這裡和新的網頁</h2>
這幾年一直都很忙著在創業,因此這個當初紀錄自己開發和興趣用的網誌就停擺了很久,跟各位朋友們說聲抱歉,沒能在第一時間回覆大家問題。<br />
<div>
<br /></div>
<div>
關於創業,我有很多心得和經驗,雖然沒有大到需要募資、需要揪股東,但其中有很多辛酸不是一般人的日常生活那樣平淡,也有很多衝突和甜蜜。</div>
<div>
<br /></div>
<div>
未來我有許多新的文章和討論將會同步刊載於:<a href="http://iammarcushsieh.com/">創業衝浪手</a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
創業衝浪手這個網站討論的主題會鎖定在:創業、SEO、內容行銷等議題</div>
<div>
大致上是與網路創業、網路行銷相關的篇幅,也是我近來接觸較多的領域。</div>
<div>
<br /></div>
<div>
<br /></div>
<h2>
交流與合作</h2>
<div>
若你的公司、團隊未來希望在網路上開始起步,但不確定自己的方向和數據是不是吻合期待,也歡迎你來聊聊如何強化公司在網路端的行銷與 SEO 優化。開公司不是上餐館,喜歡就待,不合意就離開,畢竟企業是賺錢為目標,我們必須最大化每一分價值!</div>
<div>
<br /></div>
<div>
這裡的文章若有新的技術文可分享時,我仍會不間斷的更新,謝謝大家的支持與等候!</div>
<div>
2016剩下最後一個月,讓我們繼續奮戰到最後一分一秒吧!加油!</div>
<div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-77328498586480592232015-11-04T02:38:00.000+08:002015-11-08T08:12:23.019+08:00快速電捲門 - 格來得遙控器頻率設定若您家裡使用的捲門是快速電捲門,那麼有很高的機會是採用格來得這個品牌的接收機與遙控器組。這組電捲門改善了我們進出門的使用習慣與減少等候時間,我相當推薦居家安裝快速捲門,真的很便利。<br />
<br />
不過最近發生了一些狀況,遙控器使用了一段時間後,家中九隻電捲門遙控器,其中有五隻是無法正常遙控的。原先第一判斷都是「電力不足」,第二判斷是「遙控器開啟了保護模式」,除此之外,實在想不到為什麼遙控器失效了。<br />
<br />
若是電力不足,換個電池就行了;<br />
若是開啟保護模式,只要將遙控上四個按鈕個別按過一輪,就可以找到解開的方式。<br />
但如果以上都不是呢?<br />
<br />
有可能就是遙控完全損壞,要不就是頻率跑了。(以我的經驗,多半是這個原因)<br />
<br />
<br />
<br />
<br />
我們直接進入重點:<br />
<br />
1. 首先先確認你的遙控器燈號是夠明亮的,夠亮代表電力充足。<br />
2. 開啟捲門旁的遙控接收盒外蓋。外蓋的正下方有卡榫,輕輕撥開即可將整個面蓋拿掉<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-6zZsq1DUrdg/Vjj8VngN3zI/AAAAAAAAA6k/vWwTGq3VPZU/s1600/20151103_213248.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="http://3.bp.blogspot.com/-6zZsq1DUrdg/Vjj8VngN3zI/AAAAAAAAA6k/vWwTGq3VPZU/s400/20151103_213248.jpg" width="300" /></a></div>
<br />
<br />
4. 面板開啟後,你將會看到電路板。此時請尋找電路左上角的按鍵(黃方框),並請按一下。只需要按一下,無須按住幾秒後再放開。請直接點一下就行了<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-irbRs2D77Wk/Vjj8XOXu47I/AAAAAAAAA6s/ZzpaWkv7fME/s1600/20151103_213257.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="http://1.bp.blogspot.com/-irbRs2D77Wk/Vjj8XOXu47I/AAAAAAAAA6s/ZzpaWkv7fME/s400/20151103_213257.jpg" width="300" /></a></div>
<br />
<br />
5. 按下按鍵後,紅色 LED燈(紅匡處)將會恆亮。此時遙控接收盒已經進入等候,這時候請拿出需要重新配對、對準頻率的遙控器,並按下遙控上的停止鍵(按住停止鍵先不放開)。<br />
<br />
按下按鈕後,若頻率學習正確,紅色 LED燈會從恆亮轉為閃爍燈號,此時就可以放開按鍵,這時遙控已經重新配對完成了,恭喜!<br />
<br />
<br />
<br />
後記:<br />
<br />
先前打電話給經銷商還有鑰匙店,每一家都告知遙控器需要重新購買(一隻遙控 800 元),若以我家的情況,則需要支付 4000 台幣,現在經由上述步驟一一配對後,全部恢復正常了。Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com4tag:blogger.com,1999:blog-7442522839201272491.post-22979168158592363592015-03-21T02:05:00.004+08:002015-03-21T02:06:32.619+08:00[Fixed] Intel(R) Technology Access Service slowing down the CPU I just bought my new laptop Acer VN7-791G few days ago. When I watch youtube , I found out the fan will turn on and working on full speed, and CPU process is around 70%, it is really weird,<br />
<div>
Because I only watching youtube on Chrome , and didn't do anything else.</div>
<div>
<br /></div>
<div>
I check the process manager, and I saw that Intel(R) Technology Access Service holding CPU resource. I don't know what Intel(R) Technology Access Service for , but after I killed this process, all system working well again. </div>
<div>
<br /></div>
<div>
If you have the same problem like this, you can follow up the step as below :</div>
<div>
<br /></div>
1. Please search:<b><span style="color: yellow;">Service</span></b><br />
2. Looking for <span style="color: yellow;"><b>Intel(R) Technology Access Service</b></span> in Service , then click right button on this item and choose <b><span style="color: yellow;">content</span></b>.<br />
<div>
3. Setting Intel(R) Technology Access from start -> <span style="color: yellow;"><b>stop</b></span> , then <b><span style="color: yellow;">apply</span></b> it.<br />
4. <span style="color: yellow;"><b>Reboot </b></span>you system , Done !!<br />
<br />
Via these steps , you can fixed the Intel(R) Technology Access problem and waiting for Intel's update. Enjoy it !</div>
<div>
<br /></div>
<div>
-Marcus.</div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-82264863728903021652015-03-17T16:16:00.003+08:002015-03-17T17:39:04.548+08:00[3/17] [更新] Acer VN7-791G 影片爆音與滑鼠卡頓暫時解決方案3/13 因為工作需求採購了一台配備算的上高階的 NB Acer VN7-791G ,顯卡是 NVIDIA GTX 840M,預設記憶體 8GB,硬碟有 128G SSD 和 1TB 硬碟,17吋螢幕,CPU i7 。<br />
<div>
<br /></div>
<div>
看起來一切都是相當棒的選擇,但近日使用上會發現播放影片會有爆音或斷續,滑鼠也會有漂移卡頓的現象,經網路查詢後,有網友提供以下解決方法(轉自巴哈姆特):<br />
<br />
<br />
1. 開啟工作管理員<br />
2. 把 Intel(R) Technology Access-Service 結束工作<br />
3. 重開機<br />
<br />
<br />
目前使用上幾乎沒有卡頓與爆音現象,現在也只能靜待 Acer 原廠能早日提供解決方案<br />
<br />
===================================<br />
<br />
更新說明:<br />
<br />
1. 請在 Windows 中使用搜尋尋找:<b><span style="color: yellow;">檢視本機服務</span></b><br />
2. 開啟檢視本機服務後,由右側的清單中找尋:<b><span style="color: yellow;">Intel(R) TechnologyAccessService</span></b>,<br />
並在該選項上點選右鍵,選擇『<span style="color: yellow;">內容</span>』<br />
<br />
3. 開啟內容後在『一般』的頁面中 找到 『<span style="color: yellow;">啟動類型</span>』 將 『啟動』<br />
改成『<span style="color: yellow;"><b> 已停用</b></span>』<br />
4. 設定好後點選套用 確定 接著重新開機後就可以了<br />
<br />
透過以上設定可以讓 Windows 8.1 每次開啟都不會再自動開啟 <b><span style="color: yellow;">Intel(R) TechnologyAccessService</span></b></div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-1195212740585981902015-03-03T12:46:00.003+08:002015-03-03T12:49:11.281+08:00在 Ubuntu 14.10 上使用 LINE ( 以 PlayonLinux 安裝)<div>
半年前開始在 Ubuntu 14.04 (32bit 版) 上使用 Wine 安裝 LINE 作為工作上的即時通訊需求,但是近期為了升級系統套件,索性將整個作業系統更新到 Ubuntu 14.10 (64bit 版) ,但由於 Wine 與 LINE 的安裝套件包無法正常在 64bit 作業系統上運作,便在網路上找找有沒有相關討論串,恰好找到了以下這篇好文章: <a href="http://ezgo-tw.blogspot.tw/2014/09/playonlinux-line.html">以 PlayonLinux 安裝 LINE</a></div>
<div>
<br /></div>
<div>
文章作者圖文並茂的操作解說,非常容易可以按部就班完成操作,唯獨需要留意幾個細節:</div>
<div>
<br /></div>
<div>
<b><span style="color: yellow;">1. 安裝 x86-32 bit 版本 Wine</span></b></div>
<div>
文章中所安裝的 Wine 版本是 x86-32bit 版本,若你和我一樣是安裝 64bit 版本,還是請依照文章裡介紹的安裝 x86-32bit 版本。因為 PlayonLinux是在你的系統中另外切割了一個小區塊作為虛擬區塊,用來執行 Wine + LINE ,所以你即使你的作業系統是 64 bit ,還是可以正常使用。</div>
<div>
<br /></div>
<div>
<b><span style="color: yellow;">2. 為何不安裝 64bit 版本?</span></b></div>
<div>
因為當64bit Wine 安裝好後,後續尚有三個套件需要安裝,才能順利執行 LINE ,但其中<span style="color: cyan;">dotnet20sp2 </span>套件在安裝過程就會跳出錯誤訊息,告知此一套件無法在 64 bit 版的 Wine 上執行。所以為了可以正常運作,還是請依照 ezgo 筆者文章介紹的,安裝 x86-32 bit 版本吧<br /><br /><br /><br />以上是 LINE 透過 PlayonLinux 在 Ubuntu 14.10 上執行的建議與心得!</div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-63564117760333471722015-02-27T02:41:00.000+08:002015-03-02T13:17:35.231+08:00以 Serial Port 操作 Raspberry Pi A+ 如果您手邊只有一台 NB ,沒有多餘的螢幕可以透過 HDMI 將 Raspberry Pi 上的畫面顯示出來,但又希望可以不須外接鍵盤滑鼠,就可以對 Raspberry Pi 進行直接操作,這時候您可以學習使用 Serial Port 的連接方式,就可以將 Raspberry Pi 的 terminal 畫面透過 Putty 等軟體顯示於 NB 的螢幕上了。<br />
<br />
首先我們來看看這次的操作介紹需要些什麼基本需求:<br />
<br />
* Raspberry Pi A+ (其他系列亦可)、microSD記憶卡(供作業系統使用)<br />
* microUSB 電源線<br />
* USB to Serial Port 轉接線<br />
* EDIMAX 7811Un Wifi Dongle<br />
* NB 一台(此文採用 Ubuntu 14.04 為操作環境)<br />
* Putty 軟體<br />
* 了解基本 linux command line 操作指令(例如 cd、ls、ifconfig 等)<br />
<br />
<br />
<br />
當上述設備與基本觀念都具備後,我們來稍微分析一下為什麼要挑選Raspberry Pi A+ (以下簡稱 A+ ),USB to Serial Port 線該選哪一種,以及應該選擇哪一套 Pi 的作業系統:<br />
<br />
<b><span style="color: yellow;">1. 為什麼要選擇 A+ ?</span></b><br />
雖然很想說:因為便宜,但這個聲明已經不具說服力。因為我在撰寫這篇文章的前兩天已經看到有店家將 Raspberry Pi model B 為了因應 Pi 2 的上市,而降價求售到只要 $500 就可以買到。<br />
<br />
會選擇 A+ 其實最看中的是他的體積。A+ 大約是 Model B 的一半面積。雖然在板子上不具備網路晶片,以及只有一個 USB 孔,但對於低階且不太需要外部輸入設備的應用來說,這是一個極具奢侈的硬體平台了。因為甚至多數應用只需要 Arduino 就可以完成。<br />
<br />
但 A+ 比起 Arduino 更吸引人的特點有:<br />
<br />
* 具有 32 個 GPIO<br />
* 若需要網路功能,只要插上 USB Wifi dongle 即可<br />
* 運算速度以及具備作業系統功能<br />
* 可直接於 Pi 上以 Python 撰寫相關程式<br />
* etc.<br />
<br />
正因為有了這些體積、耗電、運算、上網等需求,所以我傾向選擇 A+ 而非 Model B 系列與 Arduino 。<br />
<br />
<br />
<b><span style="color: yellow;">2. USB to Serial Port 線</span></b><br />
USB to Serial Port 線材其實有很多種,而且會因為內建的晶片價格而有相當大的價格差異。我所選擇的是國內拍賣網站上的平價轉接線。其採用晶片是國內旺玖科技的 PL2303 晶片,線材外觀如下<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-56cSXQm5dr0/VO9MUypkvoI/AAAAAAAAA1I/0NlwIvdJeWA/s1600/20150226_114623.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-56cSXQm5dr0/VO9MUypkvoI/AAAAAAAAA1I/0NlwIvdJeWA/s1600/20150226_114623.jpg" height="640" width="480" /></a></div>
<br />
<br />
<br />
<b><span style="color: yellow;">3. 作業系統</span></b><br />
這部份就比較見仁見智,看個人需求與使用習慣來選擇即可。因為我多數時間都是使用 Ubuntu,加上有點懶惰不想再多記憶其他作業系統的操作指令,所以我推薦 Debian 和 Ubuntu 使用者可以選擇 Raspberry Pi 官方推出的:Raspbian 。這套作業系統的操作指令與 Debian 沒有太大差別。<br />
<br />
<br />
<br />
<br />
<b><span style="color: yellow; font-size: x-large;">開始動手</span></b><br />
<b><span style="font-size: large;"><br /></span></b>
<b><span style="color: yellow; font-size: large;">安裝 USB to Serial 線</span></b><br />
假設你已經在 Raspberry Pi 上下載了作業系統的 image 檔,並正確燒錄到 SD 卡上,這時就可以將 SD 卡安裝至 A+ 上。接著請參考 A+ GPIO 腳位,並依照下圖將 USB to Serial 線接至 A+ GPIO 。<br />
<br />
USB to Serial 與 A+ 連接的腳位對應如下:<br />
<br />
<b><span style="color: #f6b26b;">USB 黑線 <---> A+ 6號 Ground Pin</span></b><br />
<span style="color: #f6b26b;"><b><br /></b>
<b>USB 白線 <---> A+ 8號 TXD Pin</b></span><br />
<span style="color: #f6b26b;"><b><br /></b>
<b>USB 綠線 <---> A+ 10號 RXD Pin</b></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-ydm-vUeKcsk/VO9ObocZyGI/AAAAAAAAA1c/ECiw3OvswjU/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-ydm-vUeKcsk/VO9ObocZyGI/AAAAAAAAA1c/ECiw3OvswjU/s1600/2.png" height="313" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
<br />
上述步驟做完後,接著就可將 USB 插入電腦端 USB ,並開啟終端機(terminal )查詢目前接上的 USB to Serial 線路所使用的是哪個裝置名稱,請輸入:ls /dev/ttyUSB*<br />
<br />
若你的 USB to Serial 線可被正確讀取,你應該能看到如下圖的顯示畫面<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-c2EXHm-4Sy8/VO9LrjDTUII/AAAAAAAAA1A/EqU8wea4Nlc/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-c2EXHm-4Sy8/VO9LrjDTUII/AAAAAAAAA1A/EqU8wea4Nlc/s1600/1.png" /></a></div>
<br />
<br />
<br />
<span style="color: yellow; font-size: large;"><b>安裝 Putty </b></span><br />
USB to Serial 線安裝好後,請先確認你的電腦已經安裝好 Putty 這套軟體,因為我們將透過這套軟體進入 Raspberry Pi A+ 進行一些設定。如果你尚未安裝,請直接在終端機中輸入:<br />
sudo apt-get install putty<br />
<br />
安裝完成後,請將 Putty 開啟,開啟後畫面如下<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-s4SdmEdfF7k/VO9RgPrcymI/AAAAAAAAA1o/9xpCHHphU70/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-s4SdmEdfF7k/VO9RgPrcymI/AAAAAAAAA1o/9xpCHHphU70/s1600/3.png" height="640" width="632" /></a></div>
<br />
<br />
因為待會我們是要透過 Serial 連入,因此請點選 Serial 選項。點選後會發現 Serial line 的連接埠與我們稍早所查詢的名稱不同,Speed 也僅只有 9600 ,因此我們需要修正一下。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-RwSQ1IpbGJY/VO9RgFxgIDI/AAAAAAAAA1s/MklaZTWNUFM/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-RwSQ1IpbGJY/VO9RgFxgIDI/AAAAAAAAA1s/MklaZTWNUFM/s1600/4.png" height="638" width="640" /></a></div>
<br />
<br />
<br />
將 Serial line 的連接埠修改為 /dev/ttyUSB0 ,並將 Speed 改為 115200 後就完成了這部份的設定,待會連接時就可以正常連入與顯示<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-E0Ch4yMMbNI/VO9RgbV5FyI/AAAAAAAAA2E/c6dvtF2hQVY/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-E0Ch4yMMbNI/VO9RgbV5FyI/AAAAAAAAA2E/c6dvtF2hQVY/s1600/5.png" height="640" width="630" /></a></div>
<br />
<br />
<br />
在正式連線進入 A+ 前,這邊我會建議你調整一下字型與字體大小,這會讓你的操作過程感覺更加舒適。請先點選 Fonts ,並點選第一個欄位旁(寫著 server:fixed) 的 Change 按鈕<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-MIXt8Rhkjmk/VO9Rg3TTDVI/AAAAAAAAA10/Z1t3gIVglS4/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-MIXt8Rhkjmk/VO9Rg3TTDVI/AAAAAAAAA10/Z1t3gIVglS4/s1600/6.png" height="640" width="630" /></a></div>
<br />
<br />
按下 Change 鍵後,會跳出一個小視窗,建議選擇以下字型與字體大小:<br />
<b>Nimbus Mono L ,大小 12 </b>,選擇完成後,請按下確定<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-DMCXNdcGix8/VO9RhWTFmTI/AAAAAAAAA14/6QoBybYlaQ0/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-DMCXNdcGix8/VO9RhWTFmTI/AAAAAAAAA14/6QoBybYlaQ0/s1600/7.png" height="626" width="640" /></a></div>
<br />
<br />
完成了連接埠、傳輸速率、字型與字體大小的修正後,請回到 Session 頁面中,我們準備正式連線進入 A+ 。<br />
<br />
<br />
<br />
<b><span style="color: yellow; font-size: large;">開始連線</span></b><br />
在正式為 A+ 接上電源開機前,請再次檢查你的 USB to Serial 是否已經正確接上、Putty 設定是否完成、microSD 卡是否也已經安裝完成。如果以上都準備好了,那就開始連線吧!<br />
<br />
<br />
一開始的連線過程,可能會遭遇以下情況<br />
<b><br /></b>
<b><span style="color: #f9cb9c;">狀況一:無法開啟通訊埠</span></b><br />
如果你的 Putty 是透過 Ubuntu 左側欄位搜尋、執行的話,此時你所執行 Putty 的身份僅是一般 User,並非 root ,而且近年來 Ubuntu 對於 USB、Serial Port 等通訊埠的「存取權限」限制的更嚴格,以防 USB 埠被惡意感染或攻擊。<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-zQPfZj28vkQ/VO9WecqSRII/AAAAAAAAA2w/5TmghS0F8vs/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-zQPfZj28vkQ/VO9WecqSRII/AAAAAAAAA2w/5TmghS0F8vs/s1600/8.png" height="449" width="640" /></a></div>
<br />
<br />
<b><span style="color: #f9cb9c;">解決方案:直接至 /usr/bin 資料夾中,以 sudo 指令執行 putty </span></b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-lPyv9xDj35o/VO9WensCkXI/AAAAAAAAA2o/ZQMOgzUmFYE/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-lPyv9xDj35o/VO9WensCkXI/AAAAAAAAA2o/ZQMOgzUmFYE/s1600/9.png" height="64" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="color: #f9cb9c;">狀況二:沒有任何畫面</span></b></div>
<div class="separator" style="clear: both; text-align: left;">
若已經透過 sudo 執行 Putty ,雖然沒有蹦出錯誤訊息,但畫面一片黑,這時只需要重新拔掉 A+ 上的電源線,重新插上即可正常顯示畫面。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<i><span style="color: #b4a7d6;">註:若重新上電,Putty 依舊沒有畫面,請檢查 microSD 是否有正確安裝</span></i></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-bHdB_r-x3Js/VO9WdSIEE8I/AAAAAAAAA2Y/iCGcXlfqrZw/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-bHdB_r-x3Js/VO9WdSIEE8I/AAAAAAAAA2Y/iCGcXlfqrZw/s1600/10.png" height="490" width="640" /></a></div>
<br />
<br />
重新插上 microUSB 線,讓 A+ 重新上電開機<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-fvcRUTqo_sw/VO9WdapTmKI/AAAAAAAAA2k/QyUY9j5G2Tk/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-fvcRUTqo_sw/VO9WdapTmKI/AAAAAAAAA2k/QyUY9j5G2Tk/s1600/11.png" height="484" width="640" /></a></div>
<br />
<br />
順利開機後,即可在 Putty 上看見 login 畫面。如果你是第一次使用,Raspberry Pi 的作業系統帳號、密碼預設為:<br />
<br />
帳號:pi<br />
密碼:raspberry<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-kvLHdZbu3iI/VO9WdYMdlFI/AAAAAAAAA2c/MDSVswHSXOE/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-kvLHdZbu3iI/VO9WdYMdlFI/AAAAAAAAA2c/MDSVswHSXOE/s1600/12.png" height="490" width="640" /></a></div>
<br />
<br />
<br />
<b><span style="color: yellow; font-size: large;">修改密碼</span></b><br />
為求安全起見與個人使用習慣,建議登入 A+ 後,盡快修改密碼,避免有心人士隨意登入取得操作權限<br />
<br />
<b><span style="color: #f9cb9c;">請輸入:sudo passwd</span></b><br />
輸入完成後,系統會請你輸入目前舊有密碼,接著再請你輸入兩次新密碼,就完成了密碼修正,記得下次登入系統時,就要使用新的密碼囉!<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-b3UNmK4pfiI/VO9fc3PKYQI/AAAAAAAAA3I/U4te6V03j28/s1600/13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-b3UNmK4pfiI/VO9fc3PKYQI/AAAAAAAAA3I/U4te6V03j28/s1600/13.png" height="128" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<span style="color: yellow; font-size: large;"><b>網路設定</b></span><br />
這篇教學主要是分享如何在沒有多餘的螢幕、鍵盤滑鼠的情況下,依舊可以透過 Serial Port 連線至 Raspberry Pi 中進行設定、調整。尤其像 A+ ,他的 USB Port 只有「一個」,當 Wifi Dongle 接上且還沒設定好上網功能,更無法連接鍵盤滑鼠的情況下,只剩 Serial Port 一途可以進行操作了。讓我們來學習如何不依賴 USB to Serial 線也能操作 A+ 吧!<br />
<br />
<br />
<b><span style="color: yellow;">Wifi Dongle 設定</span></b><br />
若你已依照本篇所有步驟完成了基本操作,請先保留 USB to Serial 線依舊連接於 A+ GPIO 腳位,並請將 EDIMAX 7811Un Wifi Dongle 接至 Raspberry Pi A+ 上的 USB Port ,並請參考以下<a href="http://www.raspberrypi.com.tw/2152/setting-up-wifi-with-the-command-line/">文章</a> 學習設定 Wifi Dongle 。<br />
<br />
<br />
<b><span style="color: yellow;">SSH 連線</span></b><br />
有時候透過 USB to Serial 線操作久了,Putty 上的畫面開始會呈現刷新過慢、停頓等問題,而且 Raspberry Pi 若已經設定好 Wifi 或乙太網路埠的連線功能,那我們就可以考慮透過遠端連線的方式,連入 Raspberry Pi ,不需要再拖著一條尾巴進行操作。<br />
<br />
遠端連線最常聽見的不外乎是 Telnet 和 SSH ,但是 Telnet 的封包是採用明文傳輸,是相當不安全的一種通訊協定,因此我們只要將 Raspberry Pi 上的 SSH Server 給打開,就可以透過 SSH 從遠端連線 Raspberrt Pi 了。<br />
<br />
假若你已經使用 Serial Port 完成了 Wifi Dongle 設定,Raspberry Pi 也可以正常上網後,為了能使用 SSH,請輸入:<b>sudo raspi-config</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-v0GiB5M0X3Q/VO9kA3ccBKI/AAAAAAAAA3U/U_d9u02yRWg/s1600/14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-v0GiB5M0X3Q/VO9kA3ccBKI/AAAAAAAAA3U/U_d9u02yRWg/s1600/14.png" height="52" width="640" /></a></div>
<br />
<br />
進入 raspi-config 後,請選擇第 8 個選項 Advanced Options<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-yRP73TnprE8/VO9kA8URXMI/AAAAAAAAA3o/FPIPC4feTQU/s1600/15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-yRP73TnprE8/VO9kA8URXMI/AAAAAAAAA3o/FPIPC4feTQU/s1600/15.png" height="412" width="640" /></a></div>
<br />
<br />
選擇 A4 SSH ,並選擇 Enable<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-iU6Gq3PKvy8/VO9kA11-JyI/AAAAAAAAA3Y/3sagawoFLxs/s1600/16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-iU6Gq3PKvy8/VO9kA11-JyI/AAAAAAAAA3Y/3sagawoFLxs/s1600/16.png" height="406" width="640" /></a></div>
<br />
當 SSH 正確 Enable 後,會出現 OK 畫面,此時已經完成 SSH Server 的開啟了。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-2jbXsBKsIPc/VO9kBSiqAJI/AAAAAAAAA3g/-9M69ma1VFc/s1600/17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-2jbXsBKsIPc/VO9kBSiqAJI/AAAAAAAAA3g/-9M69ma1VFc/s1600/17.png" height="406" width="640" /></a></div>
<br />
<br />
SSH 設定完成後,如何離開 raspi-config ? 只需要按下 TAB 鍵,讓游標跳至下方,並選擇 Finish 就可以完成設定並離開。<br />
<br />
<br />
這時候可以查詢自己的 IP ,並嘗試使用 SSH 連線登入,如何查詢自己的 IP 呢?請輸入:<b>ifconfig</b> ,你將可以查詢到 wlan0 目前所使用的 IP 為何。<br />
<br />
<b><i><span style="color: #b4a7d6;">註:這裡是使用了 192.168.0.102 的區網 IP,並非由外部可連入的實際 IP,若需取得實際 IP,可自行查詢如何開啟無線 AP 設定頁面中的 forwarder ,以及透過 no-ip 設定一個實際 IP</span></i></b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-t6_QDOp3TTM/VO9mx1PkHoI/AAAAAAAAA38/gAFyC8uJQTU/s1600/18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-t6_QDOp3TTM/VO9mx1PkHoI/AAAAAAAAA38/gAFyC8uJQTU/s1600/18.png" height="286" width="640" /></a></div>
<br />
當 IP 正確,並可登入時,將會要求輸入<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-vAnmhfv2aBs/VO9mx_76KRI/AAAAAAAAA4A/jh0hrO53RIU/s1600/19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-vAnmhfv2aBs/VO9mx_76KRI/AAAAAAAAA4A/jh0hrO53RIU/s1600/19.png" height="164" width="640" /></a></div>
<br />
<br />
如果正確登入,將可看到以下命令列顯示:<b> pi@raspberrypi ~ $</b><br />
操作到這裡,恭喜你,終於可以擺脫 USB to Serial 線,以後都可以透過網路方式連線到 Raspberry Pi ,享受更快速、穩定的遠端操作畫面。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/--RzABmziJx4/VO9mx0DptvI/AAAAAAAAA34/awzsXLUstAU/s1600/20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/--RzABmziJx4/VO9mx0DptvI/AAAAAAAAA34/awzsXLUstAU/s1600/20.png" height="298" width="640" /></a></div>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
以上介紹,是基於希望能把 A+ 發揮最大效用,因此先採用 USB to Serial 線連線設定 Wifi Dongle 與開啟 SSH 功能,最後就可將 Pi 繼續進行更多有趣的實驗!希望今天的介紹對你有幫助!Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-56354416169588659902015-02-15T21:56:00.001+08:002015-02-15T21:57:41.547+08:00Ubuntu 14.04 更換 Linux kernel 3.19由於已經好久沒有嘗試更換 Kernel ,已經有點生疏,因此在此作個筆記提醒自己一下。這次的文章中所使用的 OS 是 Ubuntu 14.04,預計從 3.14 自行更新 kernel 為 3.19。<br />
<br />
<br />
<b><span style="font-size: large;">查詢現有 kernel 與移除舊版 kernel</span></b><br />
<br />
<b>1. 查詢當前使用 kernel 版本:uname -r </b><br />
首先打開終端機,並輸入 uname -r 查詢自己目前所使用的核心版本<br />
<br />
<br />
<b>2. 印出目前 /boot 中有哪些 kernel:dpkg --get-selections | grep linux-image</b><br />
若平時有開啟發行版自動更新,或是手動透過 sudo apt-get dist-upgrade 的朋友,有時或許或遭遇 /boot 已滿,無法完成更新的問題。其原因是 /boot 資料夾因平時 dist-upgrade 指令自動下載升級 kernel 後,並未將舊版本 kernel 移除,因此才會有 /boot 空間不足的提示。<br />
<br />
欲了解自己的 /boot 中存在哪些 kernel ,請輸入:<b>dpkg --get-selections | grep linux-image</b><br />
終端機將會印出目前存在的 kernel 有哪些版本。<br />
<br />
<br />
<b>3. 移除多餘 kernel 節省空間: sudo apt-get purge linux-image XXX</b><br />
在步驟二中所查詢到的舊 kernel 若確實已經不再用到,此時可以透過 purge 指令移除舊版 kernel ,只要再 sudo apt-get purge 後方輸入步驟二中印出的舊版 kernel 即可進行移除。<br />
<br />
<br />
<br />
<br />
<b><span style="font-size: large;">手動更新 Linux Kernel 3.19 </span></b><br />
<br />
<b>1. 準備開始</b><br />
透過上述步驟清理 /boot 空間後,接著要開始替 Ubuntu 14.04 手動更新。 Linux Kernel 開發團隊將 32 位元與 64 位元的 Linux Kernel binary file 上傳於此:<a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.19-vivid/">Linux Kernel 3.19</a><br />
<br />
<b>2. 確認位元版本</b><br />
確認自己的作業系統是 32 位元還是 64 位元。在這個教學範例中,我的筆電是 32 位元,因此需要下載以下檔案:<br />
<br /> - linux-headers-3.19.0-031900_xxx_all.deb<br /><br />- linux-headers-3.19.0-031900-generic_3.19.0-031900.xxx_i386/amd64.deb<br /><br />- linux-image-3.19.0-031900-generic_3.19.0-031900.xxx_i386/amd64.deb<br /><br />
<b><br /></b>
<b><br /></b>
<b>3. 下載並安裝 Linux kernel 3.19 </b><br />
下載時,我們先將檔案存在 /tmp 區,最後再一次全部安裝,請依照下列命令執行:<br />
<pre style="background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 4px; border: none; margin-bottom: 20px; padding: 9.5px; word-break: break-all; word-wrap: break-word;">cd /tmp/
<i style="line-height: 20px; white-space: pre-wrap;"><span style="font-family: inherit;">
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.19-vivid/linux-headers-3.19.0-031900-generic_3.19.0-031900.201502091451_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.19-vivid/linux-headers-3.19.0-031900_3.19.0-031900.201502091451_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.19-vivid/linux-image-3.19.0-031900-generic_3.19.0-031900.201502091451_i386.deb
sudo dpkg -i linux-headers-3.19.0-*.deb linux-image-3.19.0-*.deb</span></i></pre>
<b>4. 重新開機</b><br />
<div>
<span style="line-height: 20px; white-space: pre-wrap;">步驟三中全部依序完成後,即可重新開機,完成更新 Kernel 的步驟。當電腦重新開機完成後,你可以再使用 uname -r 查詢 kernel 是否正式更新成功。 </span></div>
<div>
<span style="line-height: 20px; white-space: pre-wrap;"> </span><b><br /></b><b>5. 清理空間</b><br />
<div>
安裝套件後,有些暫存檔案並未被移除,而平時使用時也有部份檔案已不再被使用,這些檔案留在電腦中,將會影響系統的順暢,因此我們可以使用以下指令協助清理系統:</div>
<div>
<br /></div>
<div>
sudo apt-get autoremove</div>
<div>
<br /></div>
<div>
sudo apt-get clean</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
到這裡,你已經完成了如何幫 Ubuntu 14.04 更換為最新 Linux Kernel 3.19 版,透過新的 Linux Kernel ,機器設備將有更好的支援與穩定度! </div>
</div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-61625295796516724462014-12-24T11:09:00.002+08:002015-01-20T16:09:54.990+08:00Setting Arduino UNO COM Port in Ubuntu 14.04你是否在 Ubuntu 14.04 terminal 輸入 : ./arduino<br />
<div>
執行 Arduino 時,是否有發現以下的畫面:<br />
<div>
<div>
<br /></div>
<div>
1. Arduino IDE 右下角顯示 Arduino 已連結於 COM X (X 為系統給定的 Port 值,在此為 1)</div>
<div>
2. Tools -> Serial Port 無法選擇</div>
<div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-QEXa86fcxSw/VJoqg1FUlzI/AAAAAAAAA0g/GGx-KEKVoD0/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-QEXa86fcxSw/VJoqg1FUlzI/AAAAAAAAA0g/GGx-KEKVoD0/s1600/1.png" height="640" width="560" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
如果你有以上狀況別擔心,並不是 Arduino IDE 有問題,或是 USB 無法讀取,而是 Ubuntu 使用者權限的限制問題。只要在輸入執行 Arduino IDE 指令前加上 sudo ,就可以打開 Serial Port 存取功能。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both;">
現在改為輸入:sudo ./arduino</div>
<div class="separator" style="clear: both; text-align: left;">
Serial Port 項目就可以正常顯示並設定</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-xjI_MS5rmKM/VJoteT-zD9I/AAAAAAAAA0s/z8YTzWbI6yA/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-xjI_MS5rmKM/VJoteT-zD9I/AAAAAAAAA0s/z8YTzWbI6yA/s1600/2.png" height="640" width="544" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
針對 USB 的存取與控制,Ubuntu 限制的比 Windows 來的嚴格,但這也是對安全的基本考量,因此下次如果遇到 Arduino 無法選擇下載埠,記得先關閉原始 IDE,並使用 sudo 開啟就可以了!</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div>
<br /></div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com1tag:blogger.com,1999:blog-7442522839201272491.post-38749397624957850912014-12-11T02:27:00.000+08:002015-01-03T16:13:44.818+08:00Ubuntu 14.04 install Android Studio 1.0 with ERROR: 32-bit Linux Android emulator binaries are DEPRECATED當你嘗試在 Ubuntu 底下執行 Android Studio 上剛寫好的 APP 時,你可能會在 Android Studio 下方的訊息視窗發現以下內容:<br />
<br />
<span style="background-color: #cccccc;"><span style="color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;">ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them</span><br style="color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;" /><span style="color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;">you will have to do at least one of the following:</span></span><br />
<div>
<br style="color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;" />
<span style="background-color: #fff2cc;"><span style="color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;">- Use the '-force-32bit' option when invoking 'emulator'.</span><br style="color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;" /><span style="color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;">- Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment.</span></span></div>
<div>
<span style="background-color: #cccccc;"><br style="color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;" /><span style="color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;">Either one will allow you to use the 32-bit binaries, but please be aware that these will disappear in a future Android SDK release.</span></span><span style="background-color: #cccccc; color: #333333; font-family: UbuntuRegular, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13.63636302948px; line-height: 16.5454540252686px;">Consider moving to a 64-bit Linux system before that happens.</span><br />
<br />
<br />
這段內容指出你的 Android Studio 虛擬器 (emulator) 沒有正確執行,因為相關的 32 bit 指令沒有正確連結,因此無法啟動。在錯誤訊息處已經有提示你要如何排除這樣的狀況(黃色訊息處)。<br />
<br />
<br />
由於第一行方法我尚未在 Android Studio 環境下執行過,因此在這僅提供第二行方法的操作步驟,詳見如下:<br />
<br />
1. 請開啟 terminal 並輸入: <i><b>gedit ./profile</b></i><br />
<span style="font-family: Arial, Helvetica, sans-serif;"> (</span>如果慣用 Vim 編輯者,也可以改以 Vim 開啟編輯)<br />
<br />
2. 開啟 profile 後,請捲至最下方後,貼上:<b><i>ANDROID_EMULATOR_FORCE_32BIT =true</i></b><br />
在儲存後關閉,並重新登入一次系統即可。<br />
<br />
3. 重新開啟 Android Studio ,並執行剛剛無法正常運作的 APP 與 emulator ,此時即可正常運<br />
作了!現在就可以快快樂樂寫 APP 囉!<br />
<br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-2063905157507944852014-12-09T17:21:00.000+08:002014-12-11T02:50:06.505+08:00Ubuntu 14.04 安裝 JDK 72014年 12/9 這天 Android Studio 1.0 終於釋出,此一版本改善了之前 Beta 版的 Android Studio 許多細節,而且 Eclipse 上的 ADT 也將停止開發。言下之意,Google 希望 Android 開發者都能轉換到 Android Studio 底下,如同 iOS 的 Xcode 開發平台一樣,可將開發工具的破碎化降至最低。<br />
<br />
當下載好 Android Studio 後,如果解壓縮後在 /bin 資料夾無法執行 ./studio.sh,多半是因為 Ubuntu 尚未安裝 JDK 套件,依照 Android 官方頁面建議,需安裝 JDK 7 ,因此請打開終端機,輸入以下指令進行 JDK 安裝:<br />
<br />
<b>sudo add-apt-repository ppa:webupd8team/java </b><div>
<b>sudo apt-get update </b></div>
<div>
<b>sudo apt-get install oracle-java7-installer</b><pre class="lang-java prettyprint prettyprinted" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 13.6000003814697px; line-height: 17.8048000335693px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 13.6000003814697px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-size: 13.6000003814697px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span></code></pre>
當 JDK 安裝完畢後,請輸入:<br />
<b>javac -version</b><div>
<br /></div>
若 JDK 有正確安裝,終端機將顯示:<br />
<b>javac 1.8.0_25</b><div>
<br /></div>
<div>
<br /></div>
JDK 安裝完成後,就可在終端機下切換至解壓縮後的 Android Studio 下的 /bin 資料夾執行 ./studio.sh 便可開始進行安裝 Android Studio ,接著就可以開始快樂使用 Android Studio 寫 APP 囉!<br />
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-20086782872688683272014-08-10T03:07:00.006+08:002014-08-10T03:08:04.251+08:00(筆記)強化 RF 模組傳輸距離今晚在 FB 上看到有網友詢問如何使用 RF 模組 + Arduino 傳輸資料。就實際使用經驗上,我僅使用 serial port 就可以滿足我的應用需求。<br />
<br />
但有朋友指出:若需要將 RF 訊號打得更遠,則需要採用 NRZ 或 曼徹斯特編碼方式,才可以將訊號傳輸至較遠的地方。<br />
<br />
<br />
<br />
<b>NRZ : </b><br />
<br />
NRZ (Nonreturn to Zero),其表現 1 與 0 的方式是以,正電壓為 1 ,副電壓為0 。NRZ 編碼解碼的方式比較容易,但缺乏同步機制,因此缺少了訊號校正的能力。<br />
<br />
<br />
<br />
<b>Manchester:曼徹斯特編碼</b><br />
<br />
曼徹斯特編碼的 1 與 0 表示方式分別為: 1 為正電壓(前)+負電壓(後),0 為負電壓(前)+正電壓(後)。<br />
<br />
<br />
詳細的說明與繪圖方式,請參閱 GOTOP 的網路試讀章節:<br />
<a href="http://www.gotop.com.tw/waweb2004/htm/Correct/AEN001600/AEN001600.pdf">訊號編碼格式介紹</a>(若此連結有版權疑慮,請即刻聯絡我,我會立即修正下架,謝謝!)Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-90201139620039699312014-07-18T16:39:00.000+08:002014-07-18T16:46:26.475+08:00更改 Macbook Pro Retina 中 VMware Fusion 6 的解析度 ( For Windows 7 )如果你買了一台 Macbook Pro Retina ,因為作業需要,不得不安裝 Windows,你有兩種選擇進行 Windows 安裝:<br />
<div>
<br /></div>
<div>
<b>1. Bootcamp </b></div>
<div>
使用 Bootcamp 安裝 Windows 的時間相當長,且若需使用 Windows 時,需在開機前按住 </div>
<div>
Option + 電源鍵才可以選擇要進入哪一個作業系統。</div>
<div>
<br /></div>
<div>
<b>2. VMware Fusion 6</b></div>
<div>
使用 VMware Fusion 可以在 OS X 下安裝 Windows ,而且可無縫操作,就像在執行單一執行</div>
<div>
軟體一樣,非常方便。</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
目前我採用方案二安裝了 Windows 7 在我的 Macbook Pro Retina 上,但遇上了一個相當困擾的問題:<b>解析度太高</b></div>
<div>
<b><br /></b></div>
<div>
由於 Retina 解析度太高,因此進入 VMware Fusion 中的 Windows 時,字體相當小,連各種介面的工具列也看起來相當吃力。但無論怎麼在 Windows 下調整解析度大小,只要重新開機就一切恢復原狀。</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
那該怎麼解決這個問題? 請跟著以下步驟操作,就可以一勞永逸:</div>
<div>
<br /></div>
<div>
<b>1. 開啟 VMware Fusion ,並執行 Windows </b></div>
<div>
<b><br /></b></div>
<div>
<b>2. 登入 Windows 後,請回到 OS X 桌面上使用 Finder 進入應用程式</b></div>
<div>
<b><br /></b></div>
<div>
<b>3. 於應用程式中找尋 VMware Fusion,並在該項目上以兩指點選右鍵,打開選單項目。</b></div>
<div>
<b> 接著在</b><b>選單項目中尋找「簡介」,將 " 以低解析度開啟 " 打勾</b></div>
<div>
<b><br /></b></div>
<div>
<b>4. 接著回到 OS X 的桌面,並於右上角尋找 VMware Fusion 的 icon,同樣於 icon 以兩指點</b></div>
<div>
<b> 選</b><b>右鍵開啟設定介面</b></div>
<div>
<b><br /></b></div>
<div>
<b>5. 於 VMware Fusion 設定介面左下方點選 Virtual Machine,並點選 Settings 。點選 Setting </b></div>
<div>
<b> 後將會</b><b>開啟設定介面,請點選右上角 Display,接著取消勾選 " Use full resolution for </b></div>
<div>
<b> Retina display " </b></div>
<div>
<b><br /></b></div>
<div>
<b>6. 再回到 Windows 中,可發現系統提醒需先登出 Windows ,以利套用設定更新。待重新</b></div>
<div>
<b> 登入</b><b>後, Windows 解析度就調整至舒適的大小了。</b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
以上就是在 OS X 中調整 VMware Fusion 的設定步驟,好好享受在 Macbook Pro Retina 上使用 Windows 辦公的樂趣吧!</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com4tag:blogger.com,1999:blog-7442522839201272491.post-51890784824303690082014-07-15T20:55:00.001+08:002014-07-15T21:13:14.636+08:00Windows 7 Enterprise 架設 FTP由於公司有檔案傳輸的需求, 因此我試著在 Windows 7 企業版安裝 FTP Server , 但嘗試了許多套 FTP Server 與設定後 , 終於到適合的 FTP Server 與設定方式 , 僅此寫個紀錄分享<br />
<br />
安裝環境 :<br />
<br />
- Windows 7 Enterprise<br />
- 非固定制 ADSL ( 有在中華電信網頁另申請固定 IP )<br />
- Netis AP<br />
- Xlight FTP Server<br />
<br />
<br />
<br />
1. <b>非固定制 ADSL 申請固定 IP</b><br />
使用固定 IP 架設網站或 FTP 前 , 非固定制 ADSL 用戶需到以下網址申請一個固定 IP<br />
<a href="http://service.hinet.net/2004/adslstaticip.php">固定 IP 申請頁面</a> , 申請完後即可得到一個固定 IP, 請記得留存<br />
<br />
2. <b>更改 PPPoE 帳號</b><br />
<br />
- 直接連接 Modem :<br />
<br />
若您的網路線是直接連接 Modem 的朋友, 請至 PPPoE 撥號介面更改您的帳號即可 ,<br />
在您的撥號帳號的 @ 後方加上 ip 兩個字, 改為 : xxxxxxxx @ ip.hinet.net<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-phokOXPu_Vo/U8Uo1Mf7h8I/AAAAAAAAAz4/QVPyGKhtApw/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-phokOXPu_Vo/U8Uo1Mf7h8I/AAAAAAAAAz4/QVPyGKhtApw/s1600/7.png" height="392" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
- 連結至 AP</div>
<br />
若您的網路線是接至 AP, 請先進入您的 AP 管理介面, 需要調整部分設定,<br />
在此我已 Netis 的 WF 2409 為例<br />
<br />
請先點選桌面左下角的開始, 並於搜尋欄位輸入 cmd , 開啟命令列, 並輸入<br />
<b>ipconfig </b>, 輸入 ipconfig 後 , 輸出畫面如下, 請紀錄您 IPv4 位址<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ljDSwWfol-4/U8UMLHHuT7I/AAAAAAAAAxE/bSzYR6peA3g/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-ljDSwWfol-4/U8UMLHHuT7I/AAAAAAAAAxE/bSzYR6peA3g/s1600/3.png" height="377" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
接著進入 AP 管理介面 , 並尋找通訊埠轉發中的虛擬伺服器 , 進行更改設定</div>
<div class="separator" style="clear: both; text-align: left;">
在此例中 , 我們設定 LAN IP 為 cmd 介面中所查詢到的 IPv4 位址, 並開啟 port 20 </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-BypjXPgGXHg/U8UNRWgqA7I/AAAAAAAAAxQ/oeRkQ4bmu04/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-BypjXPgGXHg/U8UNRWgqA7I/AAAAAAAAAxQ/oeRkQ4bmu04/s1600/1.png" height="456" width="640" /></a></div>
<br />
<br />
<br />
WF 2409 設定中 , 還有一項 FTP通訊埠轉發 , 也記得設定 port 20<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-mWMiV9flDCE/U8UNTLZ_wZI/AAAAAAAAAxY/X44jWnUFngQ/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-mWMiV9flDCE/U8UNTLZ_wZI/AAAAAAAAAxY/X44jWnUFngQ/s1600/2.png" height="372" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
通訊埠設定完成後 , 我們需要設定最重要的 PPPoE 為固定 IP 格式</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-FxAhB4wP-hc/U8UOW_Q8e7I/AAAAAAAAAxk/VotCrveokfQ/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-FxAhB4wP-hc/U8UOW_Q8e7I/AAAAAAAAAxk/VotCrveokfQ/s1600/4.png" height="448" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>3. 設定網卡為 DHCP</b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
以上 AP 與 PPPoE 設定完成後 , 我們亦須將網卡設定為 DHCP 讓網卡可以自行抓取 AP 配置的虛擬 IP</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-qODbNaatObg/U8UPnrCJrmI/AAAAAAAAAxw/CAoaygf0-zg/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-qODbNaatObg/U8UPnrCJrmI/AAAAAAAAAxw/CAoaygf0-zg/s1600/5.png" height="640" width="544" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-063y690b3qA/U8UPpSeglNI/AAAAAAAAAx4/Cf0pfdHvRNc/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-063y690b3qA/U8UPpSeglNI/AAAAAAAAAx4/Cf0pfdHvRNc/s1600/6.png" height="640" width="606" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>4. 安裝 Xlight FTP Server </b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
我曾安裝了數種知名 FTP Server (Filezilla FTP Server, Core FTP, zFTP, GoldenFTP) , 但無論怎麼設定 , 甚至關閉防火牆依舊無法正常啟用 . 還好後來找到這個輕量級的 FTP Server 相當好用. 此為下載網址 : http://www.xlightftpd.com/hk/</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
安裝完成後開啟介面如下, 請點選左上角新增 FTP 站台 , 並於 IP Address 欄位輸入稍早填入 AP 設定中的虛擬 IP , 並將 port 設定為 AP 中指定的 FTP port</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Jz7CRGLxQKE/U8UQ6QMRE1I/AAAAAAAAAyE/hId9InU-OSc/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-Jz7CRGLxQKE/U8UQ6QMRE1I/AAAAAAAAAyE/hId9InU-OSc/s1600/8.png" height="512" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>5. 開啟 Windows 7 防火牆</b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
請至控制台, 並打開系統及安全性</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-TtCzBM6xxHc/U8Uh4WcP-PI/AAAAAAAAAyQ/9MMZUAzSvfo/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-TtCzBM6xxHc/U8Uh4WcP-PI/AAAAAAAAAyQ/9MMZUAzSvfo/s1600/1.png" height="520" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
點選防火牆選項 , 並進入進階設定<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-vL8Mw8gxmNQ/U8UiNIM87iI/AAAAAAAAAyc/RYSZHVHe2Fw/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-vL8Mw8gxmNQ/U8UiNIM87iI/AAAAAAAAAyc/RYSZHVHe2Fw/s1600/2.png" height="514" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-KHwkclYPcXg/U8UiNFZjd4I/AAAAAAAAAyY/j6PYf7oqFs8/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-KHwkclYPcXg/U8UiNFZjd4I/AAAAAAAAAyY/j6PYf7oqFs8/s1600/3.png" height="512" width="640" /></a></div>
<br />
<br />
<br />
點選輸入規則, 以及幫 FTP Server 新增規則<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-V3Y_stu1DzE/U8UigEx942I/AAAAAAAAAyo/blRqfMEPoys/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-V3Y_stu1DzE/U8UigEx942I/AAAAAAAAAyo/blRqfMEPoys/s1600/4.png" height="460" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-uIQW5qnvshU/U8UigM52ycI/AAAAAAAAAys/uQIJ18ScATM/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-uIQW5qnvshU/U8UigM52ycI/AAAAAAAAAys/uQIJ18ScATM/s1600/5.png" height="418" width="640" /></a></div>
<br />
<br />
<br />
點選 " 程式 ", 並選擇程式路徑<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-4yI2XT_Ahmo/U8UjBdjgz4I/AAAAAAAAAy4/fsPCHzZK0Lc/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-4yI2XT_Ahmo/U8UjBdjgz4I/AAAAAAAAAy4/fsPCHzZK0Lc/s1600/6.png" height="476" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-zha_7tkSdyw/U8UjBdruhzI/AAAAAAAAAy8/b06itnYnWtc/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-zha_7tkSdyw/U8UjBdruhzI/AAAAAAAAAy8/b06itnYnWtc/s1600/7.png" height="640" width="568" /></a></div>
<br />
<br />
<br />
<br />
接著只要允許連線 , 以及套用此設定的授權範圍 , 接著就完成了新增規則<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-myBvDPCMgJQ/U8UjZkOE4zI/AAAAAAAAAzM/kMqnVvoFlCY/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-myBvDPCMgJQ/U8UjZkOE4zI/AAAAAAAAAzM/kMqnVvoFlCY/s1600/8.png" height="476" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-FMWkI717yHo/U8UjZq5TG7I/AAAAAAAAAzQ/gNToX8Pgu1w/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-FMWkI717yHo/U8UjZq5TG7I/AAAAAAAAAzQ/gNToX8Pgu1w/s1600/9.png" height="476" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-BfCnu7x9NsI/U8UjZssShZI/AAAAAAAAAzI/QLUPPMlmRrY/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-BfCnu7x9NsI/U8UjZssShZI/AAAAAAAAAzI/QLUPPMlmRrY/s1600/10.png" height="478" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-R-gDvYpI2Pc/U8UjlltwsqI/AAAAAAAAAzg/I36lmvvQogc/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-R-gDvYpI2Pc/U8UjlltwsqI/AAAAAAAAAzg/I36lmvvQogc/s1600/11.png" height="226" width="640" /></a></div>
<br />
<br />
<br />
<b>6. 透過 Client 端驗證登入狀態</b><br />
<br />
請下載一個你較為常用的 FTP Client 軟體 , 並於 IP 端輸入 固定 IP , 以及你所新增的使用者帳號密碼 , 並將 port 設定正確 , 就可以開始使用 FTP 服務囉!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ZhSifyUMLZk/U8UmAgJoT7I/AAAAAAAAAzs/lY2clAKY26E/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-ZhSifyUMLZk/U8UmAgJoT7I/AAAAAAAAAzs/lY2clAKY26E/s1600/1.png" height="250" width="640" /></a></div>
<br />Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-88121143224849121692014-05-13T15:36:00.000+08:002014-05-13T15:59:21.492+08:00 Arduino 上使用 DHT11 溫濕度 Sensor + Bluetooth 今天我們要介紹的是如何在 Arduino 上使用 HC-05 這個藍牙模組將 DHT11 溫濕度 sensor 資訊,以無線傳輸的方式回傳至電腦端。<br />
<div>
<br /></div>
<div>
今天用到的材料清單如下:</div>
<div>
<ul>
<li><b>內建藍牙筆電(或有藍牙接收器的 PC ) x 1</b></li>
<li><b>Arduino UNO x 1</b></li>
<li><b>DHT11 溫濕度 Sensor x 1</b></li>
<li><b>HC-05 藍牙模組 x 1</b></li>
<li><b>杜邦線 (公母頭) x 7</b></li>
<li><b>外接電源(行動電源或手機充電器) x 1</b></li>
<li><b>USB 線 x 1</b></li>
</ul>
<div>
<br /></div>
</div>
<div>
若你手上的 HC-05 藍牙模組需要更改 Baud rate ,請依照 <a href="http://diveduino.blogspot.tw/2014/05/arduino-hc-05-bluetooth-module-setting.html">HC-05 藍牙模組設定</a> 這篇文章先進行 Baud rate 設定。</div>
<div>
<br /></div>
<div>
<span style="font-size: large;"><b>Step 1 :</b></span></div>
<div>
<br /></div>
<div>
首先我們先將以下程式燒錄到 Arduino</div>
<div>
<br /></div>
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>/*
Board int.0 int.1 int.2 int.3 int.4 int.5
Uno, Ethernet 2 3
Mega2560 2 3 21 20 19 18
Leonardo 3 2 0 1
Due (any pin, more info http://arduino.cc/en/Reference/AttachInterrupt)
*/
#include <idDHT11.h>
int idDHT11pin = 2; //Digital pin for comunications
int idDHT11intNumber = 0; //interrupt number (must be the one that use
//the previus defined pin (see table above)
//declaration
void dht11_wrapper(); // must be declared before the lib initialization
// Lib instantiate
idDHT11 DHT11(idDHT11pin,idDHT11intNumber,dht11_wrapper);
void setup()
{
Serial.begin(9600);
Serial.println("idDHT11 Example program");
Serial.print("LIB version: ");
Serial.println(IDDHT11LIB_VERSION);
Serial.println("---------------");
}
// This wrapper is in charge of calling
// mus be defined like this for the lib work
void dht11_wrapper() {
DHT11.isrCallback();
}
void loop()
{
Serial.print("\nRetrieving information from sensor: ");
Serial.print("Read sensor: ");
//delay(100);
DHT11.acquire();
while (DHT11.acquiring());
int result = DHT11.getStatus();
switch (result)
{
case IDDHTLIB_OK:
Serial.println("OK");
break;
case IDDHTLIB_ERROR_CHECKSUM:
Serial.println("Error\n\r\tChecksum error");
break;
case IDDHTLIB_ERROR_ISR_TIMEOUT:
Serial.println("Error\n\r\tISR Time out error");
break;
case IDDHTLIB_ERROR_RESPONSE_TIMEOUT:
Serial.println("Error\n\r\tResponse time out error");
break;
case IDDHTLIB_ERROR_DATA_TIMEOUT:
Serial.println("Error\n\r\tData time out error");
break;
case IDDHTLIB_ERROR_ACQUIRING:
Serial.println("Error\n\r\tAcquiring");
break;
case IDDHTLIB_ERROR_DELTA:
Serial.println("Error\n\r\tDelta time to small");
break;
case IDDHTLIB_ERROR_NOTSTARTED:
Serial.println("Error\n\r\tNot started");
break;
default:
Serial.println("Unknown error");
break;
}
Serial.print("Humidity (%): ");
Serial.println(DHT11.getHumidity(), 2);
Serial.print("Temperature (oC): ");
Serial.println(DHT11.getCelsius(), 2);
Serial.print("Temperature (oF): ");
Serial.println(DHT11.getFahrenheit(), 2);
Serial.print("Temperature (K): ");
Serial.println(DHT11.getKelvin(), 2);
Serial.print("Dew Point (oC): ");
Serial.println(DHT11.getDewPoint());
Serial.print("Dew Point Slow (oC): ");
Serial.println(DHT11.getDewPointSlow());
delay(2000);
}
</code></pre>
<div>
<br />
<span style="font-size: large;"><b>Step 2 : 接上藍牙與溫濕度 Sensor</b></span><br />
<span style="font-size: large;"><b><br /></b></span>
在 Step 1 中將程式碼燒錄完成後,我們可以開始將感測器與藍牙接上 Arduino。以下的接線過程中,記得要讓 Arduino 保持斷電狀態。<br />
<br />
<br />
Bluetooth 腳位對照表,請將各腳位對應至 Arduino 上接好<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-4sz93WSoU-I/U3HEzUgXPZI/AAAAAAAAAu0/6rAypy4vWvA/s1600/%E5%9C%96%E7%89%871.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-4sz93WSoU-I/U3HEzUgXPZI/AAAAAAAAAu0/6rAypy4vWvA/s1600/%E5%9C%96%E7%89%871.jpg" height="203" width="640" /></a></div>
<br />
<br />
DHT 11 溫濕度 Sensor 腳位對照表,請將各腳位對應至 Arduino 上接好<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-vnPdNH7mebk/U3HFPj5lBWI/AAAAAAAAAu8/lHvO_i0Ln0M/s1600/%E5%9C%96%E7%89%872.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-vnPdNH7mebk/U3HFPj5lBWI/AAAAAAAAAu8/lHvO_i0Ln0M/s1600/%E5%9C%96%E7%89%872.jpg" height="164" width="640" /></a></div>
<br />
<br />
<span style="font-size: large;"><b>Step 3 : 下載通訊軟體</b></span><br />
<span style="font-size: large;"><b><br /></b></span>
因為 Arduino 在後續的使用上將會脫離與 PC 端連接,因此若要收取經由藍牙回傳至電腦端的封包資料,我們必須在接收端的電腦上安裝一套可以收取 COM port 封包的軟體,在此我們推薦使用 <a href="http://en.sourceforge.jp/projects/ttssh2/releases/">Tera Term</a> 。 Tera Term 是一套 Open source 的軟體,介面簡潔好用,是我相當推薦的原因。<br />
<br />
若你的電腦是 Windows 作業系統,請在 Tera Term 的 Download page 中挑選 exe 檔進行安裝。<br />
<br />
<br />
<br />
<b><span style="font-size: large;">Step 4 : 搜尋藍牙裝置與建立通訊埠</span></b><br />
<b><span style="font-size: large;"><br /></span></b>
Arduino 上的藍牙模組要能傳送資料給 PC 前,我們需將 Arduino 電源接上,使 Arduino 處於供電狀態,並在電腦上針對該藍牙模組開啟一個適當的通訊埠(COM port )。在此我僅示範 Windows 7 的藍牙通訊埠建立流程,詳見如下:<br />
<br />
<br />
開啟藍牙管理中心後,點選<b>新增裝置</b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-VKTlTlEEM2k/U3HHbRf4tuI/AAAAAAAAAvI/y6ulukaFKXs/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-VKTlTlEEM2k/U3HHbRf4tuI/AAAAAAAAAvI/y6ulukaFKXs/s1600/1.png" height="640" width="604" /></a></div>
<br />
搜尋到藍牙模組後,請點選該模組,並按下一步<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-QcALyFfU8SQ/U3HHdVwxR4I/AAAAAAAAAvQ/BI9eZ_y_5Hk/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-QcALyFfU8SQ/U3HHdVwxR4I/AAAAAAAAAvQ/BI9eZ_y_5Hk/s1600/2.png" height="508" width="640" /></a></div>
<br />
<br />
選擇『輸入裝置的配對碼』,HC-05 藍牙模組的預設密碼為 1234<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-B0MXBKi3Ixc/U3HHdpq2ELI/AAAAAAAAAvU/xwQ9ypvCKF0/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-B0MXBKi3Ixc/U3HHdpq2ELI/AAAAAAAAAvU/xwQ9ypvCKF0/s1600/3.png" height="512" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-c9_xjxctO2E/U3HHe27kZuI/AAAAAAAAAvg/OmMN7UU2Kcs/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-c9_xjxctO2E/U3HHe27kZuI/AAAAAAAAAvg/OmMN7UU2Kcs/s1600/4.png" height="506" width="640" /></a></div>
<br />
<br />
密碼驗證成功後,開始安裝驅動程式與建立 COM port<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-iSABSVqv2GY/U3HHhH7NbsI/AAAAAAAAAvo/YCcynhgQ_8Y/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-iSABSVqv2GY/U3HHhH7NbsI/AAAAAAAAAvo/YCcynhgQ_8Y/s1600/5.png" height="518" width="640" /></a></div>
<br />
<b><span style="font-size: large;"><br /></span></b>
<br />
<b><span style="font-size: large;">Step 5 : 開啟 Tera Term 接收資料</span></b><br />
<b><span style="font-size: large;"><br /></span></b>
以上四個步驟都建立好後,開啟 Tera Term,畫面如下,請點選 Cancel<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-mmjGXHHDfBQ/U3HI0cURfMI/AAAAAAAAAv8/v2Sk5iYcLlI/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-mmjGXHHDfBQ/U3HI0cURfMI/AAAAAAAAAv8/v2Sk5iYcLlI/s1600/6.png" height="462" width="640" /></a></div>
<br />
<br />
進入主畫面後,請於上方功能選單點選 Setup -> Serial port<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Q10gKqTQpyY/U3HI05FD8_I/AAAAAAAAAwA/0AyWSe_iGgE/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Q10gKqTQpyY/U3HI05FD8_I/AAAAAAAAAwA/0AyWSe_iGgE/s1600/7.png" height="626" width="640" /></a></div>
<br />
<br />
開啟 Serial port 選單後,可在上方 Port 選單下拉,檢查是否有新增稍早建立的藍牙通訊埠,在下圖中我們可以看到新增的 COM 6 、COM 11,兩者擇一即可。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-sPBe5GghBeo/U3HI1RbqFoI/AAAAAAAAAwI/9G-sicW3rD4/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-sPBe5GghBeo/U3HI1RbqFoI/AAAAAAAAAwI/9G-sicW3rD4/s1600/8.png" height="514" width="640" /></a></div>
<br />
<br />
選擇 COM port 完成後,請檢查 Baud rate 是否正確。如果你在藍牙模組上所設定的 Baud rate 並非 9600,請依照藍牙上的 Baud rate 進行選擇。例如,你在藍牙上的 Baud rate 為 115200,那麼在 Tera Term 這個視窗中,你就需要選擇 115200 。確認後,按下 OK 即可開始通訊。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-_KmjfUhy5Ng/U3HI2pyd1yI/AAAAAAAAAwU/_vDm_KZOvDc/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-_KmjfUhy5Ng/U3HI2pyd1yI/AAAAAAAAAwU/_vDm_KZOvDc/s1600/9.png" height="524" width="640" /></a></div>
<br />
<br />
若藍牙與溫濕度 Sensor 有正常工作,電腦自藍牙接收到的溫濕度資料就像下圖一樣,分別呈現出不同的溫濕度。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-3zmzTQQQU2M/U3HIyIK-AwI/AAAAAAAAAv0/XAM7cBuRC38/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-3zmzTQQQU2M/U3HIyIK-AwI/AAAAAAAAAv0/XAM7cBuRC38/s1600/10.png" height="510" width="640" /></a></div>
<br />
<br />
<br />
<br />
以上就是透過 HC-05 藍牙模組將 Arduino 上的溫濕度 Sensor 資訊傳至電腦端的實驗步驟。透過這些步驟,你可以整合更多有意思的感測器,並透過藍牙或 Wifi 的方式傳回電腦上,讓你的 Arduino 設備不再因為線材而綁手榜腳。</div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com10tag:blogger.com,1999:blog-7442522839201272491.post-70871364522234257702014-05-12T15:29:00.001+08:002014-05-13T15:37:13.008+08:00Arduino + HC-05 Bluetooth module setting ( AT Mode and Baud rate setting )Arduino 有許多容易使用的模組與 Lib ,可以讓人快速的驗證流程與效果,但為了能讀取 Arduino 上的溫濕度、光敏電阻、電壓等數位、類比訊號,我們難道就只能用 USB Cable 讀取嗎?不不,我們還有 Wifi module 和 Bluetooth module 可以幫助 Arduino 添加無線傳輸功能,讓我們拋開 USB Cable ,把 Arduino 發揮更多可能。<br />
<br />
市面上販售的藍牙模組、Wifi 模組有許多型號,各種型號版本各有些許差異,但在這篇筆記中,我們僅探討:<b>HC-05</b> 這個藍牙模組。<br />
<br />
為什麼僅探討 HC-05 模組?<br />
<br />
<b>1. 筆者手邊僅有這個型號的藍牙模組</b><br />
<b><br /></b>
<b>2 我買來好久一段時間,一直沒能搞定 AT Mode 和傳輸問題</b><br />
<b><br /></b>
<b>3. 網路上將近八成的藍牙模組筆記,多是探討 HC-06,其底下留言中有許多跟著步驟操</b><br />
<b> 作仍</b><b>無法成功的朋友(我亦是其一),且拍賣網頁上的模組介紹,有許多將 HC-06 與 </b><br />
<b> HC-05 搞混</b><br />
<b><br /></b>
<b>4. 幾乎找不到對 HC-05 的 AT Mode 設定文章與介紹</b><br />
<br />
基於以上四點理由,我覺得我該寫一篇文章分享給同樣遇到藍牙模組設定有問題的朋友們。<br />
<br />
<br />
<br />
<br />
首先讓我們先來看一下 HC-05 的外觀:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-WA3hhW_caIo/U3BqULXpnjI/AAAAAAAAAtc/THlHGBOKBlo/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-WA3hhW_caIo/U3BqULXpnjI/AAAAAAAAAtc/THlHGBOKBlo/s1600/1.JPG" height="306" width="640" /></a></div>
<div style="text-align: center;">
<b>正面</b></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-tyGyC5CJl0E/U3BqUI6615I/AAAAAAAAAtg/jKl9zvmH0qQ/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-tyGyC5CJl0E/U3BqUI6615I/AAAAAAAAAtg/jKl9zvmH0qQ/s1600/2.JPG" height="266" width="640" /></a></div>
<div style="text-align: center;">
<b>背面</b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
由背面我們可以看到版本編號為 V1.05 ,但若依照 V1.05 進行搜尋筆記或拍賣時,有可能會得到誤導的資料與型號。筆者依照 V1.05 於露天拍賣、淘寶、Yahoo 拍賣上搜尋,V1.05 的版本名稱為 HC-06 ,但經由實驗過程中發現,這根本是 HC-05!難怪許多網頁上的操作步驟,怎麼測試就是無法進入 AT Mode 更改 Baud rate,原來一開始就搞錯了版本。</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
HC-05 與 HC-06 的 AT Mode 在操作中, HC-06 較簡單, HC-05 則需要透過 key pin 的設定才可以進入 AT Mode。</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
進入設定步驟說明前,介紹一下我的設備與 Arduino 版本,並依照下列步驟,逐一將 HC-05 與 Arudino 連接、設定:</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
</div>
<ul>
<li><b>Arduino UNO x 1</b></li>
<li><b>HC-05 藍牙模組 x 1</b></li>
<li><b>杜邦線(公母頭)x 4</b></li>
<li><b>Arduino IDE 1.0.5 - r2</b></li>
</ul>
<br />
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: large;"><b>Step 1 : 以杜邦線將 HC-05 與 Arduion 連接</b></span></div>
<div style="text-align: left;">
<span style="font-size: large;"><b><br /></b></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-y_cM1FB48xs/U3Bt6GjL2oI/AAAAAAAAAtw/C1mPYNLVxZ4/s1600/FM8W4A2HKZAVRT9.LARGE.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-y_cM1FB48xs/U3Bt6GjL2oI/AAAAAAAAAtw/C1mPYNLVxZ4/s1600/FM8W4A2HKZAVRT9.LARGE.jpg" height="368" width="640" /></a></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; font-size: 17px; line-height: 22.100000381469727px;"><b>接線腳位對照表</b></span></span></div>
<ul style="background-color: white; color: #333333; font-size: 17px; line-height: 22.100000381469727px; list-style-image: none; list-style-position: outside; margin: 0px 0px 9px 25px; padding: 0px;">
<li style="line-height: normal; text-align: left;"><span style="font-family: Courier New, Courier, monospace;">HC-05 GND <---> Arduino GND Pin</span></li>
<li style="line-height: normal; text-align: left;"><span style="font-family: Courier New, Courier, monospace;">HC-05 Vcc (5V) <---> Arduino 5V</span></li>
<li style="line-height: normal; text-align: left;"><span style="font-family: Courier New, Courier, monospace;">HC-05 TX <---> Arduino Pin 10 (soft RX)</span></li>
<li style="line-height: normal; text-align: left;"><span style="font-family: Courier New, Courier, monospace;">HC-05 RX <---> Arduino Pin11 (soft TX)</span></li>
<li style="line-height: normal; text-align: left;"><span style="font-family: Courier New, Courier, monospace;">HC-05 Key <---> Arduino Pin 9</span></li>
</ul>
<div style="text-align: left;">
<span style="font-size: large;"><b><br /></b></span></div>
<div style="text-align: left;">
<span style="font-size: large;"><b><br /></b></span>
<span style="font-size: large;"><b>Step 2 : 上傳程式碼至 Arduino</b></span><br />
<span style="font-size: large;"><b><br /></b></span></div>
<div style="text-align: left;">
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>/*
AUTHOR: Hazim Bitar (techbitar)
DATE: Aug 29, 2013
LICENSE: Public domain (use at your own risk)
CONTACT: techbitar at gmail dot com (techbitar.com)
*/
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11); // RX | TX
void setup()
{
pinMode(9, OUTPUT);// this pin will pull the HC-05 pin 34 (key pin)HIGH
// to switch module to AT mode
digitalWrite(9, HIGH);
Serial.begin(9600);
Serial.println("Enter AT commands:");
BTSerial.begin(38400); // HC-05 default speed in AT command more
}
void loop()
{
// Keep reading from HC-05 and send to Arduino Serial Monitor
if (BTSerial.available())
Serial.write(BTSerial.read());
// Keep reading from Arduino Serial Monitor and send to HC-05
if (Serial.available())
BTSerial.write(Serial.read());
}</code></pre>
</div>
<div style="text-align: left;">
<br />
將上面程式碼複製到 Arduino IDE 中編譯、上傳,並開啟 Serial Moniter。<br />
<br />
<br />
<br />
<span style="font-size: large;"><b>Step 3 : 設定 HC-05 進入 AT Mode</b></span><br />
<b><br /></b>
<b>* 注意 : 請先將 Arduino 電源拔除再進行以下步驟</b><br />
<b><br /></b>
<b><br /></b>
1. 確認是否線路皆依照 Step 1 接線完成<br />
<br />
2. 把 Arduino 接上電源前,請將 HC-05 連接至 Arudino 上的 Vcc 腳位拔除,其餘四支腳位皆維<br />
持連接狀態<br />
<br />
3. 確認拔除 Vcc 腳位後,現在可將 Arduino 接上電源<br />
<br />
4. 確認 HC-05 目前沒有與任何藍牙裝置配對中<br />
<br />
5. 將 HC-05 的 Vcc 腳位插回 Arduino Vcc<br />
<br />
6. 上述步驟都正確執行後, HC-05 的 LED 燈應該維持兩秒閃爍一次的頻率。若燈號狀態正<br />
常,此時已進入 AT Mode<br />
<br />
7. 為了驗證是否正確登入 AT Mode ,請開啟 Serial Moniter ,並設定視窗右下角的 Baud rate 為<br />
9600,於 Serial Moniter 上方欄位中輸入大寫 " AT " ,將收到回應 " OK "<br />
<br />
8. 如果依舊沒有辦法收到 " OK " 回覆,請再次檢查您的線路與步驟是否正確<br />
<br />
<br />
進入 AT 模式後,若設定皆正常,於畫面應顯示 " Enter AT commands ",而非亂碼,若呈現亂碼請注意右下角 Baud rate 速率與格式設定。輸入 " AT ",可得到回應 " OK " 。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-6th22YD8VHI/U3F9w9kx-sI/AAAAAAAAAuk/3zRwqKdXOzg/s1600/1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-6th22YD8VHI/U3F9w9kx-sI/AAAAAAAAAuk/3zRwqKdXOzg/s1600/1.PNG" height="586" width="640" /></a></div>
<br />
改變 HC-05 Baud rate , 請輸入 " AT+UART=115200,1,0 ",改變成功可得到回覆 " OK ",其中 115200 為最高 Baud rate 值,1 則是停止位元,0 為檢查位元,調整 Baud rate 時,僅需調整前面的 Baud rate 值即可。<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Xfn-SbXxRks/U3F8bcftKFI/AAAAAAAAAuU/4-b_oHybCvI/s1600/2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Xfn-SbXxRks/U3F8bcftKFI/AAAAAAAAAuU/4-b_oHybCvI/s1600/2.PNG" height="584" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
請注意程式碼中的 Serial.begin(9600) 與 BTSerial.begin(38400),這兩者的數值請勿調整<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Zi6P4TH68oc/U3F8cN_AivI/AAAAAAAAAuY/RRaEFj8zmvU/s1600/4.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-Zi6P4TH68oc/U3F8cN_AivI/AAAAAAAAAuY/RRaEFj8zmvU/s1600/4.PNG" height="640" width="528" /></a></div>
<br />
<b><span style="font-size: large;">Step 4 : 設定 HC-05 各項 AT 指令</span></b><br />
<b><span style="font-size: large;"><br /></span></b>
以下為常用指令,若需參考其他 HC-05 指令,可點選以下連結:<br />
http://www.electronicaestudio.com/docs/istd016A.pdf<br />
<br />
<b>返回初始預設值 : AT+ORGL</b><br />
<b><br /></b>
<b>查詢版本 : AT+VERSION?</b><br />
<b><br /></b>
<b>更改藍牙名稱 : AT+NAME=XXXX (其中 XXXX 為欲設定的名稱 )</b><br />
<b><br /></b>
<b>更改 Baud rate : AT+UART=XXXX,1,0 (其中 XXXX 為欲設定的 baud rate 值 )</b><br />
<b><br /></b>
<b>更改密碼 : AT+PSWD= XXXX ( 其中 XXXX 為新密碼 )</b><br />
<br />
<br />
<br />
<br />
<span style="font-size: large;"><b>障礙排除</b></span><br />
<span style="font-size: large;"><b><br /></b></span>
如果 HC-05 與 Arduino 的接線皆正常,程式也沒有錯誤,打開 Serial Moniter 設定與 Baud rate 也正常,但無論怎麼輸入 " AT " 都無法得到 " OK " ,請參考以下解決方案<br />
<br />
<b>燈號狀態</b><br />
<br />
<br />
<ul>
<li>若燈號為兩秒閃爍一次,請重新確認 BTSerial.begin(38400) 是否正確,並請重新操作上述步驟</li>
</ul>
<br />
<br />
<ul>
<li>若燈號為快速閃爍,請依照以下步驟設定</li>
</ul>
<br />
<br />
1. 拔除 USB 線,使 Arduino 處於斷電狀態<br />
<br />
2. 將 Pin 9 的腳位拔除後,插入 Vcc 3.3V 腳位<br />
<br />
3. 插上 USB 後,檢查 HC-05 燈號,若燈號為兩秒閃爍一次,此時已正確進入 AT Mode,若燈<br />
號為快速閃爍,請重新操作一次接線步驟<br />
<br />
<br />
<br />
以上為進入 HC-05 AT Mode 設定,若你在其他 Blog 或 論壇上找到的操作方法無法正常設定,或許你手上的藍牙模組有可能與我的相同是『掛羊頭賣狗肉』的 HC-05 ! </div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com30tag:blogger.com,1999:blog-7442522839201272491.post-6127101218886726652014-05-05T17:24:00.002+08:002014-05-06T15:14:22.152+08:002.4Ghz 與 5Ghz 穿透性與傳輸效果近期有朋友買了 5Ghz 的 AP 設備後,分享了相關心得,但令他不解的是:為何 5Ghz 的網通設備,其穿透率不如 2.4Ghz 的高?在此我們不討論詳盡的物理實驗與計算,僅回歸探討「波長」與「能量」還有「繞射」等基本科普問題。<br />
<br />
<br />
見圖 1, 首先讓我們複習「波」的基本定義。於橫軸上有一波形,以橫軸為零點,橫軸以上的波形,其峰頂點稱為「波峰」,由波峰至橫軸的距離稱為「振幅」;橫軸以下的波形,其低點稱為「波谷」兩個波峰之間的距離稱之為「波長」。<br />
<br />
<br />
波長越長,其頻率越低,能量也較低,因此穿透率較差;相反的,波長越短,能量越高,頻越也高,其穿透率也較強。<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-42WjRt0W0y4/U2dIhEXAv6I/AAAAAAAAAsQ/pui2jKgQeRE/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-42WjRt0W0y4/U2dIhEXAv6I/AAAAAAAAAsQ/pui2jKgQeRE/s1600/1.jpg" height="241" width="640" /></a></div>
<div style="text-align: center;">
<b>圖 1</b>(轉自網路)</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
生活中我們從無線電、3G基地台、可見光、紅外線、X光、微波爐等,這些都是以波的是形式存在我們四周,見圖 2:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-vqSHKULl_ic/U2dJ63CTYeI/AAAAAAAAAsk/hbfbCUJ5LVs/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-vqSHKULl_ic/U2dJ63CTYeI/AAAAAAAAAsk/hbfbCUJ5LVs/s1600/2.png" height="364" width="640" /></a></div>
<div style="text-align: center;">
<b>圖 2</b>(轉自 wiki 百科)</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
再來讓我們談談繞射問題,圖 3 為著名的楊氏雙縫實驗(繞射、干涉於雙縫實驗同時發生),相信各位高中物理課程都有實驗過,在 Wiki 上對於繞射的定義如下:<br />
<br />
<i>繞射(英語:diffraction)是指波遇到障礙物時偏離原來直線傳播的物理現象。</i><br />
<div>
<i><br /></i>
<br />
<div>
<i>在古典物理學中,波在穿過狹縫、小孔或圓盤之類的障礙物後會發生不同程度的彎散傳播。假設將一個障礙物置放在光源和觀察屏之間,則會有光亮區域與陰晦區域出現於觀察屏,而且這些區域的邊界並不銳利,是一種明暗相間的複雜圖樣。這現象稱為繞射,當波在其傳播路徑上遇到障礙物時,都有可能發生這種現象。</i><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-jEVHrr8u_74/U2dSdmMIrMI/AAAAAAAAAs0/mf3UU41blw0/s1600/300px-Doubleslit.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-jEVHrr8u_74/U2dSdmMIrMI/AAAAAAAAAs0/mf3UU41blw0/s1600/300px-Doubleslit.gif" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<b>圖 3 </b>楊氏干涉與繞射雙縫實驗(轉自 wiki 百科)</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
複習了波的基本物理後,我們可以開始探討:<b>為何 2.4Ghz 於室內的傳撥能力優於 5Ghz ?</b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-BPcZLWblftc/U2dTGpyHE5I/AAAAAAAAAs8/jP3eqiAM1Pw/s1600/%E6%B3%A2%E9%95%B7%E8%AA%AA%E6%98%8E.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-BPcZLWblftc/U2dTGpyHE5I/AAAAAAAAAs8/jP3eqiAM1Pw/s1600/%E6%B3%A2%E9%95%B7%E8%AA%AA%E6%98%8E.PNG" height="304" width="640" /></a></div>
<br />
<div style="text-align: center;">
<b>圖 4</b> 2.4Ghz 與 5Ghz 比較表</div>
<br />
圖 4 左側示意圖中,我將每個波的粒子以小人偶代替,藉此以簡單的方式陳述 2.4 G 為何繞射能力較優,圖 4 右側為 2.4Ghz 與 5Ghz 比較表,從表中得知 5Ghz 穿透能力較 2.4Ghz 強,但為何 5Ghz 於室內傳輸的狀況較差? <i style="font-size: small;">註:圖 4 中的擬人說法,於實際物理實驗與理論中其實是不大正確的,但這僅是為了概述說明波長於繞射實驗的影響所做的簡單陳述,若有任何問題,歡迎指教。</i><br />
<br />
當每個小人偶依序排隊要通過狹縫時,可以看到 5Ghz 的波長短,頻率高,因此小人偶欲通過狹縫時較為擁擠,雖穿透能力較強,但其能量都耗費於「穿透」上,因此其剩餘能力用於繞射上就顯得心有餘而力不足,因此繞射的效果較差。相反的, 2.4Ghz 波長較長,頻率低,小人偶彼此之間的距離拉大,通過狹縫的程度較為容易,且經由繞射與反射,使 2.4Ghz 於是內的傳輸狀況優於 5Ghz。<br />
<br />
<br />
因此透過上述說明與比較表,我們來歸納以下兩點 2.4Ghz 與 5Ghz 的比較:<br />
<br />
<b>傳輸能力</b><br />
<b><br /></b>
5Ghz 的能量較強,傳輸速率快,若在開闊地點,例如台北地下街、美食街等開放式地形,不需將能量耗費於穿透障礙物或建築物時,5Ghz 在此類環境中更能擔任高負載性的群眾上網需求應用;2.4Ghz 若是家居環境下,雖有牆壁、家具等障礙物,但傳輸範圍不需高達數十、數百公尺以上,因此透過繞射與反射即可達到一定程度的訊號傳撥。當然若有更穩定的頻寬需求,加裝 Router 是最基本的解決方案,並非一定要更換 5Ghz 網通設備不可。<br />
<br />
<br />
<b>設備普及率與價格</b><br />
<br />
目前市面上的網通設備依舊是以 2.4Ghz 為大宗,無論是 802.11 a/b/g ,2.4Ghz 的產品幾乎都有滿足需求的選項可供購買,但 5Ghz 的產品為數不多,穩定性也與價格高低有關。如果你在家中只是想要用 iPad 躺在床上看看韓劇來自星星的你,對你而言,用 2.4Ghz 和 5Ghz 有差嗎?我想差異不會太大,畢竟家中成員同一時間使用 AP 的人數不會太多,因此網路速度影響有限。所以是否真的需要 5Ghz ,除了衡量使用環境外,當然還有你的荷包與使用人數作為網通設備的採購考量。<br />
<br />
<br />
如何挑選適合的網通設備,這端看各位所要架設的範圍與地區來決定,若是位於室內,目前還是推薦以 2.4Ghz 為佳;若使用地點為開闊地形,那麼 5Ghz 將有助於良好的高速上網體驗。</div>
</div>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com1tag:blogger.com,1999:blog-7442522839201272491.post-29505223113416012342014-04-20T11:53:00.002+08:002014-04-20T11:53:57.083+08:00Windows 8.1 中移除 KMPlayer 右側廣告上週購入一台 Toshiba L50 後,試著將一些常用軟體安裝、測試,唯獨新版 KMPlayer 安裝後,每回開啟程式總會在右側出現廣告視窗,這是令人很苦惱的部份。廣告視窗不僅佔用版面外,還會讓啟動速度拖慢,實在是困擾,因此在網路上搜尋相關文章後便開始著手進行 KMPlayer 右側視窗的設定修改。<br />
<br />
<br />
文章中指出,需到 C:\Windows\System32\drivers\etc\ 中,以記事本開啟 hosts 檔,並在檔案底部貼上以下指令,並將檔案存檔即可完成:<br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;"><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 Update.kmpmedia.net</span></span><br />
<span style="font-family: inherit;"><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 cdn.kmplayer.com</span><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 player.kmpmedia.net</span><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 media.sj2.vcmedia.com</span><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 rd.apmebf.com</span></span><br />
<span style="font-family: inherit;"><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;"><br /></span></span>
<span style="font-family: inherit;"><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;"><br /></span></span>
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;"><b>問題 1</b> :</span><br />
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;"><br /></span>
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;">當我如實的操作上述步驟,卻在存檔時告知,我並非系統管理者,需請求系統管理者權限才可操作。</span><br />
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;"><br /></span>
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;"><br /></span>
<br />
因此我又搜尋了關於設定 Windows 8.1 管理者權限的文章,文章中指出欲設定管理者權限,需至「本機安全性原則」中設定,開啟本機安全性原則有以下兩種方式:<br />
<br />
1. 按下 Win 鍵 + R 鍵,即可開啟「執行」視窗,並輸入:gpedit.msc<br /><br />2. 回到 Windows 8 磚牆狀態畫面,並將滑鼠游標移至右側,顯示右側隱藏選單,並點選「磚」,接著將「顯示系統管理工具」啟用,即可在磚牆中看到許多新增的選單。<br />
<br />
<br />
<br />
<br />
<b>問題 2 </b>:<br />
<br />
於 Toshiba L50 中的 Windows 8.1 操作以上兩個步驟時,皆無法看到本機安全性原則這個項目。於執行視窗中輸入 gpedit.msc ,得到的訊息告知無法找到此內容;開啟磚牆狀態檢視新增管理項目,亦無本機安全性原則選項。<br />
<br />
<br />
-----------------------------------------------------------------------------------------<br />
<br />
<br />
基於問題 1 與問題 2 我查詢了不少文章與微軟官方網頁,皆無法在筆電上的 Windows 8.1 找到本機安全性原則,因此我採用了以下方式就解決了 KMPlayer 右側廣告視窗設定需系統管理權限問題:<br />
<br />
1. 至帳戶設定中確認目前使用中的帳戶是否已為系統管理者(Administer 權限)<br />
<br />
2. C:\Windows\System32\drivers\etc\ 中,以記事本開啟 hosts 檔,並在檔案底部貼上以下指令,再將檔案以 .txt 格式另存新檔(建議儲存於桌面):<br />
<br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;"><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 Update.kmpmedia.net</span></span><br />
<span style="font-family: inherit;"><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 cdn.kmplayer.com</span><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 player.kmpmedia.net</span><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 media.sj2.vcmedia.com</span><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;">127.0.0.1 rd.apmebf.com</span></span><br />
<br />
<br />
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;"><br /></span>
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;"><br /></span>
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;">3. 修改步驟 2 中另存新檔的 hosts.txt 副檔名,將 .txt 去除。此時系統告知更改副檔名後,檔案可能無法使用,請按下確定,修改後檔名為 hosts。</span><br />
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;"><br /></span>
<span style="letter-spacing: 1.3333333730697632px; line-height: 20px;">4. 複製步驟 3 修改副檔名後的 hosts 檔,並回到 </span>C:\Windows\System32\drivers\etc\ 貼上 hosts 檔,覆蓋原始 hosts 檔即可完成設定。<br />
<br />
5. 重新開啟 KMPlayer 後可發現右側廣告視窗已關閉。<br />
<br />
<br />
<br />
<br />
<b>後記:</b><br />
<b><br /></b>
經由這次的設定過程,發現 Windows 8 的系統設定有截然不同的嚴謹程度,為了不讓使用者隨意更動系統設定,將相關頁面封裝的較為隱密。<br />
<br />
但仍然令我不解的是為何筆電上搭載的 Windows 8.1 無法依照以上步驟找到本機安全性原則。或許是筆電上的 OEM 版本於出廠前便與 Toshiba 相關系統設定軟體做出最佳的整合設定,因此不希望使用者進行更動,造成系統 crash。<br />
<br />
以上經驗讓我體驗到 Windows 8 是多麼的不易使用,還是回頭使用我的 Ubuntu 吧 XDD<br />
<br />
<br />
-Marcus.<br />
<span style="font-family: inherit;"><span style="font-size: 12pt; letter-spacing: 1.3333333730697632px; line-height: 20px;"><br /></span></span>
Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com0tag:blogger.com,1999:blog-7442522839201272491.post-10053638588116882822014-01-14T17:01:00.001+08:002018-02-11T03:00:10.054+08:003P Rocker Switch ( 3 Pin 洛克開關應用 )從電子零件行買來一個 3 Pin 的電子開關,你是否能很快速的瞭解如何使用這個零件?讓我們來想想你會怎麼做:<br />
<br />
1. 把玩電子零件,看看是否有標示使用方式、腳位說明<br />
<br />
2. 如果方法 1 找不到,便開始 google 相關 datasheet<br />
<br />
<br />
一個容易上手的 3 Pin 的電子開關應該在外殼處會有基本電路示意圖,或者是三個金屬接腳有一隻顏色不同。基於這些已經附在硬體上的基本資訊,還有經由上述兩個方法,你應該很快可以開始使用你的零件。但如果你買到的 3 Pin 電子開關如同以下圖片中的一樣,幾乎沒有什麼標示,腳位也是同樣顏色,不免要煩惱怎麼下手才好。<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-XKQrV8WiKe0/UtTm9wZ7lDI/AAAAAAAAAqQ/sW7WJghB7Pk/s1600/CAM01120.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://2.bp.blogspot.com/-XKQrV8WiKe0/UtTm9wZ7lDI/AAAAAAAAAqQ/sW7WJghB7Pk/s1600/CAM01120.jpg" width="150" /></a><a href="http://4.bp.blogspot.com/-o6zMavV_XWk/UtTm9zzTgJI/AAAAAAAAAqM/yrF19iKfo0g/s1600/CAM01121.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://4.bp.blogspot.com/-o6zMavV_XWk/UtTm9zzTgJI/AAAAAAAAAqM/yrF19iKfo0g/s1600/CAM01121.jpg" width="150" /></a><a href="http://2.bp.blogspot.com/-LOtfv8msOxw/UtTm9zNnNRI/AAAAAAAAAqU/sythqSSuFeI/s1600/CAM01122.jpg" imageanchor="1" style="clear: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="200" src="https://2.bp.blogspot.com/-LOtfv8msOxw/UtTm9zNnNRI/AAAAAAAAAqU/sythqSSuFeI/s1600/CAM01122.jpg" width="150" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
如果不小心採買到這樣的電子開關也不必太擔心,只要拿出三用電錶量測一下,紀錄導通腳位是哪兩隻腳位即可。讓我們先來認識一下怎麼挑選開關:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>1. 挑選規格、大小</b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
電子開關有各種不同尺寸,有方形、長形、圓形等,基本用途都是用來作為切斷與導通迴路,因此我們要先瞭解其迴路所使用的電流源是直流,還是交流。如下圖中的電子開關是交流專用,規格為: <b>15 A 125V AC </b>,<b>10A 250V AC</b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
所以這顆電子開關就可以讓我們用在台灣常見的 110V 與 220V 的電路環境中使用。若你的電流源是 DC 直流,請依照需求挑選耐流、耐壓。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-3e3Fjs5MZOE/UtToBPZE44I/AAAAAAAAAqs/rrhqFheR9SA/s1600/CAM01123.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://1.bp.blogspot.com/-3e3Fjs5MZOE/UtToBPZE44I/AAAAAAAAAqs/rrhqFheR9SA/s1600/CAM01123.jpg" width="480" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>2. 有無帶燈</b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
有帶燈電子開關僅為方便使用者觀看開關是否有成功導通迴路,使用方法與不帶燈電子開關並無二致。若要說,帶燈開關與不帶燈開關使用上最大的差異,就只有帶燈開關的特定單一腳位為燈泡專用,因此接法就不像不帶燈開關一樣單純串聯在迴路中即可。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
低頭尋找你身邊的延長線,應該可以在開關處找到「帶燈」的開關,但當然也有便宜延長線使用不帶燈的開關,如下圖。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-43_KPzjPI4U/UtTsPFPivHI/AAAAAAAAAq4/k7SLrtEHUaA/s1600/CAM01128.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="http://1.bp.blogspot.com/-saOo-8XJvz0/UtTsQL0d8uI/AAAAAAAAArA/YVImxdXmwLw/s1600/CAM01124.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="https://1.bp.blogspot.com/-saOo-8XJvz0/UtTsQL0d8uI/AAAAAAAAArA/YVImxdXmwLw/s1600/CAM01124.jpg" width="240" /></a><img border="0" height="320" src="https://2.bp.blogspot.com/-43_KPzjPI4U/UtTsPFPivHI/AAAAAAAAAq4/k7SLrtEHUaA/s1600/CAM01128.jpg" width="240" /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>3. 帶燈開關腳位判別</b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
因為不帶燈開關只需要留意兩個接點是否導通即可,使用上應該沒有疑問,在此便不詳述。對於帶燈開關則需先找出哪兩隻腳位是導通腳位,這時只要拿出三用電錶量測即可。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
將三用電錶檔位調到二極體測試檔位後,將其中一隻探棒放在中間腳位,另一隻則放在其他兩隻未使用腳位上(二挑一),並試著切換帶燈開關,看看蜂鳴器是否會鳴叫。下圖中的開關導通腳位為中間與右側的腳位,導通後,電錶螢幕上的數值亦會大於 0 。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-bwopliB8CpQ/UtTzty7FejI/AAAAAAAAArQ/81OgZL7wz00/s1600/CAM01129.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://4.bp.blogspot.com/-bwopliB8CpQ/UtTzty7FejI/AAAAAAAAArQ/81OgZL7wz00/s1600/CAM01129.jpg" width="480" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
若你所購買的 3P 帶燈開關如下圖中的開關,有單一隻腳位顏色與其他兩隻不同,那麼該腳位就是給予開關中的燈泡所使用的腳位。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-3Y3nszQ4JBo/UtT1UEX3wSI/AAAAAAAAArc/bQZGyH3EqQY/s1600/KCD3-Red-Light-DPDT-OnOff-Illuminated-Rocker-Switch-AC-250V-15A-125V-20A-2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="298" src="https://2.bp.blogspot.com/-3Y3nszQ4JBo/UtT1UEX3wSI/AAAAAAAAArc/bQZGyH3EqQY/s1600/KCD3-Red-Light-DPDT-OnOff-Illuminated-Rocker-Switch-AC-250V-15A-125V-20A-2.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>4. 帶燈開關應用接法</b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
已經確定好燈號腳位後,我們不禁思索:迴路不是應該都要有火線與接地兩點才能構成一迴路?怎麼開關上的電燈只有一個腳位?</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
其實燈泡的接地腳位是與開關本身的接地採用串聯的方式與電流源的接地端接在一起,當開關導通,燈泡也隨之點亮。瞭解開關上各種腳位後,我們來看看實際將開關安裝在迴路與設備上的線路圖為何吧。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-6EPLRPGuG1Q/UtT3-TLi9TI/AAAAAAAAAro/t2NvwPhTDks/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="143" src="https://4.bp.blogspot.com/-6EPLRPGuG1Q/UtT3-TLi9TI/AAAAAAAAAro/t2NvwPhTDks/s1600/1.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
下圖中開關為「斷路」狀態,當 Light 端 被下壓後, Acc 與 GND 便導通,左下角的喇叭也會隨之導通,如此一來,一個可正常運作的開關迴路就完成了。(此接法為開關上 LED 燈恆亮)</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-MgQHsx2lr84/UtT7jOm9gxI/AAAAAAAAAr0/QWIFg4fc0pU/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="338" src="https://2.bp.blogspot.com/-MgQHsx2lr84/UtT7jOm9gxI/AAAAAAAAAr0/QWIFg4fc0pU/s1600/2.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
上圖中的 Vcc 與 Acc 腳位是可以互換的,因此與上圖接法不同也不用擔心。以上是 3P Rocker Switch 的說明與應用,希望能讓各位更瞭解如何使用。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
----------------------------------</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h2 style="clear: both; text-align: left;">
2018.02.11 更新說明</h2>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
基於底下留言有許多網友給了許多指教,我也一度覺得自己的學習經驗是有誤差的。在研究了許多帶燈洛克開關的討論串和影片教學後,這裡有個<a href="http://www.ebay.com/gds/How-to-Wire-an-Illuminated-Rocker-Switch-/10000000207062091/g.html"> ebay 官方的教學文章 </a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
此外,我在上圖中的 Acc 與 Vcc 雖然這樣的接法是會讓開關上的 LED 燈常亮,若希望 LED 燈能隨著跟開關相接的設備一同啟動或關閉,那就只需要將圖中的 Acc 和 Vcc 互換即可。</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="font-size: large;"><u>LED 燈隨著負載設備同亮</u>,請將中央的腳位接到 負載設備正電端,左側的腳位改接到電池正電端</span></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="font-size: large;"><br /></span></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="font-size: large;"><u>若要LED 燈恆亮</u>,請將中央的腳位接到 Vcc,左側的腳位改接到負載設備的正電腳位</span></b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
-Marcus. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com8tag:blogger.com,1999:blog-7442522839201272491.post-3075400002695983962014-01-13T23:10:00.001+08:002014-01-13T23:26:35.085+08:005046W 磁簧開關應用 - 關於 NO 、NC 、COM門窗防盜鎖常見的電磁鐵開關,其常用稱呼為「<b>磁簧開關</b>」。這些開關不但常見,而且價格並不高昂,因此相當適合作為警報系統的非接觸式開關。但磁簧開關上能看到標示著:COM 、NO、NC,究竟這些名詞代表什麼?我們下面會一一介紹。<br />
<br />
本次所使用的磁簧開關型號為:5046 W<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-8VRj32vG8s0/UtP9k45uJiI/AAAAAAAAApg/cSBFTZV781k/s1600/CAM01116.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-8VRj32vG8s0/UtP9k45uJiI/AAAAAAAAApg/cSBFTZV781k/s1600/CAM01116.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-G5_O3BDSWmk/UtP-IPban7I/AAAAAAAAApw/w6Pwgh3c2FE/s1600/CAM01117.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-G5_O3BDSWmk/UtP-IPban7I/AAAAAAAAApw/w6Pwgh3c2FE/s1600/CAM01117.jpg" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<b>NO : Normal Open</b><br />
<b><br /></b>
NO 的意思為<b><i>磁碟靠近時,其迴路為 Open</i></b> ,呈現斷電狀態。<br />
但<b><i>當磁鐵移開後,該迴路為導通</i></b>。<br />
<br />
常見裝設於門窗上的防盜感應器,就是 NO 的磁簧開關應用案例。一旦門窗被開啟,磁簧開關就導通,並觸發警鈴。<br />
<br />
<br />
<br />
<b>NC : Normal Close</b><br />
<b><br /></b>
NC 的意思為<b><i>磁碟靠近時,其迴路為 Close</i></b> ,呈現導通狀態。<br />
但當<i><b>磁鐵移開後,該迴路為斷路</b></i>,即不導通。<br />
<br />
<br />
<br />
<b>COM:Common Ground</b><br />
<b><br /></b>
COM 的意思表示該點為 NC 和 NO 的共同接地點,因此無論你採用 NO 型式或 NC 型式作磁簧開關應用,其接地點皆為 COM。<br />
<br />
-------------------------------------------------------------------------------------<br />
<br />
那麼如何分別自己買回來的磁簧開關是 NO 還是 NP 呢?只要<b>拿起三用電錶,並調到二極體檢測檔位就可以測試了</b>,如下圖,<b>將探棒分別接在 COM 與 NO 接點</b>,若三用電錶上的蜂鳴器發出鳴響,代表該磁簧開關為 NO 型式。若保持上述檢測狀態,並將磁鐵移至磁簧開關旁,就會呈現斷路狀態,蜂鳴器也不會被觸發鳴響了:<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ZnzcXYUMLws/UtQADJi5kGI/AAAAAAAAAp8/v3L1vu5TLY4/s1600/CAM01119.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-ZnzcXYUMLws/UtQADJi5kGI/AAAAAAAAAp8/v3L1vu5TLY4/s1600/CAM01119.jpg" height="400" width="300" /></a></div>
<br />
<br />
<br />
應用挑選注意事項:<br />
<br />
若磁簧開關要應用在一般的門窗防盜上,多數使用 NO 型式。因為門窗緊閉時,磁簧開關與磁鐵塊會將迴路變為斷路。且 NO 型式磁簧開關很容易使用,只需要將 NO 與 COM 兩處拉線至應用電路端,就可實現門窗警示功能。<br />
<br />
但若挑選為 NC 型式,則需搭配一顆繼電器作為控制。因為 NC 型式平時於門窗緊閉的狀態,其迴路呈現為「短路」狀態,因此比較危險,需留意不可。<br />
<br />
<br />
<br />
以上為磁簧開關基本介紹與應用提醒,歡迎各位發想磁簧開關有無其他更有趣的應用。<br />
<br />
-Marcus.<br />
<br />Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com1tag:blogger.com,1999:blog-7442522839201272491.post-57955301049459081262013-12-19T18:31:00.004+08:002013-12-19T18:32:06.076+08:00How to customization your music for Nexus 5 ringtones , 如何將你的音樂設定為 Nexus 5 鈴聲 Hey guys,<br />
<br />
Did you know how to setting the music on Nexus 5 to be your customize ringtone ? It is really easy !<br />
You just need to following these steps , and it will be successful to setting the music as your ringtone.<br />
<br />
<br />
<b>Step 1: Plug your Nexus 5 on PC via USB cable</b><br />
Plug Nexus 5 to PC and you'll see Nexus 5 will showing up in PC file manager as an storage device.<br />
<br />
<b>Step 2 : Open the Nexus 5 folder in PC file manager</b><br />
While you open the folder , you just need to search a folder named <b>" ringtones "</b>.<br />
<br />
<b>Step 3 : Change the music extension</b><br />
Now we're going to change the music extension , so that Nexus 5 can know the file can be install and read, then you can pick up your favorite music now and rename the file extension.<br />
<br />
For example : <b>Firework.mp3</b> , and rename the music as : <b>Firework.ogg</b><br />
<b><br /></b>
<b>Step 4 : Copy the music to Nexus 5</b><br />
Then the last thing we need to do is to copy the music we just rename as <b>.ogg </b>, and put it into Nexus 5 " ringtones " folder , done !!<br />
<br />
That's it ! Hope you can enjoy the music ,and have fun.<br />
<br />
Cheers,<br />
-Marcus.<br />
<br />
<br />
<br />
-------------------------------中文版本說明------------------------------<br />
<br />
<br />
Hi 大家好,<br />
<br />
你知道如何將你喜愛的音樂設定為 Nexus 5 的來電鈴聲嗎?很簡單,你只需要跟著以下步驟,你就可以將你喜愛的音樂設定為 Nexus 5 的來電鈴聲了。<br />
<br />
<br />
<b>第一步:將你的 Nexus 5 用 USB 線連接到電腦</b><br />
當你把 Nexus 5 連接到電腦後,你可以在電腦的檔案管理員中看到 Nexus 5 的被當作一個儲存裝置。<br />
<br />
<br />
<b>第二步:在檔案管理員中打開 Nexus 5 的資料夾</b><br />
打開 Nexus 5 資料夾後,你需要找尋一個名為 " ringtones " 的資料夾<br />
<br />
<br />
<b>第三步:改變音樂副檔名</b><br />
為了能讓 Nexus 5 能順利的儲存並讀取你的音樂,你必須要更改音樂的副檔名。現在你可以挑選你喜愛的音樂,並更改副檔名囉。<br />
<br />
例如:<b>Firework.mp3 </b>,請改為:<b>Firework.ogg</b><br />
<br />
<br />
<b>第四步:複製音樂到 Nexus 5 </b><br />
我們所要作的最後一個步驟,就是將我們剛剛所儲存的 .ogg 音樂複製到 Nexus 5 的 <br />
" ringtones " 這個資料夾中,這樣就完成啦!<br />
<br />
這就是全部了,希望你能好好享受接下來的音樂鈴聲!<br />
<br />
Cheers,<br />
-Marcus.Anonymoushttp://www.blogger.com/profile/00057505102349106252noreply@blogger.com3