Z-location Engine A PC tool used to configure and display location engine results RSSI Received Signal Strength Indicator TIMAC Texas Instruments Media Access Control, a SW protocol that handles IEEE 802.15.4 data handling SOC_BB System on Chip Battery Board CC243xEM...
CC2431 CC2431DK content The development kit contains the following: 2 x SmartRF04EB 10 x SOC_BB (Battery Board) 2 x Evaluation Modules CC2430EM 10 x Evaluation Modules CC2431EM 12 x 2.4GHz Antennas 2 x USB cables 1 x RS232 Serial cable 1 x 10-wire flat cable for using SmartRF04EB as emulator for external target systems 1 x Quick start guide SmartRF04EB with CC2430EM...
CC2431 System overview For an introduction to the location engine please see application note AN042, document number SWRA095. The note is available from www.ti.com. Figure 1: Location Estimation The location algorithm used in CC2431 Location Engine is based on RSSI (Received Signal Strength Indicator) values.
CC2431 5.2 Nodes The CC2431 Location Engine uses the RSSI value combined with the physical location of the Reference Nodes to calculate its own position. Any number of Reference Nodes can be used in the system, but a node can only calculate its position if it is within range of at least three Reference Nodes Experiments have shown that one Reference Node for each 100 m gives good location...
CC2431 5.4 Program flow The program flow for both Reference Node and Blind Node are shown in Figure 2 and Figure 3. The figures are simplified. Figure 2: Reference Node Figure 3: Blind Node 5.5 Communication Flow The Z-location Engine is configured to periodically query the entire network – the X,Y of all Reference Nodes is requested and all Blind Nodes are commanded to perform a position calculation.
Page 9
CC2431 Notation Accuracy UINT8_1 127,5 0.5 meter UINT8_2 63,75 0.25 meter UINT16_2 16 383,75 0.25 meter Table 1: Notation SWRU076D Page 9 of 32...
The Location engine example source code is provided as a sample application in the TIMAC. To install the location sample source code in the right directory copy the zip file with the source code to C:\Texas Instruments\TI-MAC-1.1.0. Unzip the file and preserve file paths, this will copy the source files to C:\Texas Instruments\TI-MAC-1.1.0\Projects\mac\Location Navigate to the IAR_Files project directory located at: C:\Texas Instruments\TI-MAC-1.1.0\Projects\mac\Location\cc2430\IAR Project...
CC2431 The hardware platform of choice for a build should be selected from the Workspace pull- down menu as displayed in Figure 5. Figure 5: IAR Workbench Setup Build the desired device application by pulling down the Project menu and clicking on Rebuild All 6.2 Embedded Software Architecture The location logic is implemented as a simple client layer built atop of the TIMAC.
Page 12
CC2431 separate layer within the source code, but is merged with the TIMAC sub-layer for performance and code-size purposes. SWRU076D Page 12 of 32...
CC2431 Hardware description 7.1 Battery Board Button S1 I/O Connector A SoC Debug connector Power Switch I/O Connector B Figure 6: System on Chip Battery Board with CC2430EM Figure 6 is showing the system on chip battery board. The main function for this board is to power the CC2430 or CC2431EM with use of two AA batteries.
CC2431 be found in the schematic in Figure 26 and in the CC1110DK, CC2430DK, CC2510DK Development Kit User Manual (SWRU039). The SoC Debug connector can be used both for downloading firmware to the flash and for debugging of the chip. For both actions use of SmartRF04EB as an In Circuit Emulator is required.
Page 15
CC2431 Figure 9: SmartRF04EB to program SOC_BB The SmartRF04EB is used as ICE for external target hardware such as the SOC_BB. To use the SmartRF04EB as ICE, the IAR Embedded Workbench software must be installed. The Embedded Workbench is a C-Compiler, Simulator, and ICE debugger. When the SmartRF04EB is connected to a PC with the USB port, the debugger will connect to the SmartRF04EB.
CC2431 voltage level converter Debug Clock (DC) Debug Data (DD) SCLK Reset_N MOSI 3.3V VDD, alt. NC Delivers VDD from SmartRF04EB MISO Table 2: P14 SoC debug connector pin-out 1. GND 2. VDD 3. DC 4. DD 7. Reset_N Figure 10: Recommended debug connector layout (Top view) 7.3 SmartRF04EB Please refer to the user manual available for CC2430DK (Ti document number SWRU039) for a description of the SmartRF04EB (Figure 11).
CC2431 Nodes All Blind Nodes must be CC2431 evaluation modules. Reference Nodes and packet sniffer nodes may be equipped with either CC2430 or CC2431. If a CC2430 is used as a Blind Node, an LED on the board used will start blinking. 8.1 Setup/ Start-up The SmartRF04EB and CC2430DB boards have a 5-position joystick, designated U400, which provides these switch inputs as shown in the table below.
CC2431 used to issue messages into the network, and the other nodes in the network are using the dongle for addressing packets to the PC application. Figure 15: Overview It’s recommended to use a SmartRF04EB for the location dongle, since this board gives easy access to a UART connection.
CC2431 9.4 Interaction with other network nodes The PC application will from time to time issue two different broadcast messages into the network. This is done through the location dongle, which is a complete node that participates in the network. All nodes associated to the network will show up as either reference nodes or blind nodes in the Z-Location Engine PC application.
CC2431 10. Graphical User Interface Interaction with the Z-Location Engine is done through graphical user interface shown below. The user interface and menus are described in the following sections. Figure 17: Z-Location Screenshot SWRU076D Page 20 of 32...
CC2431 10.1 Menus and buttons The PC application has a few menus and buttons to control the application. Stop Start Toggle settings panel Zoom level Slider for zoom Figure 18: Menus and buttons Toggle settings panel: Show / hide the settings panel in the lower part of the GUI Start: Connect to the location dongle Stop:...
Note that this flash programming utility always will retain the IEEE address stored in the 8 last bytes in the flash of CC2430/CC2431. To generate a HEX file, please refer to the Texas Instruments IAR user manual available from the TI web site. Figure 20: Setup Panel 10.2.2 Background...
CC2431 Figure 21: Background Panel By checking or unchecking “Visible grid” and / or “Show background image” different views can be selected. Figure 22 shows the effect of these check boxes. The upper left figure in the shows both boxes unchecked, the next image shows “Visible grid” checked, the next shows both checked and the lowermost right image shows “Visible grid”...
CC2431 while pointing to its intended location in the blue area or background map. The X and Y coordinates of the intended location will be set in the X and Y fields of the Reference Node Setup tab. Press “Update” to assign the coordinates of the reference node. After a few seconds the node will appear as a yellow circle and the X and Y values in the list will be updated.
CC2431 Number of messages: Shows the total number of incoming messages to the PC application since the Z-Location Engine was started. Number of blind node messages: Shows the total number of incoming blind node messages since the Z-Location Engine was started. The Number of unsuccessful messages is the number of messages that is reported to be false.
CC2431 The entire process is started again when another Blind Node Request is received. 11.1.2 Auto Mode(Default) In Auto Mode, the process for acquiring the Reference Node data is exactly the same as for polled mode, except this mode allows the Blind Node to start collecting Reference Node data automatically in a periodic fashion by timer or user event (such as a button press) without having to be manually asked by the host-system.
CC2431 in preparation for another series of blasts. Thus, if a blast was never sent, the RSSI average is just the RSSI value of the request message. Byte Description Value Index 0 & 1 Reference Node’s X position Bits 15-2 – whole meters Bits 1-0 –...
CC2431 Byte Description Value Index 0 & 1 Reference Node’s X position Bits 15-2 – whole meters Bits 1-0 – 0.25 meters 2 & 3 Reference Node’s Y position Bits 15-2 – whole meters Bits 1-0 – 0.25 meters 12.6 Blind Node Configuration (Cluster ID: 0x0016) Send this message to the Reference Node to set its configuration items.
CC2431 indication) of the blast of broadcasts received. This message doesn’t have a body to the message. Constants in software This chapter describes some of the constants used in the software. These constants can be modified to change the behavior of the location system. The constants are all defined in the file blindnode.c.
Page 30
CC2431 13.3 Radio channel settings and PANID By default the location example applications are configured to used channel 16 (0x10) and using PANID 0x11CC. The channel and PANID can be changed in msa.h Schematics The schematic for the SOC_BB (Battery Board) is shown below. The CC2431EM is equal to the CC2430EM except for the CC2430/CC2431 chip.
Page 32
CC2431 Document history Revision Date Description/Changes 2006-03-10 Initial release. 2006-06-01 Minor changes 2006-08-14 Some changed in the structure of the manual. Updated to reflect some changes in the IAR project files. 2006-11-14 Minor changes to make the document easier to read. 2007-03-13 Updated with new PC GUI and TIMAC 2007_06_05...
Page 33
TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they use any non-designated products in automotive applications, TI will not be responsible for any failure to meet such requirements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions: Products...