G3P-WiFi User Manual Release 1.2

Similar documents
RN-171-EK Evaluation Board

User Manual V1.1 Date: WiFi RS-232 Adapter. Red LED: IP Address Blue LED: TX/RX 5V Out (Pin 9)

Session 4. Embedded Wireless LAN Module. (WizFi210/220) Ultra Low Power. WIZnet EU 2012 MARCH - 1 -

RN-WIFLY-EVAL-UM. WiFly Evaluation Kit Roving Networks. All rights reserved. RN-WIFLY-EVAL-UM-1.0 Version /8/2011 USER MANUAL

RN-174 WiFly Super Module

RN-174. WiSnap M2 Super Module. Features. Description. Applications. ~ page 1 ~ rn-174-ds v1.1 6/1/2011

512 channels WIFI-DMX Interface

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 4/20/2011

WRE2206. User s Guide. Quick Start Guide. Wireless N300 Range Extender. Default Details. Version 1.00 Edition 1, 01/2015

Appendix A - Configuring the WiFi Module Option

RN-134. WiFly GSX Super Module SuRF Board. Features. Description. Applications. ~ page 1 ~ rn-134-ds v1.

CWA-854HT 54 Mbps Wireless-G High Transmission Access Point User s Guide

Click on Close button to close Network Connection Details. You are back to the Local Area Connection Status window.

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 1/24/2011

Serial Bluetooth Smart Adapter - RS232, Low Energy 4.2 BLE Datasheet and Quick Reference for USBLE232C

Wireless-Tag WT51822-S4AT

WiFiBee MT7681 (Arduino WiFi Wireless Programming) SKU: TEL0107

MDNET-5W. Wi-Fi/Ethernet/RS485 Converter Operation Manual. Version /03/24

WizFi250 Quick Start Guide

RN-171-XV b/g Wireless LAN Module

Industrial Serial Device Server

Serial Bluetooth Smart Adapter - RS232, Low Energy 4.1 BLE Datasheet and Quick Reference for BLE232V2

User Manual DIR-850L. Wireless AC1200 Dual Band Gigabit Router.

Serial Bluetooth Smart Adapter - RS232, Low Energy 4.2 BLE Datasheet and Quick Reference for USBLE232DEXA

RWRemote v2 revision

Serial to Ethernet Converter

Chapter 1 Introduction

Appendix A - Configuring the WiFi Module Option

+ (5~27 VDC) GND. Bluetooth V4.1 BLE RS-232 Serial Adapter. Model: BLE-232B. 1. Package content: BLE RS-232 adapter

User Manual Edition: v a

Wi-Fi 16 Relay Module User Manual 21 Aug Wi-Fi 16 Relay Module

Embedded Modbus TCP Module GS11-MT. User Manual REV 1.1. SST Automation.

+ (5~27 VDC) GND. Bluetooth V4.2 BLE RS-232 Serial Adapter. Model: BLE-232D-E. 1. Package content: BLE RS-232 adapter

Firmware Reprogramming Guide

WiFi A/V Module. (Model: WM-CAM)

1. Press "Speed Test" to find out your actual uplink and downlink speed.

WiFi to RS-232 adapter user manual

EZ-Bv4 Datasheet v0.7

WiFi 16 Relay Board TCP ModBus Controlled - User Manual 21 Aug WiFi 16 Relay Board TCP ModBus Controlled

RN-WIFLY-SRL-UM. WiFly Serial Adapter Roving Networks. All rights reserved. RN-WIFLY-SRL-UM-1.0 Version /11/2011 USER MANUAL

WRE6505 v2. User s Guide. Quick Start Guide. Wireless AC750 Range Extender. Default Login Details. Version 1.00 Edition 1, 10/2016

Wi-Fi Card/Box. User s Manual

EX-6014WI RS232 to WiFi Wireless Adapter, w/ Mounting Kit

NDB-C0706A Dual Mode Bluetooth Module

SG B b/g/n Wireless USB Module

WiFi to RS-422/485 adapter user manual

A5500 Configuration Guide

ARDUINO INDUSTRIAL 1 01 Code: A000126

Use of ISP1507-AL Evaluation Boards

RAD XD and RAD XD-WM a/b/g Transceiver with Serial Link Quick Start Guide

TMR1F USER GUIDE AND EVALUATION KIT MANUAL

ARDUINO YÚN MINI Code: A000108

WIFI DEVICE. User Manual. Shanghai Shuncom Electronic Technology Co., Ltd. Shanghai Shuncom Electronic Technology Co.,Ltd.

Interface WI-FI CODE: INTW. v.1.0. Edition: 2 from Supersedes the: 1 from edition

ARDUINO YÚN Code: A000008

WAP3205 v2. User s Guide. Quick Start Guide. Wireless N300 Access Point. Default Login Details. Version 1.00 Edition 2, 12/2012

PePWave Mesh Connector User Manual

WiFi to RS-232 adapter user manual

How to setup the UCW232/WA-232B Serial WiFi adapter

DMK 11A & 11A GPS Owners Manual

P4S-342 User Manual > Introduction. Overview

Embedded WiFi Module for M2M and IOT

User Manual V1.2 Date: WiFi RS-232 Adapter. Red LED: IP Address Blue LED: TX/RX 5V Out (Pin 9)

Sierra Radio Systems. WiFly Configuration. Quick Reference. Version 1.0

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 3/3/2011

ezconfig User s Manual

RN-XV-EK Evaluation Board

LM058 Bluetooth Serial Adapter

+ (5~27 VDC) GND. Bluetooth V4.2 BLE RS-422/485 Serial Adapter. Model: BLE-485C. 1. Package content: BLE RS-422/485 adapter

WF-2402 Quick Installation Guide

PACKAGE CONTENT TECHNICAL SPECIFICATION. Ethernet: One 10/100 Fast Ethernet RJ-45. Power Jack Power Status. LAN (Internet connection)

LM300 Manager User Manual. Document Version: 1.1 LM300 Firmware Version: Bluetooth Firmware Version:

Wifi Attachment Manual

Setting up T&D s TR-7wf Data Loggers With the TR-7wf/nw for Windows Software

May 2016 Version 1.2.7

Unwired One. Main Features. Wireless embedded computer

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM

airhaul Nexus sb3010

B EBA WI-FI GATEWAY D _

1 port RS-232 Device Server

DWR G Integrated Access Device. User Manual

NBG-416N. Wireless N-lite Home Router. Default Login Details. IMPORTANT! READ CAREFULLY BEFORE USE.

ETH to 232 (A) User Manual

User s Guide. Ethernet Module for Barcode Printer

Document Name: User Manual for SC10MK, Modbus RTU to Modbus TCP Converter

Web Site: Forums: forums.parallax.com Sales: Technical:

Wireless LAN Access Point

RS-232/422/485 to Copper or Fiber. Ethernet Converter. User s Manual

Wi-Fi Modules. Turnkey Solution for the Internet of Things. -

WIZ220IO / WIZ220IO-EVB User s Manual (Ver. 1.0)

WRE6606. User s Guide. Quick Start Guide. Dual-Band Wireless AC1300 Access Point. Default Login Details. Version 1.00 (ABDU.0) Edition 1, 10/2016

MARQUE: GARMIN REFERENCE: EX FRS CODIC: NOTICE

Quick Start Hardware Testing Environment Connection Default Parameter Data Transmission Testing

BV4626 General Purpose I/O. Product specification. Mar 2010 V0.a. ByVac Page 1 of 13

eztcp Configuration Software ezmanager Manual Version 1.9 Sollae Systems Co., Ltd.

Quick Setup Guide. for Standalone Omada Access Points. EAP110 / EAP115 / EAP225 / EAP245 / EAP320 / EAP330 / EAP115-Wall

D-Link AirPlus G DWL-G700AP

IFx-WFXx Wireless LAN (WLAN) Interface Board User s Manual. Rev1.00

NM6000 User's guide v1.2

User Manual of 5.8G Outdoor CPE

Transcription:

G3P-WiFi User Manual Release 1.2 Last Update 25/11/2014 1

Appendix Order Codes... 3 Release History... 3 Release 1.0... 3 Release 1.1... 3 Release 1.2... 3 GENERAL FEATURES... 3 1 Tools to begin... 4 1.1 Hardware... 4 1.2 Software... 4 2 Powering and connecting... 5 2.1 Pins Functions and top view... 5 2.2 Power supply requirements... 6 2.3 Cabling the G3P-WiFi board... 7 2.4 Connecting with the computer... 8 2.5 Connecting with a Smart Phone Android... 9 3 Configuring the Module... 11 3.1 Configuring as TCP/IP Server in Access Point Mode... 11 3.2 Configuring as TCP/IP Client connecting to Access Point... 13 3.3 Configuring as TCP/IP Server connecting to Infrastructure... 15 3.4 Configuring as TCP/IP Client connecting to Infrastructure... 17 4 TCP/IP Connection... 21 4.1 Connect to a G3P-WiFi TCP/IP Server... 21 5 Commands to TCP/IP or UART... 23 5.1 Introduction to the commands... 23 5.2 List of the commands... 23 5.3 Example how to set G3P-WiFi with Commands... 26 5.4 Enable UART1 to receive commands... 27 6 Reset (Reboot) the G3P-WiFi... 28 6.1 Reset the module with default factory settings... 28 6.2 TP17: RESET Pin... 28 7 Update the Firmware... 29 7.1 Update the Firmware... 29 8 Physical Dimensions... 30 2

Order Codes Code Antenna Connection G3P-WIFI-232 Integrated Smd G3P-WIFI-232-E External Smd Release History Release 1.0 First release BETA. Release 1.1 Addressing by DHCP. Setup through UART and connecting on port 10000 Implemented GPIO Release 1.2 Added command C55 to set baud rate on UART1 GENERAL FEATURES The G3P-WiFi integrates a Wi-Fi module providing a fully integrated 2.4GHz 802.11 b/g/n and serial port with selectable speeds where receive and transmit data over a TCP/IP connection. G3P-WiFi connected to peripheral allows a serial communication with computer/smart phone over a network. Two G3P-WiFi can be configured to create a transparent serial communication over the network. The transmission data over a network is compatible using computers with operating system as Window, Linux and or with a Smart Phone with Android. Typical application are controls over network as smart appliances, remote controls through smartphone with Android or computer, integration of new technology with network communications structure with old serial communication technology. The module is operating at 3,3V with a maximum voltage of 4.8V for the WiFi chip. Maximum current required for supply the logic is 100mA and for the WiFi chip is 350mA. Key Features: 2.4GHz band IEEE 802.11 b/g/n radio. Excellent radio performance: - TX power: +17dBm - RX sensitivity: -97dBm UART interface with selectable baud rate: - From 1200 bps to 115200 bps Temperature range: - -40 o C to +85 o C 3

1 Tools to begin 1.1 Hardware List of the indispensable hardware required to start: - The G3P-WiFi board - A computer with a wireless connection or a Smart Phone or 1.2 Software The useful utility to use the G3P-WiFi The G3P-WiFi Serial Terminal: http://www.g3p-modules.com/files/g3p-wifi-st_1.1.zip The G3P-WiFi App for Android: https://play.google.com/store/apps/details?id=sds.g3p_wifi Putty: http://www.putty.org/ 4

2 Powering and connecting 2.1 Pins Functions and top view The G3P-WiFitop view: PIN FUNCTION I/O If not used TP3 CTS2 Input Unconnected TP4 RTS2 Output Unconnected TP5 RX2 Input Unconnected TP6 TX2 Output Unconnected TP7 CTS1 Input Unconnected TP8 RTS1 Output Unconnected TP9 RX1 Input Unconnected TP10 TX1 Output Unconnected TP11 E1 Connect to GND to use UART1 for Command Unconnected TP17 RESET Connect to GND to reset (reboot G3P-WiFi) Unconnected TP19 GND GND Required TP20 VDD_PA 2.7V to 4.8V Required TP21 VDD_3V3 2.3V to 3.6V Required TP27 GPIO_INPUT_0 (EMDC) Digital Input readable by command Unconnected TP28 GPIO_OUTPUT_0 (ERXD1) Digital Output W/R by command Unconnected TP29 GPIO_OUTPUT_1 (ERXD0) Digital Output W/R by command Unconnected TP30 GPIO_OUTPUT_2 (ECRSDV) Digital Output W/R by command Unconnected TP31 GPIO_OUTPUT_3 (EREFCLK) Digital Output W/R by command Unconnected TP32 GPIO_OUTPUT_4 (ERXERR) Digital Output W/R by command Unconnected TP33 GPIO_OUTPUT_5 (ETXEN) Digital Output W/R by command Unconnected TP34 GPIO_INPUT_1 (ETXD0) Digital Input readable by command Unconnected TP35 GPIO_INPUT_2 (ETXD1) Digital Input readable by command Unconnected TP36 GPIO_INPUT_3 (ETXERR) Digital Input readable by command Unconnected TP38 GND GND Unconnected TP39 AN10 Analogue Input readable by command (10bit resolution) Unconnected TP40 AN12 Analogue Input readable by command (10bit resolution) Unconnected TP41 AN11 Analogue Input readable by command (10bit resolution) Unconnected TP42 AN13 Analogue Input readable by command (10bit resolution) Unconnected 5

SW1 It is the button to reset the G3P-WiFi with the default factory settings. TX1, RX1, RTS1 and CTS1 Pins dedicated to the first UART. UART asynchronous with handshake. TX2, RX2, RTS2 and CTS2 Pins dedicated to the second UART. UART asynchronous with handshake. VDD_PA Power supply of the wireless integrated chip. VDD_3V3 Power supply of 3.3VDC. GND Ground for VDD_PA and VDD_3V3. RESET When the Pin TP17 is connected to the ground, it will reboot the system and it will not change any preconfigured settings. E1 TP11 is used to switch between the modality data or commands for UART1. When the G3P-WiFi boot, it check if TP11 is not connected to ground then the UART1 is used for data, vice versa if it is connected to the ground then UART1 is used for commands. 2.2 Power supply requirements G3P-WiFi consists of two separate internal blocks, the microcontroller and the radio part. G3P-WiFi is designed to operate with a 3.3V nominal input voltage supplied to the two supply inputs. The VDD_3.3V pad can be fed with a voltage between 2.3V and 3.6V and is used to power 6

the internal microcontroller. The VDD_PA pad can be supplied with a voltage between 2.7V and 4.8V and supplies the RF power amplifier and the internal switch-mode converter powering the Wi-Fi digital core. In lithium battery powered applications, VDD_PA can be connected directly to the battery, while a regulator is needed to supply the VDD_3.3V with a lower voltage, as needed by the design. The VDD_PA supply should be capable of providing at least 350mA, though the average consumption of the module will be much less than that. The VDD_3.3V supply will draw a peak current of less than 100mA. The PA supply should preferably be bypassed with a 10 to 100µF capacitor to smooth out the current spikes drawn by the Wi-Fi power amplifier. External high frequency bypassing is not needed; the module contains the needed supply filtering capacitors. Note that there is about 20µF worth of ceramic capacitors on the VDD_PA line inside the module. When using low drop linear regulators to generate a regulated supply for the VDD_PA line, the stability of the regulator with the low ESR provided by these capacitors should be checked. 2.3 Cabling the G3P-WiFi board Below two simple schematics to cable the two serial of the G3P-WiFi: UART1: RTS1 CTS1 3V3 RX1 TX1 TX RX RTS CTS 3.3V TTL Serial to USB Converter G3P USB cable UART2: 3V3 RX2 TX2 CTS2 RTS2 TX RX RTS CTS 3.3V TTL Serial to USB Converter G3P USB cable 7

Then, using the G3P-WiFi Serial Terminal, it is possible to communicate with the G3P-WiFi serial port and through the UART2 update the firmware. 2.4 Connecting with the computer The board will start as wireless access point when it is powered up for the first time. After the led DS2 has been finished to blink, the access point should be visible. The name of the new discoverable access point will be like G3P-WiFi_0007806E96C2. In case it is not visible, it is possible to reset the module with the default factory setting pressing for 5 seconds the button on the board. The last part of the access point name represents the mac address of the G3P-WIFI module. When the wireless connection is established with theg3p-wifi, the connecting computer will receive a dynamic address from the G3P-WiFi.When the connection is established, then opening a browser and typing the default address it is possible to see the configuration pages: http://192.168.1.1 8

There are three steps to configure the G3P-WiFi. 1. Choose the modality 2. Click on Next 3. Set the parameters After the 3 rd step the connection will be lost because the module will start as the setting has been set. 2.5 Connecting with a Smart Phone Android The board will start as wireless access point when it is powered up for the first time. After the led DS2 has been finished to blink, the access point should be visible. Searching G3P-WiFi on the Play Store it is possible to find and download the app to configure the G3P-WiFi from a smart phone with operating system Android. It is possible to install the app remotely, from a computer with an internet connection, using this link: https://play.google.com/store/apps/details?id=sds.g3p_wifi After having installed the app, it is indispensable to connect with the wireless of the smart phone to the G3P-WiFi (example: G3P-WiFi_0007806E96C2 ) then to run the app to start to configure the module. If the access point name of the module is not displayed, then you need to reset the module pressing the button for 5 seconds on the board, it will set the default factory setting. 9

There are three steps to configure the G3P-WiFi. 1. Choose the modality 2. Click on Next 3. Set the parameters After the 3 rd step the connection will be lost because the module will start as the setting has been set. 10

3 Configuring the Module 3.1 Configuring as TCP/IP Server in Access Point Mode This modality makes the module to be an Access Point. The DHCP server is enabled. Any computer or android device with a wireless connection can connect to it directly. A maximum of 5 client is accepted. ( ( or ( RX TX MCU G3P-WiFi Access Point To configure the module as Access Point, connect to it and at the first page select the modality: Set to use in local Point Multi-Point (Make this as Access Point) : Select this option Now default values will appear on the fields below, change these values as wanted and then click on the button Save. Fields descriptions: - Addresses by DHCP: In this case this option is not used, it always assigns addresses dynamically. - TCP/IP: It is the port that will be open and the module will wait on this port a TCP/IP connection. - 11

- This module address: (automatic: it is impossible to change this field) In this option the module will have a fixed IP address 192.168.1.1 and when the client connects to this module he will receive from the enabled DHCP server an address like 192.168.1.2. - TCP/IP Server to connect: (automatic: it is impossible to change this field) In this option, it is not used because this module in this configuration will start as TCP/IP server. - Gateway: (automatic: it is impossible to change this field) Because the module will become an access point the gateway is itself thus for the client will be 192.168.1.1 but it will be given to the client automatically. - Net Mask: (automatic: it is impossible to change this field) In this option the module will have a fixed network mask 255.255.255.0. - Serial Port Speed: it is the baud rate of the serial port. On the following page click on Next to continue. Click here to continue Into the last page set the parameters of the access point, the discoverable name, channel and security option, when you click on the button Activate the module will start as access point after the led on the board has finished to blink the module is ready to accept connection. Click here to activate the access point (Connection will be lost; the module will starts as was configured) Fields descriptions: - SSID: Access point name. - Channel: channel number for the wireless. - Security: select the security option. - Password: Type a password of eight characters long if the security option selected is not a Open otherwise leave blank. 12

After you have clicked on Activate the led DS2 will start to blink until the new access point is started as it was configured. The website with the configuration pages will not be available anymore, only resetting the module with the default factory setting it is possible to reconfigure the G3P-WiFi. In case the access point is not discoverable, reset the module with the default factory settings and restart the configuration procedure. 3.2 Configuring as TCP/IP Client connecting to Access Point This modality will make the G3P-WIFI to connect to another G3P-WIFI configured as access point, creating so a transparent serial which will allow a serial communication of two devices over a wireless communication. The G3P-WIFI configured as Access Point will assign automatically the addresses to the G3P-WiFi Client. G3P-WiFiClient G3P-WiFi Access Point To configure the module for this modality select: Set to use in local Point Multi-Point (Make this as Client) : Select this option Now default values will appear on the fields below, change these values as wanted and then click on the button Save. 13

Fields descriptions: - Addresses by DHCP: In this case this option is not used, it always gets addresses dynamically. - TCP/IP: It is the port used to establish the connection with the TCP/IP server running on the Access Point. - This module address: (automatic: it is impossible to change this field) In this option G3P-WIFI Client will get the IP address from the G3P-WIFI Access Point. - TCP/IP Server to connect: (automatic: it is impossible to change this field) In this option the G3P-WIFI Client will have a fixed server address: 192.168.1.1 (address of the G3P-WIFI Access Point). - Gateway: (automatic: it is impossible to change this field) In this option the G3P-WIFI Client will have a fixed gateway address: 192.168.1.1 (address of the G3P-WIFI Access Point). - Net Mask: (automatic: it is impossible to change this field) In this option the module will have a fixed network mask 255.255.255.0 (same at the G3P-WIFI Access Point network mask). - Serial Port Speed: it is the baud rate of the serial port. On the following page click on Next to continue. Click here to continue Into the last page set the parameters to connect to the G3P-WIFI Access Point. When you click on the button Connect, the module will connect to the G3P-WIFI Access Point and connect to TCP/IP server running on the G3P-WIFI Access Point. After the led on the board has finished to blink the module is connected and every data sent or received on the G3P-WIFI Client serial port are the same on the G3P-WIFI Access Point serial port. Click here to connect to the G3P-WiFi Access Point (Connection will be lost; the module will start as it was configured) Fields descriptions: - SSID: The name of the wireless of G3P-WIFI Access Point. 14

- Password: The wireless password configured on the G3P-WIFI Access Point, if there is one, otherwise leave blank if into the G3P-WIFI Access Point on the security option was selected the option Open (see chapter 2.1). After you have clicked on Connect the led DS2 will go off and the led DS1 will start to blink until the connection is established, in case it cannot connect to the access point the led DS1 will start to blink very quickly. The website with the configuration pages will not be available anymore, only resetting the module with the default factory setting it is possible to reconfigure the G3P-WiFi. In case data sent to the serial port are not received or transmitted, some configuration has been set wrongly, then reset the module with the default settings and restart the configuration procedure. 3.3 Configuring as TCP/IP Server connecting to Infrastructure This modality makes the module to be a server TCP/IP into an infrastructure network, the DHCP server is disabled thus the address typed into the fields has to be compatible with the network, which the module has to connect to. The client to establish a TCP/IP connection has to connect to the same network and then connect to the TCP/IP server started on the module using the address and port configured into the fields TCP/IP Port and This module Address. or ((( RX TX MCU or G3P-WiFi TCP/IP Server To configure the module as TCP/IP Server in infrastructure select the modality: Set to use in infrastructure (Make this as Server TCP/IP) : 15

Select this option Now default values will appear on the fields below, change these values as wanted and then click on the button Save. Fields descriptions: - Addresses by DHCP: The addresses are dynamically got from the DHCP server of the network. - TCP/IP: is the portthatwill be opened and the module will wait on this port a TCP/IP connection. - This module address: It is the address which will be assigned to the current module.to reach the module then you have to type this address, for example the client to establish a TCP/IP connection has to connect to the address: 192.168.2.9:23 - TCP/IP Server to connect: In this case, it is not used because this module in this configuration will start as TCP/IP server. - Gateway: is the address of the access point, which the module will connect to. - Net Mask: is the mask of the network. - Serial Port Speed: it is the baud rate of the serial port. On the following page click on Next to continue. Click here to continue Into the last page set the parameters to connect at your access point, which gives the access to your local network. When you click on the button Connect the module will connect at your access point and starts the TCP/IP server. 16

Click here to connect at your access point (Connection will be lost; the module will starts as was configured) Fields descriptions: - SSID: The name of the wireless of your access point. - Password: The wireless password used to connect at your access point. After you have clicked on Connect the led DS2 will goes off and the led DS1 will start to blink until it will connect to your access point, in case it cannot connect to the access point the led DS1 will start to blink very quickly. Now the G3P-WiFi is ready to accept TCP/IP connection on the port configured. The website with the configuration pages will not be any more available, only resetting the module with the default factory setting it is possible to reconfigure the G3P-WiFi. In case you cannot connect to the TCP/IP server, might some configuration has been set wrongly, reset the module with the default settings and restart the configuration procedure. 3.4 Configuring as TCP/IP Client connecting to Infrastructure This modality will make the G3P-WIFI to connect in infrastructure to another G3P-WIFI configured for infrastructure and running a server TCP/IP or to any other device running a TCP/IP server.connecting this G3P-WiFi Client Infrastructure to a G3P-WiFi Server Infrastructure then a transparent serial has been created, which will allow a serial communication of two devices over network. G3P-WIFI Client Infrastructure has to be set with the addresses compatible to the network which it will connect to. 17

To configure the module for this modality select: Set to use in infrastructure (Connect to Server TCP/IP) : Select this option 18

Now default values will appear on the fields below, change these values as wanted and then click on the button Save. Fields descriptions: - Addresses by DHCP: The addresses are dynamically got from the DHCP server of the network. - TCP/IP: It is the port used to establish the connection with the TCP/IP server running on the Server TCP/IP. - This module address: It is the address that will be assigned to the current module. Set an address different from the address of the G3P-WIFI Server. - TCP/IP Server to connect: It is the address of the G3P-WIFI running the TCP/IP Server. Into this field two type of addresses are allowed: the IP address and the MAC address. If the server has dynamic addresses is indispensable to type the MAC address of the server, then this module will start to search on the network the corresponding IP to the MAC address. Example the server as MAC address 002B7F00AABB and dynamic IP 192.168.1.8, the search will start from the address 192.168.1.1 and every second will increment the address by one and check if the MAC address is corresponding, thus it will take 8 second before reach the address 192.168.1.8. If the server will be reset and will get another address as for example 192.168.1.60 then the client will restart the search and in 60 second will again establish the connection with 192.168.1.60. In case there is no the server with that MAC address then it will scan up to the address 192.168.1.254 and then the led DS1 will blink quickly, after a while will reboot itself and restart again the search. - Gateway: is the address of your access point, which the module will connect to. - Net Mask: is the mask of the network. On the following page click on Next to continue. Click here to continue Into the last page set the parameters to connect at your access point, which gives the access to your local network. When you click on the button Connect the module will connect at your access point and starts to connect to the G3P-WIFI Server or any other TCP/IP Server. 19

Click here to connectat your access point (Connection will be lost; the module will starts as was configured) Fields descriptions: - SSID: The name of the wireless of your access point. - Password: The wireless password used to connect at your access point. After you have clicked on Connect the led DS2 will goes off and the led DS1 will start to blink until it will connect to your access point, in case it cannot connect to the access point the led DS1 will start to blink very quickly. Now the G3P-WiFi will establish a connection with the TCP/IP Server and will rout all data coming from the serial port to the TCP/IP Server and vice versa. The website with the configuration pages will not be any more available, only resetting the module with the default factory setting it is possible to reconfigure the G3P-WiFi. In case no data is transferred try to connect the RESET pin of the board to ground, the G3P-WiFi will restart and try again to reconnect to the TCP/IP Server. If the problem persist then might some configuration has been set wrongly, reset the module with the default factory settings and restart the configuration procedure. 20

4 TCP/IP Connection 4.1 Connect to a G3P-WiFi TCP/IP Server When you have configured the G3P-WiFi as Access Point or infrastructure with server TCP/IP then you can try to establish a TCP/IP connection with a free software as Putty. Open putty and set the address and port: - To connect directly to the G3P-WiFi Access Point use the address: 192.168.1.1 - To connect in infrastructure use the same address set into the field This module address Example: Install and open the G3P-WiFi Serial Terminal to communicate with the serial port of the G3P-WiFi. You can use the USB to TTL converter to connect physically the G3P-WiFi board to your computer. Now you should have the Putty and G3P-WiFi Serial Terminal: 21

Open the TCP/IP connection on Putty and connect to the serial port with G3P-WiFi Serial Terminal. Type something on Putty and press enter, you should see on the Received field of the G3P-WiFi Serial Terminal the same data typed on Putty. Vice versa if you type something on the field Data to send on G3P-WiFi Serial Terminal and you click Send you should receive on Putty. 22

5 Commands to TCP/IP or UART 5.1 Introduction to the commands It is possible to send commands to the GRP-WiFi through a TCP/IP connection or through the serial port UART2 with a baud rate of 9600, parity none, one stop bit and handshaking (RTS/CTS) enabled. In case it is wanted to send the command through the UART1, then it is necessary to connect to GND the pin TP11 and then reboot the G3P-WiFi. Disconnecting the TP11 from the GND and rebooting the G3P-WiFi the normal status will be restored. In order to send commands through a TCP/IP connection it is necessary establish the connection with the G3P-WiFi using the port 10000. All commands has to be sent in ASCII format, for example: if the command is C54 then the hexadecimal value to send are 0x63 0x35 0x34. The G3P-WiFi will no parse the command until it will receive the carriage return (0x0D), thus after each command a carriage return must be sent. Hexadecimal value to send the command C54 and to make the G3P-WiFi to parse it: 0x63 0x35 0x34 0x0D 5.2 List of the commands NOTE: When a command is called then the setting is saved into the ram, in mean time, if the G3P-WiFi will be turned off then all configuration set will be lost, to save permanently the settings it is indispensable to use the command C45. Rebooting the G3P-WiFi, after have saved the settings, all setting will be applied. After have sent a command remember to send the carriage return to make the G3P-WiFi to parse it. All commands accepted from TCP/IP Server and UART2 (UART1 if TP11 connected to GND): CMD PARAMETERS FUNCTION DESCRIPTION AT CMD EXECUTED EXAMPLE OF STRING RETURNED C00 AAAA It set the port used for the TCP/IP server used for the transparent serial on UART1. The parameter is a number sent in ASCII format. Example: C0023 Port 23 is set. OK00 C01 AAA.BBB.CCC.DDD It set the Subnet mask of the G3P-WiFi. The parameters are 4 numbers sent in ASCII format separated by.. Example: C01255.255.255.0 Subnet mask set= 255.255.255.0 C02 AAA.BBB.CCC.DDD It set the IP address of the G3P-WiFi. The parameters are 4 numbers sent in ASCII format separated by.. Example: C02192.168.1.5 Address set= 192.168.1.5 OK01 OK02 23

C03 AAA.BBB.CCC.DDD or AABBCCDDEE This command set the IP address of the server where the G3P-WiFi has to connect in case the G3P-WiFiis set as client TCP/IP. The parameters are 4 numbers sent in ASCII format separated by.. Example: C03192.168.1.10 Address set= 192.168.1.10 OK03 If the server get dynamic addresses then the Client has to perform a scan checking the MAC address. Example: C0300F0080A12E1 MAC Address to search= 00F0080A12E1 C04 AAA.BBB.CCC.DDD It set the IP address of the gateway, used when the G3P-WiFi is operating in infrastructure mode. The parameters are 4 numbers sent in ASCII format separated by.. Example: C04192.168.1.1 Address set= 192.168.1.1 C05 AA It set the operating mode. There are 4 modes and an option to set DHCP ON. The parameter is a numberin ASCII format. Possible value for AA: - 1 = set to use in local Point Multi-Point (Make this as Client) - 2 = set to use in local Point Multi-Point (Make this as Access Point) - 3 = set the infrastructure mode (Connect to Server TCP/IP) and DHCP OFF - 4 = set the infrastructure mode (Make this as Server TCP/IP) and DHCP OFF - 11 = set the infrastructure mode (Connect to Server TCP/IP) and DHCP ON - 12 = set the infrastructure mode (Make this as Server TCP/IP) and DHCP ON Example: C054 Operating mode set = 4 C06 AAAAAAAA. It set the SSID of the access point where the GRP-WiFi has to connect. In case the G3P-WiFi is set as Access Point then this value will be is name. The parameters is a string in ASCII format. Example: C06MyAPname SSID set = MyAPname C07 AAAAAAAA. It set the Password of the access point where the GRP-WiFi has to connect. In case the G3p-WiFi is set as Access Point then this value will be is password. The parameters is a string in ASCII format. Minimum length of the string must be 8charcters. Example: C06MyPWD123 Password set = MyPWD123 C08 A It set security option when is set as Access Point. The parameter is a number in ASCII format. Possible value for A: - 0 = Open - 1 = WPA - 2 = WPA2-3 = WEP - 4 = WPA2_MIXED Example: C082 Operating mode set = 2 = WPA2 C10 Reboot and apply the configuration set. Connection will be lost because the G3P-WiFi reboot. C15 It shows the list of devices connected to the TCP/IP server. The first number received indicate how many devices are connected, the follow just the description of the fileds. Every line (after the first) is a device connected, example: 5-192.168.0.2-YES Where 5 is just an ID, 192.168.0.2 is the address of the device and YES means the server redirect to him all data coming from UART1. OK04 OK05 OK06 OK07 OK08 2-ID-ADDRESS-DATA 5-192.168.0.2-YES 6-192.168.0.3-NO 24

C16 AAA.BBB.CCC.DDD It set the IP address of the device where all data coming from UART1 has to be redirected. Example: after command C15 the reply is: 2-ID-ADDRESS-DATA 5-192.168.0.2-YES 6-192.168.0.3-NO It is wanted all data coming from UART1 redirected to the 192.168.0.3, thus sending the command: C16192.168.0.3 All data from UART1 will be redirected to this device. Using again the command C15 the reply will be: 2-ID-ADDRESS-DATA 5-192.168.0.2-NO 6-192.168.0.3-YES OK16 C45 It save all configuration, now it is possible to check the configuration with the command C99 OK45 C46 It erase all settings. OK46 C54 It return the name and firmware version. G3P-WIFI-REL-1.2 C55 AAAA.. It set a baud rate given on the UART1. The baud rate allowed are 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200. OK55 Example to set 57600: C5557600 Example to set 115200: C55115200 C70 AA It set the 6 digital outputs, from GPIO_OUTPUT_0 to GPIO_OUTPUT_5. After the command C70 it require a number (sent in ASCII) between 0 and 63. Example to turn at 1 all outputs: C7063 GPIO set = 111111 OK70 C71 C72 Example to turn at 0 all outputs: C700 GPIO set = 000000 It read the status of the 6 digital outputs, from GPIO_OUTPUT_0 to GPIO_OUTPUT_5. It return 6 byte, each byte is a 1 or 0 in ASCII format. The less significant byte is the status of GPIO_OUTPUT_0 and the most significant byte is the status of GPIO_OUTPUT_5. It read the status of the 4 digital inputs, from GPIO_INPUT_0 to GPIO_INPUT_3 and the status of the 4 analogue inputs, from AN10 to AN13 treated as digital. It return 8 byte, each byte is a 1 or 0 in ASCII format. - BYTE0: GPIO_INPUT_0 status - BYTE1: GPIO_INPUT_1 status - BYTE2: GPIO_INPUT_2 status - BYTE3: GPIO_INPUT_3 status - BYTE4: AN10 status (treated as digital) - BYTE5: AN11 status (treated as digital) - BYTE6: AN12 status (treated as digital) - BYTE7: AN13 status (treated as digital) 000000 00000000 C73 AA It read the status of the 6 analogue input. It require the number of the analogue input to read. 1023 Possible value for AA: - 10 = Reads the AN10-11 = Reads the AN11-12 = Reads the AN12-13 = Reads the AN13 Example to read AN10: C7310 Analogue input to read = 10 25

C99 It return all configuration set through serial or TCP/IP using port 10000. -MAC=00078A6E26CB -MODE=4 -DHCP=OFF -PORT=23 -THIS=192.168.1.5 -SERV=192.168.1.100 -MASK=255.255.255.0 -GATE=192.168.1.1 -SSID=MyRouter -SECU=WPA2 -UART1=115200 5.3 Example how to set G3P-WiFi with Commands It is not necessary to give all commands to set the G3P-WiFi, but is better to set to zero the parameters not used in order to do not get confused when is used the command C99 to see the settings. Into the following example is reported only the indispensable commands. EXAMPLE1 - Set a TCP/IP Server in infrastructure with static addresses: COMMAND C054 COMMENT Set the operating mode to 4 (TCP/IP Server in infrastructure with static addresses) C0023 Set the port of the TCP/IP server to 23 C01255.255.255.0 Set the subnet mask to 255.255.255.0 C02192.168.0.5 Set the address of this G3P-WiFi to 192.168.0.5 C04192.168.0.1 Set the gateway address to 192.168.0.1 C06Myaccesspoint Set the SSID of the access point where the G3P-WiFi has to connect. SSID set = Myaccesspoint C0712345678 Set the password of the access point where the G3P-WiFi has to connect. C45 Command to save the settings, now when the G3P-WiFi will reboot will apply the settings. C10 Will make the G3P-WiFi to reboot. EXAMPLE2 - Set a TCP/IP Client in infrastructure with dynamic addresses: COMMAND C0511 C0023 C03192.168.0.5 C06Myaccesspoint C0712345678 C45 C10 COMMENT Set the operating mode to 11 (TCP/IP Client in infrastructure with dynamic addresses) Set the port of the TCP/IP Server where it has to connect to start the transparent serial with it. Port set = 23 Set the IP address of the TCP/IP server where it has to connect. Address set = 192.168.0.5 Set the SSID of the access point where the G3P-WiFi has to connect. SSID set = Myaccesspoint Set the password of the access point where the G3P-WiFi has to connect. Command to save the settings, now when the G3P-WiFi will reboot will apply the settings. Will make the G3P-WiFi to reboot. 26

5.4 Enable UART1 to receive commands The UART1 is normally used to create the transparent serial, thus only for data, but in case it can accept command as the UART2 does normally. The pin TP11 called E1 is used to select the operating mode of the UART1: - E1 is unconnected: UART1 used for data - E1 is connected to GND: UART1 used for commands ATTENTION: When the status on the pin TP11 is changed, it necessary to reboot (pull to GND the RESET pin) the G3P-WiFi, because only at the beginning it will read the status of the E1 and apply the settings. If the UART1 has been set for commands, the first data that will send is its name: G3P-WiFi Also UART2 when the G3P-WiFi boot will send its name: G3P-WiFi 27

6 Reset (Reboot) the G3P-WiFi 6.1 Reset the module with default factory settings The steps to reset the module with default factory settings are two. 1. Power up the board 2. Press the button on the board G3P-WiFi called SW1 for 5 seconds While pressing the led will starts to blink quickly (100ms of interval) when 5 seconds are past then the led will blink very slowly (2seconds of interval) thus releasing the button the reset with default factory setting will be performed. Now wait until the led will be on fixed and you can connect again to the module and repeat the configuration procedure. 6.2 TP17: RESET Pin The TP17 is the RESET pin, when is pulled to ground it will make the G3P-WiFi to reboot. 28

7 Update the Firmware 7.1 Update the Firmware The first things to do is connect the UART2 to the computer as the following schematic does shows: 3V3 RX2 TX2 CTS2 RTS2 TX RX RTS CTS 3.3V TTL Serial to USB Converter G3P USB cable Open the software and connect to the serial port. The last tab FW update has the controls to update the firmware. After have open the firmware with the extension.g3w it is possible to click on the button UPDATE, now pay attention to do not turn off the power of the G3P-WiFi or disconnect the serial communication otherwise the G3P-WiFi is unrecoverable locally. WARNING: In case a wrong action arrest the firmware uploading, it is necessary to send the G3P-WiFi to the assistance. When the firmware uploading has terminated, then it is possible to use the G3P-WiFi immediately. 29

8 Physical Dimensions 2.54 mm 5.08±0.01 mm 3.81±0.01 mm 7.62±0.01 mm 30