This document explains how temperature data can be sent via EV-COG-SMARTMESH1Z configured in the slave mode to the E-manager connected to the users PC. It also explains the software flow and how to view the expected output.
A modular software framework is provided for quick application prototyping. Based on the application use case, developers need to download the respective software packs.
The EV-COG-SMARTMESH1Z interfaced EV-COG-AD3029LZ , software development kit consists of these packs:-
For details on the C-Library, follow thislink
This section gives user a basic understanding on how the software is designed for handling both transmission and reception of packets between the EV-COG-SMARTMESH1Z and EV-COG-AD3029LZ.
To download the software source from Analog Devices Git - click on "SmartMesh-Temperature-Sensor-Software"
The Application level software handles tasks such as invoking API commands, handling API replies and performing user-application specific tasks. The C-Lib later performs HDLC packetization and other tasks there by making it easy for the user to send commands to the EV-COG-SMARTMESH1Z. In the BSP, APIs specific to UART communication aid in sending transmit packets over the UART lines.
When EV-COG-SMARTMESH1Z sends a packet to EV-COG-AD3029LZ, the received packet is written to a circular buffer using the UART specific APIs of the BSP. At the application level software , the circular buffer is continuously checked for data written. When a byte of data is written to the circular buffer, the application level software calls routines that handle the data written to the buffer. The C-Lib processes the received packet and sends a callback to the application level software with only the required field in the received packet.
This section covers the various steps involved in the interface of the EV-COG-SMARTMESH1Z with EV-COG-AD3029LZ and thereby run the C-library on the EV-COG-AD3029LZ and get it to talk to EV-COG-SMARTMESH1Z.
Following are the steps involved :-
Here is the link for working with IAR Embedded Workbench for programming EV-COG-3029LZ which cover topics related to initial settings and project importing tasks and running the projects.
To download an example project to interface EV-COG-SMARTMESH1Z with EV-COG-AD3029LZ click on "SmartMesh-Temperature-Sensor-Software"
The example project sends temperature data or a dummy data to the manager which can be viewed on TempMonitor(GUI) or on the APIExplorer(GUI) of the manager.
End of Document