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

Implementing willingness #28

Open
aleixsb opened this issue Apr 29, 2014 · 2 comments
Open

Implementing willingness #28

aleixsb opened this issue Apr 29, 2014 · 2 comments

Comments

@aleixsb
Copy link

aleixsb commented Apr 29, 2014

Hi! I was wondering if it's possible that nodes decide to forward or not to forward packets depending on its battery state. I've seen that OLSR implements an attribute called willingness that actually does this function, but for what I've seen in all packets this attribute is set to 3 (unknown), I assume this is because the willingness function it's not implemented yet.. Am I right?

So if I want to implement this what would I need to do? Modify Node class and add Willingness attribute related to the battery state of the node and modify the class OLSRProtocol to take willingness into account?

I'm a bit lost here if anyone can give me some advice would be nice! Ty!

@jrobble
Copy link
Member

jrobble commented Apr 29, 2014

Hi Aleix,

Yes, in theory it's possible to use the battery state to influence the
willingness value. OLSR states that it already does this:

http://www.olsr.org/docs/report_html/node110.html

I have not done enough investigation to determine if OLSR does or does not
do it on an Android device. According to that link, if you're seeing all
willingness values set to 3, then my assumption is that /proc/apm is not
accessible. You should look into it.

If you had to make any modifications, you would make them to the olsrd C
code, not the SPAN framework:

http://www.olsr.org/?q=mercurial

The precompiled version of olsrd is included with SPAN under /res/raw in
the Eclipse project. The olsrd binary is copied over to
/data/data/org.span/bin on the device when the Manet Manager is installed.

  • Jeff

On Tue, Apr 29, 2014 at 4:00 AM, Aleix Sala Bach
[email protected]:

Hi! I was wondering if it's possible that nodes decide to forward or not
to forward packets depending on its battery state. I've seen that OLSR
implements an attribute called willingness that actually does this
function, but for what I've seen in all packets this attribute is set to 3
(unknown), I assume this is because the willingness function it's not
implemented yet.. Am I right?

So if I want to implement this what would I need to do? Modify Node class
and add Willingness attribute related to the battery state of the node and
modify the class OLSRProtocol to take willingness into account?

I'm a bit lost here if anyone can give me some advice would be nice! Ty!


Reply to this email directly or view it on GitHubhttps://github.com//issues/28
.

@aleixsb
Copy link
Author

aleixsb commented May 1, 2014

Thank! This is going to be a great help!

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