All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>,
	linux-wpan@vger.kernel.org
Subject: Re: [RFC] the problem of on-the-wire byte order in ieee802154
Date: Fri, 29 May 2015 10:31:46 +0200	[thread overview]
Message-ID: <20150529083145.GA3709@omega> (raw)
In-Reply-To: <20150529080821.GO11340@wantstofly.org>

On Fri, May 29, 2015 at 11:08:21AM +0300, Lennert Buytenhek wrote:
...
> > That the PSDU should send in little endian is specified in section:
> > 10.2.3 Bit-to-symbol mapping
> > 
> > "Each octet of the PPDU is processed through the modulation and spreading
> > functions, as illustrated in Figure 69, sequentially, beginning with the
> > Preamble field and ending with the last octet of the PSDU. Within each octet,
> > the least significant symbol (b0,b1,b2,b3) is processed first and the most
> > significant symbol (b4,b5,b6,b7) is processed second."
> 
> This is about bit ordering, not byte ordering -- and it's consistent
> with what I have been saying before -- it explains why the I/G bit
> is transmitted first, even though it is the 0x01 bit in the first
> address byte.
> 

I need to lookup more information about this.

I know this not an argument, but let us think about if we change the byte
order there. This means that SAM/DAM decompression/compression BIT 11 is wrong [0].
(The remaining 64 bits are computed from the encapsulating header (e.g.,
802.15.4 or IPv6 source address)...)

That also means that wireshark, contiki, etc. will all do currently the wrong
byte ordering at L2. I currently can't believe that and we should really
clarifying this issue before we change this. Otherwise we are
incompatible with the whole 802.15.4 IoT used software outside.

- Alex

[0] https://tools.ietf.org/html/rfc6282#section-3.1.1

  reply	other threads:[~2015-05-29  8:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-28 14:09 [RFC] the problem of on-the-wire byte order in ieee802154 Lennert Buytenhek
2015-05-28 14:27 ` Phoebe Buckheister
2015-05-29  4:17   ` Lennert Buytenhek
2015-05-29  7:44     ` Alexander Aring
2015-05-29  8:08       ` Lennert Buytenhek
2015-05-29  8:31         ` Alexander Aring [this message]
2015-05-29  8:53           ` Simon Vincent
2015-05-29  9:11             ` Alexander Aring
2015-06-01 13:49               ` Lennert Buytenhek
2015-06-01 14:01                 ` Alexander Aring

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=20150529083145.GA3709@omega \
    --to=alex.aring@gmail.com \
    --cc=buytenh@wantstofly.org \
    --cc=linux-wpan@vger.kernel.org \
    --cc=phoebe.buckheister@itwm.fraunhofer.de \
    /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.