Home
Application Note 501: SMART ACK – Bi-directional
Contents
1. 50 9 1 AN EI en er 50 8 2 Bul Or Maver MEET Tm mm 51 8 3 LIVOU v 52 gt APPLICATION NOTE 501 Green Smart Wireless enocean 7 Appendix EA DOGM132 5 7 1 Command table BEFEHLSTABELLE Command Code 4 Column address set Most sets the most significant 4 bits of the display upper bit column address RAM column address Column address set Least significant Sets the least significant 4 bits of the display column address column address Sets the display RAM address SEG output correspondence 10 normal 1 reverse 8 Display normal Sets th LCD display normal reverse T E 1 d 10 Display all points 7 DIBEEEXERI regulator internal resistor ratio set 18 Electronic volume mode set Set the output voltage Electronic volume electronic volume register static indicator register select booster ratio 00 2x 3x 4x Display OFF and display all points ON compound command APPLICATION NOTE 501 Green Smart Wireless 7 2 Initialization example INITIALISIERUNGSBEISPIEL Interne Spannungserzeugung single supply 2 4 3 3V Applikationen LOW POWER und WIDE RANGE Initialisation example for single s
2. 11 2 1 3 Reset Bit 11 2 1 4 PCEIOM ee ae 13 2l TITIO E nee er Vera een rent 13 2 1 6 OCCUPATION I USD 14 2 1 7 I T 14 2 1 8 PCT LEAR N MNM 15 2 1 9 PS ee ee 15 2 2 Radio Telegram Data Telegram 1 2 4 4 4 18 2 3 DISDIOY qe c 19 2 3 1 Hardware 2 2 2 4 1 4 1 1 6 3 20 SPLPIOLICO BERNER TT TT 21 2 3 3 GiraprilGal rre 21 2 3 4 Energy efficient LCD display operation Challenges 23 2 3 5 Handling of LCD display supply range used method 25 2 3 6 Handling of LCD display supply range optional method 25 2 3 7 Start up time dimensioning Of meme 26 2 3 8 Start up time STM300 Firmware requirements 27 2 3 9 Start up time SMART requirements 2 4 27 2 4 How to evaluate Energy 222222222222 27 APPLICATION NOTE 501 Green Smar
3. Update learned sensor list in FLASH memory memory sufficient to learn in the sensor yes Find a free entry in learned sensor list no LEARN IN ound a free entry yes 1 LearnIn LED on CH3 Y LearnOut LED off CH2 Inform API that sensor i lt discarded Inform API that sensor Y can t be learned Add Sensor to learned sensor list Y Inform API that sensor is learned out Y Update learned sensor list in FLASH memory Figure 33 ExecuteLearn flowchart APPLICATION NOTE 501 SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY Green Smart Wireless enocearr First the result of the learn process is requested Then it is check if the sensor was already learned in previously In case it was already learned in it is learned out The Learn Out LED CH2 is turned on The API is informed that it was decided to learn out the sensor The sensor is deleted from the learned sensor list and the list is stored backup in FLASH memory In case the sensor was not learned in already the quality of the radio link is evaluated and if there is sufficient memory space to learn store a further sensor If not the API is in formed that the learn is discarded because of either radio link quality or memory limita tions If the radio link quality was good enough and there i
4. APPLICATION NOTE 501 Green Smart Wireless 2 3 5 Handling of LCD display supply range used method One of the limitations of the used LCD display is the required minimum analog supply VDD2 which has to be above 2 4V Below this voltage the display shows flickering and other un wanted behavior For this reason the display is only activated if the stored energy voltage is sufficient to turn the display on also see 2 1 9 Action SET SET The criteria used for this is the measured voltage on the long term storage capacitor Figure 24 Supply Principle C LT Figure 24 shows the relevant principle circuitry If the voltage on Cypp is decreasing due to the current consumption of the module the diode will start to become conducting The vol tage difference between the two capacitors will be depending on the forward voltage U of the diode and the internal source resistance of the long term capacitor Temperature Characteristics Internal Resistance 500 400 300 200 Internal Resistance Q 30 20 10 0 10 20 30 40 50 60 70 Temperature C Figure 25 Internal resistance of Actual measurements showed that the maximum voltage drop on the diode is in about 0 3V The voltage drop due to current consumption is in the range of 0 3V This results in the criteria for the LCD display turn on of a voltage on the long term storage capacitor of at least 3V g
5. APPLICATION NOTE 501 Green Smart Wireless SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY Status of previous SMART ACK activity Not used Data received after first data reclaim Data received after second data reclaim DataO Bit 7 4 Data received after third data reclaim No data received after 3 tries Signal e g MB empty No SMART ACK controller known Initial state Bit3 is set to 1 to be compliant with EnOcean Equipment Profiles EEP Bit3 0 teach in telegram Bit3 1 data telegram 32bit ID of telegram source 0x0000 0001 0xFFFF Reserved 0 0000 0000 Status Status information field 0x00 DataO Bit 3 0 SrcID Checksum Checksum of the radio telegram Calculated checksum 2 3 Display The display selected for this demonstration is the EA DOGM 132 also see 6 DOGM GRAFIK SERIE 132x32 PIXEL datasheet Stand 1 2009 It s a graphical LCD display with 132x32 pixels This display was chosen for it s low power consumption typically 140uA and relative wide operating voltage range 2 4V 3 3V Also the easy availability e g for end customers was taken into account This display uses the ST7565R LCD display segment driver IC also see 5 Sitronix ST7565R 65 x 132 Dot Matrix LCD Controller Driver datasheet V1 5 2006 03 10 The driver IC is integrated onto the LCD display glass COG Chip On Glass The LCD display has the following features low current c
6. The smack sendDataTelegram API function sends the data to the post master which put the data into a mail box for the receiving sensor see 1 3 4 Normal operation This means in case the controller itself acts as post master the tele gram is not actually send but stored in the mail box Otherwise if the post master is lo cated on a different controller the telegram is send via radio dump Toggle Radio LED Y Output radio telegram on serial interface egram fro m rned sensor y t Toggle known Sensor yes Increment Ttarget ensor SET en pressed y Decrement Ttarget v Prepare Return data telegram Send return data telegram no Next sensor All sensors checked yes Figure 31 Radio processing flowchart gt APPLICATION NOTE 501 Green Smart Wireless 3 1 4 SMART processing Due to the complexity of the SMART ACK handling its not possible to execute all task during interrupt processing That why all the time critical routines are executed by the API during interrupts and some of the none time critical routings have to be manually triggered by the application software smack processController amp u8ShadowBuffer Triggering the SMART ACK process controller returns the state of the SMART ACK controller which
7. its also possible to use the Keil uVision tool chain to do the FLASH download not described here Select Programmer port from the dropdown menu in upper left fos DolphinStudio File View Tools Help 13 EQUDBLOHA COMI EOS YRGWEFA COMI 3 EQUDBLOHA Fra g rammer Files Location Programmer esse ses APPLICATION NOTE 501 Green Smart Wireless 6 Select Tab EOPX Programmer Programmer and select Browse file SMART ACK Controller hex 7 Select Operation Write with the options as shown in Figure 35 8 Press button Execute to start programming 9 Now the SMART ACK controller is ready for use DolphinStudio File View Tools Utilities Help G COMI3 EOUDGLOHA 2 EO3000IAPI Configuration EOPX Programmer Programmer Programmer Files Location Program area CH CDROMISMART_ACK_Controller hex Modul Information Configuration area Controller cfg hex Modul Configuration System Log Operations Read XRam Blank Misc Output Execute Connect Read configuration area to buffer Store configuration area to backup Erase and write program area Erase and write configuration area Options check Skip BIST Built In Self Test Skip reset chip C Skip verification Parameters port EOUD6LOHA write Fprg C YCDROMYSM
8. teway This allows displaying the current in the HVAC system set temperature value Upon user interaction SET button pressed the command to increase decrease the target temperature value is send to the gateway Resulting in an increased decreased target tem perature value being returned and displayed on the room controller s LCD display Sends SMART ACK Sensor actual temperature SMART ACK Controller SET command SET Learn Occu Receives o o target temperature Room Controller Figure 2 Demo System The demo system was developed based on the EnOcean developer kit EDK300 This kit contains two evaluation boards First the EVA300 which is the evaluation board for the TCM300 module transceiver mod ule This board is used as SMART ACK controller Typically a SMART ACK controller would be a gateway between the EnOcean radio on one side and a building network like LON TCP IP etc on the other A detailed description of the SMART ACK controller is given in chapter 3 SMART ACK controller EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 2 54 APPLICATION NOTE 501 Green Smart Wireless SMART BI DIRECTIONAL THERMOSTAT WITH DISPLAY Figure 3 Evaluation board EVA300 Secondly the EVA320 which is the evaluation board for the STM300 module sensor mod ule This board is already equipped with a s
9. Sensor visually interpreted EnOcean Equipment Profile RORG 0xA5 4BS Telegram Set Profile FUNC Ox3F UNIVERSAL TYPE 0 00 Smart Ack Sensor Demo Telegram Learn Telegram N A Data Telegram Interpretation FTT TEE 122 11 12 HE 2 1 2 2 2 9 0 9 2 1 12 4 15 7 5 0 14 41 00 14 41 10 14 41 20 14 41 20 14 41 40 14 41 50 A Temperature T actual 29 65 C 40 C 14 41 00 14 41 10 14 41 20 14 41 30 A Voltage Long Term Storage 3 23 V 3 6 0000 OPTIONALLY when you have a third device to capture radio communication 9 Select the SMART ACK Controller in the Unassigned list and put it by a left double click to the Workspace You can identify the controller as the device that answers sends a telegram after you press the SET o
10. VDD Analog suppl VDD2 IOsppl vss j Grund Table 2 LCD Display signals CAP3P 3 EADOGM132 5 vw Single Suppl a uas vss 126 s 33 Boves 36 37 38 40 39 51 CLK AO CS RESET Figure 18 LCD display interface The IO supply range is from 1 8V 3 3V The reset signal low active needs to be externally connected no internal pull up Green Smart Wireless 2 1uF APPLICATION NOTE 501 Green Smart Wireless enocean 2 3 2 SPI Protocol The SPI interface can use a clock up to 20MHz The CS signal has to be active low before data is transferred The clock signal SCL is high when idle the data SI has to be applied with the falling edge of the clock signal and is sampled with the rising edge of the clock signal as shown in the figure below A 51 N 5 x D X D5 X X Da X D2 X D1 X Do X D X D 05 X 04 X D3 X D2 SCL 4 m i 4 1 2 3 E 5 6 8 9 10 11 12 13 14 4 Figure 19 SPI Protocol 2 3 3 Graphical display One other aspect of the display is that is a graphical display This means that any informa tion to be displayed has to be done by turning on off single pixels However there are cer tain restrictions how the single pixels can be accessed m The pixels are accessed via the SPI interface on a byte level write granularity This means that at
11. and the usage of the 2 different sized fonts Figure 21 Display content Example of writing with Font 5 x 7 This example shall briefly explain how the actual font is written using the character 1 For each character 5 bytes are used The 7 bit of every byte is always pixel off to get spacing between two lines No explicit spacing between two characters is used skipping one byte code char FONTSX7 115 1 0x00 0x42 Ox7F Ox40 0x00 1 1 EX Figure 22 Character 1 Font 5x7 EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 22 54 gt APPLICATION NOTE 501 Green Smart Wireless SMART BI DIRECTIONAL THERMOSTAT WITH DISPLAY Example of writing with Font 8 x 15 This example shall briefly explain how the actual font is written using the character 1 For each character 2 times 8 bytes are used written into two pages The 77 bit of the byte 8 15 is always 0 pixel off to get spacing between two lines No explicit spacing between two characters is used skipping one byte code char FONT8X15 2 8 1 Ox00 0x04 0x06 0xFF ORFF 0x00 0200 0x00 0200 006 008 005 005 0 00 p JE 1 TE e il i TI A X rm UH O Im Im m NJ x MN 10 E X O _ o Figure 23 Character 1 Font 5x7 NOT
12. be able to learn in the sensor which re quires the following steps wake up m transmit a learn request 3 sub telegrams the data via radio m transmit a learn reclaim and receive the learn reply data evaluate the learn result and store information into FLASH memory A successful learn in this will require about 1mWs best case only one reclaim to 1 9mWs worst case 3 reclaims of energy This will result using Equation 1 into a capacitor of about 1500uF without any safety margin 2 1 9mWs T 1500uF 2 4V 1 8V For this purpose an additional to the Cypp 470uF on the evaluation board 1000uF capacitor was placed onto the LCD display board For the implementation of the SMART ACK with display it is assumed that it is not required to be able to turn on the display in this short start up time 2 4 How to evaluate Energy consumptions During the development of this application note it was necessary to quantify and verify energy consumption and therefore measure it The intention is to verify energy household and see where energy is used The described method is intended for easy and quick qualit ative analyses and not so suitable for quantitative analyses E g does the capacitor used in this method typically have tolerances of 20 As this is one of the standard tasks in developing ultra low power applications one possibili ty to measure the energy consumption is explained in detail here 2 4 1 Measurement setup Th
13. gt APPLICATION NOTE 501 Green Smart Wireless SMART Bi directional Thermostat with Display 1 Introduction When EnOcean brought the first generation of battery less radio modules to the market energy autarkic sensors a combination of sensor energy harvester and radio were li mited to uni directional communication only transmitting information Now with the intro duction of the new Dolphin platform this limitation could be extended to bi directional communicating autarkic sensors and even autarkic actors 32 byte 2 kbyte Watch Dog FlyWheel Timer Timer Limiter ES 4 Detec B Ag Flash TX YYY YY Y w w Engine PWM Timer SPI UART Voltage Regulator Mixed Signal Sensor Interface P 8 V 16 1 05 Figure 1 Block diagram Dolphin Chip Beside the new achievements on the hardware side the concept Smart Acknowledge had to be developed to enable an energy efficient way of handling bi directional communication In the following also the term SMART is used as short form for Smart Acknowledge 1 1 Purpose This application note will explain the basics of the Smart Acknowledge concept and demon strate it in a real world application For a deeper understanding of the Smart Acknowledge concept please see 1 Smart Acknowledge specification September 15 20 EnOcean www enocean com Subject t
14. is displayed Finally deep sleep mode is entered with the display timeout 5s During Deep Sleep the display remains on displaying the data written before If there is no further user activity the display is turned of after the display timeout 5s also see 2 1 5 Action Timeout APPLICATION NOTE 501 Measure Analog Signals Calculate Tactual and V LT yes s LCD display i no Turn LCD display on Y LCD Init Y Write static LCD content On yes Clear Watchdog v Write dynamic LCD content Tactual Send Data Telegram SMACK Controller known yes y Perform SMACK Data Reclaim Data received yes v Enough nergy avalaible to operate LCD display no no y Turn LCD display off v Send Data Telegram SMACK Controller known yes Perform SMACK Data Reclaim Calculate and display Ttarget display Ttarget Figure 17 Action SET SET Set Deep Sleep Timer Display Timeout value Green Smart Wireless gt APPLICATION NOTE 501 Green Smart Wireless SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY 2 2 Radio Telegram Data Tel
15. is evaluated If the SMART ACK process controller Is in idle state SMACK all LEDS regarding learn mode are turned off Learn mode simple or advanced LED is turned on s Has finalized Learn mode RESULT READY the actual learn routine is called Has exited learn mode after the learn mode timeout the LMI LED it turned off Execute SMACK tasks Y Status is SMACK OK yes Y LMI Led off Y Learn In Led off P Learn Out Led off yes i no LMI Led on yes Status is ee ARN TIMEOUT y i no Status is ESULT READY Toggle LearnMode Y LMI Led off Figure 32 SMART ACK processing flowchart APPLICATION NOTE 501 Green Smart Wireless 3 1 5 ExecuteLearn processing The Dolphin API handles all collection of the learn telegrams and provides a learn result to the application The application has to decide what to do learn in learn out or to discard the learn Get result of SMACK learn process sensor already a LEARN OUT earned sensor yes Y LearnOut LED on CH2 no LearnIn LED off CH3 Y Next sensor v Inform API that sensor All sensors checked is learned out Y Delete Sensor from learned sensor list y
16. was only send to a permanent supplied and always listening receiver the sensor could simply send his data at any time The overall energy consumption can be handled as a combination of long periods of virtual ly no activity deep sleep mode with e g 200 nA of current consumption and very short periods of waking up measuring and transmitting the measured data with 25 mA of cur rent consumption 1 3 1 Why SMART ACK Now there is the desire to not only send information from the sensor to a receiver but also to receive back information E g in the demonstration the actual temperature actual is send and the set temperature value T target is received from the room controller There is plenty of other information that might be desirable to be available to the sensor in particular if it has a visual user interface like an LCD display In a room controller e g the following information might be of interest to the user m Status of heating On Off Status of cooling On Off Fan speed level Presents control present not present night time reduction Windows are open e g heating is turn off because a window is open Various other status or error messages gt APPLICATION NOTE 501 Green Smart Wireless The main challenge in an energy autarkic system now is to household with it available energy As an enabled radio receiver is one of the biggest energy consumers e g more than 25mA a conce
17. 4 SMD SOT23 N FET Transistor BSS138 SMD SOT23 Not populated ae Onl for mechanical JP1 JP2 RM 2 54mm SAU inteconnection Not populated SV1 SV2 Pin socket 1x27 a pin needs to be cut LCD display R RA SMD 0805 Q1 Resistor OR 5 0 125W SMD 0805 NEN NEM Em EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 51 54 APPLICATION NOTE 501 Green Smart Wireless 8 3 Layout RCO 11 1 mui mu Figure 38 Top Silk ER 0061132 132 32 Figure 40 Top Solderpaste APPLICATION NOTE 501 Green Smart Wireless Figure 41 Top Solderstop Figure 44 Bottom Solderstop APPLICATION NOTE 501 Green Smart Wireless oo an 90 59 1 oo cU SO k 28 5 Figure 46 Bottom Placement
18. ART Controller hex FcFg C YCDROMYSMAR Log window Message For Help press F1 Figure 35 DolphinStudio Download Program 4 2 2 Download SMART ACK sensor software To setup the SMART ACK sensor the necessary software needs to be downloaded into the STM300 module Ensure EVA320 Jumper and Switch settings as shown in Figure 36 2 Bridge storage voltage trigger signal with DVDD The bridge shown in Figure 37 is mandatory for proper operation of the demonstra tion not required for programming The WXIDIO signal is used for the LCD Display APPLICATION NOTE 501 Green Smart Wireless power control on the evaluation board it is used to trigger long term storage vol tage measurement M ADIOS EI oio BUTTON1 BUTTON2 HAKEL LRN HAKEB OCCUP LIGHT INTENSITY RANGE SELECT STORAGE VOLTAGE Figure 37 Bridge DVDD trigger storage voltage gt APPLICATION NOTE 501 Green Smart Wireless enocearr SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY 8 9 Connect the EOP300 flat cable to the EVA300 Evaluation board Connect the EOP300 Programmer to the PC using the USB cable Start DolphinStudio Start Programs EnOcean DolphinStudio DolphinS tudio its also possible to use the Keil uVision tool chain to do the FLASH download not described here Select Programmer from the dropdown menu in
19. Due to the complexity induced through bi directional communication in particular the relationship between sensor controller and post master there are multiple source for errors or unexpected behavior e g if the repeater acting as post master is ex changed or moved First sophisticated Remote Management tools are already developed which can help to ana lyze and solve those types of problem APPLICATION NOTE 501 Green Smart Wireless 6 Table of content 1 NOU CON 1 1 1 PUT GOSS ne 1 1 2 Demo system Bi directional room 2 2 1 3 DER NOW IE rear 4 1 3 1 WAY SMART BER 4 1 3 2 How does SMART work principle only 5 1 3 3 Learn process learn in 0 0 0 0 2222 2 2 2 74 6 1 3 4 PN OP Tel 6 1 4 DEO ONG as ee t TTE 8 1 5 ROIG GIC SS aanccecenanqsereaseeseesamestetewmmonecccanananeannsaectparssceeonenecesanineniasseceeeannenentans 8 2 SMART sensor room nhan nnnm 9 2 1 FanciHonallby near 10 2 1 1 FLASH and RAMO 0 2 6 10 2 1 2 POWEL ON
20. E Not all characters are implemented Only the characters according to ASCII coding from 32 Space to 126 are implemented plus the character 9 at 127 none ASCII to dis play degree For details please see Font h c source code 2 3 4 Energy efficient LCD display operation Challenges To operate the LCD display in an energy autarkic system special care needs to be taken to operate as energy efficient as possible This chapter describes the key means used in this demonstrator The following challenges had to be solved How to implement the electrical interface EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 23 54 gt APPLICATION NOTE 501 Green Smart Wireless SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY How to energy optimize communication minimize time How to handle supply voltage range see 2 3 5 Handling of LCD display supply range Electrical Interface After a user interaction die display has to be turned on display the necessary information and remain on for e g 55 without a need to change the displayed information After 55 without further user interaction the display can be turned off The best way to implement this functionality is to switch the display power supply con trolled by software and to use a low power mode during the 5s of display on without any further software activity The lowest current consumption
21. LCD display power was off the analogue inputs are measured and send And deep sleep mode is entered with the default timeout 1205 gt APPLICATION NOTE 501 Green Smart Wireless S LCD displa On y no Y Measure Analog Signals Send Data Telegram Set Deep Sleep Timer 4 Default value A Figure 13 Action Timeout Turn LCD display off 2 1 6 Action Occupation This action is executed if the user presses the Occupation button In case the LCD display is on and powered the display is turned off first Next the analogue inputs are measured and send via radio At the end the deep sleep mode is entered again with the default timeout 1205 Figure 14 depicts the program flow S LCD display yes Y Turn LCD display off Measure Analog Signals Send Data Telegram y Set Deep Sleep Timer Default value 7 Figure 14 Action Occupation 2 1 7 Action Ignore This action is required to ignore wakeups meaning no action is performed but the device goes back to deep sleep mode This is needed for the wakeups caused by releasing of the buttons only the asserting of the buttons is performing actions Figure 15 depicts the behaviour gt APPLICATION NOTE 501 Green Smart Wireless Figure 15 Action Ignore 2 1 8 Action LEARN This action
22. WAKEO Bs Reset y no WAKE1 T Reset y Button Pressed yes no no Figure 11 SMART ACK sensor flow diagram 1 yes yes Button Pressed APPLICATION NOTE 501 Green Smart Wireless 2 1 4 Action Init Figure 12 depicts the program flow of the initialization First the LCD Power is turned of The analogue inputs are measured and the measured data is send via the radio Last the module enters deep sleep mode with the Watchdog Timer set to the default value 1205 Without further user interaction the module would wake up Action Timeout again after the 120s LCD Power Off Analog Signals Y Send Data Telegram Y Set Deep Sleep Timer Default value A Figure 12 Action Init 2 1 5 Action Timeout This action is call if the wakeup was due to the pre programmed time in the watchdog timer In this application it is used for two purposes first to periodically wakeup the module and send updated data Second it is used to switch off the LCD display power after a prede fined time also see 2 3 3 Graphical display Figure 13 depicts the program flow First it is checked if the LCD display power is on or off In case the display is on the LCD display power is turned off and then the deep sleep mode is entered with the default timeout 1205 If the
23. can be achieved using Deep Sleep mode during this 5s waiting time In Deep Sleep mode only the ultra low power blocks UVDD supplied remain powered As drawn in 8 1 Schematics the WXIDIO GPIO is used to control the display power supply VDD2 using the transistors Q1 and Q2 The WXIDIO keeps its output even during Deep Sleep mode The IO supply of the display is directly connected to the WXIDIO This is re ducing the circuitry for one additional transistor switching the UVDD gt VDD connection Also the digital interface SPI needs to taken special care off to avoid parasitic current in particular during display off state This means that during display on in Deep Sleep mode and during display off in Deep Sleep mode the digital interface pin shall be at OV Off The RST signal must remain high active low during the whole time of its operation that s why it is directly connected to VDD via a 470k resistor The AO SCL and SI signals can be directly connected to the GPIOs of the STM300 module The CS low active needs to be high also during the 5s of display on without update That s why the CS is not directly con nected but inverted using the transistor Q3 The inverting of the CS signal generation is done by software Display communication The display is controlled via SPI data communication To communicate with the display the STM300 needs to be in CPU mode which requires significant amount of current On the oth er hand using a graph
24. dio devices have to be installed in there final installation location to allow the proper selection of the most suitable repeater as post master Figure 7 explains how the actually learn in is performed First the controller is set into learn mode e g by pressing a Learn button Then after pressing the Learn button on the sensor it triggers a learn request The learn request is forwarded by the repeater and re ceived from the controller The controller sends a confirmation via the repeater back to the sensor Now the system is learned in 2 Press LRN Button 1 Press LRN button Sensor Controller Repeater post master Figure 7 Learn process with repeater The information exchange of the confirmation from the repeater to the sensor is also us ing the SMART ACK mechanisms including the reclaim there is a data reclaim and a learn reclaim The learn out is done in the same way than learn in by simply repeating the learn process A repeated attempt to learn in an already learned in sensor learns out again and vice versa Learn out deletes the relationship between the sensor and the controller 1 3 4 Normal operation Prerequisite for normal operation is that the sensor is learned in at the controller The ex change of data with one repeater acting as post master is depictured in Figure 8 The sen sor wakes up periodically or due to user interaction measures and sends its data The re peater forwards the data to the co
25. e The behaviour of the controller depends if sensors have been learned in or not The con troller stores information about learned sensors in its FLASH memory typedef struct uint u32Sensorld uint3z2 u32PostMasterld ulnts u8LearnCount LEARNED SENSORS LEARNED SENSORS smSensors MAX SMACK SENSORS NOTE To avoid undefined behaviour it is important that the learn in learn out status remains gt APPLICATION NOTE 501 Green Smart Wireless synchronized between controller and sensor This might cause unexpected effects e g if one side is reprogrammed and therefore by default not learned in 3 1 2 Initialisation and main loop If the module is Reset or after a power up the software first initializes the chip Then it reads the information about learned sensors out of the FLASH memory see 3 1 1 FLASH usage and the threshold for a good enough radio signal is initialized Next the radio is enabled to receive radio telegrams Finally the default temperature setting T target is set to 18 C and the main loop is entered During the main loop the watchdog timer is cleared Then it is checked if a radio telegram was received If a radio telegram was received the telegram gets processed see 3 1 3 Ra dio Processing Next the state of LEARN button polled Pressing the LEARN button toggles between entering and ending SMART ACK learn mode Next the state of the CLEAR button is polled In case its
26. e displaying of debug information also see Figure 21 First the analogue inputs are measured and the actual temperature actual and the voltage of the long term storage device are calculated Then the software evaluates if there is enough energy available to operate the LCD display based on the voltage of the long term storage device also see 2 3 5 Handling of LCD display supply range If there is not a sufficient amount of energy available then the LCD display is turned off and the data is send Depending on if a SMART ACK controller is known a data reclaim is performed At the end the deep sleep mode is entered On the radio side this is basically the same behaviour than with display If there is sufficient energy available then first it is distinguished if the display is al ready on or off first press or subsequent press In case it is off the LCD display power is turned on the display is initialized and the static display content see Figure 21 is writ ten In case the display was already on those steps are ceased for energy optimization only the watchdog timer is reset display stays on for 5s from now on Next the dynamic display content see Figure 21 is written and the data is send Depend ing on if a SMART ACK controller is known a data reclaim is performed If the data reclaim was successfully data received from SMART ACK controller then the target temperature T target is displayed otherwise a placeholder
27. e measurements were preformed with a multi channel oscilloscope EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 27 54 gt APPLICATION NOTE 501 Green Smart Wireless SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY Application Trigger e g DVDD Figure 27 Measurement setup For most measurements the Dypp signal could be used as trigger but of cause other signals can be used for specific measurements As indicator for the energy consumption the Vpp voltage was used Figure 28 shows an example measurement Pos 20 00ms CURSOR Type Amplitude Cursor 2 15 Jul 09 14 18 Figure 28 Example Occu measure send 3 Subtelegrams VDD yellow DVDD green The energy stored in a capacitor can be described by the following equation 1 W 0 2 Equation 2 Energy stored in a capacitor Using Equation 2 the voltage measurement voltage change from U1 to U2 from the oscilloscope can be calculated into energy consumption 1 W 62 03 Equation 3 Energy consumption Like this it is possible to use the measured Vpp change delta as direct proportional to the energy consumed For this it is required that no energy is inserted e g from programmer solar cell or long term storage capacitor NOTE The long term storage capacitor needs to be disconnected for this measurements due to the none linear b
28. e the energy consumption to the bare minimum the device is operated in Deep Sleep mode whenever no specific action is required This mode is left by one of the following reasons Power down gt up VDD Reset Reset occurred Reset button was pressed m After a programmed time Watchdog Timer User requested activity by pressing a button The flow diagram Figure 11 depicts the program flow After the Reset Wakeup the reason for the wakeup is store for later evaluation Then the software checks if the LCD Display is already on powered and initialized the LCD Display power control signal WXIDIO accordingly before the actual EO3000I Init function is called This is required to avoid toggling of the WXIDIO pin resulting in flickering of the LCD Display Next the stored values from RAMO and FLASH are recovered see 2 1 1 FLASH and RAMO usage Then the reason for the Wakeup Reset is evaluated and the required Action is executed The following actions are defined Action Init Action Timeout Action OCCU Action Ignore Action LEARN Action SET 4 APPLICATION NOTE 501 Green Smart Wireless Action SET The Actions are explained in the following sections Store Reset Wake up Reason LCD Display on no Y EO30001 Init Read RAMO values yes Set WXIDIO Read FLASH values PIN or VDD Reset no atchdog Reset no
29. egram During normal operation the room controller sends the following information Actual temperature value T actual Command to controller eCmd none increase decrease T target And the following additional debug information Voltage level of long term energy storage device U longterm Reason for the wakeup eAction Status of last SMART activity e g Idle no controller known number of SMART requests NOTE The SMART ACK telegrams are not described here Please see 1 Smart Acknowledge specification September 15 20 for further information A detailed description of the re ceived data telegram sent by the controller can be found in 3 2 Radio Telegram Above information is packed into a 4BS radio telegram in the following way Status Checksum _ Table 1 4BS radio telegram Choice Data3 Bit 7 4 Data3 Bit 3 0 Data2 Datal EnOcean www enocean com 4BS telegram OxA5 Reason for the wakeup enum eAction Init after Power On or Reset Ignore Timeout Button Occupation pressed Wake 0 Button Learn pressed Wake 1 Button Set pressed Button Set pressed Command No command Increment T target Decrement T target N mo Voltage of long term storage device longterm N 2 1 8 255 V N 0 255 Temperature value 0 40 C OxFF 0x00 linear Subject to modifications Marian H nsch July 2011 Page 18 54 gt
30. ehavior of its capacitance Maybe it is necessary to increase the Cypp capa citance in particular for those measurements EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 28 54 gt APPLICATION NOTE 501 Green Smart Wireless enocearr SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY Step by step Disconnect all external hardware e g EOP300 programmer switch storage select to NONE to disconnect long term storage capacitor Charge CVDD to the desired voltage e g 3 3V e g with the on board solar cell with switch energy source to SOLAR m Disconnect all energy sources e g switch energy source to EXT SOURCE if no ex ternal source is connected Trigger operation to be measured e g WAKEO button NOTE For more accurate measurements the setup could be calibrated e g by charging the CVDD with a constant current DVDD will serve as trigger in particular if sleep mode DVDD is used Be aware that the wake pins will trigger a wakeup in both cases if button is pressed and when it is re leased falling and rising edge To obtain a high resolution of the voltage measurement it might be good to use a high vol tage resolution in combination with an offset e g OV lies outside visible scope view 2 5 EO3000I For this application note the Dolphin Chip Version 1 2 was used The table below indicates the typical 25 C current consumption values which a
31. es folder This file helps DolphinView to interpret data from SMART ACK Controller and Sensor In the EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 41 54 gt APPLICATION NOTE 501 Green Smart Wireless firmware of the application note we use proprietary profiles e g Control ler SmartackDemo xml to C Program Files EnOcean DolphinView Resources 2 Start DolphinView e g menu START Programs EnOcean DolphinView DolphinView 3 1 1 0 3 Select the port of the SMART ACK Controller or select the port of the third device which can be for example a Gateway Controller x DolphinView Basic 3 1 1 0 Expires 31 12 2011 View Window Help 13 EOUD6LOHA GATEWAYCTRL 2 3 0 0 9 comi4 comis coms comzo come 21 com22 1 NOTE If you select the SMART ACK Controller you see only the SMART Sensor telegrams With a third device you can see and visualize telegrams from SMART ACK Controller 4 On the SMART ACK Sensor now press the button OCCUP This will transmit a radio message 5 On the SMART ACK controller the Led ADIO5 indicates a received radio telegram and Led CH1 indicates a radio telegram from the learned sensor and the telegrams will be output on the serial interface DolphinView 4 Serial Autoscroll Autoselect Y Clear log i Log directory Telegram count m 1 40 1 Directi P
32. ged is connected to the Cypp a diode also see Figure 24 Supply Principle So once the voltage on has reached the same level plus one diode forward voltage both capacitors are charged voltage V LONGTERM Vpp time Figure 26 Charging of and Long Term Storage Capacitors For the Cypp capacitor we have two concurrent targets m to have a small capacitance for a fast charging and a quick out off the box start up time m to have enough energy stored to handle application energy requirements The equation to dimension the capacitor can be derived from Equation 2 2 W Sp p cg Equation 1 Dimensioning C VDD capacitor With W as required energy U voltage of the capacitor when the energy is consumed e g Von 2 4V U2 minimum operating voltage e g Vorr 1 8V gt APPLICATION NOTE 501 Green Smart Wireless enocearr SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY 2 3 8 Start up time STM300 Firmware requirements The EVA320 evaluation board was optimized for the standard STM300 firmware basically having enough energy to wake up measure and sense inputs and to transmit the data 3 sub telegrams via radio The Cypp with 470uF on the EVA320 easily fulfils this requirements 2 3 9 Start up time SMART ACK requirements On the other hand for SMART ACK the energy requirements are different to the STM300 Firmware First of all it will be desirable to at least
33. ical display requires a lot of data to be exchanged with the display E g to clear the display write all pixels off requires 132 x 4 bytes 512 bytes to be send An explicit clear however is not necessary if e g text is written anyway to the same area In the demonstration all the display areas which contain static data or where the dynamic data is already available are written to also see Figure 21 Then the areas which will be written to later on are selectively cleared before the actual display on command is send Like this the double writing clear plus data is avoided A second optimization can be achieved by selectively updating display content For this the display content was split into static and dynamic areas also see Figure 21 The dynamic areas are the only ones updated for a subsequent display changes and the static content remains unchanged E g if the SET button was pressed again whilst the display is already on and displaying information then only the dynamic content gets updated Using above methods it was possible to reduce the display communication related energy consumption by more than 50 Another straight forward approach is simply increasing the SPI frequency and avoiding tog gling of the CS signal e g after every sent byte Increasing the SPI frequency from 500 kHz to 2 MHz for instance saved about 10 energy EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 24 54
34. is called if the Learn button was pressed In case the LCD display is on and po wered the display is turned off first Then the response time is set to its maximum value it is not known how long it takes to fill the mail box with the learn confirmation a SMART ACK learn telegram is send After a de lay the response time the answer is requested and received Depending on the learn re sult the information about the controller is stored into FLASH memory Figure 16 depicts the behaviour es Y S LCD display On no Set default max Response Time Y Send SMACK Learn Telegram Y SMACK Learn Reclaim Y Set Deep Sleep Timer Default value Turn LCD display off LE Figure 16 Action LEARN 2 1 9 Action SET SET The SET and SET action are mainly the same except that one is meant to increase and one is meant to decrease the target temperature setting This action is executed if the user presses the SET SET button After the first press only the displays is turned on and the actual temperature value and setting are displayed without increasing decreasing the T target Subsequent presses before the 5s display off timeout whilst the display is still on of the SET SET button modify the temperature setting T target APPLICATION NOTE 501 Green Smart Wireless Figure 17 depicts the program flow without th
35. least 8 pixels are written with one SPI transfer m The SPI access is only unidirectional no read back m The display is organized in 4 pages with 132 bytes pixels each see Figure 20 This means that it is practically not possible to update a single pixel A method of read modify write to access single pixels would require due to the unidirectional SPI interface to store a copy of the whole display content in the hosts STM300 RAM memory Figure 20 EA DOGM132 display memory mapping For this demonstration the display is used like an alpha numeric display using the 4 pages as lines of text in combination with a soft font font h font c which is linked together with the Keil project The implementation is using 2 fonts extern code char FONTSX7LIILISI extern code char FONT8X15 2 8 This allows writing of either single height 5x7pixel characters in one page or double height 8x15pixel character using 2 pages APPLICATION NOTE 501 Green Smart Wireless SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY The display content can be classified into 3 different types m Static content marked with light blue background only written once during a display on off cycle Dynamic content marked with yellow background updated every time e g a SET button is pressed Debug content marked with orange background Figure 21 depicts the LCD display content with the different content classes
36. ntroller EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 6 54 gt APPLICATION NOTE 501 Green Smart Wireless The controller now prepares the answer and sends it back to the post master The post master stores the answer in a mail box After a fixed delay response time the sensors sends a reclaim request to receive and turns on the receiver The post master reacts to the reclaim and delivers the mail box content to the sensor The reclaim of data from the sensor is optional and might e g only happen if the informa tion from the answer shall be displayed 1 Wake up Figure 8 Normal operation In case that the controller is the post master without a repeater the data is not actually sent but directly stored in the mail box The activity diagram Figure 9 depicts the flow of messages between the devices APPLICATION NOTE 501 Green Smart Wireless sd Smart with Repeater Operating Data Reply Save Acknowledge to MailBox sensor want Data Reclaim Data Acknowledge Figure 9 Normal operation activity 1 4 Demo Limitations The demonstration has several limitations mainly to reduce the complexity and therefore increase the ease of understanding The SMART controller can only learn in one SMART sensor The SMART sensor only supports to be learned in by one con
37. o links and the logical connection Logic Connection E Figure 6 SMART ACK concept For a SMART ACK system to work it is necessary to establish the relationship between the sensor and the controller and to define who is acting as post master This is done during the so called learn process Once the system is learned in it can exchange the required da ta during normal operation gt APPLICATION NOTE 501 Green Smart Wireless SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY 1 3 3 Learn process learn in learn out With the learn process the relationship between a sensor and a controller is established The sensor tells the controller what type of data he provides also see 3 EnOcean Equipment Profiles EEP V2 1 Jan 2011 and what type of data he expects to re ceive SMART ACK supports two different types of learn modes called simple and advanced learn In simple learn mode the post master and therefore the mail box is located on the control ler itself In advanced learn mode also repeaters can act as post master During the learn process the transceiver best suited to act as post master will be selected Generally should the simple learn mode be used in all cases where the controller and sen sor have a good enough direct radio link Only if that s not the case then repeating is re quired and advanced mode has to be used In advanced mode the ra
38. o modifications Marian H nsch July 2011 Page 1 54 gt APPLICATION NOTE 501 Green Smart Wireless BI DIRECTIONAL THERMOSTAT WITH DISPLAY The purpose is to demonstrate the concept in an actual implementation using an as simple as possible setup It s not intended as a reference design or ready to be used as production software providing a full implementation for such a type of application But the demo and description should be a tutorial and suitable for further enhancements and modifications and should be a good starting point for own SMART ACK development projects The second focus of this application note is the operation of a LCD display in an energy au tarkic system This requires specific means to operate an LCD display with the least possi ble energy The selected application to demonstrate the combination of SMART ACK with display is a bi directional room controller with a LCD display NOTE The software AN501SW which is part of this application note is provided on an AS IS ba 515 1 2 Demo system Bi directional room controller The demonstration shows a bi directional communicating system of a simple room control ler measuring the actual temperature and sending it as shown in Figure 2 The data is re ceived by a gateway which e g would forward the data to a HVAC system The HVAC sys tem will return the target temperature value back to the room controller via the same ga
39. off The sensor stores the time it has to wait for an answer the mail box index used if sensor is learned multiple times into one controller and the controller ID typedef struct 910616 ul6ResponseTime uinte u8MailboxIndex uintoz us2zControllerld FLASH DATA FLASH DATA code u8gFlashData NOTE To avoid undefined behaviour it is important that the learn in learn out status remains EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 10 54 gt APPLICATION NOTE 501 Green Smart Wireless synchronized between sensor and controller This might cause unexpected effects e g if one side is reprogrammed and therefore by default not learned in The ultra low power RAM RAMO is used to store information which must not be lost during deep sleep mode but can be lost during power off In this application it is only used for debug purposes to store the status of the last reclaim operation In the data telegram this status from the previous reclaim is transmitted to the SMART ACK controller Also see 2 2 Radio Telegram and Fehler Verweisquelle konnte nicht gefunden werden typedef struct uint8 u8ReclaimCounter RAMO S HADOW 5 TRUCT RAMO SHADOW STRUCT xdata ram0 2 1 2 Power On The first time the module is supplied with power it initializes all relevant values For further details please see next section 2 1 3 Reset Wakeup In order to reduc
40. olar cell as energy harvester a Lithium capacitor as long term energy storage device a temperature sensor Figure 4 Evaluation board EVA320 For the LCD display an additional not part of the EDK300 PCB board was developed which can be plugged onto the EVA320 prototyping area interface Together those two boards act as SMART ACK sensor demonstrating the room controller functionality EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 3 54 gt APPLICATION NOTE 501 Green Smart Wireless BRA RERRE EFAR BEN TRAMARARRRAREA Figure 5 LCD Display board As already stated is the focus on demonstrating a simple setup a room controller with display The room controller SMART ACK sensor performs the following functionalities periodically wakes up every 1205 measures the temperature and sends the data radio upon user request the actual temperature and set target temperature value are dis played m the user can change the target temperature value using the SET keys A detailed description of the SMART ACK sensor is given in chapter 2 SMART ACK sensor room controller 1 3 Smart Acknowledge Energy autarkic sensors already used special means like ultra low power sleep deep sleep mode to enable the use of energy harvesters like solar cells as power source As the in formation provided by the sensors e g temperature humidity CO2
41. onsumption Serial interface SPI wide operating voltage range 1 8V interface voltage readable without background lighting reflective easy available easy to buy In real applications rather a segmented LCD would be used with Icon type of display Today available display drivers for such LCD display are available for wide operating voltage range and require less than a third of the ST7565R driver current Additionally will the energy time to update the display be significantly lower compared the used graphic display e g less then 100 segments compared to 4228 pixels EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 19 54 APPLICATION NOTE 501 2 3 1 Hardware interface The LCD display uses a SPI like interface for the display commands and data It only uses unidirectional data transfer from the STM300 host to the display The SPI uses three sig nals unidirectional and one additional signal to distinguish between display data and commands send to the display controller 2 4 3 3V There are 2 supply pins one for the analog display supply VDD and one for digital inter face VDD2 IO VDD The operating range of the display supply VDD is from 2 4V 3 3V Signal Direction Description In Chip select signal low active _ In data In 7 data RESET In j Reset lowactive
42. ort Time ID Y RORG 7 Data Status dBm Subtel DestinationID Security TimeDiff b COM13 14 07 28 970 01004 60 4BS 30 EF 41 18 00 45 3 FFFFFFFF 00 00 01 515 6 Select the SMART Sensor in Unassigned and but it by a left double click to the Workspace Be sure the device is selected If you cannot identify the SMART ACK Sensor you can look for a flash RED that can be seen after a telegram from it is received Pressing button OCCUP triggers the Sensor to send a telegram APPLICATION NOTE 501 Green Smart Wireless ID OFCOCCOC Device mh Unassigned Count 7 00000807 Device 0807 20 00816506 Device 6906 10 00004209 alll Device 209 7 Select EEP View TAB and in Profiles select the previously copied SmartackDemo xml 1 wr WW ID 000007E7 Device D7E7 ID 0000 209 Device 209 Telegram Analyzer Telegram Transmit Ei Export Profiles SmartackDemo xml_ Reload XML Chart time resolution 1 minute EnOcean Equipmen Diem mee RORG 0xA5 4BS Telegram FUNC Ox3F UNIVERSAL TYPE 0 00 Smart Ack Sensor Demo Telegram Learn Telegram N A Data Telegram Interpretation 8 In TYPE Select the Smart Ack Sensor Demo Telegram click on the Set Profile button Then you should see the data send from SMART ACK
43. pressed the temperature set value is reset to its default value of 18 C Finally the SMART ACK processing is executed see 3 1 4 SMART ACK processing APPLICATION NOTE 501 EO30001 Init Y Read FLASH values Sensor table Y Set Good enough RSSI threshold Y Enable Radio Set Ttarget to 18 Clear Watchdog Radio Telegram received yes yes Y Toggle LearnMode Turn Learn mode off Green Smart Wireless earnMode i active yes Turn LMI Led on Turn simple Learn mode on 30s timeout Set Ttarget to 18 C Figure 30 SMART ACK controller flowchart gt APPLICATION NOTE 501 Green Smart Wireless 3 1 3 Radio Processing Received radio telegrams are indicated with the radio LED ADIO5 and the telegram data is output on the serial interface e g for DolphinView The controller now has to check if the received telegram was send to him from a learned sensor In case it was from a learned sensor the known sensor LED CH1 is toggled and depend ing on the received command the T target value is modified and return data is prepared and send To send the return data the smack sendDataTelegram API function is used not radio sendTelegram
44. pt to optimize the radio receiver on time to a minimum is necessary This concept has to address the following two main issues Receive mode consumes high amount of energy Unknown delay times introduced through repeaters 1 3 2 How does SMART ACK work principle only Smart Acknowledge uses a mechanism where the sensor expects to receive a radio mes sage from the controller in a predefined time slot To achieve this the sensor sends a re quest Reclaim to signal to the controller that he is expecting to receive data and then turns on its receiver for a short period of time In order to eliminate any latency e g introduced by repeaters which would increase the required receiver on time and therefore energy consumption the return data is delivered beforehand to a so called mail box This mail box needs to be located on a transceiver with direct radio connection to the sensor This transceiver can be the controller itself if no re peater is required or a repeater which has a direct radio connection to the sensor The tran sceiver which administrates the mail box is called post master Figure 6a Shows a setup where the sensor has direct radio contact to Controller Logic Connection Radio Connection Figure 6b Shows a setup with a repeater acting as post master between the controller and the sensor and highlights the difference between the actual radi
45. r SET button The device will flash RED in the Unassigned list APPLICATION NOTE 501 Green Smart Wireless 10 Select the SMART Controller in the Workspace list and set the profile Smart Ack Controller Demo Telegram on this device 11 selecting the SMART Sensor or SMART ACK Controller you will see their data history and visual interpretation APPLICATION NOTE 501 Green Smart Wireless gt 5 Outlook This application note demonstrated the operation of a basic bi directional room controller with LCD display and SMART ACK The provided software and documentation shall make it easy to get familiar with the topic and starting own development based on this Further optimizations on the software and hardware side could e g be Handling of redundant transmissions only send if measurement value have changed store measurement values in RAMO keep alive messages if no change in measured value for x times then send anyway detect light level e g when its night to reduce send frequency reduce amount of radio traffic related to increase decrease of temperature set value T target usage of different display technology e g bi stable displays ePaper optimization of the energy management circuitry regarding SMART ACK requirements Another aspect not mentioned before is the use of remote management as diagnostics tool and to solve issues
46. re the basis for all considerations Operating mode Current consumption 25 C Deep Sleep VDD3 3V 220nA Short Term Sleep CPU Standby XTAL on Table 3 Dolphin current consumption per mode EnOcean www enocean com Subject to modifications Marian H nsch July 2011 Page 29 54 gt APPLICATION NOTE 501 Green Smart Wireless 3 SMART controller The SMART ACK controller has the following features TCM300 module with Dolphin chip Buttons for user control Clear Learn LED for user indications Serial interface e g to trace radio on DolphinView Simulates the target temperature settings T target USB to Serial TCM300 PC with DolphinView Dolphin Chip EVA300 board Figure 29 SMART ACK controller overview 3 1 Functionality The SMART ACK controller is the counterpart to the SMART ACK sensor In a real applica tion it would possibly act as gateway receiving data and forwarding it to e g a building network In the case of a room controller the information would then e g land at a HVAC control system This system would then generate the data to be returned to the SMART ACK sensor In this demonstration all receive radio telegrams are output to the serial inter face The controller allows to learn in the sensor Once the system sensor controller is learned in the controller sends back the temperature setting value T target to the sensor 3 1 1 FLASH usag
47. s space a free entry in the learned sen sor list is search In case there is no space the API is informed and the learn is discarded Otherwise the learn in is performed by turning on the LearnIn LED CH3 adding the sen sor to the learned sensor list Then the API is informed that the sensor was learned in and the learned sensor list is stored backup in FLASH memory 3 2 Hadio Telegram The SMART ACK controller sends the following information back to the SMART ACK sensor Temperature set value T target This information is packed into a 4BS radio telegram in the following way SreId Status_ Checksum _ 1 4byte 4byte 1byte Choice Data3 Data2 Datal DataO SrcID Status Checksum EnOcean www enocean com 4BS telegram Not used Not used Temperature target value 0 409C Bit3 is set to 1 to be compliant with EnOcean Equipment Profiles EEP Bit3 0 teach in telegram Bit3 1 data telegram 32bit ID of telegram source Reserved Status information field Checksum of the radio telegram OxA5 OxAF OxFE OxFF 0x00 linear 0x08 0x0000 0001 0xFFFF FFFF 0x0000 0000 0x00 Calculated checksum Subject to modifications Marian H nsch July 2011 Page 36 54 APPLICATION NOTE 501 Green Smart Wireless 4 Getting Started Run the demo This chapter describes how to setup and run the demo 4 1 System requirements To operate
48. t 2 4V 0 3V 0 3V gt 2 3 6 Handling of LCD display supply range optional method An optional approach would be to charge Cypp to a higher voltage level before the charging is switched to the This however will require different circuitry than implemented on the EVA320 evaluation board But the EVA320 would allow to use of an own Energy Manage ment module to be plugged in see EVA320 schematics ENOCEAN EM E g if the charging APPLICATION NOTE 501 Green Smart Wireless would be done up to 4 5V VLIMIT 470uF would be able to provide about 3 4mWs discharge down to 2 4V See Equation 2 with C 470uF U124 5V U2 2 4V The energy required to initially turn on the LCD display including all other activities mea surements radio etc is about 3 2mWs Using this different approach would e g significantly improve the initial startup time out off the box gt till operating in case of are empty long term storage device 2 3 7 Start up time dimensioning of Cypp One of the key features of the energy management is the intelligent charging of the opera tion capacitor Cypp and the capacitor for the long term storage Due to the different capacitance of those two capacitors e g 250mF vs 470uF the Cypp needs to be charged first to achieve are quick initial ready for operation time Once the Cypp has reached a de fined level Voy 2 45V the is char
49. t Wireless 2 4 1 Eva Arr 27 2 5 2805000 29 3 SMARTACK Controller see Mb p FEM M EE 30 3 1 PUNCH OMY 30 3 11 FEASA USTG ERNEUT TL oer 30 3 1 2 Initiahsation and main OOD asus Vix VIVE EA YI RV ASIN REX DECRE 31 3 1 3 Radio Processing NEU FERES 33 3 1 4 SMART ACK IN ae DM NEP NEN 34 3 1 5 LExecuteLcdrn DPOEGSSIPIO nennen 35 3 2 Radio Heeres 36 4 Getting Started Run the demo ann a nn 37 4 1 System requirements cucesurassk stuesniaramccck 37 4 2 oumuir sP 37 4 2 1 Download SMART ACK controller software 37 4 2 2 Download SMART ACK sensor software 2 7 27 2 39 4 2 3 SEN SO ea TET T TITULUM 41 4 2 4 Monitor communication using 1 41 Gd 45 m m m Mm 46 PO DOIG EA DOGMI 2 5 ea 48 7 1 OT UU IULIUS 48 7 2 initialization example i oai 49 8 Appendix room controller
50. the demo you need to have the following components EVA300 Evaluation board TCM300 part of EDK300 EVA320 Evaluation board STM300 part of EDK300 EOP300 Programmer with USB cable PC with Windows and a free USB port Demo software e g on EDK300 CDROM Optional LCD Display board Note The demo can be operated without an attached LCD Display however with reduced functionality 4 2 Step by step The following step by step guide will help you to setup the demo First a list of the neces sary steps is given for the experienced user and afterwards the step details are explained for first time user and for reference 4 2 1 Download SMART controller software 4 2 2 Download SMART sensor software m 4 2 3 Learn in sensor 4 2 4 Monitor communication using Now the demo is ready to be used 4 2 1 Download SMART ACK controller software To setup the SMART ACK controller the necessary software needs to be downloaded into the TCM module 1 Ensure EVA300 Jumper settings according to Figure 34 APPLICATION NOTE 501 Green Smart Wireless gt 010 010 070 010 019 Figure 34 EVA300 Programming Configuration Connect the EOP300 Programmer via flat cable to the EVA300 Evaluation board Connect the EOP300 Programmer to the PC using the USB cable Start DolphinStudio e g in the Window start menu select Start Programs EnOcean DolphinStudio DolphinStudio
51. tm 2 SMART ACK sensor room controller The SMART ACK sensor has the following features STM300 module with Dolphin chip Solar cell as energy harvester Energy management to control charging of Long Term Storage and Vdd capacitor Charge gauge to measure Long Term Storage voltage Temperature sensor to measure the room temperature T actual Buttons for user control Set Set Learn Occupation LCD display with Power Control and Interface circuitry APPLICATION NOTE 501 Green Smart Wireless SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY Power Control and Interface WXIDIO IOWVDD SPI ADIOS WXODIO CEO WAKEO 1 Energy ADIO4 5 Management SIM300 Dolphin Chip Long Charge dE sg yg 2 Gauge wr Figure 10 SMART ACK sensor overview Antenna 20 board 2 1 Functionality The SMART ACK sensor demonstrates the basic operations of a room controller by measur ing the actual room temperature T actual and sending it to the SMART ACK controller In case the user expects to see or modify the target temperature T target settings the value will be requested from the SMART ACK controller and displayed in on the LCD display 2 1 1 FLASH and RAMO usage The behaviour of the sensor depends if the sensor has been learned in or not The sensor stores a successful learn in or learn out in its FLASH memory and remains valid even dur ing power
52. troller s Only simple SMART ACK learn mode is enabled no repeater standard LCD display was user rather than a application optimized one e g requires more energy s Energy management on EVA320 evaluation board not optimized to used LCD display constraints e g LCD display is only operating if long term storage voltage has reached at least 3V 1 5 Heferences Further details can be found in the following documentation 1 Smart Acknowledge specification September 15 2010 2 DolphinAPI user manual EO3000I API chm 2 2 1 0 3 EnOcean Equipment Profiles EEP V2 1 Jan 20 2011 APPLICATION NOTE 501 4 5 6 7 8 9 10 11 12 13 Green Smart Wireless Application note AN3415 OLED Display Driver for 508 Family www freescale com Sitronix ST7565R 65 x 132 Dot Matrix LCD Controller Driver datasheet V1 5 2006 03 10 DOGM GRAFIK SERIE 132x32 PIXEL datasheet Stand 1 2009 Schematics EVA300 3 Schematics EVA320 2 Schematics LCD board 8 1 Schematics STM300 User Manual STM300 Data Sheet TCM300 User Manual TCM300 Data Sheet Useful web sites 14 15 16 17 18 EnOcean website http www enocean com EnOcean Alliance website http www enocean alliance org Wikipedia website http www wikipedia org Electronic Assembly website http www lcd module de Sitronix website http www sitronix com tw about h
53. upper left menu Tools Options Select EOPX Programmer Programmer and select Browse file SMART Sensor hex Select Operation Write with the options as shown in Figure 35 Press button Execute to start programming 10 Now the SMART ACK sensor is ready for use For testing it might be easier to continue using the USB as power supply To operate the sensor in energy autarkic way do the following steps 1 2 3 4 switch power switch to OFF disconnect EOP300 programmer flat cable change Jumper Energy source to SOLAR switch power switch to ON 4 2 3 Learn in sensor The learn process established the relationship between the SMART ACK sensor with the SMART ACK controller It also defines a post master 1 the SMART controller press the LEARN button gt Led LMI should turn on Note Learn mode is automatically exited after a timeout of 30s On the SMART ACK sensor press LRN button gt this will send a learn request mes sage On the SMART ACK controller the LED CH3 should turn on indicates Learned in Led CH2 indicates Learned out On the SMART ACK controller press LEARN button to finalize and exit learn mode LMI Led will turn off Now the learn process is completed 4 2 4 Monitor communication using DolphinView To monitor the communication between controller and sensor the DolphinView software can be used 1 Copy the SmartackDemo xml file to your DolphinView Resourc
54. upply bottom view Display start line set 0 540 5 o o e 2 Set bias 19 Duy 5 Display normal reverse 16 Power control set VO voltage regulator set o Electronic volume mode set 19 Static indicator set TI Set internal Booster to 3x 4x Mo indicator 8 S d hd d la ad B SAF 8185 5 AZ GSE BARA GA EI E Green Smart Wireless TEILEN Jb e m m ZH CEE ABT mA 0m ene e mz ag z m 8 Appendix room controller display T lt EM Q lt 8 1 Schematics gt APPLICATION NOTE 501 Green Smart Wireless SMART ACK BI DIRECTIONAL THERMOSTAT WITH DISPLAY 8 2 Bill Of Material The list below lists the used components and provides one possible supplier as reference Quantity Reference Description Comment Ceramic capacitor SMD 0805 Ceramic capacitor C6 C7 C8 C9 1uF 16V 10 SMD 0805 C10 C11 C12 Not populated Electrolyte capacitor 3 Resistor R1 R5 1M 5 0 125W C1 1000uF 5V RM 5 08mm SMD 0805 Not populated Resistor 470K 5 0 125W SMD 0805 3 Resistor 100K 5 0 125W P FET Transistor BSS8
Download Pdf Manuals
Related Search
Related Contents
取扱説明書-Super88 Improvian Guide FlexMotion-6C Hardware User Manual Epson StylusRIP Professional (Stylus Photo 2200) OPERATOR`S MANUAL - Whaley Food Service MYFOX_Récepteur portail universel_Notice_FR NMEA 2000 to NMEA 0183 Gateway NGW-1 Copyright © All rights reserved.
Failed to retrieve file