LEDを光らせたいのですが、うまくいきません。

Sun SPOT についてのご質問はこちら。情報交換などにもご利用ください。

LEDを光らせたいのですが、うまくいきません。

投稿記事by fujiki » 2012年5月01日(火) 19:34

藤木です。
LEDにチャレンジしています。
リファクタリングでLED1に名前を変更してみました。
ビルド+デプロイを行うと、以下のようなコメントが出てきます。
init:
Please wait while connected Sun SPOTs are examined...

Using Sun SPOT device on port COM29
Deleting: C:\Program Files\Sun\SunSPOT\sdk\temp\spotselector-1691069265
init:
No to.jar.file specified.
Using "suite\LED1_1.0.0.jar"
Deleting directory C:\Users\wp363928\Documents\NetBeansProjects\LED1\build
Deleting directory C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Deleting directory C:\Users\wp363928\Documents\NetBeansProjects\LED1\j2meclasses
clean:
Created dir: C:\Users\wp363928\Documents\NetBeansProjects\LED1\build
Compiling 2 source files to C:\Users\wp363928\Documents\NetBeansProjects\LED1\build
注:C:\Users\wp363928\Documents\NetBeansProjects\LED1\src\org\sunspotworld\LED1.java は推奨されない API を使用またはオーバーライドしています。
注:詳細については、-Xlint:deprecation オプションを指定して再コンパイルしてください。
compile:
Created dir: C:\Users\wp363928\Documents\NetBeansProjects\LED1\j2meclasses
preverify:
Created dir: C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Building jar: C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite\LED1_1.0.0.jar
jar-app:
Using "suite\LED1_1.0.0.jar"
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[translating suite image [closed: false, parent: transducerlib] ...]
[Including resource: META-INF/MANIFEST.MF]
Romizer processed 5 classes and generated these files:
C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.sym
C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.suite
C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.suite.metadata
C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.suite.api
Expanding: C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite\LED1_1.0.0.jar into C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Moving 1 file to C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Moving 1 file to C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Moving 1 file to C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Deleting: C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.suite.api
SPOT Client starting...

Local Monitor (yellow-101117-1)
SPOT serial number = 0014.4F01.0000.77EE
Using target file name: spotsuite://Sun_Microsystems_Inc/LED1
Relocating application suite to 0x10900000
About to flash from C:\Users\wp363928\Documents\NetBeansProjects\LED1/suite/image
Writing imageapp1052550000679678459.bintemp (3988 bytes) to local SPOT on port COM29
|====== | 12%
|=============== | 25%
|===================== | 38%
|============================== | 51%
|==================================== | 64%
|============================================= | 76%
|=================================================== | 89%
|============================================================| 100%


Using suite name: spotsuite://Sun_Microsystems_Inc/LED1 and Midlet number 1

Exiting
flashapp:
deploy:
構築成功 (合計時間: 7 秒)

次に実行を行うと構築失敗となります。
どのようにすれば、LEDを光らすことができるのかを教えて下さい。

init:
Please wait while connected Sun SPOTs are examined...

Using Sun SPOT device on port COM29
Deleting: C:\Program Files\Sun\SunSPOT\sdk\temp\spotselector-1666700906
init:
No to.jar.file specified.
Using "suite\LED1_1.0.0.jar"
Deleting directory C:\Users\wp363928\Documents\NetBeansProjects\LED1\build
Deleting directory C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Deleting directory C:\Users\wp363928\Documents\NetBeansProjects\LED1\j2meclasses
clean:
Created dir: C:\Users\wp363928\Documents\NetBeansProjects\LED1\build
Compiling 2 source files to C:\Users\wp363928\Documents\NetBeansProjects\LED1\build
注:C:\Users\wp363928\Documents\NetBeansProjects\LED1\src\org\sunspotworld\LED1.java は推奨されない API を使用またはオーバーライドしています。
注:詳細については、-Xlint:deprecation オプションを指定して再コンパイルしてください。
compile:
Created dir: C:\Users\wp363928\Documents\NetBeansProjects\LED1\j2meclasses
preverify:
Created dir: C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Building jar: C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite\LED1_1.0.0.jar
jar-app:
Using "suite\LED1_1.0.0.jar"
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[translating suite image [closed: false, parent: transducerlib] ...]
[Including resource: META-INF/MANIFEST.MF]
Romizer processed 5 classes and generated these files:
C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.sym
C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.suite
C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.suite.metadata
C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.suite.api
Expanding: C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite\LED1_1.0.0.jar into C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Moving 1 file to C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Moving 1 file to C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Moving 1 file to C:\Users\wp363928\Documents\NetBeansProjects\LED1\suite
Deleting: C:\Users\wp363928\Documents\NetBeansProjects\LED1\image.suite.api
SPOT Client starting...

Local Monitor (yellow-101117-1)
SPOT serial number = 0014.4F01.0000.77EE
Writing SPOT properties (350 bytes) to local SPOT on port COM29
|============================================================| 100%


Using target file name: spotsuite://Sun_Microsystems_Inc/LED1

Error: Command failed. Device reported: Error while processing command: on [java.lang.String of length 2 with index 2

The SPOT client will now exit
C:\Program Files\Sun\SunSPOT\sdk\build.xml:96: The following error occurred while executing this line:
C:\Program Files\Sun\SunSPOT\sdk\ant\deploy.xml:36: The following error occurred while executing this line:
C:\Program Files\Sun\SunSPOT\sdk\ant\run-spotclient.xml:95: The following error occurred while executing this line:
C:\Program Files\Sun\SunSPOT\sdk\ant\run-spotclient.xml:133: Java returned: 1
構築失敗 (合計時間: 8 秒)

藤木 郁久
fujiki
 
記事: 68
登録日時: 2010年7月06日(火) 19:54

LED点灯に大成功しました。

投稿記事by fujiki » 2012年5月12日(土) 11:02

皆様

藤木です。

Sun SPOT SimpleApplication Tempate のプラグインを Yellow 対応にしました。

プラグインは下記にあります。

http://plugins.netbeans.org/plugin/1952 ... ontemplate

山口yamaguch


おかげさまでLED点灯に大成功しました。
詳細は以下をご覧ください。
viewtopic.php?f=6&t=189#p844

藤木 郁久
fujiki
 
記事: 68
登録日時: 2010年7月06日(火) 19:54


Return to Sun SPOT 質問箱

cron