Revision history
Table 3.
Document revision history
Date
Revision
Changes
15-Sep-2021
1
Initial release.
UM2920
-
Rev 1
page 64/71
Страница 1: ...cluding KNX Tapko technologies stack evaluation version The package includes application examples which allow simulating point to point KNX RF protocol communication and are compliant with the KNX ETS...
Страница 2: ...Energy or NUCLEO L073RZ development boards 1 2 Folder structure After downloading the STSW S2LP KNX DK software package extract its components to a temporary directory Figure 1 STSW S2LP KNX DK folder...
Страница 3: ...K package perform the below modifications on the board bottom side Step 1 Remove R12 Step 2 Create a short circuit between pin 8 and pin 7 on CN3 connector Figure 3 CN3 modifications Before After Step...
Страница 4: ...CN4 modifications Before After Step 6 Remove R11 Step 7 Create a short circuit between R8 and DIO8 1 3 2 NUCLEO L073RZ To run the demo using the STM32L073RZ microcontroller you need a NUCLEO L073RZ fo...
Страница 5: ...1 3 3 X NUCLEO S2868A1 and X NUCLEO S2868A2 An X NUCLEO S2868A2 or X NUCLEO S2868A1 expansion board is necessary to provide Sub 1 GHz and KNX RF connectivity Figure 6 X NUCLEO S2868A1 expansion board...
Страница 6: ...o create a short circuit 1 4 Software requirements To use the STSW S2LP KNX DK package you have to install into your PC laptop Keil Vision KNX ET5 BlueNRG X Flasher utility STM32CubeProgrammer Android...
Страница 7: ...ks to support BlueNRG 2 and STM32L073RZ Step 2a check MDK5 Software Packs keil com Step 2b go to Keil section Step 2c install the following packages STMicroelectronics BlueNRG 2 Series Device Support...
Страница 8: ...n for Cortex M0 M0 Step 3a Copy PSN code XXXX XXXX XXXX Step 3b Go to Keil IDE license management Step 3c Click on the Get a LIC via Internet button Step 3d Fill in the form You will receive an e mail...
Страница 9: ...required to evaluate KNX RF devices based on BlueNRG 2 S2 LP and STM32L0 solutions ETS5 demo license is free and limited to up to 5 KNX devices in the system To install ETS5 go to KNX MyKNX create an...
Страница 10: ...d pre compiled binaries Figure 14 STM32CubeProgrammer installation 1 5 Dedicated Android apps for BLE connectivity KNX RF evaluation package contains the APK file BlueNRGKNX_Android apk It provides de...
Страница 11: ...ernative apps for BLE connectivity As the APK Android application working on Galaxy S10 smart phone family is not maintained there is an alternative solution using generic Bluetooth Low Energy apps su...
Страница 12: ...Figure 17 BLE Scanner app UM2920 Alternative apps for BLE connectivity UM2920 Rev 1 page 12 71...
Страница 13: ...sed using the evaluation package Standalone mode point to point KNX RF multi communication KNX ETS5 PC application using Tapko Technologies TP RF gateway commercial devices using Tapko Technologies US...
Страница 14: ...4 KNX RF point to point topology based on BlueNRG 2 evaluation kits This point to point topology demonstrates KNX RF multi communication without KNX infrastructure based on wired KNX devices It also d...
Страница 15: ...5 tool Figure 22 ETS connectivity based on BlueNRG 2 evaluation kits 2 7 ETS connectivity through KNX RF TP gateway based on STM32L0 development boards This ETS connectivity topology is based on KNX R...
Страница 16: ...BlueNRG 2 BLE SoC kits STEVAL IDB008V2 Its purpose is to configure monitor and control KNX RF devices using ETS5 tool Moreover it demonstrates KNX RF communication with KNX infrastructure based on wi...
Страница 17: ...xamples are based on STM32L0 development boards NUCLEO L073RZ Its purpose is to configure monitor and control KNX RF devices using ETS5 tool Moreover it demonstrates KNX RF communication with KNX infr...
Страница 18: ...f BlueNRG 2 kits STEVAL IDB008V2 with hardware modifications S2 LP kits X NUCLEO S2868A2 or X NUCLEO S2868A1 with hardware modifications Step 2 Plug S2 LP and BlueNRG 2 kits as shown below Figure 26 S...
Страница 19: ...ort in the tool Figure 27 Selecting the COM port Step 3 Mass erase the two BlueNRG 2 kits Figure 28 Mass erase Step 4 Download the following files on the boards BlueNRG2_RGB_Actuator hex BlueNRG2_RGB_...
Страница 20: ...s according to the topology shown below Figure 31 Topology for hex files Step 7 For the LED actuator application and to get lighting control commands set up Tera Term or hyperterminal as shown below F...
Страница 21: ...era Term Figure 33 Resetting Tera Term information Reset button Choose 115 kbaud 3 1 3 KNX RF evaluation using dedicated BLE apps Step 1 Power supply both BlueNRG 2 kits via PC using micro USB cables...
Страница 22: ...in pink in the figure below Figure 34 Refresh BLE device scanning The application scans for BLE devices but also for KNX RF applications The expected BLE scan outcome is to find BlueNRG2_KNX1 device n...
Страница 23: ...E Figure 36 BLE KNX RF Push Button application On the smartphone application a new screen appears showing the device is connected in case BLE connection is lost the app automatically switches back to...
Страница 24: ...g control On off control Note Android apps are not maintained Figure 38 On Off control example received Switch on command Brightness 0x1E received Switch off command Brightness 0x00 Terminal on LED Ac...
Страница 25: ...ide set of light configurations Figure 41 KNX RF enhanced communication BLE KNX RF Push Button application BLE KNX RF bridge KNX RF communication between switch and actuator long range BLE communicati...
Страница 26: ...Scanner app and open it Step 2 Refresh the main screen to scan BLE devices Differently from the dedicated BLE apps BLE Scanner app is able to display all Bluetooth devices in the range of the smartpho...
Страница 27: ...Connect button If the connection is correctly established the status is Connected Step 4b In case of issues check if the status appears as Disconnected Step 4c Expand the CUSTOM SERVICE menu on the r...
Страница 28: ...command in Custom Characteristic Example of Switch On command Type LOO_1_ONx 1 is the channel to be used x can be any ASCII character the length of ASCII sequence should be same Figure 46 Switch on e...
Страница 29: ...SCII character the length of ASCII sequence should be same Figure 48 Dimming command example Brightness value Example of Color command Type LRGB_1_XXX_YYY_ZZZx 1 is the channel to be used XXX YYY and...
Страница 30: ...M_1_XXXx XXX decimal value between 0 0 and 255 100 RGB LRGB_1_XXX_YYY_ZZZx XXX R YYY G ZZZ B are decimal values between 0 and 255 3 2 STM32L0 setup 3 2 1 Hardware setup Step 1 For STM32L0 kit evaluati...
Страница 31: ...Figure 50 S2 LP and STM32L0 stack plus antenna 3 2 2 Software setup Step 1 Launch STM32CubeProgrammer Note Before flashing pre compiled binaries it is recommended to erase STM32L0 EEPROM perform mass...
Страница 32: ...the figure below and clicking on Full chip erase Then download the binary files STM32L0_RGB_PushButton hex and STM32L0_RGB_Actuator hex Figure 52 Full chip erase and binary file download Important If...
Страница 33: ...F push button application to type commands on off dimming color for KNX RF LED actuator to simulate LED actuator by displaying received commands Step 5 Set up the LED actuator as follows Figure 54 LED...
Страница 34: ...tep 7 To set up the KNX RF switch application select CR LF for transmitting and receiving and tick Local echo box Figure 56 KNX RF switch application setup UM2920 STM32L0 setup UM2920 Rev 1 page 34 71...
Страница 35: ...ed Figure 57 Messages displayed after board reset Example of Switch On Off commands Type LOO_1_ON or LOO_1_OFF 1 is the channel to be used Figure 58 Switch On Off commands Example of Dimming command T...
Страница 36: ...ed green and blue Figure 60 Color command Table 2 ASCII commands associated with BLE scanner application Command Channel 1 with BLE Scanner Comments Switch on LOO_1_ON Switch off LOO_1_OFF Dimming LDI...
Страница 37: ...g STM32L0 kits ETS5 setup can be performed through Tapko RF TP coupler with KNX TP line or Tapko USB dongle 4 1 ETS5 setup through Tapko RF TP coupler 4 1 1 KNX RF topology Topology is based on Tapko...
Страница 38: ...re needed for the evaluation setup MECrf KNX RF TP gateway by Tapko Technologies a bridge between KNX wired connectivity twisted pair cables and wireless connectivity sub 1 Ghz KNX RF Figure 63 MECrf...
Страница 39: ...pply KNX USB interface to provide USB interface to connect PC ETS tool and to configure the whole network Figure 65 KNX bus power supply 4 1 3 Start ETS project ETS project examples are available in t...
Страница 40: ...Test_Project folder Project KNX ETS_Test_Project and select the RF TP coupler project Figure 67 Selecting the project Step 4 Select Test ST BlueNRG2 unsecure with TPRF MediaCoupler knxproj Step 5 Ente...
Страница 41: ...ace Figure 69 Configuring the USB interface Step 7 Once the ETS project has been imported double click it from ETS interface to open it and enter the password again to open the project Figure 70 Openi...
Страница 42: ...s simple limited to 5 devices maximum Expanding RF line you can find three RF objects TP RF coupler by Tapko KNX RF push button application and KNX RF LED actuator application Figure 72 KNX system top...
Страница 43: ...interface a dummy device is configured in ETS tool Figure 75 Dummy device configuration 4 1 6 ETS group monitor By clicking on ETS and then on Diagnostics you can monitor communication activity in the...
Страница 44: ...TP RF coupler configuration needs to be performed only the first time Step 1 Right click on the device in the ETS tool to start download configuration and then select full download Figure 77 TP RF de...
Страница 45: ...ces but on some limited number of pins not connected to PUSH2 button Follow the procedure below to wake up the BlueNRG 2 and press PUSH2 button Step 1 Right click on the ETS tool to download it and se...
Страница 46: ...Figure 82 BlueNRG 2 board LEDs Red LED Blue LED Push button application download will start Figure 83 Push button application download The following message appears when download is completed Figure...
Страница 47: ...log analysis Thanks to group monitor configuration all commands info are visible in the ETS tool On off commands Dimming commands RGB commands 4 1 8 ETS evaluation with STM32L0 devices To start ETS e...
Страница 48: ...configuration of BlueNRG 2 boards Figure 88 ETS project topology Step 2 Right click on the device to initiate ETS full download Figure 89 ETS full download Step 3 Wait for the following message to app...
Страница 49: ...d Figure 92 KNX RF communications during ETS download Once STM32L0 devices are programmed and reset you can monitor KNX RF communications through ETS tool Figure 93 KNX RF communication monitoring 4 2...
Страница 50: ...Figure 94 BlueNRG 2 based setup Figure 95 STM32L0 based setup UM2920 ETS5 setup through Tapko USB dongle UM2920 Rev 1 page 50 71...
Страница 51: ...project ETS project examples are available in the STSW S2LP KNX DK software package Step 1 Launch ETS5 tool Step 2 Import ETS projects from KNX RF package needed the first time only Figure 97 Importin...
Страница 52: ...ce by connecting the dongle Figure 100 Configuring the USB interface Domain address to be updated Step 6 To find domain address go to Topology panel Figure 101 Topology panel and domain address Domain...
Страница 53: ...luation purposes KNX topology is simple limited to 5 devices maximum Expanding RF line you can find two RF objects KNX RF push button application and KNX RF LED actuator application Figure 103 KNX sys...
Страница 54: ...F interface a dummy device is configured in ETS tool Figure 106 Dummy device configuration 4 2 6 ETS group monitor By clicking on ETS and then on Diagnostics you can monitor communication activity in...
Страница 55: ...ivities on Group Monitor panel Figure 109 KNX RF activity transfer 4 2 7 2 Push button application As this application requires low power mode activation KNX RF switch is supposed to run over battery...
Страница 56: ...source Step 6 Keep pressing PUSH2 button until the red LED becomes continuously ON and the blue LED does not blink anymore Figure 111 BlueNRG 2 board LEDs Red LED Blue LED Push button application dow...
Страница 57: ...ETS log analysis Thanks to group monitor configuration all commands info are visible in the ETS tool On off commands Dimming commands RGB commands 4 2 8 ETS evaluation with STM32L0 devices To start ET...
Страница 58: ...evice to initiate ETS full download Figure 118 ETS full download Step 3 Wait for the following message to appear Figure 119 Press the programming button message Step 4 Long push the STM32 Nucleo blue...
Страница 59: ...nications during ETS download Once STM32L0 devices are programmed and reset you can monitor KNX RF communications through ETS tool Figure 123 KNX RF communication monitoring 4 2 8 1 Troubleshooting fo...
Страница 60: ...download procedure Figure 125 Failed download Step 1 To unblock situation perform STM32L0 full chip erase and download again the related binary Step 2 Start a new ETS download UM2920 ETS5 setup throu...
Страница 61: ...F projects and application C files 1 2 3 4 5 2 KNX RF project examples Available Keil IDE project examples are provided You need to double click on Keil IDE project KNX_RF_RGB_Demo uvmpw to access cod...
Страница 62: ...ect examples are related to the BlueNRG 2 or STM32L0 applications shown below Figure 129 BlueNRG 2 application Figure 130 STM32L0 application Both projects provide different configurations UM2920 KNX...
Страница 63: ...Led Actuator KNX RF application 2 configurations are also available RGB_Actuator_BlueNRG for BlueNRG 2 S2 LP boards RGB_Actuator_STM32L073 for NUCLEO L073RZ S2 LP boards Figure 132 LED actuator appli...
Страница 64: ...Revision history Table 3 Document revision history Date Revision Changes 15 Sep 2021 1 Initial release UM2920 UM2920 Rev 1 page 64 71...
Страница 65: ...ed on STM32L0 microcontroller 14 2 4 KNX RF point to point topology based on BlueNRG 2 evaluation kits 14 2 5 KNX RF point to point topology based on STM32L0 development boards 14 2 6 ETS connectivity...
Страница 66: ...devices 44 4 1 8 ETS evaluation with STM32L0 devices 47 4 2 ETS5 setup through Tapko USB dongle 49 4 2 1 KNX RF topology 49 4 2 2 Required KNX RF devices 51 4 2 3 Start ETS project 51 4 2 4 ETS proje...
Страница 67: ...Table 1 ASCII commands associated with BLE scanner application 30 Table 2 ASCII commands associated with BLE scanner application 36 Table 3 Document revision history 64 UM2920 List of tables UM2920 Re...
Страница 68: ...rds 16 Figure 24 ETS connectivity through USB dongle based on BlueNRG 2 evaluation kits 16 Figure 25 ETS connectivity through USB dongle based on STM32L0 development boards 17 Figure 26 S2 LP and Blue...
Страница 69: ...igure 79 BlueNRG 2 board PUSH2 button 45 Figure 80 KNX RF activity transfer 45 Figure 81 Press programming button message 45 Figure 82 BlueNRG 2 board LEDs 46 Figure 83 Push button application downloa...
Страница 70: ...ess the programming button message 58 Figure 120 Starting the download 58 Figure 121 Alert message 59 Figure 122 KNX RF communications during ETS download 59 Figure 123 KNX RF communication monitoring...
Страница 71: ...ts and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to any intellectual property right is granted by ST herein Resale of ST pro...