![](/img/trans.png)
[英]Contiki-NG Cooja simulator fails to start
我已經在 Ubuntu VMware Player 上安裝了 Contiki-NG,並且一直在努力使用ant run命令來運行它,下面是整個終端代碼: 我嘗試在 github 存儲庫中搜索解決方案,但沒有找到類似的東西。 ...
[英]Contiki-NG Cooja simulator fails to start
我已經在 Ubuntu VMware Player 上安裝了 Contiki-NG,並且一直在努力使用ant run命令來運行它,下面是整個終端代碼: 我嘗試在 github 存儲庫中搜索解決方案,但沒有找到類似的東西。 ...
[英]Change Contiki MAC protocol to TDMA
我正在研究 Cooja 模擬器。 我創建了一個包含一些天空微塵的網絡。 默認情況下,CSMA 用作微塵的 mac 層,但我想將其更改為 TDMA。 TDMA MAC 層在 Contiki 2.6 中作為tdma_mac存在,但在更新的 Contiki 版本中被刪除。 如何解決這個問題? ...
[英]net/rime.h error using Cooja, how can I install it but not just download it?
我正在嘗試在 Cooja 中進行簡單的模擬(字面意思是 Contiki 網站上的示例)。 但是我有一條錯誤消息鏈接到我的#include“net/rime.h”,Cooja 在編譯時輸出以下消息:致命錯誤:net/rime.h:沒有這樣的文件或目錄 當我按照官方網站上的步驟安裝 Contiki-n ...
[英]How can I build with ant as a normal user (no need for sudo) COOJA
最近我開始使用 contiki-ng 從事物聯網項目。 我遇到的問題是當我嘗試運行 cooja 時: 在~/contiki-ng/tools/cooja 。 構建失敗 我嘗試使用$ sudo ant run ,它開始正常工作,沒有任何問題。 . . $ ant run -verbose 2& ...
[英]Remove route in Contiki
如果檢測到攻擊,我正在嘗試刪除 Contiki 中的路由。 我正在使用struct route_entry *e; route_remove(e); struct route_entry *e; route_remove(e); 但我收到以下錯誤: undefined reference to 'r ...
[英]Contiki process halts
我正在嘗試編寫一個小進程線程來監聽傳入的數據,將其寫入 flash 並在之后讀取它。 代碼看起來像這樣 寫入 flash 有效,因此我沒有包含代碼。 此代碼與Contiki 文檔中的示例非常相似。 每次我寫入 flash 時, total_bytes_written都會增加。 收到所有字節后,我嘗試 ...
[英]How to make a node only overhear neighbor's packets and itself doesn't send or forward any packets?
我想制作一個可以偷聽鄰居發送數據包的節點,並在 Mote 輸出 cooja 中打印數據包的信息。 我也希望節點不發送或轉發任何數據包。 我能做什么? ...
[英]Unexpected behavior of Z1 and Sky motes in Cooja simulation in DODAG formation
我正在探索 Contiki Cooja 模擬器(使用 Contiki NG)並嘗試使用 UDP 服務器和多個 UDP 客戶端(來自示例/rpl-udp)使用不同的節點類型,當我注意到一些我沒想到的事情時。 當我將節點設置為 z1/sky 類型時,幾乎所有客戶端節點都只向服務器發送 DAO。 事實上 ...
[英]Total Number of Packets Sent and Received in Contiki
我正在嘗試獲取 RPL 中傳輸的數據包總數和接收的數據包總數。 我正在使用 upd-client.c 和 udp-server.c,並在兩個文件中添加了 printf 行,如下所示: 然后在模擬腳本編輯器中,我統計了打印的消息: 我不確定我做錯了什么,但似乎我總是有相同數量的傳輸和接收數據 ...
[英]How to generate a random float values in cooja (c code) if I don't have time.h library to perform srand
我有這個 function,但它在 cooja 中不起作用,因為它總是 output 一遍又一遍地使用相同的數字,而且我沒有 time.h 庫來制作srand() 。 那么,我應該如何在 cooja 中打印不同的隨機浮點值? 我應該寫一個 c function float random_value ...
[英]Float Calculation in Cooja
我在 Contiki 3.0 中使用 RPL,我需要在結果為浮動的情況下進行一些計算。 但不是給我浮點數的結果,而是只計算 integer 數,例如:5/2 = 2.0 而不是 2.5。 我怎樣才能得到正確的答案? 我無法在 Contiki 3.0 中打印浮點數或雙精度數,因此我使用此代碼將浮點數轉 ...
[英]is it possible to call a web service from cooja?
是否可以從 cooja 調用 web 服務? 可能我可以從邊界路由器讀取然后調用 web 服務(例如通過 python 腳本)。 我可以 ping 邊界路由器,但我不知道如何從節點讀取或寫入 cooja 中的節點。我是 contiki-ng 和 cooja 的新手。 提前致謝 ...
[英]How to use socket.h c header file in contiki cooja simulator
我在 contiki rpl-control 消息文件中包含了 header 文件 socket.h 但它給出了找不到目錄/文件的錯誤。問題是寫在單獨的 C 文件中的客戶端/服務器代碼可以正常工作,但只要我復制代碼並將其放入 cooja 中它找不到文件。我需要將一些數據從 cooja contiki ...
[英]I want to use OpenSSL in the Cooja simulator in the Contiki OS but I'm unable to integrate it
I have installed OpenSSL which I can check using the command openssl version , but when I add header files related to the OpenSSL, let's say for calc ...
[英]How to get all the preferred parents up to the root for a certain node in Contiki RPL classic?
我正在使用 Contiki 3.0,我想找到某個節點的所有首選父節點,直到根節點。 例如,如果我有節點 1 與首選父節點 5,節點 5 與首選父節點 8 和節點 8 直接連接到根。 我怎樣才能像這樣找到或打印這些首選父母:1-> 5 -> 8 -> root。 我正在使用此代碼來 ...
[英]How to get the IP address for a certain node in Contiki RPL classic?
我想獲取 mote 的 IP 地址。 不是父節點或鄰居的 IP,而是當前節點的 IP。 我正在使用 Contiki 3.0 並致力於 RPL 經典。 ...
[英]get the position of node using cooja contiki
我想獲取 Cooja 模擬器中每個節點的位置(x 和 y 坐標)。 總共有 30 個節點,類型為“天空微粒”。 目標是為每個節點構建一個由 (ID_node x_coordinate y_coordinate) 組成的表。 首先,我嘗試通過在腳本模擬編輯器中編寫以下代碼來獲取每個節點的 x 坐標: ...
[英]How to access motes info from collect-view using script editor cooja simulator?
我正在嘗試編寫一個腳本(Javascript)來記錄來自收集視圖工具的 mote 信息,我沒有找到任何教程或文檔來顯示如何使用腳本編輯器訪問 mote 信息,我將非常感謝任何幫助. 謝謝! ...
[英]Is there a way to know that the node is disconnected/out of the RPL network in contiki 3.0?
我有一個移出 RPL 網絡范圍的移動節點。 我需要知道這個節點超出了網絡范圍。 我試過這段代碼: 但是,當節點發生移動時,計數不會更新,它會保持以前的狀態,並且始終保持不變。 ...
[英]More than one parent in the RPL protcol
Contiki-NG 在 RPL 實現中是否支持多個父級? 如果是,我該如何啟用它? ...