ZHCU737A June   2016  – May 2019 TPS3828

 

  1.   修订历史记录

TIDC-HYBRID-WMBUS-PLC Software Example

This example project is provided as a working example that may be used as baseline software for end-product development. The example runs on top of TI-RTOS in the ARM™ Cortex-M3. For PLC communication, the default configuration in the example is set to CENELEC-A, TMR ON and the TX level of 0x20 (maximum). The wireless M-Bus RF configuration is defined in smartrf_setting.c. The pre-compiled binaries are available in the directory of debug. The wireless M-Bus can be configured as one of three modes C-, T-, or S-mode) by enabling one of them in application/config.h. The debug_RF_only configuration run a standalone W-Mbus communication to test with the Hybrid W-Mbus and PLC solution. The debug_RF_only configuration enables ECHO_BACK_MODE macro to respond back to the Hybrid WMBUS-PLC node with the same data received from the node.

To run the software example with different PLC frequency bands of FCC or ARIB, change the following one-line code in the init_plcHandler() to TONEMASK_FCC_FULL_BAND or TONEMASK_FCC_ARIB_54. The TX power level and TMR configuration may also be changed in the same function.

Figure 13 shows the PLC frequency band.

Figure 12. PLC Frequency Band ConfigurationTIDC-HYBRID-WMBUS-PLC plcHandle_TIDUBS4.gif

The software example runs simultaneous transmissions (sending data to both RF and PLC channels). In addition, the RF-PLC repeater feature can be supported on top of the simultaneous transmissions by enabling RF_PLC_REPEATER macro definition in the software.

Figure 14 shows the overall software architecture that consists of five tasks shown in the following list:

  • uartRXTask
  • PLCStateMachineTask
  • RFTxTask
  • PLCTxTask
  • applicationTask
Figure 13. Hybrid WMBUS/PLC Example Software ArchitectureTIDC-HYBRID-WMBUS-PLC TIDC-HYBRID-WMBUS-PLC-software-state-machine.gif