Home
Deploy the QNX Demo
Contents
1. NOTE that the debug card is not used for the demo but is shown here on pictures If you do not use the debug card then power theNMX25 here Step 9 Start the smartEnergyCtrl swf application on the PC Either you have the right Flash player so you can use it to execute this swf or you can use your browser to open it also smartEnergyCtrl swf application allowing to control time Grid state and tariff Software Guide Deploy the QNX Demo Page 11 CS deneo Embedded Step 10 Type the following address in the Target Connection field 192 168 1 2 if you are using i MX25 PDK OR 192 168 1 4 if you are using i MX51 PDK after configuring your Network Connection from your Laptop with fixed IP Address 192 168 1 3 e g under Windows XP Start gt Settings gt Network Connections gt Local Area Connection then click on Properties scroll down the list and select Internet Protocol TCP IP click on Properties select Use the following IP address and populate the fields appropriately with IP address 192 168 1 3 Subnet Mask 255 255 255 0 Default Gateway does not need to be populated then push the connect button next to the right The button should switches to disconnect which means you are now connected to the i MX25 PDK Step 13 If the connection is failing one explanation can be the flash player security settings are set in sucha way as to block the communication either in a stand alone flash p
2. deneo ee eT pe Embedded sales adeneo embedded com Software Guide Deploy the QNX Demo AUGUST 2011 CS deneo Embedded General introduction This document is a user manual It describes the steps to deploy the QNX demo on the HEG board Setup Environment Before deploying the different software you shall connect the i MX28 based HEG board to your computer using a serial link The computer must run Microsoft Windows XP as operating system You shall connect the i MX25 PDK to you computer using a serial link and an Ethernet cross wired link An USB hub will be used as a connectivity hub for i MX25 and featuring the USB boot key and a USB ASUS WiFi dongle with Reference ASUS WL 167g V2 Lastly you need a SD Card and an USB key Setup Zigbee nodes Following two kind of zigbee node If you are using Zigbee Nodes Ref Design from Freescale please follow the instructions to flash them e Download and install Beekit tools from freescale website Beekit download page link Please ensure check the test tool program during the install e Use the Zigbee images from the archive in the folder Zigbee firmware e The SRB is able to run the following firmware Se MeteringDevice_SensorNode_ Sleeping EndDevice bin e The NBC is able to run the following firmware Ha OnOffLight_Router_NetworkNode bin Se LoadControlDevice NetworkNode_RxOnWhenldle_EndDevice bin e Connect the Zigbee node board Sensor Network or USB t
3. 20 C to 25 C The lamp simulating the Dryer connected to the smart plug HA will switch OFF as well the Dryer icon on the UI will turn to Red as well as the Pool Pump icon 192 16912 Disconnect Software Guide Deploy the QNX Demo Page 15 CS deneo Embedded RITICAL it Pr 0 20 KWh TTT PTT MG 1322 Network Node 4 y Swi ey i Oats 7 7 ET TEL sa 4 a c C iS E ak 0 8 H Ka L LL KN HATA AS T T b ACA eo amp y ini T A ad ii Grid state to Critical with associated icon New temperature control set point Both icons Dryer and Pool Pump in RED Both HVAC and Dryer are OFF Note we are voluntarily showing on the NCB that the HVAC duty cycle is 0 OFF to highlight the fact it is now under the control of the utility provider who has changed the HVAC temp set point to a higher e Push the 9PM button on the control application that will send events to the HEG via i MX25 PDK through the PC to PDK Ethernet link then Wifi The Grid state will go back to Low as the Peak demand is gone the Tariff will decrease to 0 08 the 1322x NCB simulating the HVAC connected to the smart plug SE1 0 will switch ON simulating a change in the temperature setting moving back from 25 C to 20 C The 1322x NCB simulating the Dryer connected to the smart plug HA will switch ON the Dryer icon on the UI will turn to Green as well as the Pool Pump icon Software Guide Deploy th
4. Embedded Deploy the QNX demo HEG part Step 1 The first step is to setup the Linux platform Please follow the guide Setup Linux platform pdf Step 2 First start a terminal emulator using a serial port connection like HyperTerminal or TeraTerm The terminal is configured with 115200 baudrate 8 bits 1 bit stop no parity and no flow control Untar the content of heg demo tgz in an SD Card formatted in ext3 format The SD Card root directory shall content three sub directories e local e ul e zorglub Start the HEG board login root no password with the SD Card plugged As the demo is on the SD Card we need to automatically mount the SD Card on heg demo Modify the write properties of etc fstab file chmod w etc fstab and add this line at the end of the fstab file dev mmcblk0Opl heg demo EXILE S defaults U U Then reboot or manually mount the SD Card to heg demo After the heg has booted we need to modify some files properties on the heg demo directory root freescale X heg demo root freescale tia Mee Geme root freescale ROC ecw Mee Gem root freescale postgres heg demo local pgsqgl root freescale OF 00N meq demo local po oal The postgreSQL server needs write access to tmp folder for every boot Add this line at the end of etc rc d rc conf Ghamoca 77 emp Then find the HEG DEMO_MODE line and set it to FSL e POr lal EEMO EMODE FeO EA After reboot the zigbee nodes wil
5. network configuration false Gateway IP address Local IP address Local IP address mask Default server IP address Board specifics 0 Console baud rate 115200 Set ethO network hardware address MAC false Set FEC network hardware address MAC false GDB connection port 9000 Force console for special debug messages false Software Guide Deploy the QNX Demo Page 9 CS deneo Embedded Network debug at boot time false Default network device lan92xx_ethO Update RedBoot non volatile configuration continue y n y Read from 0x03e80000 0x03eff000 at Ox00100000 Erase from 0x00100000 0x00180000 Erase 0x00100000 Program from 0x03e80000 0x03f00000 at 0x00100000 Step 4 Load the QNX file system e Unzip the UNZIP_TO FAT32_USB_DEVICE zip archive download from QNX website with the kernel see Step 3 e Copy the gnx ia directory directly to the root of a thumb drive USB key e Replace the qnx ia etc ia cfg by the one from QNX Demo archive Please ensure this file has a precise 5 699BYTES size and not other size Step 5 Connecting the PDK to the PC via Ethernet e The IP of the board is 10 0 0 131 e if you need to find this out from the board then connect the debug board e inthe prompt type ifconfig e The board is looking for the IP specified in qnx ia etc ia cfg like ZED_IPADDR 10 0 0 87 e Set this address in the Local Area Connection gt properties gt tcpip gt
6. properties e Leave the mask address as 255 255 255 0 Ping the board address to verify the connection Step 6 Configuration before starting the setup sequence e After unzipping the drop into the USB drive open ia cfg from qnx ia etc ia cfg with a text editor e Change the Mac address at the bottom of the file to match the HA Plug e Change the ZED_IPADDR to 10 0 0 87 to match the address set in the PC e Check Flash Player security settings http Awww macromedia com support documentation en flashplayer help settings manager04a ht ml to include the folder containing the swf file e Connect the Ethernet cable between PC and board e Connect USB Hub to board and USB drive HA Sensor to the hub e Connect SE coordinator to the PC Step 7 Demo Setup Sequence follow this strictly e Power up the SE coordinator and build the network Flip the power switch on the box and then push the SW1 button The lights will blink and the SW1 and SW2 will light up solid e Launch ZED e Power up the meter and wait till it appears in ZED e Power up HA Coordinator and start the network e Plug HA Plug and pair it e Power up i mx25 board Software Guide Deploy the QNX Demo Page 10 Tera term VT with scrolling CS deneo Embedded e When board is up plug SE plug and pait it Wait till it appears in ZED as a bulb e Start the swf file Step 8 Wait for the UI to stabilize on the i MX25 PDK as below if you are using a i MX25 PDK
7. B Zigbee nodes Power up both and push once the SW1 button to start the application Now the leds are blinking one after one to show the nodes is trying to connect The connection is done when the Power led is on and the LED1 is on continuously Software Guide Deploy the QNX Demo Page 5 tS deneo Embedded OR Move to the Smart Plug with SE1 0 profile Power down the plug by pushing the button The green led switches off Then Power on the plug by pushing the button and maintaining it until the green led flashes for at least 5 seconds in a row This operation may takes 10 to 30 secondes then the led stay green when stopping to press the button Software Guide Deploy the QNX Demo Page 6 CS deneo Embedded Step 5 In order to see the status of each Zigbee 1322x NCB nodes please push 3 seconds SW1 button on each node 7 SE Network Node should show Duty Cycle xxxxx HA Network Node should show HaOnOffLight Step 6 Back to the PC you should see after several seconds on the Tera Term VT screen among the scrolling messages Please type on HEG console root freescale heg demo zorglub zg ctrl sh status Software Guide Deploy the QNX Demo Page 7 Ts deneo Embedded You should see 5 lines with the 2 Zigbee coordinator and the 3 Zigbee devices SaaS ig running Piol ig NetName ZBieeeb4 1011122021223032 0015BC000D0000ED 1011122021224042 OOS0C2Z60EDD78FC8 5 rows S
8. ce 4 AA aa aA Aa ae Ae NOTICE Table ZigBeeNodes NOH Ch INSERT Journal NOC E Nellie EE eT ROE E CONTEXT SoL statement VINSERL INTO uYJourna lX S O Event mimet Comment VATUES aal TE mes tane 0 ya a Pib a Oa eae e a oaa aee lime T T EE NOTICE NOTIFY ZigBeeNodesNotify Toro MULTE IID Satis N BOO wdmaces cale EI E om orao 1 ONE Za BAO T B D Z 33e 196 T AMO 9 04 11 O OO ao Linle TOOT 2264 0 0 0 4 2164 516 ttyAMO OT 04 11 O OOR G rg D Here Zorglob is now running To see the Zigbee devices attached please type rootOfreescale heg demo zorglubb 2c ctrl sh etatus You should see 2 lines with two Zigbee coordinator MAC ADDRESS SaaS is running Pic i5 2259 could not find a psql to execute NetName ZBieeeb4 RefreshCount Software Guide Deploy the QNX Demo Page 4 CS deneo Embedded Finally we need to insert two Zigbee nodes in the Postgres database root freescale S psql c insert into AppliancesZBieeeo4 values Meter 4AAA555566666666 108 08 OO a e ae akoya a OS Oa heg root freescale S psql c insert into AppliancesZBieeeo4 values PD SOOO CO DOOR T 00r oe Os OO Gt et ee OOOO ene cy Dryer Step 3 Power up the 1322x SRB module acting as smart meter then push once the second button SW1 from the left and wait for the 2 leds green and red to be stabilized as below OR Power up the smart meter MCF51EM256 based Step 4 Move to the 1322x NC
9. e QNX Demo Page 16 CS deneo Embedded 192 16012 Grid state to Low with associated icon New temperature control set point Both icons Dryer and Pool Pump in Green Both lamps HVAC and Dryer are ON a ae 7 f poma ee c Sai Tinea ia CONNEGTOR 1 be dl ow i leewetan FLI pedd i MO1322x NetworkiNade yP MC1322x Networki hada 1 1 4 f r e Push the 10PM button on the control application that will send events to the HEG via i MX25 PDK through the PC to PDK Ethernet link then Wifi The 1322x NCB simulating the HVAC connected to the smart plug SE1 0 stays ON but we can see a change in the temperature setting moving from 20 C to 18 C for the night The 1322x NCB simulating the Dryer connected to the Software Guide Deploy the QNX Demo Page 17 MBdeneco Embedded smart plug HA switches OFF the Dryer icon on the UI will turn inactivated as well as the Pool Pump icon Gap 263 45 10 aaa wa 10 00 PM A Cama ninna nnn New temperature control set point C 0 L 2 N har KERZ rni H i a E mba ITIP aieea n OLE Wate awe eal na A H LEE Y T 4 R E S i T U aM a e End of the demo You can hit again the different buttons to play with time and associated events Software Guide Deploy the QNX Demo Page 18
10. l be detected automatically Please wait until the trace shows Reseting ZigBee Controler AR6000 Reg Code 0x80000348 Pressing oW ARGU0U connected event on freg 2412 with bssid 52 9700 01 20 00 listenInterval 0 beaconInterval 100 beaconIeLen 0 assocReqhen 0 assocRespLen 0 Software Guide Deploy the QNX Demo Page 3 Ts deneo Embedded Network Adhoc Creator waiting for network creation done Device ready SiGe Tee Waigiey woes SiGe mine E SUT a a Slodin Ceise yy lle Fe we 1S ZO wie 1 CNG y arm none linus gnueabi je Cin E Git Lite 2 010 Cell Ait gt ela sn root filesystem built on rue 19 Jun 2010 10 40 09 OZ 00 breeccale Semmeconcuceon Ino freescale login Type root Either Zorglub service is running automatic or not Please verify by typing FOOLG hreescalle neq demo zorginlo ps aux grep zorglub LOOC 22 AE OTOA 2164 gL E E NIE ot OO O OO Zorg EDE Here Zorglub is not running Please type root freescale heg demo zorglubsS zg ctrl sh start Executing ede Neg demo 2o eg muller a Zorg bub YE NORA GR es IV EOI a TTT Tee lies bile ah le aed NOTICE Table ZigBeeNodes NOT ECE INSERT Journal NORTE se Nelle e ourna I int CONTE ar sorm statement VINSERLT TNO Wolrmal Sie EVeme Lime sa Comment VATUES Py localleamestane 0 o2 a Pb ogS0l muaceLom othe wedace lines 27 ei SOl Sicereemenc NOTICE NOTIFY ZigBeeNodesNotify AG OO 8oS 7 ERROR UNeerimed cevyi
11. layer preferred or in a web browser that has a flash player plug in If this is the case try the following e Goto the following URL http www macromedia com support documentation en flashplayer help settings managerO 4a html This should bring up a flash app to adjust your global security settings Click the Edit locations drop down and click Add location Then browse for where you saved smartEnergyCtrl swf and click Open Then close and re open the swf either from your web browser if using the flash player browser plug in or from your stand alone flash player e Ifthe previous step does not resolve the problem and you were using the flash player browser plug in try using the stand alone flash player instead which can be downloaded from adobe com For example http download macromedia com pub flashplayer updaters 10 flash_ player update 201002 T lash10 zip Software Guide Deploy the QNX Demo Page 12 CS deneo Embedded Use the control application running on the laptop to emulate utility events and run the demo e Push the 9AM button on the control application that will send an event to the HEG via i MX25 PDK through the PC to PDK Ethernet link then Wifi The 1322x NCB SE1 0 simulating the HVAC is ON The 1322x NCB HA simulating the Dryer is OFF The Pool Pump is OFF and its icon is not activated The tariff and Grid state are Low dida TTT a A MC 1322 Netwdrk Ndde be i e P
12. o the PC with the USB cable You may be asked for FTDI drivers which you can find here FTDI driver e Launch Test tool from the windows start menu start gt programs gt freescale test tool gt test tool Or if not exist please use the shortcut create on the desktop In the Test tool window click from the View menu gt firmware loader gt MC1322x firmware loader e Select 2 1 as chip revision Software Guide Deploy the QNX Demo Page 1 T deneo Embedded e Browse to the location of the Zigbee firmware you want to flash e Select the right MC1322x xxx node as development board target e Use the following image MAC address SRB profile SE acting as Meter 1011122021223032 NCB profile SE acting as LoadControl HVAC 1011122021223031 USB or SRB profile SE Coordinator 1011122021223033 NCB profile HA acting as On Off switch DRYER 1011122021224041 USB or SRB profile HA Coordinator 1011122021224042 SRB into the washing machine 1011122021224045 You do not need MAC address for SE coordinator since it is the device on the HEG board Already flashed with 1011122021223033 e Check Use USB COM port connection and Press update firmware e Follow the instructions displayed in the new window to complete the flash erase flashing procedure Here you need the both jumpers to connect pins VREFH and VREFL e Reset the board as requested by the test tool Software Guide Deploy the QNX Demo Page 2 Ts deneo
13. oftware Guide Deploy the QNX Demo Page 8 A deneo Embedded Deploy the QNX demo iMX25 part Step 1 Loading redboot Connect the serial port to the debug add on card and then to the PC Download Advanced Tool Kit from here Set the first two switches one closest to the power switch to 1 on Run the Advanced tool Kit Select Flash Model as Nand Set the Operation type to program Leave the operation setting address field as 00000000 Browse and select mx25_3stack_redboot_TO1_1 bin downloaded from L2 6 31 MX25 SDK 0912 IMAGE package Click Program Restart the device with the first two switches to 0 off In Teraterm you can now ctrl c to the redboot prompt Step 2 Loading the QNX kernel Issue the following command at the Redboot load r b 0x100000 m xmodem Go to File gt transfer gt xmodem gt send Select the kernel file in our case ifs 3dsmx25 bin downloaded from QNX website Freescale i MX25 ARM Wait for it to transfer the kernel Initialize the flash FS by using fis init Then flash the kernel by issueing this command from redboot prompt fis create qnx_kernel Check the kernel listed by using fis list Step 3 Create a boot script to automatically load qnx_kernel RedBoot gt fconfig Run script at boot true Boot script Enter script terminate with empty line gt gt fis load qnx_kernel gt gt run gt gt Boot script timeout 1000ms resolution 2 Use BOOTP for
14. ush the 12PM button on the control application that will send an event to the HEG via i MX25 PDK through the PC to PDK Ethernet link then Wifi and activate the Pool Pump the pool pump icon on the UI will get activated Software Guide Deploy the QNX Demo Page 13 Ts deneo Embedded Pool Pump icon gets activated yeah quite tiny icon i I e Push the 5PM button on the control application that will send an event to the HEG via i MX25 PDK through the PC to PDK Ethernet link then Wifi and activate the Dryer the Dryer icon on the UI will get activated and the lamp connected on the Smart Plug HA will switch ON d EURA Nhe d l N The Dryer icon gets now activated while the Pool Pump icon is still on Software Guide Deploy the QNX Demo Page 14 TCS deneo Embedded MC 1322x Network Node 4 i v d pf Fini 1571090 N s SHN a d l yy Or E g conwedior peade Raa TTT TITR MO1322x Network Node 1790 a 5 P l i Both HVAC and Dryer are ON e Push the 6PM button on the control application that will send several events to the HEG via i MX25 PDK through the PC to PDK Ethernet link then Wifi The Grid state will change to Critical the Tariff will increase to 0 20 the lamp simulating the HVAC connected to the smart plug SE1 0 will now switch OFF simulating a change in the temperature setting we can see on the display the temperature set point moving from
Download Pdf Manuals
Related Search
Related Contents
USER MANUAL Go!Messenger User Guide Portable Ultrasonic Nebulizer Model 6700 User Manual Control Set for the BD ProbeTec™ Chlamydia trachomatis Polaroid PDU-2728 User's Manual MIRATRAY-IMPLANT Adash 3750 Monitoring System fflfflfflffl User Manual “必読” 機械の使用前には必ずお読み下さい。 Valueline VLSP40942M coaxial connector Airborne User Manual Copyright © All rights reserved.
Failed to retrieve file