Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make the controller link to sink? #2

Open
Gao-k opened this issue Dec 11, 2021 · 16 comments
Open

How to make the controller link to sink? #2

Gao-k opened this issue Dec 11, 2021 · 16 comments

Comments

@Gao-k
Copy link

Gao-k commented Dec 11, 2021

Hello,George. I am very interested in the implementation of controller. And I run the project, but I don't know how to make controller link to sink by serial 2 pty. Could you teach me more detailed? Thanks very much!

@georgevio
Copy link
Member

georgevio commented Dec 11, 2021 via email

@Gao-k
Copy link
Author

Gao-k commented Dec 11, 2021

Thanks,George.
I do like this:
(1)right click on the sink(contiki-standard-extra-functions/examples/ipv6/rpl-udp-fresh/udp-server.c), Mote tools for Z1 1 -> Serial 2 Pty, then I get the port /dev/pts/4;
(2)in SerialPortProbe.java, I set searchFromNum = 1, searchUpToNum = 11.
(3)Then I run Main.java in Eclipse.
(4)In cooja, I click the start.
(5)In ASSET IDS, I click the start button.
Then I get somethings like this:
Waiting for "Start" button
Starting application...
Thread is RUNNABLE
Opening port: dev/pts/1
Opening port: dev/pts/2
...
Opening port: dev/pts/10
Serial Port not found from pts/1 to pts/11. Sleeping for 3 sec...

How to solve it? Could you give me a hand?

@georgevio
Copy link
Member

georgevio commented Dec 11, 2021 via email

@Gao-k
Copy link
Author

Gao-k commented Dec 12, 2021

Thank you!
The ASSET folder is under contiki/tools/cooja?
I think I put ASSET in wrong place, where should I put ASSET folder?

@georgevio
Copy link
Member

georgevio commented Dec 12, 2021 via email

@Gao-k
Copy link
Author

Gao-k commented Dec 12, 2021

Thank you very much, George!
I have done it. I make a few mistakes earlier.
Looking forward to your new experiments!
Wish you good luck!
But there is still a bug. When I click start, it always produces a red circular node(0) in GraphStream FX, others select it as parent and leave the sink node alone.

@georgevio
Copy link
Member

georgevio commented Dec 12, 2021 via email

@Gao-k
Copy link
Author

Gao-k commented Dec 13, 2021

Yes, I create the sink as first node in cooja, then I add four client.
But in GraphStream FX, you can see following picture.
image
In ASSET IDS, I don't know why there is 0 node.

@georgevio
Copy link
Member

georgevio commented Dec 13, 2021 via email

@Gao-k
Copy link
Author

Gao-k commented Dec 13, 2021

The screenshot of cooja(I run the testing-with-Central.csc in your contiki folder):
image
I am testing.
Why does node 5 declare the node 0?

@georgevio
Copy link
Member

georgevio commented Dec 13, 2021 via email

@Gao-k
Copy link
Author

Gao-k commented Dec 14, 2021

I try the full-tests folder, it works well.
image

@georgevio
Copy link
Member

georgevio commented Dec 14, 2021 via email

@Gao-k
Copy link
Author

Gao-k commented Dec 14, 2021

@Gao-k
Copy link
Author

Gao-k commented Dec 16, 2021

Hello, George.
Sorry to bother you again. How to make controller send messages to nodes, such as SP, SN or EI?

@georgevio
Copy link
Member

georgevio commented Dec 18, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants