iW-SMG3SMTS-ARD Pico WiReach EVB for Arduino One_06052017_iW-SMG3SMTS-ARD-11604… ·...
Transcript of iW-SMG3SMTS-ARD Pico WiReach EVB for Arduino One_06052017_iW-SMG3SMTS-ARD-11604… ·...
Connect One Ltd. 20 Atir Yeda Street, Kfar Saba 44643, Israel | Phone: +972-9-766-0456 | Fax: +972-9-766-0461 Email: [email protected] | www.connectone.com
iW-SMG3SMTS Datasheet
iW-SMG3SMTS-ARD Pico WiReach EVB for Arduino
Version 1.2
SMG3SMTS-Ard™ –Datasheet
2
Information provided by Connect One Ltd. is believed to be accurate and reliable. However, Connect One Ltd. assumes no
responsibility for its use, nor any infringement of patents or other rights of third parties, which may result from its use. No license
is granted by implication or otherwise under any patent rights of Connect One Ltd. other than for circuitry embodied in
Connect One’s products. Connect One Ltd. reserves the right to change circuitry at any time without notice. This document is
subject to change without notice.
The software described in this document is furnished under a license agreement and may be used or copied only in accordance
with the terms of such a license agreement. It is forbidden by law to copy the software on any medium except as specifically
allowed in the license agreement. No part of this document may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including but not limited to photocopying, recording, transmitting via fax and/or modem devices,
scanning, and/or information storage and retrieval systems for any purpose without the express written consent of Connect One.
WARNING: THE Pico WiReach SMTS SHIELD FOR ARDUINO ENVIROMENT IS AN RF MODULE INTENDED FOR EMBEDDING IN A
HOST DEVICE OR BE USED FOR EVALUATION PURPOSES ONLY. LOCAL RELEVANT RF REGULATIONS SUCH AS ALLOWED
FREQUENCIES AND USAGE IN COMMERCIAL FLIGHTS MUST BE OBSERVED. SAFETY INSTRUCTIONS MUST BE INCLUDED IN THE
MANUALS OF THE HOST DEVICE. CONNECT ONE LTD. ASSUMES NO LIABILITY FOR CUSTOMER FAILURE TO COMPLY WITH THESE
PRECAUTIONS.
This section is pending for approvals from FCC and IC
" Under Industry Canada regulations, this radio transmitter may only operate using an antenna of a type and maximum (or lesser) gain approved for the transmitter by Industry Canada. To reduce potential radio interference to other users, the antenna type and its gain should be so chosen that the equivalent isotropically radiated power (e.i.r.p.) is not more than that necessary for successful communication." " Conformément à la réglementation d'Industrie Canada, le présent émetteur radio peut fonctionner avec une antenne d'un type et d'un gain maximal (ou inférieur) approuvé pour l'émetteur par Industrie Canada. Dans le but de réduire les risques de brouillage radioélectrique à l'intention des autres utilisateurs, il faut choisir le type d'antenne et son gain de sorte que la puissance isotrope rayonnée équivalente (p.i.r.e.) ne dépasse pas l'intensité nécessaire à l'établissement d'une communication satisfaisante." " This radio transmitter (iW-SmG3SMTS-EX or -OB) has been approved by Industry Canada to operate with the antenna types listed below with the maximum permissible gain and required antenna impedance for each antenna type indicated. Antenna types not included in this list, having a gain greater than the maximum gain indicated for that type, are strictly prohibited for use with this device." " Le présent émetteur radio (iW-SmG3SMTS-EX or -OB) a été approuvé par Industrie Canada pour fonctionner avec les types d'antenne énumérés ci-dessous et ayant un gain admissible maximal et l'impédance requise pour chaque type d'antenne. Les types d'antenne non inclus dans cette liste, ou dont le gain est supérieur au gain maximal indiqué, sont strictement interdits pour l'exploitation de l'émetteur." " This device complies with Industry Canada license-exempt RSS standard(s). Operation is subject to the following two conditions: (1) this device may not cause interference, and (2) this device must accept any interference, including interference that may cause undesired operation of the device." " Le présent appareil est conforme aux CNR d'Industrie Canada applicables aux appareils radio exempts de licence. L'exploitation est autorisée aux deux conditions suivantes : (1) l'appareil ne doit pas produire de brouillage, et (2) l'utilisateur de l'appareil doit accepter tout brouillage radioélectrique subi, même si le brouillage est susceptible d'en compromettre le fonctionnement." Antennas: Air Wave (EA-79F); Tekfun C. (M04-SR); YC Communication (Q24-24W); Pulse (W1030). Maximum Gain all: 2dBi.
SMG3SMTS-Ard™ –Datasheet
3
Pico WiReach, IP Communication Controller, AT+i and Connect One are trademarks of Connect One Ltd.
Copyright 2017 Connect One Ltd. All rights reserved.
SMG3SMTS-Ard™ –Datasheet
4
Table of Contents
Revision History .................................................................................................................................................... 5
1. Introduction ................................................................................................................................................... 6
1) General Description .................................................................................................................................. 6
2) Hardware Description ............................................................................................................................... 7
3) Performance Specifications ...................................................................................................................... 7
4) Internet Protocols ..................................................................................................................................... 7
5) Security Protocols ..................................................................................................................................... 7
6) Application Program Interface (API) ......................................................................................................... 7
7) Wireless Specifications ............................................................................................................................. 8
2. Starting guide ................................................................................................................................................ 8
3. Schematics ................................................................................................................................................... 10
4. Ordering Information .................................................................................................................................. 12
Appendix 1 – Arduino Demo Program – Connecting to a Local Access Point .................................................... 13
Appendix 2 – SMG3SMTS-ARD, Arduino transparent serial communication program ..................................... 16
Appendix 3 – AT+I Configuration Examples........................................................................................................ 17
Create an Access Point to allow connection from mobile devices: ................................................... 17
SMG3SMTS-Ard™ –Datasheet
5
Revision History
Version Date Description
1.0 April 25TH 2017 Initial version
1.2 May 8, 2017 Release version
SMG3SMTS-Ard™ –Datasheet
6
1. Introduction 1) General Description
iW-SMG3SMTS-ARD is a secure WiFi Arduino shield, that can perform as a WiFi client or access
point to connect the Arduino® microcontroller board to 802.11b/g/n Wireless LANs. It includes
Connect One’s Pico WiReach WiFi module, containing an ARM 32-bit Cortex-M4 CPU and a Cypress
CYW43362 WiFi chipset, and Connect One’s embedded software featuring an extensive AT+i
command set.
The iW-SMG3SMTS-ARD offers and supports many features among them:
• WiFi client and access point modes
• Out of the Box Sensors connectivity and Sensor to Cloud capabilities
• Ten simultaneous TCP/UDP sockets
• SSL3 and TLS 1.2 security
• WEP, WPA, WPA2 and Enterprise (RADIUS)
• Two listening sockets
• Webserver with two websites - Internal for module configuration and host
• SMTP and POP3 clients
• DHCP client/server
• POP3 SMTP client with MIME attachment
• FTP client
iW-SMG3SMTS-ARD supports the SSL3/TLS1.2 protocol for secure sockets, HTTPS, FTPS
and secure web server. On the WLAN interface, it supports WEP (station mode only), WPA
and WPA2 WiFi encryption and Enterprise level security.
Together with a standard Arduino microcontroller board, iW-SMG3SMTS-ARD is an easy-
to-use evaluation board. A sample of an Arduino program, once downloaded into the
Arduino, shows a simple example of WiFi client and access point implementation. Also,
provided, a simple serial pass-through application that once downloaded to the Arduino,
allows AT+i commands from a computer to be sent through the Arduino microcontroller
to the Pico WiReach™ for direct access to the WiFi module.
For more information about the Pico WiReach and the AT+i command set, please refer to
the “Support” area on Connect One’s website www.connectone.com
SMG3SMTS-Ard™ –Datasheet
7
2) Hardware Description
Size: 75 X 53.3mm Arduino Form Factor
Core CPU: ARM 32-bit Cortex-M4 CPU, 100MHz
Operating Voltage: 5V +/- 10 % (on board voltage regulator for +3.3V+/-10%)
Operating Humidity: 95% maximum (non-condensing)
Operating Temperature Range: -20°C to +70°C
-4°F to 158°F
Power Consumption (max): Transmit – 420mA@B Mode, 370mA@G Mode,
365mA@N Mode
Receive – 170mA
Antenna: Onboard PCB Antenna 2DBi
Connection: 3 x 8pin Arduino Stackable Headers + 1 x 6pin Arduino Stackable
Headers
Host Interface: Serial
3) Performance Specifications
Host Data Rate: Up to 1.5Mbps in serial mode
Serial Data Format (AT+i mode): Asynchronous character; binary; 8 data bits; no parity; 1 stop bit
Flow Control: Hardware (-RTS, -CTS) and software flow control.
4) Internet Protocols
ARP, ICMP, IP, UDP, TCP, DHCP, DNS, NTP, SMTP, POP3, MIME, HTTP And FTP
5) Security Protocols
SSL3/TLS1.2, HTTPS, FTPS, RSA, AES-128/256, 3DES, RC-4, SHA-1, MD-5, WEP (station mode only),
WPA and WPA2
6) Application Program Interface (API)
Connect One’s AT+i protocol
SMG3SMTS-Ard™ –Datasheet
8
7) Wireless Specifications
Standards supported: IEEE 802.11b/g/n
Frequency: Europe: 2.412-2.472GHz
USA: 2.412-2.462GHz
Japan: 2.412–2.484GHz
Channels: Europe: 13 channels
USA: 11 channels
Japan: 14 channels
2. Starting guide 1. Connect the iW-SMG3SMTS-ARD to the Arduino microcontroller board
2. Download the install Arduino IDE from www.arduino.org
3. Connect the USB cable, supplied with the Arduino board to the computer
4. Under “Tools” menu, choose the Arduino board used
5. Under “Tools” menu, choose the com port for the Arduino
6. Under “Tools” menu, choose the ‘get board info’ to verify that the Arduino is connected to
the com port
7. Copy the SMG3SMTS-ARD.ino demo file located in appendix 1 and paste it into the Arduino
application screen. Press download {}
8. Under the “Tools” menu, choose ‘Serial Monitor’
9. ***On the bottom, right corner choose “Carriage return” and “9600 baud” ***
10. Check the following message show in the monitor screen
SMG3SMTS-Ard Board Test
Please enter your SSID:
11. Enter the SSID of your local WiFi network and press SEND
Please enter your Password:
SMG3SMTS-Ard™ –Datasheet
9
12. Please enter the password of the local WiFi network and press SEND
Please enter your security method (0-None,1-WEP64,2-WEP128,3-WPA/PSK,4-WPA2/PSK,5-
WPA/Ent,6-WPA2/Ent):
13. Enter the number representing the security method used in your local WiFi network and press
SEND
14. After RF-LED on the SMG3SMTS-ARD is on and stop blinking, press SEND gain. An IP address of
the module will be displayed and a new line with I/OK
At this stage, the Pico WiReach module is ready to receive any AT+i command.
Please refer to Connect One’s AT+i manual and the relevant FW releases for the list of available
commands.
SMG3SMTS-Ard™ –Datasheet
12
4. Ordering Information Part Number Description
iW-SMG3SMTS-ARD Arduino Shield for Pico Wireach
SMG3SMTS-Ard™ –Datasheet
13
Appendix 1 – Arduino Demo Program – Connecting to a Local Access Point
/*
Software for SMG3SMTS-Ard ConnectOne Arduino Shield
The Arduino microcontroller board initializes the SMG3SMTS-Ard board by sending WiFi SSID, Password and Security Method.
After scanning for the local access point with the relevant credentials, an IP address received from the local DHCP server.
-----PAY ATTENTION: SMG3SMTS_Ard serial baud rate is set to 38400-----
Do not change the baud rate. If you use the AT+IFD (Factory Default) command which changes the baud rate to 115200, you must send AT+IBDRF=7 (to set the baud rate back to 38,400) command before reset or power down.
Note:
Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX:
10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
Not all pins on the Leonardo and Micro support change interrupts, so only the following can be used for RX:
8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
This example code is in the public domain.
*/
#include <SoftwareSerial.h>
SoftwareSerial PicoSerial(10, 11); // RX, TX
String ssid;
String password;
String wst0; //0-None,1-WEP64,2-WEP128,3-WPA/PSK,4-WPA2/PSK,5-WPA/Ent,6-WPA2/Ent
String ping;
String ip;
String Stemp;
char temp;
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600); //init PC serial to 9600
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
// set the data rate for the SoftwareSerial port
PicoSerial.begin(38400); //SMG3SMTS-Ard board rate .NOT CHANGE IT
Serial.println("SMG3SMTS-Ard Board Test");
delay(1);
SMG3SMTS-Ard™ –Datasheet
14
Serial.println("Please enter your SSID:");
while (Serial.available()==0){ //wait for SSID
}
ssid=Serial.readString(); //get SSID
Serial.println("Please enter your Password:");
while (Serial.available()==0){ //wait for Password
}
password=Serial.readString(); //get Password
Serial.println("Please enter your security method (0-None,1-WEP64,2-WEP128,3-WPA/PSK,4-WPA2/PSK,5-WPA/Ent,6- WPA2/Ent):");
while (Serial.available()==0){ //wait for Security method
}
wst0=Serial.readString(); //get Security method
PicoSerial.println("at+ie0"); //Set Echo off
delay(1);
while (PicoSerial.available()) { //clear incoming string from Pico
temp= PicoSerial.read();
}
PicoSerial.print("at+iwlsi="); //send SSID
PicoSerial.print(ssid);
delay(1);
PicoSerial.print("at+iwlpp="); //send Password
PicoSerial.print(password);
delay(4);
PicoSerial.print("at+iwst0="); //send security method
PicoSerial.print(wst0);
delay(1);
Serial.println("Wait for RF_LED ON,then press <Send> ");
while (Serial.available()==0){
}
Stemp=Serial.readString(); //clear incoming string to PC
delay(4);
while (PicoSerial.available()) { // //clear incoming string from Pico
temp=PicoSerial.read();
}
PicoSerial.println("at+iipa?");
SMG3SMTS-Ard™ –Datasheet
15
delay(1);
while (PicoSerial.available()==0){
}
ip=PicoSerial.readString();
Serial.print("IP Address is - "); //get Pico IP
Serial.println(ip);
}
void loop() {
// Run over and over
//from this point, the Arduino board is used as a pipeline. All data sent from the PC is directed to the SMG3SMTS-Ard board and vice versa.
//Customers can send any AT+i command to the SMG3SMTS_Ard board.
if (PicoSerial.available()) {
Serial.write(PicoSerial.read());
}
if (Serial.available()) {
PicoSerial.write(Serial.read());
}
}
SMG3SMTS-Ard™ –Datasheet
16
Appendix 2 – SMG3SMTS-ARD, Arduino transparent serial communication program
// This program runs on the Arduino microcontroller and acts as a transparent serial connection between the PC and the SMG3SMTS-Ard WiFi Shield. It allows sending AT+i commands from the PC to the WiFi Shield using a terminal software program.
#include <SoftwareSerial.h>
SoftwareSerial PicoSerial(10, 11); // RX, TX
char temp;
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600); //init PC serial to 9600
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
// set the data rate for the SoftwareSerial port
PicoSerial.begin(38400); //SMG3SMTS-Ard board rate .NOT CHANGE IT
PicoSerial.println("at+ie0"); //Set Echo off
delay(1);
while (PicoSerial.available()) { //clear incomming string from Pico
temp= PicoSerial.read();
}
}
void loop() { //Customers can send any AT+i command to SMG3SMTS_Ard board.
if (PicoSerial.available()) {
Serial.write(PicoSerial.read());
}
if (Serial.available()) {
PicoSerial.write(Serial.read());
}
}
SMG3SMTS-Ard™ –Datasheet
17
Appendix 3 – AT+I Configuration Examples Create an Access Point to allow connection from mobile devices:
(Required communication set up program as in Appendix 2)
AT+iWLSI=My_AP
AT+iDIP=10.0.0.1 (IP address)
AT+iDPSZ=4 (Enable internal DHCP server to 4 clients)
AT+iWST0=0 (open security)
AT+iAWS=1 (enable website upon reboot)
AT+iSTAP=1 (switch to Access Point mode)
AT+iDOWN (reboot to apply settings)
Mouser Electronics
Authorized Distributor
Click to View Pricing, Inventory, Delivery & Lifecycle Information: Connect One:
iW-SMG3SMTS-ARD