リセットボタンを押しても、反応してくれません。

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

リセットボタンを押しても、反応してくれません。

投稿記事by fujiki » 2012年7月26日(木) 13:51

お世話になります。
藤木です。

SunSPOTにGPSのプログラムを作成し、「Build Project + Deploy to Sun SPOT」を行ったところ、「リセットを押しなさい」というメッセージが出てきました。
SunSPOTのリセットを押すが、反応がありません。
Win7のPCの電源をOFFにし、10分ほど待ちました。
その後、今まで動いていたプログラムを「Build Project + Deploy to Sun SPOT」しても、

init:
Please wait while connected Sun SPOTs are examined...
No serial port available
Java Result: -1
C:\Program Files\Sun\SunSPOT\sdk\ant\find-spots.xml:367: Spotselector failed or was cancelled
構築失敗 (合計時間: 6 秒)


というエラーが出てきて、先にすすみません。

SunSPOTManagerToolでUpgradeしたところ、以下のようなエラーが出ています。


When you upgrade (or downgrade) your Sun SPOT SDK you will often need to update
the firmware on the Sun SPOT device itself.
You will need to do the following for each Sun SPOT:
1.) Plug in the Sun SPOT
2.) Select which SPOT you wish to update from the dropdown list
3.) Click the 'Update' button below
4.) Repeat for each Sun SPOT you wish to update.
You may also connect ALL of your Sun SPOTs, select "All Connected Sun SPOTs"
from the dropdown list, and then click the 'Update' button below. This will update
all of your Sun SPOTs one at a time.

To get more detailed information about what is installed on your Sun SPOT, select
the SPOT in the pull-down menu and then click the "SPOT Info" button

To select your Sun SPOT BaseStation, select the Sun SPOT to be your BaseStation
in the pull-down list, then click the "BaseStation" button

To enable/disable your Sun SPOT's Over The Air Deployment (OTA) capability,
select the Sun SPOT in the pull-down list, then click the "Enable OTA" or
"Disable OTA" button

Buildfile: C:\Program Files\Sun\SunSPOT\sdk\build.xml
-pre-init:
-do-init:
-post-init:
-warn-jar-file:
init:
-failIfRemote:
-override-warning-find-spots:
[echo]
[echo] WARNING: Using the port specified in the
[echo] "port" property without any checks.
[echo]
[echo] We recommend setting the "spotport" (rather
[echo] than the "port") property to enable features
[echo] like interactive selection of another valid
[echo] port if the specified port is unavailable.
[echo]
-prepare-conditions-for-find-spots:
-find-shared-basestation:
-run-spotfinder:
-check-spotfinder-result:
-decide-whether-to-run-spotselector:
-run-spotselector:
-collect-spotselector-result:
-clean-up-spotselector-output-file:
-spotselector-fail:
-decide-whether-to-start-basestation-manager:
-start-new-basestation-manager:
-start-shared-basestation:
-do-find-spots:
-do-upgrade:
-check-run-spotclient-parameters:
-run-spotclient-once-with-remote-id:
-run-spotclient-multiple-times-with-remote-id:
-run-spotclient-once-locally:
-echo-progress-for-remote-runs:
-echo-progress-for-local-runs:
-run-spotclient-once:
[java] SPOT Client starting...
[java] Port COM33 unavailable...
[java] Available ports: COM1 LPT1
[java] retrying...
[java] Port COM33 unavailable...
[java] Available ports: COM1 LPT1
[java] retrying...
[java] Port COM33 unavailable...
[java] Available ports: COM1 LPT1
[java] retrying...
[java] Available ports: COM1 LPT1
[java]
[java] Error: Spot not found on port: COM33 not found
[java]
[java] The SPOT client will now exit
******************************
SPOT Command Completed!
******************************


Restoreすると、途中で画面が止まってしまいます。

出荷状態に戻すにはどのようにすればよろしいですか?

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

Re: リセットボタンを押しても、反応してくれません。

投稿記事by fujiki » 2012年7月26日(木) 14:59

お世話になります。

2年前にインストールしてあったMacのSunSPOTManagerToolでUpgradeしてみました。
やはりセットを押しなさいのところで止まります。
リセットボタンを押しても反応がありません。

困りました。どのようにしたらよろしいですか?

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

Re: リセットボタンを押しても、反応してくれません。

投稿記事by yamaguch » 2012年7月26日(木) 16:08

藤木先生、

暑いですね。暑さのせいでうまく動かないのかもしれませんが、ひとまず起こっていることを整理してみましょう。

試されたことは、

1. NetBeans で Sun SPOT のプログラムを作成し、Sun SPOT を接続して Build + Deploy を行うと「リセットを押しなさい」というメッセージが出るが、 Sun SPOT のリセットボタンを押しても何も起こらない
2. Windows を再起動して、もう一度 NetBeans から同じ操作をすると "... No serial port available " というメッセージが出て失敗する
3. SunSPOT Manager Tool で Upgrade を行うと "[java] Error: Spot not found on port: COM33 not found" というエラーになる
4. Mac から2年前の Manager Tool で Upgarde しても「リセットを押しなさい」というメッセージが出た後、リセットが押せない

こういうことでしょうか。

通常 Sun SPOT が USB ケーブルで PC につながれると、Sun SPOT 内で PC と通信をするためのプログラムが動き出します。
どうやら、これがうまく動いていないような感じですね。

Sun SPOT 内では複数のプログラム(スレッド)が同時に動いています。この中に素性のよくないスレッドが動いていると、他のスレッドが動けなくなることがあるのですが、どうもそういう感じのことが起こっているようです。電源を入れると全て動いてしまうので、それが問題なようです。

ところで Sun SPOT のハードウェアは新型でしょうか、旧型でしょうか。
新型は表に Oracle と書かれています。

旧型の場合には、私の知っているちょっと面倒な方法は一旦ベースステーションとして Upgrade し、そのあと普通の Sun SPOT として再度Upgrade するという方法で、こんな風にします。

1. ベースステーションのハードウェアを用意してください
2. ベースステーションとちゃんと動いていない Sun SPOT の裏蓋のねじを外して分解してください
3. Sun SPOT の方の CPU ボードには eDemo ボードとバッテリがコネクタで繋がっているので丁寧に抜いてください
4. 分解できたら両方の CPU ボードを交換してください
5. 交換したら元通りに組み立ててください
6. CPU ボードが交換されたベースステーションのファームウェアを Upgrade します
7. Sun SPOT Manager Tool でベースステーションを選んでから Upgrade を押してください
8. 再度 CPU ボードを交換し、今度は Sun SPOT を普通に Upgrade してください

ベースステーションにすると CPU ボードの中にプログラムが入っていても(それは普通の Sun SPOT 用なので)動きません。しかし、PC との通信のプログラムは動いてちゃんとファームウェアのアップグレードが行われます。そして、このときに元々入っていたプログラムは消えてしまいます。上の方法でうまく行くのはこういうケースです。

新型は試していませんが、CPU ボードはベースステーションも普通の SunSPOT も同じボードを使用していると思います。
なお、この方法はオフィシャルな方法ではありません。ご自身の責任で行ってください。

うまく行かなければ、残るは最終手段しかないかもしれません。
最終手段はマニュアルに書かれています。

山口
yamaguch
 
記事: 482
登録日時: 2010年7月06日(火) 17:37

Re: リセットボタンを押しても、反応してくれません。

投稿記事by fujiki » 2012年7月26日(木) 18:34

山口さん

藤木です。
早速の返信、ありがとうございます。
缶サット甲子園前仁は必ず起こるトラブルがとうとうやってきたか :mrgreen: という感じです。
どうすることもできずに困っていました。

素性のよくないスレッドが原因でということを理解しました。
使っているのは新型のOracleSunSPOTです。

ベースステーションとしてUpgradeし、その後、SunSPOTとしてUpgradeするという必殺技で
チャレンジしてみます。(自己責任のもと)。

治ってくれることを願いながら、今からトライしてみます。

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

Re: リセットボタンを押しても、反応してくれません。

投稿記事by fujiki » 2012年7月26日(木) 20:08

山口さん

藤木です。
教えていただいた方法でやってみました。

大成功です。
Restoreも行い、購入時の状態に戻すことに成功しました。
ありがとうございます。

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


Return to Sun SPOT 質問箱

cron