21
LE920/LE910 - Wi-Fi interface Application Note 80463NT11345A r3 2015-05-21

LE920/LE910 - Wi-Fi interface Application Note

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: LE920/LE910 - Wi-Fi interface Application Note

LE920/LE910 - Wi-Fi interface

Application Note80463NT11345A r3 2015-05-21

Page 2: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 2 of 21

LE920 series

LE910-NAG/EUG

Page 3: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 3 of 21

SPECIFICATIONS SUBJECT TO CHANGE WITHOUT NOTICE

Notice

While reasonable efforts have been made to assure the accuracy of this document, Telit assumes

no liability resulting from any inaccuracies or omissions in this document, or from use of the

information obtained herein. The information in this document has been carefully checked and

is believed to be entirely reliable. However, no responsibility is assumed for inaccuracies or

omissions. Telit reserves the right to make changes to any products described herein and

reserves the right to revise this document and to make changes from time to time in content

hereof with no obligation to notify any person of revisions or changes. Telit does not assume

any liability arising out of the application or use of any product, software, or circuit described

herein; neither does it convey license under its patent rights or the rights of others.

It is possible that this publication may contain references to, or information about Telit products

(machines and programs), programming, or services that are not announced in your country.

Such references or information must not be construed to mean that Telit intends to announce

such Telit products, programming, or services in your country.

Copyrights

This instruction manual and the Telit products described in this instruction manual may be,

include or describe copyrighted Telit material, such as computer programs stored in

semiconductor memories or other media. Laws in the Italy and other countries preserve for Telit

and its licensors certain exclusive rights for copyrighted material, including the exclusive right

to copy, reproduce in any form, distribute and make derivative works of the copyrighted

material. Accordingly, any copyrighted material of Telit and its licensors contained herein or

in the Telit products described in this instruction manual may not be copied, reproduced,

distributed, merged or modified in any manner without the express written permission of Telit.

Furthermore, the purchase of Telit products shall not be deemed to grant either directly or by

implication, estoppel, or otherwise, any license under the copyrights, patents or patent

applications of Telit, as arises by operation of law in the sale of a product.

Computer Software Copyrights

The Telit and 3rd Party supplied Software (SW) products described in this instruction manual

may include copyrighted Telit and other 3rd Party supplied computer programs stored in

semiconductor memories or other media. Laws in the Italy and other countries preserve for Telit

and other 3rd Party supplied SW certain exclusive rights for copyrighted computer programs,

including the exclusive right to copy or reproduce in any form the copyrighted computer

program. Accordingly, any copyrighted Telit or other 3rd Party supplied SW computer

programs contained in the Telit products described in this instruction manual may not be copied

(reverse engineered) or reproduced in any manner without the express written permission of

Telit or the 3rd Party SW supplier. Furthermore, the purchase of Telit products shall not be

deemed to grant either directly or by implication, estoppel, or otherwise, any license under the

copyrights, patents or patent applications of Telit or other 3rd Party supplied SW, except for

the normal non-exclusive, royalty free license to use that arises by operation of law in the sale

of a product.

Page 4: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 4 of 21

Usage and Disclosure Restrictions

License Agreements

The software described in this document is the property of Telit and its licensors. It is furnished

by express license agreement only and may be used only in accordance with the terms of such

an agreement.

Copyrighted Materials

Software and documentation are copyrighted materials. Making unauthorized copies is

prohibited by law. No part of the software or documentation may be reproduced, transmitted,

transcribed, stored in a retrieval system, or translated into any language or computer language,

in any form or by any means, without prior written permission of Telit

High Risk Materials

Components, units, or third-party products used in the product described herein are NOT fault-

tolerant and are NOT designed, manufactured, or intended for use as on-line control equipment

in the following hazardous environments requiring fail-safe controls: the operation of Nuclear

Facilities, Aircraft Navigation or Aircraft Communication Systems, Air Traffic Control, Life

Support, or Weapons Systems (High Risk Activities"). Telit and its supplier(s) specifically

disclaim any expressed or implied warranty of fitness for such High Risk Activities.

Trademarks

TELIT and the Stylized T Logo are registered in Trademark Office. All other product or

service names are the property of their respective owners.

Page 5: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 5 of 21

................................................................................................................... 2

1. Introduction .................................................................................................................................. 6

...................................................................................................................................... 6

................................................................................................................................ 6

............................................................................................ 6

............................................................................................................. 7

................................................................................................................ 7

2. The Wi-Fi Interface ...................................................................................................................... 8

........................................................................................................................... 8

........................................................................................................... 8

2.2.1. LE920 Wi-Fi interface ................................................................................................................. 8

2.2.2. LE910 Wi-Fi interface ................................................................................................................. 9

........................................................................................................... 9

..................................................................................... 10

..................................................................................... 13

3. Wi-Fi Demo getting started guide ............................................................................................. 16

................................................................................................ 16

.......................................................................................................... 16

............................................................................................................ 17

........................................................................... 19

Page 6: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 6 of 21

[email protected]

[email protected]

[email protected]

[email protected]

Page 7: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 7 of 21

Revision Date Changes

r1 10th Sept 2014 Initial

r2 12th Feb 2015 Software updates

r3 21st May 2015 Add LE910 support

Page 8: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 8 of 21

The Wi-Fi Interface is one part of the Baseband System.

Its main application is to be connected with Qualcomm Atheros QCA6053 chipset.

The Wi-Fi Interface is basically a dedicated SD interface that is designed as a communication

channel to the Qualcomm Atheros chipset.

LE920 Wi-Fi interface contain the following signals:

Function LE920 function pin #

WLAN RESET WIFI_SDRST_TGPIO13 Y3

SDIO CMD WIFI_SDCMD_TGPIO14 AB3

SDIO DATA 0 WIFI_SD0_TGPIO15 AD3

SDIO DATA 1 WIFI_SD1_TGPIO16 AF3

SDIO DATA 2 WIFI_SD2_TGPIO17 AH3

SDIO DATA 3 WIFI_SD3_TGPIO18 AK3

SDIO CLOCK WIFI_SDCLK_TGPIO19 AM3

Page 9: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 9 of 21

LE910 Wi-Fi interface contain the following signals:

Function LE910 function pin #

WLAN RESET WIFI_SDRST TGPIO alternate function

SDIO CMD WIFI_SDCMD N13

SDIO DATA 0 WIFI_SD0 J13

SDIO DATA 1 WIFI_SD1 M13

SDIO DATA 2 WIFI_SD2 K13

SDIO DATA 3 WIFI_SD3 H13

SDIO CLOCK WIFI_SDCLK L13

The following diagram shows basic connection of LE920 Wi-Fi interface with Qualcomm

QCA6053 ref. design

Figure 1: Basic block diagram connection

LE920/LE910

ATHEROS

QCA6053 Ref. design

WI-Fi SDIO Int.

VBATT (3.3V – 4.2V)

VAUX (1.8V)

Page 10: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 10 of 21

Wi-Fi interface connection using LE920 IFBD and QCA6053 reference schematics, is done via

IFBD utility header connectors, references PL102 and PL104.

The following table shows detailed connection:

Function LE920 function LE920 IFBD Connection

WLAN RESET WIFI_SDRST_TGPIO13 PL104 / pin 10

SDIO CMD WIFI_SDCMD_TGPIO14 PL102 / pin 22

SDIO DATA 0 WIFI_SD0_TGPIO15 PL102 / pin 21

SDIO DATA 1 WIFI_SD1_TGPIO16 PL104 / pin 9

SDIO DATA 2 WIFI_SD2_TGPIO17 PL102 / pin 19

SDIO DATA 3 WIFI_SD3_TGPIO18 PL102 / pin 17

SDIO CLOCK WIFI_SDCLK_TGPIO19 PL102 / pin 24

VBATT Supply VBATT PL104 / pin 25

1.8V Supply VAUX PL104 / pin 16

GND GND PL102 / pins 15,16

Page 11: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 11 of 21

Figure 2: LE920 IFBD and QCA6053 IFBD connection example

Connected to LE920 Wi-Fi Demo Board

Utility header connectors

LE920 Wi-Fi Demo board mounted on

xE920 IFBD

Page 12: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 12 of 21

Figure 3: Telit LE920 Wi-Fi Demo board – Top & Bottom View

Figure 4: QC SD48 Top & Bottom view

Page 13: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 13 of 21

Wi-Fi interface connection using LE910 IFBD and QCA6053 reference schematics, is done via

IFBD utility header connectors, references PL102 and PL104.

The following table shows detailed connection:

Function LE910 function LE910 IFBD Connection

WLAN RESET WIFI_SDRST PL102 / pin 6

(example for GPIO_05 set as

alternate function)

SDIO CMD WIFI_SDCMD PL204 / pin 8

SDIO DATA 0 WIFI_SD0 PL204 / pin 3

SDIO DATA 1 WIFI_SD1 PL204 / pin 5

SDIO DATA 2 WIFI_SD2 PL204 / pin 6

SDIO DATA 3 WIFI_SD3 PL204 / pin 4

SDIO CLOCK WIFI_SDCLK PL204 / pin 7

VBATT Supply VBATT PL101 / pin 9

1.8V Supply VAUX PL102 / pin 1

GND GND PL102 / pin 10

PL204 / pin 10

PL101 / pin 10

Page 14: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 14 of 21

Figure 5: LE910 IFBD and QCA6053 IFBD connection example

Connected to LE910 Wi-Fi Demo Board

Utility header connectors

Page 15: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 15 of 21

Figure 6: Telit LE910 Wi-Fi Demo board – Top & Bottom View

Page 16: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 16 of 21

The following Drivers must be installed:

- Android SDK platform on a Windows machine:

a) Go to http://developer.android.com/sdk/index.html.

Follow the instructions for installing the SDK (Select SDK only, no need for ADT

bundles).

b) Right-click My Computer, select Properties→Advanced→Environment Variables, and set

the path to include the c:\android-sdk-windows\tools directory.

The path must point to directory with fastboot.exe file in it.

For example -> C:\Program Files\Android\android-sdk\platform-tools

c) Navigate to the %USERPROFILE%\.android directory (simply copy this line into the file

browser: %USERPROFILE%\.android).

d) In the %USERPROFILE%\.android directory, create/edit the adb_usb.ini file. If the file

already exists, it will contain a DO NOT EDIT message. Disregard this message and edit

the file anyway. To edit, add a line containing 0x1bc7 to the end of the file. The file

contents should look like this:

# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.

# USE 'android update adb' TO GENERATE.

# 1 USB VENDOR ID PER LINE: 0x1bc7

- USB drivers on a Windows machine:

1) Open Command prompt (cmd.exe), and execute ‘adb shell’ command.

Line marking will changed to / # -> you can proceed to step 2.

The following steps (2-4) are run from within this shell, as is.

2) echo 1 > /sys/devices/platform/msm_sdcc.2/polling

3) modprobe ar6000 targetconf="router" devmode=ap

4) hostapd -B /etc/hostapd.conf

5) There might be a need to start a data call on the Linux side, which is done by issuing the

following command: network_connect_client start

Page 17: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 17 of 21

a. WLAN support access point mode. To activate it you should:

1. Change wlan mode to access point.

AT#WLANMODE=0

2. Start wlan.

AT#WLANSTART=1

b. WLAN support client mode. To activate it you should:

1. Change WLAN mode to client.

AT#WLANMODE=1

2. Start WLAN.

AT#WLANSTART=1

c. Switch to access point/ client

After activating WLAN you can switch mode from AP to client and from client to AP

using #WLANMODE

1. Change WLAN mode to client.

AT#WLANMODE=1

2. Change wlan mode to access point.

AT#WLANMODE=0

d. Change broadcast mode

After activating/ defining WLAN as AP (see a,c2) you can makes the SSID visible and

broadcast using #WLANBROADCAST.

1. Change SSID to be visible.

AT#WLANBROADCAST=0

2. Change SSID to be invisible.

AT#WLANBROADCAST=1

e. Change/set the network name

After activating/ defining WLAN as AP (see a,c2) you can change/ set the name of the

network using:

AT#WLANSSID="network name"

f. Change/set the network security

Page 18: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 18 of 21

After activating/ defining WLAN as AP (see a,c2) you can change/ set the network

security using #WLANSECURITY.

1. Disable network security

AT#WLANSECURITY=0

2. Enable and define network security

AT#WLANSECURITY= wpa, key_mgmt, pairwise, key

wpa - security type

1 – wpa1

2 – wpa2

3 – wpa1 + wpa2

key_mgmt - This controls what key management algorithms a client can

authenticate with.

0 - WPA-PSK

1 - WPA-EAP

2 - WPA-PSK and WPA-EAP

pairwise - This controls wpa's data encryption

0 – TKIP

1 – CCMP

2 - TKIP and CCMP

key - the network's password (8…63 characters)

Example: define the security to be wpa1, key management algorithms to be WPA-EAP, data

encryption: TKIP, password: 0123456789.

AT#WLANSECURITY=1,0,0,"0123456789"

g. Change/set the AP channel number

After activating/ defining WLAN as AP (see a,c2) you can change/ set the channel

number using:

AT#WLANCHANNEL= number.

NOTE: The channel number should be defined according to the standard.

h. Change/ set the WIFI protocol

WLAN support WIFI protocols b,g,n.

After activating/ defining WLAN as AP (see a,c2) you can change/ set the wireless

protocol using #WLANPROTOCOL.

1. Set the wireless protocol to 802.11b

AT#WLANPROTOCOL=0

2. Set the wireless protocol to 802.11g

AT#WLANPROTOCOL=1

Page 19: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 19 of 21

3. Set the wireless protocol to 802.11n

AT#WLANPROTOCOL=2

i. Scan for wireless networks

After activating/ defining WLAN as client (see b,c1) you can scan for wireless networks

using #WLANSCAN.

1. Scan and display short output:

AT#WLANSCAN=0

2. Scan and display extend output:

AT#WLANSCAN=1

j. Connect to the network

After scanning for wireless networks (see i) you can connect to a specific SSID using

#WLANCONNECT.

1. Connect to network without security.

AT#WLANCONNECT = "SSID NAME"

2. Connect to secure network.

a. With ASCII key

AT#WLANCONNECT="SSID_NAME",1,"KEY"

b. With hexadecimal key

AT#WLANCONNECT="SSID_NAME",0,"KEY"

k. Disconnect from the network

After connecting to the network (see j) you can disconnect using:

AT#WLANDISCONNECT

l. Add/ change Hostapd configuration file

Hostapd configuration file controls many options with regards to AP mode only, in which

not all are supported by the current WIFI chip.

AT#WLANCONFIG= file size.

m. Display last error regarding to the activation of hostapd configuration file

interface

Interface name. Should be set to the WLAN interface.

Page 20: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 20 of 21

interface=eth0

ssid

Set the name of the network

ssid=LE9X0_AP

hw_mode

Define the WIFI protocol

Protocol Frequency Signal Maximum data rate

802.11b 2.4 GHz HR-DSSS 11 Mbps

802.11g 2.4 GHz OFDM 54 Mbps

802.11n 2.4 or 5 GHz OFDM 600 Mbps (theoretical)

Define as 802.11b

Hw_mode=b

ieee80211n=0

wmm_enabled=0

Define as 802.11g

Hw_mode=g

ieee80211n=0

wmm_enabled=0

Define as 802.11n

Hw_mode=g

ieee80211n=1

wmm_enabled=1

ieee80211n: Set to 1 to enable 802.11n support, 0 to disable it

channel_num

Define the channel number

channel_num=1

ignore_broadcast_ssid

Enables/disables broadcasting the ssid

ignore_broadcast_ssid=0/1

wpa

Enables/disables WPA.

wpa=0/1/2/3

wpa=0 - disable wpa

wpa=1 - enables wpa1

wpa=2 - enables wpa2

wpa=3 - enables both

wpa_key_mgmt

Controls what key management algorithms a client can authenticate with.

wpa_key_mgmt=WPA-PSK / WPA-EAP

wpa_pairwise

Page 21: LE920/LE910 - Wi-Fi interface Application Note

80463NT11345A_LE920/LE910 - Wi-Fi interface Application Note

R3 2015-05-21

Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 21 of 21

Controls wpa's data encryption

wpa_pairwise=TKIP / CCMP

wpa_passphrase

This can be either entered as a 256-bit secret in hex format (64 hex digits), wpa_psk, or as an

ASCII passphrase (8..63 characters) that will be converted to PSK. This conversion uses

SSID so the PSK changes when ASCII passphrase is used and the SSID is changed.

wpa_passphrase=1234567890