Re: [OpenWrt-Devel] [RFC][netifd]: Support for 802154 devices

2017-01-13 Thread Abhijit Mahajani
Hi Anatoliy, Xue,

>> ci40 has already some work on it. You could have a look.
Currently we have the lowpan configuration for Creator Ci40  at 
https://github.com/CreatorDev/openwrt/blob/ci40/target/linux/pistachio/base-files/etc/uci-defaults/config/network.
 And lowpan proto setup is done by 
https://github.com/CreatorDev/openwrt/blob/ci40/target/linux/pistachio/base-files/lib/netifd/proto/lowpan.sh

We have received a review comment regarding lowpan.sh in our first upstream 
Pull request (https://github.com/openwrt/openwrt/pull/95 which is obsoleted by 
a basic Ci40 port https://github.com/openwrt/openwrt/pull/201 superseded by )
 
> It would be better to put this into an extra package for example into 
> the iwpan package, this will probably also work on other devices and 
> should be used there.

so we are in the process of making it generic so that is up-streamable. 
We are thinking of moving lowpan.sh to 
https://github.com/openwrt/openwrt/tree/master/package/network/utils/wpan-tools 
and have lowpan mac address generation logic in a platform specific script and 
just call that in the lowpan.sh.

However currently we have channel, pan_id, ip address all statically stored 
(etc/config/network) in our case, and we pass these information to lowpan.sh to 
configure the wpan interface.
Comments/critics are welcome.

Sounds like our mechanism is similar to your option 1. Just that you are 
storing the configuration in /etc/config/wpan and we are storing in 
/etc/config/network.
So do you have any other mechanism to configure wpan interfaces? Or is it 
similar to our 
https://github.com/CreatorDev/openwrt/blob/ci40/target/linux/pistachio/base-files/lib/netifd/proto/lowpan.sh
 ?

Please keep us updated.


Thanks and Regards,
Abhijit A. Mahajani



--

Message: 3
Date: Thu, 12 Jan 2017 02:02:05 +0200
From: Anatoliy Atanasov <anatoliy.atana...@gmail.com>
To: openwrt-devel@lists.openwrt.org
Subject: [OpenWrt-Devel] [RFC][netifd]: Support for 802154 devices
Message-ID:
<CA+9JBv89VcFpbziQfAy=LtOBgWop=lqmked3p275hu2pqd3...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hey Folks,

I saw that netifd isn't able to fully manage 802154 devices. At the moment it 
lacks the understanding of wpan settings and definition. If it would be in a 
separate file it would look like:
/etc/config/wpan

config wpan-device radio0
option type 'mac80215'
option channel '11'
option disabled '0' / '1'

config wpan-iface
option device 'radio0'
option pan_id '0xbeef'

I figured two ways to implement this.
The approach #1 is to follow the logic in wireless.h/c which wraps calls to the 
kernel driver in mac80211.sh & netifd-wireless.sh.
The approach #2 is to replicate the wpan-tools code which would add a 
dependency to libnl.

I'm wondering which approach to follow in doing this task?

Regards, Anatoliy
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20170112/bb9633a6/attachment-0001.html>

--

Message: 4
Date: Thu, 12 Jan 2017 10:14:47 +0100
From: Xue Liu <xue@dks-koeln.de>
To: Anatoliy Atanasov <anatoliy.atana...@gmail.com>,
    openwrt-devel@lists.openwrt.org
Subject: Re: [OpenWrt-Devel] [RFC][netifd]: Support for 802154 devices
Message-ID: <8e2fcb0d-c3aa-1951-b0e3-2f4ea573b...@dks-koeln.de>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi Anatoliy,

Actually I am working on it. Now I am writing a program which is similar with 
iwinfo. Later I will make some scripts like mac80211.sh and binding with netifd.

ci40 has already some work on it. You could have a look.

Xue Liu

On 12.01.2017 01:02, Anatoliy Atanasov wrote:
> Hey Folks,
>
> I saw that netifd isn't able to fully manage 802154 devices. At the 
> moment it lacks the understanding of wpan settings and definition. If 
> it would be in a separate file it would look like:
> /etc/config/wpan
>
> config wpan-device radio0
> option type 'mac80215'
> option channel '11'
> option disabled '0' / '1'
>
> config wpan-iface
> option device 'radio0'
> option pan_id '0xbeef'
>
> I figured two ways to implement this.
> The approach #1 is to follow the logic in wireless.h/c which wraps 
> calls to the kernel driver in mac80211.sh & netifd-wireless.sh.
> The approach #2 is to replicate the wpan-tools code which would add a 
> dependency to libnl.
>
> I'm wondering which approach to follow in doing this task?
>
> Regards, Anatoliy
>
>
>
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo

Re: [OpenWrt-Devel] [RFC][netifd]: Support for 802154 devices

2017-01-12 Thread Xue Liu

Hi Anatoliy,

Actually I am working on it. Now I am writing a program which is similar 
with iwinfo. Later I will make some scripts like mac80211.sh and binding 
with netifd.


ci40 has already some work on it. You could have a look.

Xue Liu

On 12.01.2017 01:02, Anatoliy Atanasov wrote:

Hey Folks,

I saw that netifd isn't able to fully manage 802154 devices. At the 
moment it lacks the understanding of wpan settings and definition. If 
it would be in a separate file it would look like:

/etc/config/wpan

config wpan-device radio0
option type 'mac80215'
option channel '11'
option disabled '0' / '1'

config wpan-iface
option device 'radio0'
option pan_id '0xbeef'

I figured two ways to implement this.
The approach #1 is to follow the logic in wireless.h/c which wraps 
calls to the kernel driver in mac80211.sh & netifd-wireless.sh.
The approach #2 is to replicate the wpan-tools code which would add a 
dependency to libnl.


I'm wondering which approach to follow in doing this task?

Regards, Anatoliy




___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


--
M.Sci.

Embedded Software Entwicklung

DKS Dienstleistungsgesellschaft
für Kommunikationsanlagen des
Stadt- und Regionalverkehrs mbH

Robert-Perthel-Str. 79
D-50739 Köln

Fon: +49 221 954442-43
Fax: +49 221 954442-23
E-Mail: xue@dks-koeln.de
Web: www.dks-koeln.de

Geschäftsführung: Christian Döring, Ralf Kochs

Aufsichtsratsvorsitzender: Jörn Schwarze

Sitz der Gesellschaft: Köln

Registergericht: Köln, HRB 4521

UST-IDNr: DE154089761

Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen können Betriebs- oder 
Geschäftsgeheimnisse, dem Anwaltsgeheimnis unterliegende oder sonstige 
vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich 
erhalten haben, ist Ihnen der Status dieser E-Mail bekannt. Bitte 
benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und löschen 
Sie diese E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso dürfen Sie 
diese E-Mail oder ihre Anlagen nicht kopieren oder an Dritte weitergeben. 
Vielen Dank!

Important note: This e-mail and any attachment are confidential and may contain 
trade secrets and may well also be legally privileged or otherwise protected 
from disclosure. If you have received it in error, you are on notice of its 
status. Please notify us immediately by reply e-mail and then delete this 
e-mail and any attachment from your system. If you are not the intended 
recipient please understand that you must not copy this e-mail or any 
attachment or disclose the contents to any other person. Thank you for your 
cooperation.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel