User Tools

Site Tools


This is an old revision of the document!

Setting up the WiFi connection (first time use/new location):

Attach the DigiX to a power source (USB, DC Jack, etc). Note: The DigiX will present itself as a new available wireless network with SSID “DIGIX” or “HF-LPB”.

From a device with a web browser (computer, smartphone, tablet, etc) connect to the “DIGIX” or “HF-LPB” wifi network with DHCP enabled

In browser goto:

Username: admin Password: admin

For most browsers the easy way to do this is just put this address into your browser address bar:


(if you change the username/password just make sure you are using {username}:{password}@

If necessary - Select English in the top right

Go to Work Mode Screen

set to AP+STA for best flexibility.

AP Mode - Access Point mode allows the DigiX to function as a Access Point to WiFi client devices STA Mode - Station Mode allows the DigiX to function as a WiFi client to WiFi Access Point AP+STA - Allows the DigiX to function as a Access Point at the same time it is a client to a Access Point

Hit Save before continuing.

When it says to reboot - unless you are completely done, do not reboot but continue do your setup.

STA Setting

Enter network name or scan for it, enter security info (it will attempt to detect encryption settings) Hit Save

When it says to reboot - unless you are completely done, do not reboot but continue do your setup.

AP Setting

Set these to your liking - this is for the Access Point the WiFi module creates (for connecting with Android phones, etc). Make sure it is not on the same channel as the WiFi you selected in STA settings.

Hit Save

When it says to reboot - unless you are completely done, do not reboot but continue do your setup.

Other Settings

Don't change anything here unless you know what you are doing, the library depends on these settings.


Change the username and/or password to login to this configuration panel.

Hit Save

When it says to reboot - unless you are completely done, do not reboot but continue do your setup.

When everything is set how you would like click on “Restart”

and then “OK”

You may need to power off the DigiX and power it back on the first time you change this or when you change the AP settings. (Eje_G Note: I never discovered any issues when I did my setup, but I did fairly straight forward configuration. Other configuration setups might possibly require a reboot)

Using it in your sketch

This library is very alpha, please help us fill it out, fix it up, and improve it - this is a top priority that we'd love some help with!

See the Examples→DigiFi→Basic example to get started.

Examples→DigiFi→KeyboardTweetLCD assumes you have the Bonus shield with the LCD attached and a keyboard attached via a USB OTG adapter - it turns your DigiX into a standalone twitter tweeting machine.


Datasheet on WiFi module:

Expanded DigiFi library by ags131: Now in the DigiFi GitHub

This adds wrappers for all the AT commands. Some of the ToDo things below are easily done via these wrappers, such as server mode, which is a oneline call when in AT mode.




The above code would start the WiFi listening on port 20. all data would be linked to the serial connection.

Library Functions

Web Server

See ServerExample for an example of Basic web server usage.

ToDo - please help!

- Figure out the reasons for, solutions to, and differentiate between the intermittent timeout/no response issues (see below).

  1. Add DELETE, PUT commands to library
  2. Add lots of additional error handling
  3. General cleanup, comment, etc of library, example, and this page.
  4. Add more features to library and document on wiki.
  5. Add images to this page, especially the setup steps. - COMPLETED
  6. Implement an option to use the already connected RTS,CTS hardware flow control lines to achieve much higher speeds between Wifi module and DigiX without having buffer issues.
  7. Extend class to work with Xively, ThingsSpeak, and Temboo (based on their Arduino libs)
  8. Programing over WiFi
  9. Digistump hosted proxy for secure data transfer
  10. Digistump hosted proxy for IFTTT integration

- Add an implementation of the server mode of the wifi module to the library (or a separate library?) - it is relatively easy to put it in server mode and use it to server content from the Arduino. - Implemented by Digistump see Server example. ===== Known issues ===== The biggest known issue at this point is that intermittently (and seemingly related to latency of the server you are sending the request to) the WiFi module does not send the response to the DigiX. It seems in some cases it does send the request to the other server (post requests arrive, but the response does not get back to the DigiX) this may be solved by timing or by utilizing some of the more cryptic AT commands. We've been working on it, as it cropped up when we made the module switch to this module (but this module solved many other things), but would love some help! This has been fixed by ags131! Fixed in newest release.


You can use the solder jumper on the back of the DigiX to connect the WiFi reset to either the DigiX reset button or pin 106 (which would allow you to reset from software) - either of which would make debugging/development on the library much easier since you don't have to worry about the wifi being in a stuck state and having to power off.


All AT commands are wrapped with functions, it is highly recommended to check the documentation in the references section before playing with these functions.

Reading/Writing configs:

NOTE: writing a bad or corrupted config could make the wifi module inaccessible, the module can be reset via a pin on the module. See the datasheet for details.

There are AT commands for reading and writing the config of the wifi module, these are in the latest library as readConfig and writeConfig. readConfig has been tested and is working but writeConfig has not. readConfig takes a pointer to a buffer (Should be atleast 1kb) and returns the length of the resulting config data. writeConfig accepts a pointer to a byte array and a length.

Some other config functions exist also, readFactoryDef() and makeFactory() readFactoryDef works just like readConfig, except it reads from a usually non changing config. on a new DigiX this config is empty and will not read. This is where makeFactory comes in, it copies the current config as a factory default. this allows you to use readFactoryDef to retrieve it at a later date.

It is currently unknown if the wifi uses this factory default through the web ui or factory reset AT command. I do not htink it does as its undefined by default.

digix/tutorials/wifi.1387547476.txt.gz · Last modified: 2013/12/20 05:51 by dougal