我在 ubuntu 11.04,64bit 下运行 SunSpot sdk。我已连接我的 sunspot 基站,在为我的 spot 运行 ant info 后,无法识别。我收到以下信息:
ant info
Buildfile: /home/home/SunSPOT/sdk/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/home/SunSPOT/sdk/ant/find-spots.xml:367: Spotselector failed or was cancelled
Total time: 11 seconds
我也从这里安装了 rxtxhttp://www.cloudhopper.com/opensource/rxtx/对于 linux-64b,运行 cat dev/ttyACM0 并重新启动我的站点后,我能够看到以下内容:
cat /dev/ttyACM0
** VM stopped: exit code = 0 **
*EL*:S Sun SPOT bootloader (red-090706)
*EL*:S Sun SPOT bootloader (red-090706)
*EL*:S Sun SPOT bootloader (red-090706)
*EL*:S Sun SPOT bootloader (red-090706)
*EL*:S Sun SPOT bootloader (red-090706)
*EL*:S Sun SPOT bootloader (red-090706)
*EL*:S Sun SPOT bootloader (red-090706)
*EL*:S Sun SPOT bootloader (red-090706)
Squawk VM Starting (red-090706)...
base station ready ...
检查我的 USB:
dmesg | grep usb
[ 0.729536] usbcore: registered new interface driver usbfs
[ 0.729553] usbcore: registered new interface driver hub
[ 0.729595] usbcore: registered new device driver usb
[ 1.390046] usb 2-5: new high speed USB device using ehci_hcd and address 2
[ 18.176287] input: CNF9011 as /devices/pci0000:00/0000:00:1d.7/usb2/2-5/2-5:1.0/input/input5
[ 18.178362] usbcore: registered new interface driver uvcvideo
[ 150.120103] usb 4-1: new full speed USB device using uhci_hcd and address 2
[ 150.394719] usbcore: registered new interface driver cdc_acm
有什么想法吗?似乎没有找到序列号。
答案1
我发现的解决方案是安装 32 位 Java,然后使用它。这样我就可以使用 Ant 脚本与 Sun Spot 通信并进行部署。
我仍然在与 netbeans 通信时遇到问题,但 netbeans 可以编译项目。