This document describes how to set up and use the ODIN-W2 series multiradio modules with Wi-Fi and Bluetooth dual mode 4.0 (Classic Bluetooth and Bluetooth Low Energy). It also provides a technical overview of the ODIN-W2 series and describes how to configure Bluetooth in ODIN-W2. www.u-blox.com...
Page 2
ODIN-W2 series - Getting Started Document Information Title ODIN-W2 series Stand-alone multiradio modules with Subtitle Wi-Fi & Bluetooth Document type Getting Started Document number UBX-15017452 Revision, date 25-Sep-2015 Document status Advance Information Document status information Objective Specification Document contains target values. Revised and supplementary data will be published later.
1.1 Key features One of key features of the ODIN-W2 series is the Wireless serial cable replacement functionality. The basic functionality is to transfer data between the serial port and a wireless link. It is possible to configure the ODIN- W2 series module to automatically setup a connection and/or accept an incoming connection using AT commands.
ODIN-W2 series - Getting Started 1.2 Modes of operation The ODIN-W2 series can operate in the following three different modes: • Command mode • Data mode • Extended Data mode By default, ODIN-W2 will enter command mode and has to be configured to start in data mode or extended data mode.
Page 7
ODIN-W2 series - Getting Started Figure 3: Data mode The extended data mode is used to enable control of each individual wireless connection (see u-blox Extended Data Mode Protocol Specification [2]). The extended data mode is a simple protocol for the UART, which enables transmission of data to one specific remote device and to know from what remote device the data is received.
ODIN-W2 series - Getting Started 2 Peers A connection consists of a sender and a receiver of data. It can also consist of a sender and several receivers in the case of a wireless multidrop/broadcast data. In both cases, every sender and receiver in a setup is referred to as a peer.
ODIN-W2 series - Getting Started 3 Wi-Fi network setup To use TCP and UDP peers, at least one Wi-Fi network must be defined (and connected). This is done using the AT+UWSC and AT+UWSCA commands. To define a network, IP address assignment behavior must be defined.
ODIN-W2 series - Getting Started 4 Evaluation board The evaluation board for ODIN-W2 is EVK-W262. 4.1 LED Indications and Buttons There are two operational buttons and one multi LED as shown in Figure 6. Figure 6 USB adapter board The LED indicates what mode is currently active and what activity that is currently in progress. The following color indications are used.
ODIN-W2 series - Getting Started 4.2 Restore default serial settings If the Restore/Function button is pressed during power on, the module resets the serial settings and escape sequence to the default values. • Default serial settings is 115.2 kbps, 8N1 and HW flow control enabled •...
ODIN-W2 series - Getting Started 5 Bluetooth configuration You can configure the ODIN-W2 module according to specific customer requirements using AT commands (see ODIN-W2 AT Commands Manual [1]). The easiest way to get started is to use the s-center, which is a graphical user interface for sending AT-commands (see s-center Quick Start Guide [4]).
ODIN-W2 series - Getting Started For more than one connection, see the Multipoint section. 5.3 Bluetooth profiles The Bluetooth profiles used by the client and server define the type of connection that is accepted. • Serial Port Profile (SPP): Serial cable emulation profile to replace existing serial cables.
ODIN-W2 series - Getting Started Figure 9 Multipoint in extended data mode For the multipoint case, it is important to consider the master/slave role (which is not the same as client/server). If a device has multiple Bluetooth connections active and if the device is master for all the connections, this is a piconet.
ODIN-W2 series - Getting Started 6 Wi-Fi configuration To use Wi-Fi as transport for serial data, setup both the network and peers. You can setup both TCP and UDP peers and they can be both client and servers. 6.1 Network setup To setup a network, Wi-Fi Station Network configuration (AT+UWSC) and Wi-Fi Station action (AT+UWSCA) command shall be used.
ODIN-W2 series - Getting Started 7 Use case examples 7.1 Establish a Bluetooth Classic SPP connection between two ODIN-W2 • By default, ODIN-W2 accepts incoming connection and replies on Inquiry. • AT+UBTI Make inquiry to find the other device •...
ODIN-W2 series - Getting Started 7.2 Establish a Bluetooth SPP connection that connects at power up • AT+UDDRP=0,"spp://0012f3000001/",4 Set default remote peer, always connected • AT+UMSM=1 Select startup mode, startup in data mode • AT&W0 Store configuration in startup database •...
ODIN-W2 series - Getting Started 7.3 Set a default remote peer (Wi-Fi and TCP) using DHCP and connect at startup • Alternative 1 - Network part using DHCP AT+UWSCA=0,4 Deactivate network id 0 AT+UWSC=0,0,1 Active on startup •...
Page 19
ODIN-W2 series - Getting Started Figure 12: ODIN-W2 Wi-Fi Connection UBX-15017452 - R02 Advance Information Use case examples Page 19 of 27...
ODIN-W2 series - Getting Started 7.4 Set a default remote peer (Wi-Fi and TCP) using static IP address and connect at startup • Network part using Static IP Address AT+UWSCA=0,4 Deactivate network id 0 AT+UWSC=0,0,1 Active on startup AT+UNC=0,100,1 ...
Page 21
ODIN-W2 series - Getting Started • Wi-Fi setup AT+UWSCA=0,4 Deactivate network id 0 AT+UWSC=0,0,1 Active on startup AT+UWSC=0,2,"my Phone" Set the Network SSID to connected to AT+UWSC=0,5,2 Use WPA2 as authentication type AT+UWSC=0,8,"my password" The secret WPA2 Password AT+UWSCA=0,3 ...
Page 22
ODIN-W2 series - Getting Started Figure 13: TCP console for iOS and TCP UDP Terminal for Android https://itunes.apple.com/se/app/tcp-console/id642104251?mt=8 https://play.google.com/store/apps/details?id=nextprototypes.tcpudpterminal • TCP and data part AT+UDCP="tcp://172.20.1:5003" Set using TCP When +UDCP:0 the TCP is connected • ATO1 switch to data mode to send data...
Page 23
ODIN-W2 series - Getting Started Figure 14: ODIN-W2 Wi-Fi Connection to iPhone UBX-15017452 - R02 Advance Information Use case examples Page 23 of 27...
ODIN-W2 series - Getting Started 7.6 Connect two ODIN-W2 using Bluetooth Low Energy Serial Port Service SPS and always connected To set up first ODIN-W2 as a Central (Device A) • AT+UBTLE=1 Enable Central Role • AT+UDSC=1,1 Set server config id 1 to Serial Port Service •...
ODIN-W2 series - Getting Started Appendix A List of acronyms Abbreviation / Term Explanation / Definition DHCP Dynamic Host Configuration Protocol Data Terminal Ready Extended Data Mode HTTP Hypertext Transfer Protocol Light-Emitting Diode RSSI Received signal strength indication Serial Port Profile...
ODIN-W2 series - Getting Started Related documents ODIN-W2 AT Commands Manual, Document No. UBX-14044127 u-blox Extended Data Mode Protocol Specification, Document No. UBX-14044126 ODIN-W2 series Data Sheet, Document No. UBX-14039949 EVK-W262U Quick Start Guide, Document No. UBX-15016340 Revision history Revision...
ODIN-W2 series - Getting Started Contact For complete contact information visit us at www.u-blox.com. u-blox Offices North, Central and South America Headquarters Asia, Australia, Pacific Europe, Middle East, Africa u-blox America, Inc. u-blox Singapore Pte. Ltd. u-blox AG Phone: +1 703 483 3180...
Need help?
Do you have a question about the ODIN-W2 Series and is the answer not in the manual?
Questions and answers