无法执行 './tools/motelist-linux'

Failed to execute './tools/motelist-linux'

我在 contiki 的 cooja 模拟器中使用 sky motes。我想使用 collect-view。所以我在模拟中添加了一些天空微尘并右键单击其中一个节点以启动 collect-view。然后我点击了 'Program-Nodes' 按钮。

我收到以下错误:

Programming failed: java.io.IOException: Failed to execute './tools/motelist-linux'.

对于天空微粒,我注意到 motelist-linux 文件是 here. So I updated the lines

public static final String MOTELIST_LINUX = "./tools/sky/motelist-linux";
public static final String MOTELIST_MACOS = "./tools/sky/motelist-macos";

我已验证 motelist-linuxmotelist-macos 文件具有必要的权限。但是我又遇到了同样的错误。

Programming failed: java.io.IOException: Failed to execute './tools/sky/motelist-linux'.

如何消除错误?或

还有其他方法可以使用collect-view吗?

您需要 sudo 权限才能访问 linux 中的串口。请使用 sudo 打开 cooja 并尝试。它可能会起作用。还有一种可能是节点的串行端口可能被另一个应用程序打开。确保没有其他应用程序正在使用您正在尝试编程的微尘的串行端口。

制作人员:https://github.com/contiki-os/contiki/issues/2198