-
Notifications
You must be signed in to change notification settings - Fork 4
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
Energy Harvesting doesn't work with RPL protocol #2
Comments
Hi @khabid , Sorry for the delay. Can you check your contiki-sky-main.c and look for uart1_set_input... followed by serial_line_init...? They should be surrounded by a pre-processor conditional for IPv4 or IPv6 NETSTACK. Try to remove that conditional (or you can replace it with your own macro if you want). I think that this will break the RPL border router because it uses the same uart to communicate over the serial line (SLIP). But you shouldn't need EH on the border router anyway. For the changes made to opt_sched_test, can you please paste them in your message so I can check? Regards, |
Dear Mr Victor, |
Hi @somnathmid , Did you set the CONTIKI variable in the Makefile? You must set it to the path to your Contiki installation. Regards, |
Thank You very much that you have replied to me I will set and check,
May be after that
also I need your help
Thanks
Somnath Sinha
|
Sir
I failed to run your code. Can you tell me where exactly I have t
keep the folder eh_contiki-master so that path related error will not
come
Thanks
Somnath Sinha
|
If I run the .csc file directly I am getting some error which I have attached
Thanks
Somnath Sinha
|
I have uploaded the folder directly under HOME. What to do ? |
Now code is running optsched_test.c is running but fatal error is coming eh_sim.h no such file it is telling |
Now I am getting some error in function calling
Somnath Sinha
|
Sir, I am waiting for your suggestions |
Hi @somnathmid
Thanks, |
Hi, Your code is running, Thanks a lot I got sum result |
But I am not able t run .py file . How to do that ? |
Hi @somnathmid You say you got some results. The python energy source simulator should be started before you run the CSC. Victor |
.csc file is running but from python eh_source_server.py <shader.pickle> i am not getting change |
How to get EH can you please guide |
How to start python energy source simulator |
Hi @somnathmid You need to use a trace of harvested energy data. You must run the eh_source_server.py as follows: You can drop the test_shaders.pickle from the command line in which case the shadows will be randomly generated. First run the python script and then run the Cooja CSC file. When Cooja starts the python script will connect to the Cooja serial sockets that are defined in the CSC (with the TCP port numbers starting at 60000, if you haven't modified their values). In the Cooja log you should periodically see, for each node, "Harvested X", which means that the node harvested some energy. Let me know how it works. Best regards, |
Thank you, i will check and inform
Somnath Sinha
|
Dear Mr Victor,
I tried to add some code to the opt_sched_test but this way the energy harvesting process doesn't work correctly. It doesn't print harvested energy and add it to the battery.
Please help, I'm blocked here for one month.
Thank you
The text was updated successfully, but these errors were encountered: