This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530: Run smartlight & smart switch demo

Part Number: CC2530
Other Parts Discussed in Thread: , Z-STACK

Hi,

I have 2 custom CC2530EM boards which does not have LCD or Joystick and I want to run the demo as follow

1 CC2530EM (EndDevice) run as smartlight <---> 1 CC2530 EM (Coordinator) run as smartswitch

My question is:

1. How can the discovery process take place?

1. Which part in the SmartLight & Switch project should I remove LCD and Joystick part?

Thank you very much

  • One more question:
    Is this possible if we can run smartlight or smartswitch demo on a single CC2530EM or the EM is only capable of running ZNP and leave the ZAP for the host?
  • Hi,

    The CC2530 can support all ZigBee device types (Coordinator, router, end device) in standalone operation mode, i.e. you do not need to run it in ZAP-ZNP mode.

    If you are using Z-Stack 3.0, you will need to start BDB commissioning on both devices in order for these devices to form/join networks. You can search for the API bdb_StartCommissioning() in the sample applications (zcl_samplelight.c for instance) to see how this API is used. Are both your devices running in ZAP-ZNP mode? If so, you can follow this guide on how to bring the network up:

    sunmaysky.blogspot.tw/.../use-ztool-z-stack-30-znp-to-set-up.html

    If you are not using ZAP-ZNP mode you will need call the bdb_StartCommissioning() API on both devices via some kind of external input like a button press, or you could do something like use an OSAL timer + event that is started after the device initializes.
  • Hi JasonB,

    Thank you so much for the reply.

    Let me clarify more about the setup:

    - The CC2530EM mounted on the motherboard (or shield) which is the IO expansion board with LED, button press and UART.

    So I think my devices are running in STANDALONE mode NOT ZAP-ZNP mode. Is it correct?

    I also have some additional question may hope that you can enlighten me :)

    1. Based on your reply, CC2530EM can run standalone mode which means that it is capable of running all the example projects within Z-Stack 3.0. Is it correct?

    2. How can I disable LCD and Joystick within the smartlight project and declare the external input instead?

    3. How can I enable UART in cc2530 for debugging?

    Thank you very much for the support

  • 1. Yes, it's correct.
    2. You can remove LCD_SUPPORTED=DEBUG from "Defined symbols" in smartlight project options to disable LCD. For Joystick and declaring the external input instead, you have to revise hal_key.c to do it.
    3. Try to refer to sunmaysky.blogspot.tw/.../how-to-use-two-uart-ports-in-cc2530-z.html
  • Thank you so much YiKai Chen.

    I will follow your instruction.