typo3temp/GB/_4223dbddb0.jpg

Configuring an STM 330 Module - Video Transcription


Back

Video Snapshot Step & Description
1. Welcome to the tutorial of configuring an STM 330 Module. Let us start with preparations.
edk300-2.jpg
edk310-2.jpg
2. For this you will need an EDK 300, an STM 330 and a EDK 310 kit. Make sure the TCM 320 is plugged into the EVA 300 board.
3. In this tutorial we will also use DolphinView with a connected GatewaController and DolphinStudio. Make sure the TCM is programmed with the Gateway Controller firmware.
4. The STM 330 is a ready to use temperature sensor. In the example we will configure the wake up cycles, retransmission parameters and profile parameters. It is shipped with a mounted jumper that ensures the learn button has a pull up.
5. To configure it we remove the jumper and plug it into the EVA 330.
6. The STM 330 is already programmed. What we are going to do is to configure it by writing selected values into its configuration area. To configure the module use DolphinStudio and a programmer connected to an Evaluation Board 330.
7. DolphinStudio has an interface to configure modules we just have to select the correct device. Before starting the configuration read out the present values then you can start writing your own.
8. As EEP we select a simple temperature sensor with the range from 0-40 degrees Celsius. The Manufacturer Id specifies the manufacturer. If you you don't have a Manufacturer Id, use the Multi user Id.
9. The sensor measures the value at every wake up. Only if there is a significant change compared to previous value it transmits a data telegram.
10. Significant change is defined by a threshold value. One unit is about 0,16 degrees Celsius. So if we enter 7 it is a little bit above one degree.
11. If there is no significant change the sensor checks if a retransmission of the same value a sort of “still alive” signal should be sent.
12. For example we can specify that if there was no significant change five times in a row, we do a retransmission.
13. To prevent periodical sending, we can also specify a minimum and maximum range of cycles in which the retransmission should happen. The STM then picks a random number from this range.
14. Set the wake up cycle to one second.
15. Write the configuration. Disconnect the STM 330 from the EVA and we are done configuring.
16. Now we have a fully configured STM so let's test it. Put the previously removed jumper back. Make sure the STM is charged. Normally it is enough to let it charge for several minutes on your desk.
17. Switch to DV and connect to gateway controller.
18. By clicking on the learn button a learn telegram is transmitted. It tells the receiver how to interpret data sent by the sensor.
19. This telegram includes the EnOcean Equipment Profile number. DolphinView recognizes the EEP profile. Make sure the EEP matches the previousy set values. If you do not see any measurement values, in the graph just wait for 5 seconds for the next retransmission. If no significant chang has occurred the module waits for the next retransmission cycle.
20. To trigger a significant change you can put your module in fridge. We are using a cooling spray.
21. As the temperature falls we see a transmission every second.
22. The STM Module can also be configured using the hardware PINs. With the PINs we can set the Wake UP cycle and the retransmission range. To activate the hardware PINs settings we have to assign these parameters default values in DolphinStudio, otherwise the hardware settings would be ignored.
23. There are two configuration PINs. By putting the PIN on Ground or letting it unconnected we have 4 possible configurations. Consult the STM 330 manual for details.
24. With a similar approach you can also configure other STM modules like the STM 300 or the STM 310. The logic behid wake up cycles and retransmission stays the same but there are more parameters to set.
25. The STM 31x has no default hardware settings. Instead you can define 4 configurations of wake up cycles and retransmission ranges.
26. With these modules you can measure up to three analog and digital inputs.
27. Additionaly there is the ADIO 2 Pin, which can either be an analog input or measure the quarter voltage of the VDD supply.
28. You can configure the delay time between SWPWR on and the sampling moment of the external sensor and power the sensor only for the nesecarry time.
29. This concludes our tutorial.

Back