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.

CC1352P7: External MCU communication with CC1352 Wi-sun network node

Part Number: CC1352P7
Other Parts Discussed in Thread: ENERGYTRACE,

Hi!

Thank you for your sharing. I can't compile the project in CCS. I don't know about TI Clang Compiler. First of all, how can I compile the project in CCS?

I want to communicate with an external MCU via AT commands. I want to turn off the CC1352 Wi-Sun node periodically.

I'm trying to design a battery-powered wireless network by communicating with a low-power external MCU.

Your project can be very helpful in this regard.

Thank you.

  • Hi Gazi,

    I would suggest you to ask the developer of the application directly 

    But looking at the repository, it seems like there is no .project/.cproject/.ccsproject that Code Composer studio can open.

    It also seems like you need to setup the path to the compiler and build tools (which are installed by CCS), so, to build that project, I would recommend you to use either WSL or Ubuntu.

    Then you have to follow the compile instructions: https://github.com/okrasolar/wisun_iot_modem#compile

    Regards,

    Arthur

  • Thank you for your quick reply. I want to develop a battery powered waste water monitoring system by using wi-sun network. 

    I reviewed the cc1352 ns_coap_oad project and related documents. What can you say about the power consumption of this project? Sending data a few times a day will be sufficient. We want to change the frequency of sending data from the border router at any time. What are your suggestions on this matter?

  • Gazi,

    Given that you are using the coap projects, I would suggest you to interrogate the nodes when you actually need to. You do not have to set an interval in that case.

    Please note that the Wi-SUN does not permit the device from going into standby mode, which, depending on your battery, can be an issue.

    I would suggest you to try the projects, and evaluate the power consumption by yourself using EnergyTrace.

    Regards,

    Arthur

  • Hello,

    we currently don't have support for CCS. You would just clone your project and compile on the command line as described in README compile instuctions.

    Regarding turning on/off the CC1352P7 externally, I think the best way to do so is pulling the reset pin. We could theoretically add an AT command to put it into deep sleep, but then we still need another mechanism to wake it up.

    Best!

    Georg

  • Hello,

    First of all thank you for your reply. I don't know about TI Clang compiler. There is not enough resources and videos to learn about it. I want to use your project if i compile. There are ultra low power MCU like MSP430. MSP430 can control CC1352P7 Wi-sun network by using your AT command project. I have 5 CC1352p7 launchpads. If i want to develop more AT command, what can i do? As you know TI wi-sun stack doesn't provide Leaf Node stack. Silicon Labs support Leaf Node Stack(https://docs.silabs.com/wisun/1.7/wisun-lfn/). In most case Leaf Node requires. TI CC1352P7 has some advantages. I want to develop Leaf Node other way. 

  • Hey Gazi,

    can you provide some more details what problems you are experiencing when trying to compile? What host platform / operating system are you on?

    Our compile instructions are meant to run on a standard Linux terminal. You download and install the requirements, set your paths accordingly and then type the commands to compile.

    If you are on Mac or Windows, there is also a Dockerfile you can use to provide necessary environment.

    Best,

    Georg

  • Hi Georg,

    I don't know about TI Clang Compiler. I haven't use this compiler in Linux. My operating system is Windows. I use CCS for other the Wi-sun projects. Can I use TI Clang Compiler on Windows without CCS? 

    By the way how can i add more AT command functionality to your project?

    Thank you!

    Gazi

  • Hi Gazi,

    You can install the compiler separately: https://www.ti.com/tool/download/ARM-CGT-CLANG/3.2.1.LTS

    Regards,

    Arthur

  • Hi!

    I will try to create the project in CCS. What do you suggest?

    Reagrds

    Gazi

  • To add more AT commands, you would add a callback function to application.c and then add it to static struct cat_command cmds[]

    The AT parser uses libcat, which has more documentation and examples:

    https://github.com/marcinbor85/cAT