Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
From: Stefan Schmidt <stefan@osg.samsung.com>
To: michael.hennerich@analog.com, alex.aring@gmail.com, marcel@holtmann.org
Cc: linux-wpan@vger.kernel.org, linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] drivers/net/ieee802154/adf7242: Driver for ADF7242 MAC IEEE802154
Date: Mon, 7 Dec 2015 15:54:48 +0100	[thread overview]
Message-ID: <56659DB8.9060904@osg.samsung.com> (raw)
In-Reply-To: <56657926.5070604@analog.com>

Hello.

On 07/12/15 13:18, Michael Hennerich wrote:
> On 12/07/2015 01:02 PM, Stefan Schmidt wrote:
>> Hello.
>>
>> I found some time at the weekend hooking it up on my raspberry pi.
>>
>> On 04/12/15 13:07, Stefan Schmidt wrote:
>>> Hello.
>>>
>>> On 04/12/15 10:09, michael.hennerich@analog.com wrote:
>>>
>>>> The ADF7242 requires an add-on firmware for the automatic IEEE 
>>>> 802.15.4
>>>> operating modes. The firmware file is currently made available on the
>>>> ADF7242 wiki page here [1]
>>>
>>> Just being curious here. Is there any way to get the firmware source
>>> and/or compile your own? Its the first hardware for IEEE 802.15.4 I
>>> have seen that have a special firmware for this which triggers my
>>> curiosity. :)
>
>
> Unfortunately No - We don't release the firmware assembly code.
> Or the required compiler.
>

Fair enough.

>
>>>
>>> Anyway, this has not that much to do with the driver review here as it
>>> can obviously go in with the binary firmware. We just need to make
>>> sure to also bring the firmware into the linux-firmware repo in time.
>>>
>>>> [1]
>>>> http://wiki.analog.com/resources/tools-software/linux-drivers/networking-mac802154/adf7242 
>>>>
>>>>
>>
>> There are two firmware zip files listed:
>> ram_lab_7242_2_0_ieee15dot4_full_r5.zip
>> <https://wiki.analog.com/_media/resources/tools-software/linux-drivers/networking-mac802154/ram_lab_7242_2_0_ieee15dot4_full_r5.zip> 
>>
>>
>> rom_ram_7242_2_0_ieee15dot4_full_r3.zip
>> <https://wiki.analog.com/_media/resources/tools-software/linux-drivers/networking-mac802154/rom_ram_7242_2_0_ieee15dot4_full_r3.zip> 
>>
>>
>>
>> Both contain a adf7242_firmware.bin file but also some different data
>> file. Which one is the correct one here? Some explanation would be 
>> helpful.
>
> Please use the latest R5 release file. I'll remove the old one soon.
> The older firmware had problems with the back-off exponent randomization.
>

OK

>
>>
>>
>>>> [2]
>>>> http://sourceforge.net/p/linux-zigbee/kernel/ci/devel/tree/drivers/ieee802154/adf7242.c 
>>>>
>>>>
>>>>
>>>> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
>>>> ---
>>>>   .../devicetree/bindings/net/ieee802154/adf7242.txt |   18 +
>>>>   drivers/net/ieee802154/Kconfig                     |    5 +
>>>>   drivers/net/ieee802154/Makefile                    |    1 +
>>>>   drivers/net/ieee802154/adf7242.c                   | 1183
>>>> ++++++++++++++++++++
>>>>   4 files changed, 1207 insertions(+)
>>>>   create mode 100644
>>>> Documentation/devicetree/bindings/net/ieee802154/adf7242.txt
>>>>   create mode 100644 drivers/net/ieee802154/adf7242.c
>>>>
>>>> diff --git
>>>> a/Documentation/devicetree/bindings/net/ieee802154/adf7242.txt
>>>> b/Documentation/devicetree/bindings/net/ieee802154/adf7242.txt
>>>> new file mode 100644
>>>> index 0000000..dea5124
>>>> --- /dev/null
>>>> +++ b/Documentation/devicetree/bindings/net/ieee802154/adf7242.txt
>>>> @@ -0,0 +1,18 @@
>>>> +* ADF7242 IEEE 802.15.4 *
>>>> +
>>>> +Required properties:
>>>> +  - compatible:        should be "adi,adf7242"
>>>> +  - spi-max-frequency:    maximal bus speed (12.5 MHz)
>>>> +  - reg:        the chipselect index
>>>> +  - interrupts:        the interrupt generated by the device via pin
>>>> IRQ1.
>>>> +            IRQ_TYPE_LEVEL_HIGH (4) or IRQ_TYPE_EDGE_FALLING (1)
>>
>>
>> IRQ1 would be pin7 on the interface connector, right? I'm using this one
>> but I have trouble when transmitting
>
> Yes IRQ1 is Pin7 on the PMOD connector.
>

Good, so my wiring was ok.

>>
>> adf7242 spi32766.0: Error xmit: Retry count exceeded Status=0x3
>
>
> That's failure NOACK. Is there a node on the same channel/PAN which 
> could response?
> reading proc/interrupts should show some interrupts in this case...
>

Turns out it was a failure on the configuration side of the other node. :/
I had security enabled on the other node and my reset scripts did not 
catch this. Disabling it and rebooting the node made it work.

Which means I can confirm that IEEE 802.15.4 (wpan-ping) as well as 
6LoWPAN (ping6) communication between a at86rf233 and the adf7242 works 
fine. Nice!

regards
Stefan Schmidt

  parent reply	other threads:[~2015-12-07 14:54 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04  9:09 [PATCH] drivers/net/ieee802154/adf7242: Driver for ADF7242 MAC IEEE802154 michael.hennerich
2015-12-04 12:07 ` Stefan Schmidt
2015-12-07 12:02   ` Stefan Schmidt
2015-12-07 12:18     ` Michael Hennerich
2015-12-07 13:25       ` Alexander Aring
2015-12-07 13:34         ` Michael Hennerich
2015-12-07 14:12           ` Alexander Aring
2015-12-08  8:07             ` Michael Hennerich
2015-12-08 15:53               ` Alexander Aring
2015-12-08 16:02                 ` Michael Hennerich
2015-12-09 10:31                   ` Alexander Aring
2015-12-10  0:04                     ` Stefan Schmidt
2015-12-07 15:08         ` Stefan Schmidt
2015-12-07 14:54       ` Stefan Schmidt [this message]
2015-12-07 12:47   ` Michael Hennerich
2015-12-07 13:53     ` Alexander Aring
2015-12-08  8:43       ` Michael Hennerich
2015-12-08 17:11         ` Alexander Aring
2015-12-09  9:53           ` Michael Hennerich
2015-12-09 14:55             ` Alexander Aring
2015-12-09 16:09               ` Michael Hennerich
2015-12-07 15:03     ` Stefan Schmidt
2015-12-04 12:42 ` Christopher Friedt
2015-12-04 13:34 ` kbuild test robot
2015-12-04 13:41 ` kbuild test robot

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=56659DB8.9060904@osg.samsung.com \
    --to=stefan@osg.samsung.com \
    --cc=alex.aring@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-wpan@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=michael.hennerich@analog.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox