All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Gorkos <john@blastwaveinc.com>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] B.A.T.M.A.N. port to ESP32
Date: Mon, 1 Oct 2018 11:01:25 -0700	[thread overview]
Message-ID: <babe56e8-b12c-8236-7012-20bb91d400fa@blastwaveinc.com> (raw)

I'm working on a port of the BATMAN-ADV protocol to FreeRTOS,
specifically running on the ESP32 from EspressIF.

I'm currently sending and receiving what seem to be correctly formed OGM
messages from BATMAN IV.  For now, my goal is interoperability with
Raspberry Pis running BATMAN from stock Raspbian.

From the RasPi, I am able to see the ESP32 as a neighbor, but not as an
originator:
pi@pi-16:~ $ sudo batctl n
[B.A.T.M.A.N. adv 2017.3, MainIF/MAC: wlan0/b8:27:eb:a0:2a:53
(bat0/e6:46:65:5b:c4:c4 BATMAN_IV)]
IF             Neighbor              last-seen
        wlan0	  30:ae:a4:3b:9a:d4    0.090s
pi@pi-16:~ $ sudo batctl o
[B.A.T.M.A.N. adv 2017.3, MainIF/MAC: wlan0/b8:27:eb:a0:2a:53
(bat0/e6:46:65:5b:c4:c4 BATMAN_IV)]
   Originator        last-seen (#/255) Nexthop           [outgoingIF]

Can someone explain to me why this might be occurring, and what I'm
missing?  Currently, the code is doing two things:  sending a new OGM
with an incrementing sequence number every 1000 ms, and re-broadcasting
any received OGMs with a decremented TTL, modified TQ, and DirectLink
flag set whenever it receives them (also every 1000 ms or so).
Internally, I'm getting close to having the routing algorithm
implemented, but it looks like I'm doing something "wrong" in the eyes
of the BATMAN implementation on the Pis.  I'd be happy to provide packet
dumps on request.

Thank you in advance.
John Gorkos



             reply	other threads:[~2018-10-01 18:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-01 18:01 John Gorkos [this message]
2018-10-06  6:07 ` [B.A.T.M.A.N.] B.A.T.M.A.N. port to ESP32 Sven Eckelmann
2018-10-06 12:14 ` Linus Lüssing
2018-10-08 16:43   ` John Gorkos
2018-10-20 12:20     ` Sven Eckelmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=babe56e8-b12c-8236-7012-20bb91d400fa@blastwaveinc.com \
    --to=john@blastwaveinc.com \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.