Preparing the Zigbee Light Link Demo for Mesh Bee

This post describes the actions required to prepare the NXP Zigbee Light Link demo project (JN-AN-1171) for editing in Beyond Studio. After these steps you will be able to navigate and edit the code and upload the resulting binaries to any JN516X chip, including a Mesh Bee.

Install Beyond Studio following the installation instructions (JN-UG-3098), don’t forget the Zigbee plugins (section 1.2.3). After this, the demo project  can be imported to your workspace.

Import existing project

Pick the location of the JN-AN-1171 demo project, and select the preferred options.

Import project

Clicking Finish will import the project into your workspace.  At this point the application should build and the resulting binary can be loaded into a MeshBee.

By default the project includes a reference to an older SDK version (JN-SW-4168) this causes the indexing to fail, making editing the code practically impossible. To resolve the indexing problem, open the properties by right-clicking on the root of the project and include the current SDK. With a default installation the path to include is: C:\NXP\bstudio_nxp\sdk\JN-SW-4168\Components\Common\Include. I’ve added this for all configurations to the GNU C language.

Include the SDK

Rebuilding the application will automatically add the required includes:

The includes are added after the build

Now, just rebuild the index and everything should resolve.

Rebuild index

At this point you can edit, navigate and upload the code to a Mesh Bee.

Please feel free to ask questions and share your own projects.

Author: Peter

Comments

  1. Pingback: Innr SmartPlug for Philips Hue - part 2 - SevenWatt

  2. Hi,

    thanks for providing such detailed setup guidance which got me up and running quite quickly. The only thing that I stumbled over was the format of the path string… Copy and Paste from WIndows Explorer is not the optimum solution, I discovered. Doing this, the path gets pasted with “\” (Backslashes) instead of normal (forward, unix-like) slashes. Which, of course, will not be accepted by Eclipse.

    So, don’t be surprised if there are still more that 300 unresolved dependencies when building (which is a matter of cosmetics because the build will succeed, anyway).

  3. Hi,

    another little hiccup I experienced during my Eclipse setup: the plugins (ZPS configuration and OS Editor) didn’t get to be installed during the original setup process (did as told in the setup guide). Menu “Help -> Install New Software -> Available Software Sites” was showing the paths to the plugins contained in the SDK (JN-SW-4168) but these were listed to be without content. So, no content, no plugins…

    Reinstalling plugins as per JN-UG-3098 v1.2 (section 1.2.3, pp 14) led to correct registration of the plugins.

  4. Would you need to add ZLL master key to connect it Philips Hue, after you do all this steps, or is it already included in the NXP sample code?
    If you need to add it do you know where in the code?

    Thanks

    MM

  5. Hi

    How did you change invoke command:
    make LIGHT=Light_ExtendedColorLight OTA=1 JENNIC_CHIP=JN5169 all

    to JN5168?

    I cannot find way to change it so I can build it on Meshbee

    Thanks

    MM

  6. Hi all
    For update include path => I add path string… Copy and Paste from WIndows
    And all Include path in souce file have enabled
    but. When I rebuild the project => still have errors
    Anyone can help me resolve this? Thanks

  7. Dear all.
    For add include path : I copy path string from WIndows => Paste to Studio
    But After that I make build project and still have errors
    Such as: tsZLL_DimmableLightDevice,eState = E_WAIT_LEAVE_RESET
    But i don’t know why. Anyone can help me? Thanks

  8. I have included the new 4168 (both the V1620 and the V2162) but there’s only 1 file added.
    “jendefs.h”

    Isn’t this SDK supported anymore?

Leave a Reply to AkiraTan Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.