我正在尝试使用64位debian上的太阳黑子,但无论我做什么,我都没有。我已经搜索了各种错误,但实际的太阳黑子论坛下来我没有运气。
我尝试将port = ttyACM0添加到.sunspot.properties,但后来我得到的错误大致相同。以下错误消息来自尝试从蚂蚁获取太阳黑子信息。我已将所有文本放在那里以防它有用但实际的错误信息是[java]请等待连接的Sun SPOT检查... [java]没有可用的串口 [java] Java结果:255
全文shebang
Buildfile: /home/andrew/SunSPOT/sdk/Demos/AirText/build.xml
-pre-init:
-do-init:
-post-init:
-warn-jar-file:
init:
-override-warning-find-spots:
-prepare-conditions-for-find-spots:
-find-shared-basestation:
-run-spotfinder:
[exec] Using Hardware Abstraction Layer (HAL) to probe Sun SPOTS...
-check-spotfinder-result:
-decide-whether-to-run-spotselector:
-run-spotselector:
[java] Please wait while connected Sun SPOTs are examined...
[java] No serial port available
[java] Java Result: 255
-collect-spotselector-result:
-clean-up-spotselector-output-file:
-spotselector-fail:
BUILD FAILED
/home/andrew/SunSPOT/sdk/ant/find-spots.xml:367: Spotselector failed or was cancelled
Total time: 8 seconds
感谢您提供的任何帮助
答案 0 :(得分:4)
我遇到了同样的问题。
本文档解释了第140页下半部分的问题: http://www.sunspotworld.com/docs/Yellow/SunSPOT-Programmers-Manual.pdf
本文档解释了如何修复它(第29页): http://www.cs.umanitoba.ca/~comp4430/Documents/InstallationInstructions.pdf
我对Linux很陌生,基本上,我所做的就是打字:
sudo chmod 777 /dev/ttyACM0
sudo chmod 777 /var/lock
这不是一个好的解决方案,但它有效!至少,它确实适合我。
请注意,每次连接SPOT时都必须运行sudo chmod 777 /dev/ttyACM0
命令。