http://openmoko.org/index.php?title=Manually_using_GSM/zh_tw&feed=atom&action=historyManually using GSM/zh tw - Revision history2024-03-28T12:57:25ZRevision history for this page on the wikiMediaWiki 1.19.24http://openmoko.org/index.php?title=Manually_using_GSM/zh_tw&diff=53522&oldid=prevKempelen: -Documentation, -Technical2008-09-12T21:37:52Z<p>-Documentation, -Technical</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:37, 12 September 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 147:</td>
<td colspan="2" class="diff-lineno">Line 147:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>See [[Manually using GPRS]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>See [[Manually using GPRS]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">[[Category:Documentation/zh tw]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Application Developer/zh tw]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Application Developer/zh tw]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">[[Category:Technical/zh tw]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:GSM/zh tw]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:GSM/zh tw]]</div></td></tr>
</table>Kempelenhttp://openmoko.org/index.php?title=Manually_using_GSM/zh_tw&diff=47979&oldid=prevDolfje at 23:14, 20 August 20082008-08-20T23:14:03Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 23:14, 20 August 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 147:</td>
<td colspan="2" class="diff-lineno">Line 147:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>See [[Manually using GPRS]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>See [[Manually using GPRS]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Category:Documentation]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:Documentation<ins class="diffchange diffchange-inline">/zh tw</ins>]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Category:Application Developer]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:Application Developer<ins class="diffchange diffchange-inline">/zh tw</ins>]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Category:Technical]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:Technical<ins class="diffchange diffchange-inline">/zh tw</ins>]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Category:GSM]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:GSM<ins class="diffchange diffchange-inline">/zh tw</ins>]]</div></td></tr>
</table>Dolfjehttp://openmoko.org/index.php?title=Manually_using_GSM/zh_tw&diff=40195&oldid=prevCoolcat: /* 連接到 GSM Modem (使用cu) */2008-07-15T10:29:37Z<p><span dir="auto"><span class="autocomment">連接到 GSM Modem (使用cu)</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:29, 15 July 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 62:</td>
<td colspan="2" class="diff-lineno">Line 62:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  OK</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  OK</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>''<del class="diffchange diffchange-inline">If it hangs on </del>"Connected" <del class="diffchange diffchange-inline">message then probably your device has a non</del>-<del class="diffchange diffchange-inline">working GSM modem - check </del>[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=256 Bug #256]<del class="diffchange diffchange-inline">, also you may want to try powering off the modem then on again as this worked for me</del>''</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>''<ins class="diffchange diffchange-inline">若停滯在 </ins>"Connected" <ins class="diffchange diffchange-inline">訊息,你的GSM modem可能無法運作 </ins>- <ins class="diffchange diffchange-inline">請查看check </ins>[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=256 Bug #256]<ins class="diffchange diffchange-inline">,或者,你可能想要再次重新啟動</ins>''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''cu seems to have problems with the hardware flow control. The one way I always managed to get GSM working is to start cu first and then on a different console issue the stty command.'''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''cu seems to have problems with the hardware flow control. The one way I always managed to get GSM working is to start cu first and then on a different console issue the stty command.'''</div></td></tr>
</table>Coolcathttp://openmoko.org/index.php?title=Manually_using_GSM/zh_tw&diff=40194&oldid=prevCoolcat: /* 連接到 GSM Modem (使用cu) */2008-07-15T10:17:42Z<p><span dir="auto"><span class="autocomment">連接到 GSM Modem (使用cu)</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:17, 15 July 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 49:</td>
<td colspan="2" class="diff-lineno">Line 49:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>若你沒有 socat,你可以使用 cu,雖然它有一些檔案存取及硬體流量控制的問題存在。</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>若你沒有 socat,你可以使用 cu,雖然它有一些檔案存取及硬體流量控制的問題存在。</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">change permissions on ttySAC0</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">修改ttySAC0的使用權限</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ chown uucp.uucp /dev/ttySAC0</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ chown uucp.uucp /dev/ttySAC0</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">setup </del>/usr/spool/uucp</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">安裝 </ins>/usr/spool/uucp</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ mkdir -p /usr/spool/uucp</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ mkdir -p /usr/spool/uucp</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ chown uucp.uucp /usr/spool/uucp</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ chown uucp.uucp /usr/spool/uucp</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">enable </del>CTS/RTS <del class="diffchange diffchange-inline">flow control</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">啟動 </ins>CTS/RTS <ins class="diffchange diffchange-inline">流量控制</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ stty -F /dev/ttySAC0 crtscts</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ stty -F /dev/ttySAC0 crtscts</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">access the </del>GSM Modem UART</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">存取 </ins>GSM Modem UART</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ cu -l /dev/ttySAC0</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ cu -l /dev/ttySAC0</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>  <del class="diffchange diffchange-inline">Connected.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>  <ins class="diffchange diffchange-inline">連接</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  AT-Command Interpreter Ready</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  AT-Command Interpreter Ready</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  OK</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  OK</div></td></tr>
</table>Coolcathttp://openmoko.org/index.php?title=Manually_using_GSM/zh_tw&diff=40193&oldid=prevCoolcat: /* Connecting to GSM Modem (using cu) */2008-07-15T10:08:38Z<p><span dir="auto"><span class="autocomment">Connecting to GSM Modem (using cu)</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:08, 15 July 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 45:</td>
<td colspan="2" class="diff-lineno">Line 45:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  AT-Command Interpreter ready</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  AT-Command Interpreter ready</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>=== <del class="diffchange diffchange-inline">Connecting to </del>GSM Modem (<del class="diffchange diffchange-inline">using cu</del>) ===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>=== <ins class="diffchange diffchange-inline">連接到 </ins>GSM Modem (<ins class="diffchange diffchange-inline">使用cu</ins>) ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">If you don't have socat, you can use cu, although it has problems with file permissions and hardware flow control.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">若你沒有 socat,你可以使用 cu,雖然它有一些檔案存取及硬體流量控制的問題存在。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* change permissions on ttySAC0</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* change permissions on ttySAC0</div></td></tr>
</table>Coolcathttp://openmoko.org/index.php?title=Manually_using_GSM/zh_tw&diff=40192&oldid=prevCoolcat at 10:02, 15 July 20082008-07-15T10:02:36Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:02, 15 July 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''When men were real men and typed their own AT commands...'''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''When men were real men and typed their own AT commands...'''</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">這篇文章簡單的為您介紹了如何使用手動的方式,使用GSM。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Thankfully, this may now be partially obsolete.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">== 需求 ==</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">The [[Dialer|dialer]] now works!</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">This is a short guide how to manually get GSM going.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">* 安裝最新的u-boot boot-bootloader的GTA01Bv2 或 GTA01Bv3(透過USB)。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">* 不要連接任何debug board!</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>== <del class="diffchange diffchange-inline">Requirements </del>==</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>== <ins class="diffchange diffchange-inline">實際操作 </ins>==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">* GTA01Bv2 or GTA01Bv3 with very recent u-boot bootloader, providing usbtty (serial over USB) support)</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">=== 啟動系統 ===</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">* Do not connect any debug board!</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">== Walk-Through ==</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">確認你所使用的 rootfs在 </ins>/etc/network/interfaces <ins class="diffchange diffchange-inline">下包括 'auto usb0' </ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">將主機的usb0介面設定為 </ins>192.168.0.200 netmask 255.255.255.0 See [[USB_Networking]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">=== Booting the system ===</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">Make sure the rootfs you use has 'auto usb0' in </del>/etc/network/interfaces</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">Configure the host's usb0 interface to </del>192.168.0.200 netmask 255.255.255.0 See [[USB_Networking]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* ssh to root@192.168.0.201</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* ssh to root@192.168.0.201</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>=== <del class="diffchange diffchange-inline">Disabling the </del>getty ===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>=== <ins class="diffchange diffchange-inline">停用 </ins>getty ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Our default images all have a getty running on </del>/dev/<del class="diffchange diffchange-inline">ttySAC0, please edit </del>/etc/inittab <del class="diffchange diffchange-inline">and disable the getty on that port</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">我們預設的映像檔在</ins>/dev/<ins class="diffchange diffchange-inline">ttySAC0都包含了getty,請編輯</ins>/etc/inittab <ins class="diffchange diffchange-inline">,並且停用該通訊埠的getty。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>=== <del class="diffchange diffchange-inline">Reducing the loglevel </del>===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>=== <ins class="diffchange diffchange-inline">消除loglevel </ins>===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{note|You don't need this in kernel builds with patchset &ge; 1288}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{note|You don't need this in kernel builds with patchset &ge; 1288}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">To keep the kernel from writing to </del>/dev/<del class="diffchange diffchange-inline">ttySAC0, you need to use </del><code>dmesg -n1</code>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">為了避免kernel寫入 </ins>/dev/<ins class="diffchange diffchange-inline">ttySAC0,你必須使用 </ins><code>dmesg -n1</code>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>=== <del class="diffchange diffchange-inline">Powering up the GSM </del>Modem ===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>=== <ins class="diffchange diffchange-inline">啟動GSM </ins>Modem ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">verify there is no </del>getty <del class="diffchange diffchange-inline">or any other app running on </del>/dev/ttySAC0  </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">檢核 </ins>getty <ins class="diffchange diffchange-inline">是否存在,或者是其它的程式是否在 </ins>/dev/ttySAC0 <ins class="diffchange diffchange-inline">上執行 </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ lsof | grep ttySAC0</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ lsof | grep ttySAC0</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">If gsmd is using the </del>GSM <del class="diffchange diffchange-inline">modem, shut it down with</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">若gsmd 目前使用 </ins>GSM <ins class="diffchange diffchange-inline">modem,使用下列指令停用它:</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 40:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">power-up the GSM </del>Modem</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">啟動GSM </ins>Modem</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ echo "1" > /sys/bus/platform/devices/neo1973-pm-gsm.0/power_on</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  root@fic-gta01:~$ echo "1" > /sys/bus/platform/devices/neo1973-pm-gsm.0/power_on</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>=== <del class="diffchange diffchange-inline">Connecting to GSM </del>Modem (using socat) ===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>=== <ins class="diffchange diffchange-inline">連接到GSM </ins>Modem (using socat) ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* If you have the command socat (built and installed):</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* If you have the command socat (built and installed):</div></td></tr>
</table>Coolcathttp://openmoko.org/index.php?title=Manually_using_GSM/zh_tw&diff=40190&oldid=prevCoolcat: New page: '''When men were real men and typed their own AT commands...''' Thankfully, this may now be partially obsolete. The dialer now works! This is a short guide how to manually get...2008-07-15T09:51:54Z<p>New page: '''When men were real men and typed their own AT commands...''' Thankfully, this may now be partially obsolete. The <a href="/index.php?title=Dialer&action=edit&redlink=1" class="new" title="Dialer (page does not exist)">dialer</a> now works! This is a short guide how to manually get...</p>
<p><b>New page</b></p><div>'''When men were real men and typed their own AT commands...'''<br />
<br />
Thankfully, this may now be partially obsolete.<br />
The [[Dialer|dialer]] now works!<br />
<br />
This is a short guide how to manually get GSM going.<br />
<br />
== Requirements ==<br />
<br />
* GTA01Bv2 or GTA01Bv3 with very recent u-boot bootloader, providing usbtty (serial over USB) support)<br />
* Do not connect any debug board!<br />
<br />
== Walk-Through ==<br />
<br />
=== Booting the system ===<br />
<br />
* Make sure the rootfs you use has 'auto usb0' in /etc/network/interfaces<br />
* Configure the host's usb0 interface to 192.168.0.200 netmask 255.255.255.0 See [[USB_Networking]]<br />
* ssh to root@192.168.0.201<br />
<br />
=== Disabling the getty ===<br />
<br />
Our default images all have a getty running on /dev/ttySAC0, please edit /etc/inittab and disable the getty on that port<br />
<br />
=== Reducing the loglevel ===<br />
<br />
{{note|You don't need this in kernel builds with patchset &ge; 1288}}<br />
<br />
To keep the kernel from writing to /dev/ttySAC0, you need to use <code>dmesg -n1</code>.<br />
<br />
=== Powering up the GSM Modem ===<br />
<br />
* verify there is no getty or any other app running on /dev/ttySAC0 <br />
root@fic-gta01:~$ lsof | grep ttySAC0<br />
<br />
* If gsmd is using the GSM modem, shut it down with<br />
<br />
<pre><br />
root@fic-gta01:~$ /etc/init.d/gsmd stop <br />
</pre><br />
<br />
* power-up the GSM Modem<br />
root@fic-gta01:~$ echo "1" > /sys/bus/platform/devices/neo1973-pm-gsm.0/power_on<br />
<br />
=== Connecting to GSM Modem (using socat) ===<br />
<br />
* If you have the command socat (built and installed):<br />
root@fic-gta01:~$ socat - file:/dev/ttySAC0,crtscts,crnl<br />
AT-Command Interpreter ready<br />
<br />
=== Connecting to GSM Modem (using cu) ===<br />
<br />
If you don't have socat, you can use cu, although it has problems with file permissions and hardware flow control.<br />
<br />
* change permissions on ttySAC0<br />
root@fic-gta01:~$ chown uucp.uucp /dev/ttySAC0<br />
* setup /usr/spool/uucp<br />
root@fic-gta01:~$ mkdir -p /usr/spool/uucp<br />
root@fic-gta01:~$ chown uucp.uucp /usr/spool/uucp<br />
* enable CTS/RTS flow control<br />
root@fic-gta01:~$ stty -F /dev/ttySAC0 crtscts<br />
* access the GSM Modem UART<br />
root@fic-gta01:~$ cu -l /dev/ttySAC0<br />
Connected.<br />
AT-Command Interpreter Ready<br />
OK<br />
<br />
''If it hangs on "Connected" message then probably your device has a non-working GSM modem - check [http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=256 Bug #256], also you may want to try powering off the modem then on again as this worked for me''<br />
<br />
'''cu seems to have problems with the hardware flow control. The one way I always managed to get GSM working is to start cu first and then on a different console issue the stty command.'''<br />
--[[User:DanielWillmann|DanielWillmann]] 01:15, 20 March 2007 (CET)<br />
<br />
* close the connection with <Return>~~.<Return><br />
OK<br />
~[fic-gta01].<br />
<br />
Disconnected.<br />
root@fic-gta01:/$<br />
<br />
=== Using it manually ===<br />
==== Registering with the Network ====<br />
<br />
* enter the following [[Hardware:AT_Commands]]:<br />
<pre><br />
ATE1<br />
OK<br />
AT+CFUN=1<br />
ERROR<br />
AT+CPIN="...."<br />
OK<br />
AT+COPS<br />
OK<br />
</pre><br />
<br />
==== List available carriers ====<br />
<br />
This can take a few seconds to process but will list the available carriers<br />
<pre><br />
AT+COPS=?<br />
</pre><br />
<br />
==== Answering an incoming call ====<br />
<pre><br />
RING<br />
ATA<br />
OK<br />
</pre><br />
<br />
==== Dialling an outgoing call ====<br />
<br />
To actually be able to talk you have to configure your audio accordingly<br />
<br />
<pre><br />
root@fic-gta01:~$ cd /etc/alsa/<br />
root@fic-gta01:/etc/alsa$ wget http://opensource.wolfsonmicro.com/~gg/neo1973/gsmheadset.working.state<br />
root@fic-gta01:/etc/alsa$ alsactl -f /etc/alsa/gsmheadset.working.state restore<br />
</pre><br />
<br />
Up the "Amp right" volume to hear the speaker on both ears, then dial (note the ''';''' at the end of the dial string, this signifies a voice call, if you omit the ; it is regarded as a data call).<br />
<br />
<pre><br />
ATD012340234; <br />
</pre><br />
<br />
If you get NO CARRIER, try...<br />
<br />
<pre><br />
ATD+xxyzzzzzzz<br />
</pre><br />
<br />
ie, ATD+<country_code><area_code><phone_number><br />
<br />
==== Hanging up ====<br />
<pre><br />
ATH<br />
OK<br />
</pre><br />
<br />
=== Using [[gsmd]] ===<br />
<br />
You can use the [[gsmd]] and [[Gsmd#libgsmd-tool | libgsmd-tool]] programs to have a slightly more high-level interface to the GSM Modem. It's still console based, though.<br />
<br />
For further instructions, see [[gsmd]]<br />
<br />
=== Using tui ===<br />
<br />
Tui (available from [http://www.sf.net/projects/tui sourceforge]) is able to do all this. It is still text-based, but input-rxvt can take data from touchscreen, so you can actually do the calls using your finger. It also plays wav file on incoming call, so it is theoretically usable. It even does caller id.<br />
<br />
=== Manually using GPRS ===<br />
<br />
See [[Manually using GPRS]]<br />
<br />
[[Category:Documentation]]<br />
[[Category:Application Developer]]<br />
[[Category:Technical]]<br />
[[Category:GSM]]</div>Coolcat