User Tools

Site Tools


digix:tutorials:wifi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
digix:tutorials:wifi [2013/09/11 21:30]
Eje_G [Resources] made a oops :(
digix:tutorials:wifi [2014/03/07 09:13] (current)
schnapp
Line 1: Line 1:
 ===== Setting up the WiFi connection (first time use/new location): ===== ===== Setting up the WiFi connection (first time use/new location): =====
  
-Attach the DigiX to a power source (USB, DC Jack, etc)+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 DIGIX or HF-LPB network with DHCP enabled+**Note**: some USB ports might not provide sufficient current. If things don't work for you try powering the DigiX thru the DC jack. 
 + 
 +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: 10.10.100.254 In browser goto: 10.10.100.254
  
 Username: admin Password: admin Username: admin Password: admin
 +
 +
 +For most browsers the easy way to do this is just put this address into your browser address bar:
 +
 +**http://​admin:​admin@10.10.100.254**
 +
 +(if you change the username/​password just make sure you are using {username}:​{password}@10.10.100.254)
 +
 +
  
 If necessary - Select English in the top right If necessary - Select English in the top right
Line 53: Line 64:
  
 Don't change anything here unless you know what you are doing, the library depends on these settings. Don't change anything here unless you know what you are doing, the library depends on these settings.
 +
 +**Note:** you might want to verify the baud setting. After a factory restore it could be at 115200 baud while most of the example code defaults to 9600.
 +
  
 **Account** **Account**
Line 76: Line 90:
 ===== Using it in your sketch ===== ===== 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 Examples->DigiFi for many usage examples.
  
-See the Examples->​DigiFi->Basic example to get started.+The DigiFi library is mostly compatible with the Arduino Ethernet library ​http://​arduino.cc/​en/​reference/​ethernet
  
-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.+See the EthernetCompatible examples for differences.
  
 +See also the Xively library.
  
 +The DigiFi Library can also provide a much easier way to post and get URLs - see the DigiFi->​BasicClient example
  
 +It also has some neat tricks for server usage - see DigiFi -> ServerExample
  
-===== Resources =====+See the SetRTCbyNTP example for how to set the Real Time Clock from a time server.
  
-Datasheet on WiFi module: http://​digistump.com/​wiki/​_media/​digix/​tutorials/​usr-wifi232-g_en.pdf+See DigiFI->​EthernetCompatible->​WebServerChunked for an example of the integrated Chunked Transfer mode for server use.
  
-Expanded DigiFi library by ags131: Now in the DigiFi GitHub https://​github.com/​digistump/​DigiFi+The DigiX supports using the WiFi with Serial flow control for faster communications. To enable it you must first set the Flow Control to enabled via the web config, and set a baudrate. Then instead of calling wifi.begin() - call wifi.begin(BAUDRATE,​ true) where BAUDRATE is the baudrate you set the module to via the web cconfig.
  
-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. 
  
-''​ +===== Resources =====
-wifi.startATMode();​+
  
-wifi.setNetParams("​TCP","​SERVER",​20,""​);​+Datasheet on WiFi module: http://​digistump.com/​wiki/​_media/​digix/​tutorials/​usr-wifi232-g_en.pdf
  
-wifi.endATMode();​ +DigiFi GitHub https://​github.com/​digistump/​DigiFi
-''​+
  
-The above code would start the WiFi listening on port 20all data would be linked to the serial connection.+See the DigiFi.h and .cpp files for lots of extra functions!
  
-[[digix:​tutorials:​wifi:​Library-Functions |Library Functions]]+See also: [[digix:​tutorials:​wifi:​Library-Functions |Library Functions]]
  
 +===== Web Server =====
 +
 +See ServerExample for an example of Basic web server usage.
 +
 +See DigiFi->​EthernetCompatible->​WebServerChunked for an example of the integrated Chunked Transfer mode for server use.
  
 ===== ToDo - please help! ===== ===== ToDo - please help! =====
  
-<​del> ​ - Figure out the reasons for, solutions to, and differentiate between the intermittent timeout/no response issues (see below).</​del>​ 
   - Add DELETE, PUT commands to library   - Add DELETE, PUT commands to library
   - Add __lots of additional__ error handling   - Add __lots of additional__ error handling
   - General cleanup, comment, etc of library, example, and this page.   - General cleanup, comment, etc of library, example, and this page.
   - Add more features to library and document on wiki.   - Add more features to library and document on wiki.
-  - Add images to this page, especially the setup steps. - COMPLETED 
-  - **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.** 
-  - Extend class to work with Xively, ThingsSpeak,​ and Temboo (based on their Arduino libs) 
   - Programing over WiFi   - Programing over WiFi
   - Digistump hosted proxy for secure data transfer   - Digistump hosted proxy for secure data transfer
   - Digistump hosted proxy for IFTTT integration   - 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. 
-<​del>​===== 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! +
-</​del>​ +
-This has been fixed by ags131! Newest code in github: https://​github.com/​digistump/​DigiFi+
 ===== Tips ===== ===== Tips =====
  
Line 150: Line 160:
 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. 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.+It is currently unknown if the wifi uses this factory default through the web ui or factory reset AT command. I do not think it does as its undefined by default.
digix/tutorials/wifi.1378960241.txt.gz · Last modified: 2013/09/11 21:30 by Eje_G