Skip navigation
Home > All Places > WICED Smart Bluetooth > WICED Smart Bluetooth Forums > Blog > 2014 > August
2014
jtate_1939431

WICED SENSE Kit BLOG

Posted by jtate_1939431 Aug 27, 2014
1.0Initial Release
1.9

Added WICED Sense Android Source Code Walk-Thru and iOS Source Code version 1.1

03/10/15

 

Welcome to the WICED Sense BLOG.

WICED Sense Kit Beginners Guide:

WICED Sense Kit Smart Phone Application:

 

WICED Sense Kit using SDK 2.2:

WICED Sense Kit:

 

Please refer to the WICED Sense documents are located here: WICED Smart Documents & Downloads

 

WICED Sense Beginners Guide:

  1. Removing the Battery and WICED Sense Kit Board

Remove_Battery1.JPG

Remove_Battery2.JPG

 

 

WICED Sense SDK Beginners Guide:

  1. SDK 2.1.1 Download
  2. WICED Sense BLOG, Design Files, iOS Source Code
  3. Installation of the Silicon Labs USB-UART Drivers
  4. Connecting the WICED Sense Kit to the USB Cable
  5. Creating a SDK Project for the WICED Sense Kit
  6. Compiling and Downloading the WICED Sense Firmware to WICED Sense Kit.

 

 

WICED Sense Recovery:

  1. Connect the USB Cable to the Kit
  2. Locate the COM Port enumerated by your PC

 

The Recovery Process uses either the COM35 or COM36 ports in our case.

In the SDK Make Target, the recover port is COM35 and we edit the WICED Sense Target as shown below:

Before using the SDK to Recover, we need to place the Kit in Recovery Mode by pressing the sequence of Rest and Boot Buttons as follows:

 

Now we click the Make Target Recovery button and we should see the following:

 

WICED Sense Modification for Debug:

  1. After programming the WICED Sense Kit with your application you will need to remove the resistor highlighted below to add debugging using a TeraTerm Window.
  2. Caution: Remember to Re-Install the resistor to reprogram the device.

 

Resistor_Removal_Debug_TeraTerm.png

 

WICED Sense Code Walk-Thru:

 

 

Procedure for running the WICED Sense TAG on USB Power:

  1. Remove the USB cable after you have successfully programmed the Tag
  2. Leaving the Battery cover off in this process, press the battery into the battery socket until you see the RED Led turn on

P9250930.JPGP9250931.JPG

 

3. While holding the battery with your fingers making the battery connection, insert the USB Cable in the Tag

P9250932.JPG

4.  Release your finger from the battery, letting the battery drop out of the socket and you are now running the Tag from the USB Power

P9250934.JPG

 

 

 

Introduction to WICED Sensors

 

The following STMicro Sensors are used:

 

Please refer to the STMicro Web site for details on Sensor Data Sheets.

 

 

The iOS App receives notifications in this format:

 

 

OTA_Sensor_Packets.JPG

 

struct
{
/// Bit mask of sensor data
/// Bit 0: When set, accelerometer included X (2 signed bytes), Y (2 signed bytes) and Z (2 signed bytes).
/// Bit 1: When set, gyro included X (2 signed bytes), Y (2 signed bytes) and Z (2 signed bytes).
/// Bit 2: When set, humidity included (2 unsigned bytes in percentage).
/// Bit 3: When set, magnetometer included X (2 signed bytes), Y (2 signed bytes) and Z (2 signed bytes).
/// Bit 4: When set, pressure included (2 bytes, pressure in mBar * 10)
/// Bit 5: When set, temperature included (2 unsigned bytes, temperature in C * 10).
UINT8    included_sensor_data;
/// sensor data.
/// Data included in the order of the bits set.
/// Max length is 20 bytes, may be smaller when data for only some sensors is included
///        in the notification.
/// Notifications sent out when enabled
/// Notifications for Sensor Notification characteristic value (handle 0x2A)
UINT8    sensor_data[];
};

 

Android App Released:

The WICED Sense App for Android is now available on Google Play...

 

JB 4.3 Work-Around:

WICED Sense Android Pairing Work-Around

 

iOS Application designed by www.DittyLabs.com

 

 

Thank you.

 

JT

RevisionChange DescriptionDate
1.0Initial08/08/14
1.1Added J-Link Cable for Reference08/11/14

 

WICED Smart J-Link Debugger

 

The WICED Smart J-Link Debugger is a Software debugger combined with Segger J-Link Debug Probe.

 

  1. The J-Link Debug Probe is shown below and the link is located here: SEGGER - The Embedded Experts

 

JLINK_Debugger.JPG

Figure 1: J-Link Segger Debugger

 

2.  Schematic of cable adapter to the J-Link 20 Pin connector:

 

Cable_Schematic.JPG

Figure 2: J-Link Segger Debugger Interface Connector

 

3.  Shown below is the connection to the BCM20737TAG_Q2 Board:

 

J-Link_Connector.JPG

 

Figure 3: J-Link Connection to BCM20737TAG_Q2 Board

 

 

 

 

4.  The Smart Designer J-Link setup procedure:

 

  1. Start SDK

  2. Connect USB to Top Port PC
  3. BCM20737TAG_Q2 Board Switch configuration for programming:

     JLINK_Pic.png

Figure 4: Boot ROM, Reset and Switch Buttons

 

 

 

    1. Please refer to the Quick Start Guide: http://community.broadcom.com/docs/DOC-1602

  1. Configuration for Push Button Switches
    1. BOOT ROM Push Button
    2. RESET Button
  2. Push Button Sequence:
    1. Press and Hold BOOT ROM Button
    2. Press and Hold RESET Button
    3. Release RESET Button
    4. Release BOOT ROM Button
  3. SDK Commands
    1. Run Clean
    2. Run PWM-Tones App
  4. Run Debugger:
    1. Remove USB and Insert Battery
    2. Return Switches to opposite program
    3. Connect J-Link USB Connector to PC
    4. Connect J-Link to Board - See Figure 3 above.
    5. Push Reset
    6. Run GDB Server
    7. Click OK – Observer 2 Green Lights
    8. Click Bug Icon in SDK (Top Middle Section)
    9. Click “I” Icon (Under Navigate Menu) – Instruction Mode

   Click “I” once then press F5 3 times.


Note: R3 (the 10K pulldown on RXd) must be removed for the debugger to work.


Please let us know if you have any issues.

 

Thanks

 

JT

Filter Blog

By date:
By tag: