All of lore.kernel.org
 help / color / mirror / Atom feed
* Reversed Payload Bits?
@ 2016-04-03 18:35 Remi Philippe
  2016-04-04  8:04 ` Alexander Aring
  0 siblings, 1 reply; 3+ messages in thread
From: Remi Philippe @ 2016-04-03 18:35 UTC (permalink / raw)
  To: linux-wpan

Hello,
A generic question, have you ever run into issues such as payload bits
arriving reversed (AT86RF215 to CC1200 on Contiki, but I guess it
would be the same for AT86RF230)?

At first look it could have been and endianess problem, but I don't see why...

Thanks,
Remi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reversed Payload Bits?
  2016-04-03 18:35 Reversed Payload Bits? Remi Philippe
@ 2016-04-04  8:04 ` Alexander Aring
  2016-04-05 12:20   ` Remi Philippe
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Aring @ 2016-04-04  8:04 UTC (permalink / raw)
  To: Remi Philippe; +Cc: linux-wpan

On Sun, Apr 03, 2016 at 10:35:29PM +0400, Remi Philippe wrote:
> Hello,
> A generic question, have you ever run into issues such as payload bits
> arriving reversed (AT86RF215 to CC1200 on Contiki, but I guess it
> would be the same for AT86RF230)?
> 

- which layer? MAC, 6LoWPAN?

- bit or byte ordering?


If you code something and missed byteordering handling you can check it
with:

make C=2 net/ieee802154/ net/mac802154/

this requires the software "sparse".

_But_ this works only if you use correct the byteorder typedefs such as
"__le16", etc...

> At first look it could have been and endianess problem, but I don't see why...
> 

Which contiki version? I tested 2.6 with some self ported board only.
I know versions below had some fragmentation issues, which you not use.

- Alex

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reversed Payload Bits?
  2016-04-04  8:04 ` Alexander Aring
@ 2016-04-05 12:20   ` Remi Philippe
  0 siblings, 0 replies; 3+ messages in thread
From: Remi Philippe @ 2016-04-05 12:20 UTC (permalink / raw)
  To: Alexander Aring; +Cc: linux-wpan

Thanks Alex, will look into your suggestion. It seems it's a bit reversal issue.
Contiki is 3.0 (master)

I just noticed that we were playing with the RPi version which doesn't
integrate most of the patches of bluetooth-next. Will first try to
create a diff between RPi and 802154 related to see if it fixes the
issue.

On Mon, Apr 4, 2016 at 12:04 PM, Alexander Aring <alex.aring@gmail.com> wrote:
> On Sun, Apr 03, 2016 at 10:35:29PM +0400, Remi Philippe wrote:
>> Hello,
>> A generic question, have you ever run into issues such as payload bits
>> arriving reversed (AT86RF215 to CC1200 on Contiki, but I guess it
>> would be the same for AT86RF230)?
>>
>
> - which layer? MAC, 6LoWPAN?
>
> - bit or byte ordering?
>
>
> If you code something and missed byteordering handling you can check it
> with:
>
> make C=2 net/ieee802154/ net/mac802154/
>
> this requires the software "sparse".
>
> _But_ this works only if you use correct the byteorder typedefs such as
> "__le16", etc...
>
>> At first look it could have been and endianess problem, but I don't see why...
>>
>
> Which contiki version? I tested 2.6 with some self ported board only.
> I know versions below had some fragmentation issues, which you not use.
>
> - Alex

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-05 12:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-03 18:35 Reversed Payload Bits? Remi Philippe
2016-04-04  8:04 ` Alexander Aring
2016-04-05 12:20   ` Remi Philippe

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.