NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

User:OMAP35x Wireless Connectivity WinCE Demo

From Texas Instruments Wiki
Jump to: navigation, search
Construction Icon small.png This page is currently under construction. The content of this page is due to change quite frequently and thus the quality and accuracy are not guaranteed until this message has been removed. Please feel free to contribute to this page while construction is in progress.

Overview[edit]

Accessing Information[edit]

WiKi Page[edit]

Please refer to the WiKi page at OMAP35xx Wireless Connectivity for more information about the connectivity solution.

Getting Started Guide[edit]

Please refer to the WiKi page at WinCE Getting Started for more information.

Build Environment Instructions[edit]

Please refer to the WiKi page at WinCE Build Environment for more information about the build environment instructions.

Demo Application[edit]

Please refer to the WiKi page at WinCE Demo under the Demo section for more information about Bluetooth and WLAN demo applications.

Download Files[edit]

Please refer to the WiKi page at www.ti.com/connectivitywiki under Downloads to download the most update software release.

Videos[edit]

Please refer to the WiKi page at www.ti.com/connectivitywiki under Videos to view video tutorials.

Image058.jpg

Release Content[edit]

Prerequisites[edit]

Hardware[edit]

  • OMA3EVM Rev-G Board
    • With a Rev C processor module
  • WL1271 Daughter card
  • A Computer with WLAN and Bluetooth support and an SDCard reader.
  • A clean SDCard (64 Mbytes or larger)
  • A wireless Access Point with the corresponding network credential

Software[edit]

  • Windows XP/Vista/Seven computer


Tools[edit]

The following tools must be downloaded from the web:

  • Tera Term: A serial port terminal program should be used to communicate with the OMAP35x EVM board’s serial port console. This tool is required for running the WLAN and BT demos. TeraTerm is the recommended terminal emulator for Windows.
  • VLC Player: a free video player and stream application allowing video streaming to remote devices, in order to illustrate the Bluetooth Coexistence.
  • FileZilla Client: a free FTP client application that could be used to test FTP capabilities.

Setting up the System[edit]

WLAN Network map[edit]

Different scenarios can be used for the WLAN demonstration.

Access Point configuration[edit]

In this configuration you need both Computer and EVM board to be connected on the same network through a Wireless Access Point.

Application image013.gif

Note: Using WLAN interface of the computer to connect to the network can reduce the performance due to a reduced Bandwidth.

Point to Point configuration[edit]

This “standalone” configuration allows you to connect to an ad hoc network hosted on your Computer from the EVM board, without the requirement of a network Wireless Access Point. In fact your computer is acting as an AP.

Application image014.gif

In this configuration you will have to set manually the IP Address of both wireless interfaces, the one on the laptop, and the one on the EVM. Refer to paragraph 3.2 Setting Up the Host Computer for IP Address configuration

Setting Up the Host Computer[edit]

The Host computer must be a PC running Windows XP that supports telnet client application

Change the local IP address according to the network configuration you desire.

Application Image016.jpg


Setting Up the Target System[edit]

The OMAP3 EVM development has a number of possible combinations for a number of hardware interfaces. These combinations are determined by the definitions of the jumper settings and a dip switch.

DIP Switch Settings[edit]

The OMAP3530 processor supports various boot modes. On the OMAP3530 development boards, the boot modes are selected by setting various dip-switch combinations. On the OMAP3 EVM development board, this switch is labeled SW4. The dip switch settings for the various boot modes are as follows:

Table 1: MMC/SD Boot
1 2 3 4 5 6 7 8
OMAP3EVM With Micron NAND ON ON ON OFF OFF ON OFF OFF

Setting Up the WLAN DC Hardware[edit]

To setup the WLAN DC hardware:

1. Mount the daughter card as shown below:

Image015.gif

The following shows the picture of the daughter board on its own.

Image017.gif

2. Check that jumper J8 is connected between terminal 1 and 2 in order to enable normal use, as shown below:

Image019.gif

3. Check that jumper JP2 is connected. This jumper is only used if the board is modified to power up from the USB connectors, as shown below:

Image021.gif

4. Verify that jumpers J2 and J3 are not connected, as shown below:

Image023.gif

5. Check that jumper JP1 is either not connected or connected between 1-2 for normal use, as shown below:

Image025.gif

To setup the WLAN IP Address:

1. To change the IP Address, open the Start -> Settings -> Network and Dial-up Connections

Application Image030.jpg

2. Select the network interface (SMSC91181) in the list and choose File -> Properties menu

Application Image032.jpg

3. Enter an IP address

Application Image034.jpg

Loading the Images[edit]

Setting Up the Hardware for Loading[edit]

To load the images to the SD Card

1. Preparing the SD Card to be bootable on the EVM: Use SD card boot utility Install the TI_SDCard_boot_utility_v1_0.exe that can be found in X:\WINCE600\3rdParty\TI_ECS\Images\SDCard_boot_utility folder in the SW distribution.

Step 1. Run the installed utility

Step 2. Select the SD card drive

Step 3. Browse and Select the MLO file

Step 4. Browse and Select the EBOOTSD.NB0 and NK.BIN files

Step 5. Click Proceed.

Click "Start" to format the SD card

Click "OK" for Format Warning

Click "OK" once "Format Complete" window pops up

Click "Close" to close the format window

Click "Quit" once the files are copied

Note: binaries (MLO, EBOOTSD.nb0 and NK.BIN) are located in X:\WINCE600\3rdParty\TI_ECS\Images. This document is assuming you have read the user guide.

Starting to Load[edit]

The following procedure describes how to start loading the Kernel WLAN and BT images. To start loading the Kernel (nk.bin):

1. Connect the OMAP35x EVM to the power supply

2. Wait until the Kernel finishes booting up.

Bluetooth Only Demos[edit]

Pre-requisite[edit]

Pre-requisites for all the demos described below are the following:

1. From the Adeneo Embedded Bluetooth Manager, located on the Window Desktop screen, enumerate and pair with the remote device. For pairing with a device, you have to hold while pressing on the icon device and then select pair.

2. After pairing accepted, list the remote device services and connect to the one identified for each scenario.


Scenario: Play MP3 on A2DP headset[edit]

An MP3 file is included in the Runtime image but any other could be used for this scenario. You can store the file on the SDCard that will be visible under Windows CE as “Storage Card” folder. Start A2DP audio session

1. Launch the Bluetooth Manager

Application Image037.jpg

2. Inquiry and pair with the A2DP headset. If on the first inquiry, there is any devices; you can use the refresh command (green arrows).

Application Image039.jpg

3. Pair with the A2DP headset (holding while pressing on the A2DP icon, and selecting pair command) and enter pin code (see headset documentation for default pin code of your device)

Application Image041.jpg

4. List the A2DP device services and connect to A2DP service

Application Image043.jpg

5. Switch to File Explorer without closing the Bluetooth Manager, otherwise you will loose the connection with the headset. And select the MP3 file located in the windows folder.

Application Image045.jpg

6. Double click on it to launch the Media Player

Application Image047.jpg

7. Make Media Player loop the audio to get a continuous audio stream

Application Image049.jpg

Scenario: Send Picture using Object Push[edit]

Using Object Push to send a picture will send a picture from the board using WL1271 extension kit to the selected device (in /My Memory repository for Windows Embedded CE devices). 1. Launch the Bluetooth Manager

Application Image037.jpg

2. Launch inquiry and list the remote device services

Application Image051.jpg

3. Select Object Push service and push a file. You can select Logo file located in Windows folder.

Application Image053.jpg

4. Hit OK to start transfer

Application Image055.jpg

Scenario: Send vCard[edit]

This scenario illustrates the sending of a Virtual Card or vCard from a Windows CE device to a phone.

1. Launch the Bluetooth Manager

Application Image037.jpg

2. Launch inquiry; for the identified device (most common devices accepting vCards are Bluetooth Enable Phones), list the remote services

Application Image051.jpg

3. Select Object Push service and push a file. You can select BusinessCard file located in Windows folder.

Application Image057.jpg

4. Hit OK to start transfer

Application Image059.jpg

Scenario: Serial Communication[edit]

This scenario illustrates the Serial Port Profile support by sending dedicated application data between the target and a Laptop. Start serial Bluetooth connection

1. Launch the Bluetooth Manager

Application Image060.jpg

2. Launch inquiry; for the identified device, list the remote services. Identify a device that provide a Serial Port service (SPP)

Application Image062.jpg

3. Connect to the Serial Port service and choose the local port number. Keep this information for later use in this scenario.

Application Image064.jpg

4. Wait until connection confirmation

Application Image066.jpg


Start serial test application

Switch to the Windows CE desktop, and launch the Serial Test application. Enter the serial port number identified at step 3. And hit the Open button.

Application Image068.jpg


Start serial terminal application

Under Windows, start a TeraTerm application and connect to the Bluetooth Serial Port enabled after Windows CE Target Bluetooth connection

Application Image070.jpg


Send data in both directions

1. From Windows CE, type keys on the bottom edit area and hit send

Application Image072.jpg

2. Check out the result on the Laptop.

Application Image074.jpg

3. Do the same from the laptop by typing in the Tera Term Window. No echo is displayed in the Tera Term window, so you cannot see what you are typing.

WLAN Only Demos[edit]

This chapter describes the WLAN scenarios. For all the scenarios, we are assuming that the board is powered on and the touch screen aligned.

Pre-requisite[edit]

Pre-requisites for all the demos are described above

Connecting to a Unsecured WLAN Network[edit]

To connect to an unsecured WLAN network GUI:

1. Display the list of available Access Points. If window does not show up, click on the network icon located in the task bar.

Application Img003.jpg

2. Select the desired network and hit the connect button.


To connect to an unsecured WLAN network from ZeroConfig Tool:














Verifying the Connection to the Access Point[edit]

A simple ping test can be used to verify the connection to the access point.

To verify connection with the access point:

1. Use the hardware setup to run the ping test:

2. Configure the EVM WLAN IP address and make sure that the EVM Ethernet port and WLAN port do not share the same IP subnet address.

Note: To change the IP Address of the WLAN interface, follow the instructions for 4.1Setting Up the Hardware for Loading, but select TIWLNAPI1 network interface instead of the SMSC one.


3. Verify that the WLAN interface (tiwlnapI1) IP address is configured correctly, as shown below:

\> ipconfig Windows IP configuration

Ethernet adapter [TIWLNAPI1]:

        IP Address ........ : 192.168.1.70
        Subnet Mask ....... : 255.255.255.0

Ethernet adapter [BTPAN1]:

        IP Address ........ : 0.0.0.0
        Subnet Mask ....... : 0.0.0.0

Ethernet adapter [SMSC91181]:

        IP Address ........ : 192.168.1.10
        Subnet Mask ....... : 255.255.255.0

4. Configure the IP address of the laptop that is connected to the access point via the Ethernet cable to be in the same subnet as the EVM WLAN port. In this example, it is configured to 192.168.1.100. The gateway IP address is not important for this test.

5. Use the Ping command to ping the PC that is connected to the access point. In the EVM menu, type the following:

\> ping 192.168.1.100

   Pinging Host 192.168.1.100
   Reply from 192.168.1.100: Echo size=32 time=95ms TTL=128
   Reply from 192.168.1.100: Echo size=32 time=48ms TTL=128
   Reply from 192.168.1.100: Echo size=32 time=67ms TTL=128
   Reply from 192.168.1.100: Echo size=32 time=64ms TTL=128

\>

Scenario: Ping to/from the EVM[edit]

In order to validate that the wireless interface is connected unplug the wired interface of the EVM.

Ping the Laptop from the EVM:

From the command line window, accessible from Start -> Programs -> Command Prompt

Application Image080.jpg

Enter: ping 192.168.1.70

Ping the EVM from the Laptop:

From the command line window, accessible from Start -> Run -> Cmd

Enter: ping 192.168.1.100

Scenario: Connect to EVM FTP server[edit]

Using FileZilla client application from the laptop, connect to the EVM platform. To get FileZilla FTP client, see 2.2 Tools

1. Launch FileZilla and specify the host IP Address

Application Image082.jpg

2. Hit the Quickconnect button

Application Image084.jpg

3. Upload or download files in the Mounted Volume folder

Application Image086.jpg

Scenario: Web browsing from EVM[edit]

The demonstration runtime image comes with various pre-programmed Favorite web sites, accessible from the Favorites menu of Internet Explorer.

  • Adeneo-Embedded : point to the Adeneo Embedded website
  • CNN
  • Google : start googling from here
  • Help Bluetooth Manager : Bluetooth Manager help instructions
  • Local Bluetooth Manager: Adeneo Embedded’s Bluetooth product description.
  • Texas Instruments : TI corporation website
  • TI Connectivity : the TI connectivity dedicated web page

Application Image088.jpg

WLAN and Bluetooth coexistence[edit]

This chapter describes the Bluetooth and WLAN coexistence scenarios, by illustrating audio streaming to A2DP device and WLAN traffic simultaneously. For all the scenarios, we are assuming that the board is powered on and the touch screen aligned.

Pre-requisite[edit]

Pre-requisites for all the demos are described above.

Scenario: Web browsing and playing local MP3[edit]

The goal for this scenario is to demonstrate that user can stream audio to an A2DP device while browsing the web through the WLAN interface.

Connect to favorite AP:

  Connect the device to the AP and configure the IP address if required.

Start A2DP audio session:

1. Launch the Bluetooth Manager.

Application Image089.jpg

2. Inquiry and pair with the A2DP headset.

Application Image039.jpg

3. Pair with the A2DP headset and enter pin code (see headset documentation for default pin code of your device)

Application Image041.jpg

4. List the A2DP device services and connect to A2DP service.

Application Image043.jpg


5. Switch to File Explorer without closing the Bluetooth Manager, otherwise you will loose the connection with the headset. And select the MP3 file located in the windows folder.

Application Image045.jpg

6. Double click on it to launch the Media Player.

Application Image047.jpg

7. Make Media Player loop the audio to get a continuous audio stream.


Application Image049.jpg


Start Web session:

Launch Internet Explorer and Browse the Web The demonstration runtime image comes with various pre-programmed Favorite web sites, accessible from the Favorites menu of Internet Explorer.

  • Adeneo-Embedded : point to the Adeneo Embedded website
  • CNN
  • Google : start googling from here
  • Help Bluetooth Manager : Bluetooth Manager help instructions
  • Local Bluetooth Manager: Adeneo Embedded’s Bluetooth product description.
  • Texas Instruments : TI corporation website
  • TI Connectivity : the TI connectivity dedicated web page

Application Image092.jpg

Scenario: Web Video streaming and rendering on A2DP device[edit]

The goal for this scenario is to demonstrate that the user can watch a video stream and redirect the audio to an A2DP device. Connect to favorite AP:

  Connect the device to the AP and configure the IP address if required.


Start A2DP audio session:

  Connect to the A2DP device like described in paragraphed Scenario: Play MP3 on A2DP headset   


Start Web Video streaming session:

1. Launch File explorer and browse to the Windows Folder, locate the French_Council shortcut.

Application Image094.jpg

2. Double click on the file, Media Player should start and play the video.

Application Image096.jpg

3. Audio should be sent to the A2DP Headset.

Scenario: Video streamed from Computer and rendered on A2DP device[edit]

This scenario illustrates the WLAN video streaming from a server located on the laptop, and Bluetooth coexistence with the streaming of the audio stream to an A2DP headset device. Start A2DP audio session:

  Connect to the A2DP device like described in paragraph Scenario: Play MP3 on A2DP headset

Launch VLC streaming session:

1. Launch VLC media player application.

Application Image098.jpg

2. Select Media->Streaming menu entry to start streaming a video.

Application Image100.jpg

3. Select a video to be streamed.

Application Image102.jpg

4. Hit the Stream button and select MMS in the destination list box, then Add, and enter the local IP Address that should be 192.168.1.170

Application Image104.jpg

Create a transcoding profile using the Application Image110.jpg button. Specify OMAP as a Profile Name and select:

   a. Encapsulation 
       i. ASF/WMV 
   b. Video Codec
       i. Codec : WMV1
       ii. Bitrate : 20 Kb/s
       iii. Frame Rate : 10 fps
   c. Audio Codec
       i. Codec : WMA2
       ii. Bitrate : 15 kb/s
       iii. Channels : 1
       iv. Sample Rate : 11250


Connect to VLC streaming session:

1. Start Media Player application from your target, and go to Open -> Open URL and enter the following url : mms://192.168.1.170:8080

Application Image115.jpg

2. Enjoy the show