KW40Z IEEE 802.15.4 2006 How to send data

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

KW40Z IEEE 802.15.4 2006 How to send data

1,493 次查看
michaele
Contributor II

Hey,
we have the FRDM-KW40Z Devboard.
Is there a step by step documentation for the IEEE 802.15.4 2006 communication?

In the Reference Manual are only the registers described, but not what needs to be initialyzed first, how to proceed...  We don't need a full stack, we just want to send data frames with a PAN and Short address and receive the Ack frame.

I guess we have to start sth with init PLL, wait for PLL, configure xcvr and so on...

Can someone help, please?

标签 (1)
标记 (2)
2 回复数

1,062 次查看
michaele
Contributor II

Hello again,
meanwhile, we are able to send our data. We use the ZLL Transmit/Receive Sequence like you do in the example projects:
We have another device, that answers on our frame (this is not a FRDM-MKW40Z, it's from another project). The answer frame is visible in the screenshot below.

/* Disable Dual Pan, Use PAN0 */

    ZLL_WR_DUAL_PAN_CTRL_DUAL_PAN_AUTO(ZLL, 0);

    ZLL_WR_DUAL_PAN_CTRL_ACTIVE_NETWORK(ZLL, 0);

    /* Set Adresses:  Short, PAN */

    ZLL_WR_MACSHORTADDRS0_MACPANID0(ZLL, 0xC000);

    ZLL_WR_MACSHORTADDRS0_MACSHORTADDRS0(ZLL, 0xC5DB);

    /* Start the TX / TRX / CCA sequence

  0 I (IDLE)
  1 R (RECEIVE)

  2 T (TRANSMIT)

  3 C (CCA)

  4 TR (TRANSMIT/RECEIVE)

  5 CCCA (CONTINUOUS CCA) */

ZLL_BWR_PHY_CTRL_XCVSEQ( ZLL, 4u);

Screenshot: We send the long frame and want to receive the answer frame

pastedImage_17.png


Q1: Where is the received data? The content of the ZLL_PKT_BUFFERn stays unchanged, even when we try the standalone Receive Sequence in continous mode. :smileysad:
Q2: How long stays the Tansmit&Receive Sequence in the receive state?

We went through all documentation we found and also example projects, but we can not find the answer what is going wrong that we can not receive the answer frame :smileysad:


Can anyone help please?

Michael

0 项奖励
回复

1,062 次查看
mihaidragnea
NXP Employee
NXP Employee

Hi Michael,

You may start by downloading the Kinetis KW40Z Connectivity Software: NXP Freedom Development Platform for Kinetis |NXP

The download is available under Protocol Stacks.

After installing it, you may find 4 example projects for IEEE 802.15.4 MAC/PHY at the following relative path:

..\KW40Z_Connectivity_Software_1.0.1\ConnSw\examples\ieee_802_15_4\

Moreover, in the "doc" folder you can find extremely useful documentation about the NXP implementation of IEEE 802.15.4 MAC/PHY spec.

Hope this helps.

Best Regards,

Mihai Dragnea

Senior Connectivity Systems Engineer