Silex Unwired

Jump Start Your SX-59HLS-EVK with These Tips

If you are interested in evaluating Silex's SX-59HLS, and would like quick information to help get your project started, look no further. 

Note: for a downloadable version of this guide, click here

Below are the quick steps you'll need to follow to optimize your evaluation.

What you’ll need:

  •                 A windows 10 machine
  •                 An installation of terminal emulator software, TeraTerm is recommended. 
  •                 A micro-USB – USB type A (Android charger) cable
  •                 A wireless network to connect to
  •                 Silex's SX-59HLS-EVK Setup Manual (includes schematic of EVK)
  •                 The AT command set specification

The SX-59HLS is a 3.3V part and should be designed as such, but the EVK is powered via a USB connection, which is 5V.  The EVK has a ‘quad’ UART chip from FTDI on it to give access to all 3 UARTs on the SX-59HLS, and can support the maximum baud rate that it supports, 4Mb/s. 

Once you have all the equipment listed above, you’ll need to install a USB driver for the FTDI chip that’s on the EVK.  This is documented in the SX-59HLS-EVK.  Once installed, you plug in the EVK.  You should see 3 new Com ports  in windows available to you.  The first one will be the default UART used to communicate to the SX-59HLS part by default.

Next, you’ll need to open a terminal emulator for 115200 baud, no parity, 8 data bits, 1 stop bit and to send <CR> only.  Sending <CR/LF> instead of <CR> will cause issues.  Settings for TeraTerm are shown in the SX-59HLS-EVK setup manual.

From here, you should be able to enter commands to the SX-59HLS part and query status, make settings, and connect/disconnect to wireless networks.  All of the AT commands are documented in the AT command set specification.

Some basic commands broken down by type (for all commands, refer to the AT command set specification) :

STA connection commands:

                ATWA                                   connect to an open network

                ATWAWPA                         connect to a WPA PSK network

                ATWAWPS                          connect to an AP using WPs push button or PIN method

                ATWALEAP                         connect to an enterprise network using LEAP

                ATWAEAPFAST                 connect to an enterprise network using  EAP-FAST

                ATWAEAPPEAP                 connect to an enterprise network using PEAP

                ATWAEAPTLS                     connect to an enterprise network using EAP-TLS

                ATWAEAPTTLS                  connect to an enterprise network using EAP-TTLS

AP connection commands:  (will support up to 10 clients connected to it, but enterprise security is not supported)

                ATWAP                                 create an open network AP

                ATWAPWPA                       create a WPA PSK network AP

Other wireless commands:

                ATWS                                    scan for what networks it sees across all channels

                ATW                                      display current connection status

                ATWRSSI                              display current RSSI reading for current connection

                ATWD                                   disconnect from current AP or STA connection

Network/IP settings commands:

                ANTSET                                sets the IP address

                ATNDHCP                            enable/disable DHCP client

                ATNDHCPS                          enable/disable DHCP server

                ATNPING                             ping an address

Socket Commands:

                ATNSOCK                            set current socket type (UDP, TCP, or SSL)

                ATNSOCKINDEX               sets the current socket index being used (0-3)

                ATNTAGDATA                    incoming data is for the current SOCKINDEX only, or its tagged with a header to show                                                                            which  socket it comes from

                ATNCLOSE                           close current socket

                ATNCTCP                             create TCP client socket

                ATNSTCP                             create TCP server socket

                ATNCUDP                            create UDP client socket

                ATNSUDP                            create UDP server socket

 

Here is an explicit example to test some functionality.  You should be able to do this with an out of the box EVK.

<CR> means an ‘enter’ or Carriage Return is struck.

atndhcp=0<CR>

atnset=192.168.1.1,255.255.255.0,192.168.1.1<CR>

atndhcps=1,192.168.1.2,192.168.1.20,3600<CR>

atwap=SILEX_TEST<CR>

At this point, you can connect to an AP named SILEX_TEST with your windows laptop.  Right now, the SX-59HLS-EVK is acting like an AP with a certain IP address which will also be a DHCP server for clients that connect to it. 

Now try the following:

atnsock=0

atnstcp=80

From here, open a web browser and type: ‘http://192.168.1.1/www.google.com’

You will see a connection message about the socket:

CONNECT 192.168.1.2,58581

 

And then you will see the raw HTTP code sent by the browser:

GET /www.google.com HTTP/1.1

Host: 192.168.1.1

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-US,en;q=0.5

Accept-Encoding: gzip, deflate

Connection: keep-alive

Cookie: _ga=GA1.4.435543011.1532539050; lang=en

Upgrade-Insecure-Requests: 1

 

Did this help you with your SX-59HLS-EVK? Have more questions? We can help.