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.

CC2531: Z-Stack MAC Send/Recv Demos

Part Number: CC2531
Other Parts Discussed in Thread: Z-STACK, TIMAC, SMARTRFTM-STUDIO, , CC-DEBUGGER, , Z-STACK-ARCHIVE

Hi,

I'm looking for some examples how to send and receive MAC frames (802.15.4 raw) with Z-Stack via serial.

  • Try to see if examples in TIMAC can provide this capability for you.
  • I found TI-MAC_LinuxSampleApp-1.5.2-installer.run

    In Win10 Ubuntu I can't install it with some error

    So I can't see the source.

    The other code is much to complex to get out how to set a frequency, get receive running and packets forwarded to serial.

    I also tried Z-Tool, but Mac-Interface seems not to be implemented in IDE there.

    I'm afraid it will take days to get the setup together from the Chip / API Manuals, quite hard to get into the product.

  • Try to run TI-MAC_LinuxSampleApp-1.5.2-installer.run on a Desktop 32 but Ubuntu version.

  • Hi Ingo,

    SMARTRFTM-STUDIO accomplishes this through UART, you could evaluate with the firmware installed by this software and further understand the communication using a logic analyzer.

    Regards,
    Ryan
  • I have installed it, unfortunately it doesn't find my CC2531, while Z-Tool does and reports follow version:

    <TX>09:01:40.8 COM5 SYS_VERSION (0x2102)

    <RX>09:01:40.8 COM5 SYS_VERSION_RESPONSE (0x6102)
    TransportRev: 0x02
    Product: 0x00
    MajorRel: 0x02
    MinorRel: 0x06
    HwRev: 0x03
  • Are you using a CC2531EMK or custom PCB? You may need a CC-DEBUGGER to access the UART channel.  Z-Tool accepts a USB connection which you might be using instead.

    Regards,
    Ryan

  • I have a CC2531USB, for Windows it's just COM5.
    Can't SMARTRFTM-STUDIO 7 talk via a COM-Port?

    I will have another look at the Z-Stack Monitor and Test API, may be I can send and receive with AF-Layer.
    Z-Tool scripting talks JScript.net and seems like MS doesn't support that anymore in last IDEs.

    I don't know if the MAC-Layer of Z-Stack is compatible with TiMAC, i've got the TiMAC linux examples compiled on raspberry pi, but get lot's of error messages after connected to CC2531 as return for the TiMacCoOp commands.
  • SMARTRFTM-STUDIO 7 requires an evaluation board XDS interface or CC-DEBUGGER connection, the CC2531EMK alone will not suffice.

    Be warned that AFDataRequest will transmit Zigbee packets like shown in part 2 of this SLA lab: dev.ti.com/.../zigbee_03_fundamentals.html

    Although not provided for the latest Z-Stack, you can still use the example scripts from Z-STACK-ARCHIVE HA 1.2.2a as a reference for your own Z-Tool 2.7.1 script.

    No, Z-Stack cannot interpret TiMacCoOp commands.

    Regards,
    Ryan