1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
</head>
<body><DIV ALIGN=LEFT>
<br><b>Software</b>
Taken with permission from Masayuki "Tencho" Yamashita's home <a href="http://www.geocities.co.jp/Technopolis/4789/settei.htm#id1">page</a>.
<hr>
<br><a NAME="id1"></a><font size=+1>[java communication toolLinuxœ߂̐ݒ]</font>
<br>pȂǂ߂́A<a href="http://www.frii.com/~jarvi/rxtx/">RXTX:
The Prescription for Transmission</a>փANZXAvO_E[hĒ
<br>𓀂ƂɁuINSTALLvt@CĂB
<p>͎ۂɍsCXg[ƂłB
<br>ip\R̊قȂĂꍇ̂ŕKƂ͌ȂƂj
<br>CXg[s͉L̒ʂłB
<br>[ Linux Kernel version ] <font color="#009900">2.2.12</font>
<br>[ Linux distribution ] <font color="#009900">Vine1.1(RedHat Linux 5.2
& glibc6 based)</font>
<br>[ RXTX version ] <font color="#009900">1.3.8</font>
<p>CXg[s߂ɉL̃t@Cpӂ܂B
<ul>
<li>
<a href="http://java.sun.com/products/jdk/1.2/ja/install-solaris.html">jdk-1.2pre-v2.tar.bz2</a>
(JAVA Development Kit 1.2 glibc2.0)</li>
<li>
<a href="http://www.frii.com/~jarvi/rxtx/">rxtx_1.3.8.tar.gz</a> iJava
Jc[Lbgi JDK jɃVAApʐM郉Cuj</li>
<li>
<a href="http://java.sun.com/products/javacomm/index.html">javacomm20-x86-tar.Z</a>
(SolarispCommAPI )</li>
</ul>
̃t@C̕ۑȌ/hogehogeƂĂ܂B
<p>܂AJDK1.2CXg[Ă͂ǂݔăXebv5iʼnB
<br>1. JDK1.2CXg[邽߂/usr/localɈړ܂B
<br> #<font color="#999900">cd /usr/local</font>
<p>2. jdk-1.2pre-v2.tar.bz2t@C𓀂܂B
<br> #<font color="#999900">bzip2 -dc /hogehoge/jdk1.2pre-v2.tar.bz2
| tar xvf -</font>
<p>3.PATHϐ̕ҏWs܂B
<br> homefBNg.bash_profileƂNt@Ĉ(ls
-aŊmFł܂)
<br> KȃGfB^gẴt@CJ܂B
<br> ʼnŝƂ
<br> <font color="#999900">PATH=$PATH:/usr/local/jdk1.2/bin</font>
<br> LĕۑĂB
<br> ̌ANt@C[h܂B #. <font color="#999900">$HOME/.bash_profile</font>
<br> xlogoutĂ܂login܂B
<br> javaR}hg邩ǂ"<font color="#999900">which java</font>"ƑłĊm߂ĉB
<p>4.̂܂܂łRpCł̂łARpCɂȂɂ SunJITRpC̃G[\ł܂B
<br> CɂȂ JITRpC̃p[~bVL̂悤ɂȂĂ̂
<br> jdk1.2/jre/lib/i386/libsunwjit.so -rw-r-----
<p> #<font color="#999900">chmod 755 jdk1.2/jre/lib/i386/libsunwjit.so</font>
<br> Ɠ͂ĂĂB
<br> AJITRpĈɑĂ炵Ƃ̏炵łB
<p>5. javacomm20-x86-tar.Z𓀂܂B(JgfBNg/usr/local/jdk1.2ł)
<br> #<font color="#999900">uncompress < /hogehoge/javacomm20-x86-tar.Z
| tar -xf -</font>
<br> commapiƂfBNg쐬Ă邩mF܂i#<font color="#999900">ls</font>@jB
<p>6. commapi̒comm.jar(Solarisp)javax.comm.propertieŝ
<br> ̃fBNgɃRs[܂B
<p> #<font color="#999900">cp /usr/local/jdk1.2/commapi/comm.jar
/usr/local/jdk1.2/jre/lib/ext/</font>
<br> #<font color="#999900">cp /usr/local/jdk1.2/commapi/javax.comm.properties
/usr/local/jdk1.2/jre/lib/</font><font color="#999900"></font>
<p><font color="#999900"> </font><font color="#000000">]kłwin32pcomm.jarꂽƂɋCȂđYł܂(^
^;B</font>
<p>7. javax.comm.propertiesҏW܂B
<br> ftHgŁA"Driver=com.sun.commSolarisDriver"ƏĂ̂
<br> ̍sRgAEgȂ폜
<br> "<font color="#999900">Driver=gnu.io.RXTXCommDriver</font>"
ƂLqď㏑ۑĂB
<p>8. rxtx_1.3.8.tar.gz𓀂܂B(JgfBNg/usr/local/jdk1.2ł)
<br> #<font color="#999900">tar zxvf /hogehoge/rxtx_1.3.8.tar.gz</font>
<p>9. #<font color="#999900">cd /usr/local/jdk1.2/rxtx-1.3.8/</font>
<p>10. buildfBNg쐬܂B
<br> #<font color="#999900">mkdir build</font>
<p>11. #<font color="#999900">cd build</font>
<p>12. #<font color="#999900">../cofigure --prefix=/usr</font>
<p>13. #<font color="#999900">make</font>
<p>14. #<font color="#999900">make install</font>
<p>Ƒgݍ܂Ă邩ۂsample filegĂ݂܂B
<br>/usr/local/jdk1.2/commapi/samples/SerialDemo/p܂B
<br>javaR}hPATHʂĂȂꍇ͉L̂悤ɑłĂlogout܂ŗLłB
<br>#<font color="#999900">export PATH=/usr/local/jdk1.2/bin:$PATH</font>
<br>̂܂SerialDemo.classN悤
<br>#<font color="#999900">java SerialDemo</font>
<br>ƑłĂs܂B
<br>͓ǂݎ葮̂܂܂ɂȂĂ邩Ȃ̂ŁA
<br>/usr/local/jdk1.2/commapi/samples/SerialDemo/ȉ
<br>ׂẴNXt@CɎs^悤ɂȂƓ܂B
<br>#<font color="#999900">cd /usr/local/jdk1.2/commapi/samples/SerialDemo/</font>
<br>#<font color="#999900">chmod 755 AlertDialog.class</font>
<br>.
<br>.ȗ
<br>.
<br>#<font color="#999900">chmod 755 SerialParameters.class</font>
<p>Ŏs(#<font color="#999900">java</font> <font color="#999900">SerialDemo)</font>ƁA
<br>"Font specified in font.properties not found"Ƃ\YYƂł܂
AvP[Vオ܂B
<p>ȏArootł̍ƂbĂ܂
<br>userłVA|[ggƂ́A /dev/ttyS0 ̑ςKv܂B
<br>#<font color="#999900">chmod o+rw /dev/ttyS0</font>
<br>ƂVA|[g𐧌䂷邱Ƃł܂AlxłȂȂł
<br>邢̓C^[lbgɐڑĂ悤ȃ}Vɂ͏\ZLeBsĂB
<div align=right>i99/11/30 Mj</div>
<br>
<hr WIDTH="100%"></div>
</body>
</html>
|