buglwIP - A Lightweight TCP/IP stack - Bugs: bug #51094, RFC7668 - 6lowpan over Bluetooth...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51094: RFC7668 - 6lowpan over Bluetooth Low Energy -- a new netif

Submitted by:  Aigner B. <aignerb>
Submitted on:  Tue 23 May 2017 11:48:06 AM UTC  
 
Category: Network driversSeverity: 3 - Normal
Item Group: Feature RequestStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: Other

Mon 29 May 2017 06:57:22 PM UTC, comment #4:

Moved to patch #9364

Simon Goldschmidt <goldsimon>
Project Administrator
Wed 24 May 2017 08:44:49 AM UTC, comment #3:

@Simon

Ok, thx for the feedback.
I will do my homework, clone your repo and create a patch :-).

If you are interested in using this with the ESP32, there is currently a discussion going on at github, where I posted the related code which is used within the esp-idf:

https://github.com/espressif/esp-idf/issues/629

I know, there is still much work to do ^^

But in combination with MQTT-SN, it works really well.

Aigner B. <aignerb>
Tue 23 May 2017 06:56:53 PM UTC, comment #2:

Oh, forgot one:

This is not a bug report! Please post things like this one as patch next time!

Simon Goldschmidt <goldsimon>
Project Administrator
Tue 23 May 2017 06:56:12 PM UTC, comment #1:

First of all, thanks for sharing your work!

That being said: ehrm, you really duplicated the whole code to implement nearly the same thing over BLE instead of 802154?? You know duplicating code is bad, do you? ;-)

I'd love to get this into our main sources even if only to finally get our 6lowpan testable, but for this, some changes are needed:
- separate the lowpan code to combine it with the existing lowpan6.c (I'm OK with renaming files, adding central include files, etc.)
- fix your coding style:
-- (don't ever use printf for portable embedded software! use wrapper functions instead - e.g. LWIP_DEBUGF)
-- don't use C++ style comments (we're currently stuck on C89)

Once that is done we can probably fix all the nasty things you copied from lowpan6.c like missing comments, missing defines for numeric constants (which would make the meaning of them more clear) and probably some more.

Aside from that, I'd be interested in a short howto to get it running on the ESP32 and Debian :-)

Simon Goldschmidt <goldsimon>
Project Administrator
Tue 23 May 2017 11:48:06 AM UTC, original submission:

Dear lwIP team,

I've implemented a new network interface, which supports the 6lowpan over BLE network.

Currently working with MQTT-SN, ICMPv6 and UDP6 (no further protocols tested).

Test setup:

ESP32 with BTStack as Bluetooth stack + Debian PC.

A connection can be made via the bluetooth_6lowpan kernel module (see Nordic Semiconductor docs: http://developer.nordicsemi.com/nRF5_IoT_SDK/doc/0.9.0/html/a00089.html )

Best wishes & thx for this piece of software!

Aigner B. <aignerb>

 

Attached Files
file #40768:  rfc7668_opts.h added by aignerb (2KiB - text/x-chdr)
file #40769:  rfc7668.h added by aignerb (3KiB - text/x-chdr)
file #40767:  rfc7668.c added by aignerb (34KiB - text/x-csrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by aignerb (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 29 May 2017 06:57:22 PM UTCgoldsimonStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Tue 23 May 2017 11:53:47 AM UTCaignerbAttached File-=>Added rfc7668_opts.h, #40768
      Attached File-=>Added rfc7668.h, #40769
    Tue 23 May 2017 11:48:06 AM UTCaignerbAttached File-=>Added rfc7668.c, #40767

    Back to the top


    Powered by Savane 3.1-cleanup1