藤木です。
お世話になります。
気圧センサーSCP1000にチャレンジしています。
SunSpotSimpleApplicationを用いて新しいプロジェクトを作成し、缶サット用で頂いたSPC1000クラスと
SpiShiftRegisterクラスを追加し、実行させてみました。
エラーは出ないのですが、以下のようなメッセージが表示し、0の値しか、かえってきません。
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-1610964563
init:
No to.jar.file specified.
Using "suite\SCP1000_7_3_1.0.0.jar"
Deleting directory C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\build
Deleting directory C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\suite
Deleting directory C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\j2meclasses
clean:
Created dir: C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\build
Compiling 4 source files to C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\build
注:C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\src\org\sunspotworld\SCP1000_7_3.java は推奨されない API を使用またはオーバーライドしています。
注:詳細については、-Xlint:deprecation オプションを指定して再コンパイルしてください。
compile:
Created dir: C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\j2meclasses
preverify:
Created dir: C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\suite
Building jar: C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\suite\SCP1000_7_3_1.0.0.jar
jar-app:
Using "suite\SCP1000_7_3_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] ...]
### Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt
### Excluding compile: com.sun.squawk.Method::getParameterTypes
[Including resource: META-INF/MANIFEST.MF]
Romizer processed 7 classes and generated these files:
C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\image.sym
C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\image.suite
C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\image.suite.metadata
C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\image.suite.api
Expanding: C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\suite\SCP1000_7_3_1.0.0.jar into C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\suite
Moving 1 file to C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\suite
Moving 1 file to C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\suite
Moving 1 file to C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\suite
Deleting: C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3\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/SCP1000_7_3
Relocating application suite to 0x10900000
About to flash from C:\Users\wp363928\Documents\NetBeansProjects\SCP1000_7_3/suite/image
Writing imageapp6041139312246371366.bintemp (7116 bytes) to local SPOT on port COM29
|=== | 7%
|====== | 14%
|============ | 21%
|=============== | 28%
|===================== | 35%
|======================== | 42%
|=========================== | 49%
|================================= | 56%
|==================================== | 64%
|========================================== | 71%
|============================================= | 78%
|=================================================== | 85%
|====================================================== | 92%
|============================================================| 100%
Using suite name: spotsuite://Sun_Microsystems_Inc/SCP1000_7_3 and Midlet number 1
Exiting
flashapp:
deploy:
init:
SPOT Client starting...
Local Monitor (yellow-101117-1)
SPOT serial number = 0014.4F01.0000.77EE
** VM stopped: exit code = 0 **
Starting midlet 1 in spotsuite://Sun_Microsystems_Inc/SCP1000_7_3
REVID = 0
Time : Tue Jul 03 02:04:30 PST 2012
Pressure : 0.0
Temperature: 0.0
Time : Tue Jul 03 02:04:31 PST 2012
Pressure : 0.0
Temperature: 0.0
Time : Tue Jul 03 02:04:32 PST 2012
Pressure : 0.0
Temperature: 0.0
どのようにすればよろしいでしょうか?
接続は
SPC1000 SunSPOT
1 → GND
3 → D3
4 → GND
5 → D1
6 → D2
7 → D0
8 → +3V
にしています。
藤木 郁久