Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: WiFly Shield run web_app not found? on: May 26, 2013, 09:53:08 pm
*bump* (only one I swear)

still proving resistant, not sure what elusive obvious thing I haven't tried yet
2  Using Arduino / Programming Questions / Re: WiFly Shield run web_app not found? on: May 24, 2013, 10:15:25 pm
got in through telnet for a bit, updated firmware again just in case,
statements below were run in CMD mode, followed by the action/response
 - wps = run wps scan & reboot
 - run wps = run wps scan & reboot
 - web_app = ERR: ?-Cmd
 - run web_app = web_app not Found
 - run web = web not Found
 
3  Using Arduino / Programming Questions / WiFly Shield run web_app not found? on: May 24, 2013, 05:46:41 pm
I'm trying to setup an arduino to setup an access point to configure SSID & password for connecting to a wifi network

got it working clean when I have the credentials hard coded, getting it to accept credentials is proving difficult

running a wifly shield with rn171 updated firmware to 4.00

according to the user manual for rn171 sending the command "run web_app\r"
should run some pre-configured script within the chip to create an access point and allow submitting values for network access

trick is that when I submit "run web_app" it gives me "web_app not found"

alternatively I've tried running it as an access point / web-server -- so far a no-go

any ideas?
4  Using Arduino / Programming Questions / Re: Matching a string pattern from a stream of chars on: May 17, 2013, 10:23:51 pm
thank you, looks like a perfect fit
5  Using Arduino / Programming Questions / Matching a string pattern from a stream of chars on: May 17, 2013, 09:38:22 pm
Topic says what I'm trying to do

I'm using WiFly to pull this response as a string of chars.

Code:
HTTP/1.0 200 OK
Date: Sat, 18 May 2013 02:30:30 GMT
Server: WSGIServer/0.1 Python/2.7.4
Vary: Cookie
Content-Type: p

*STRT*12:1,4:1,11:1,*CLOS*

What I'm having trouble doing is figuring out how to match the *STRT* so that I can begin parsing the number series that follows.

*STRT* comes through as a series of chars

may come to me in a moment of insight tomorrow but feeling stuck on this one right now

any ideas?
6  Using Arduino / Programming Questions / Re: Concatenate Float w/ a String on: February 07, 2013, 06:37:06 pm
Thank you Arch -- seems to have done the trick

have to see about cleaning up my hacky code and pushing it to github
7  Using Arduino / Programming Questions / Concatenate Float w/ a String on: February 02, 2013, 10:22:01 pm
Been tinkering with this for a while and just about scratching my head at why it's been so difficult.

I am using the Adafruit library to pull sensor data from 2 DHT11's the values returned are float vars
https://github.com/adafruit/DHT-sensor-library

I'm then trying to post them to a remote server using an Ethernet shield with a ENC28J60 chip
using the EtherCard library
https://github.com/jcw/ethercard

did some homework and tinkered with this on and off for a couple weeks, most of the common C methods aren't available and I've yet to find a workable reference

I have a sample of my code as it stands posted at
https://gist.github.com/4700415

line 132 makes the GET call (commented out)
lines 121 and after are attempts to concatenate the values, I know this is an easy fix for someone with experience so I'm reaching out for a snippet or reference

thanks
8  Using Arduino / Networking, Protocols, and Devices / EtherCard + dht -- fails to combine sensor floats to URL string? on: December 21, 2012, 12:45:22 pm
I'm attempting to post DHT sensor data that is returned from the Ada-Fruit library as floats to a remote server using a GET request

(hope that isn't too jibberishy to follow)

anyway, I've posted examples of the functions I'm trying to combine not working, and working independently
not exactly sure why things are failing and hoping it's another of these simple ideas that I'm just not seeing from a lack of experience writing code for Arduino

samples are at::
https://gist.github.com/4354349

the header description lost it's formatting -- easier to read version::

Combined 2 example scripts with a bit of scripting to publish sensor data from 2 DHT11 sensors to a remote web-server using a GET request

webClient_dht -- doesn't work with error code in comments below
webClient -- works to post to web-server using a GET request
DHTtester1 -- works to read sensor data and concatenate floats to a string and return using Serial.println()

EtherCard version:: https://github.com/jcw/ethercard
DHT version:: https://github.com/adafruit/DHT-sensor-library
9  Using Arduino / Networking, Protocols, and Devices / Re: ENC28J60 + EtherCard == Fails to Initialize?? on: December 19, 2012, 02:30:05 pm
moelski -- THANK YOU!!!

had to set line 26 to

Code:
  if (ether.begin(sizeof Ethernet::buffer, mymac, 10) == 0)

in examples/webClient

working

PaulS:: The ENC28J60 chip is the one one this board, all I did was write what I can read on the board -- not saying this is an OFFICIAL Arduino Ethernet Shield -- that's simple what's printed on the board
10  Using Arduino / Networking, Protocols, and Devices / ENC28J60 + EtherCard == Fails to Initialize?? on: December 18, 2012, 12:19:13 pm
I have an arduino Uno that I have been learning to tinker with recently, tried adding a Ardruino Ethernet Shield v1.1 with the goal of having a networked client upload sensor data to a remote server

trick is that no existing libraries have been working

tried several

the process goes that while running through setup() the initialization for ether.begin causes the system to hang

I've tried this using IDE 1.0.0, 1.0.1, 1.0.2, and 1.0.3

if I set a static IP for a server example then I am able to ping the server but otherwise get no-where

the ethercard example I referred to has an added snippet at line 29

Code:
  if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)
    Serial.println( "Failed to access Ethernet controller");
  Serial.println("Greetings Ethernet");

so that it will print to the serial monitor regardless of pass or fail, seems that either I've connected something wrong (likely) or something is wrong with the library (unlikely since it's been in use for a bunch of others)

trick is I don't know what I hooked up wrong, the shield slides into the Uno properly... -- that and being able to ping an IP has me scratching my head

got this shield from eBay so perhaps it has an odd configuration that I'm not aware of??


hope the rambling isn't too difficult to follow  -- trying to include anything that would be useful to debug
11  Using Arduino / Sensors / Re: DHT11 Woes on: December 13, 2012, 04:46:33 pm
**UPDATE**

I was using wire with a thin layer of insulation that I couldn't see -- thus no signal

now getting readings that come back way off from possible but progress
12  Using Arduino / Sensors / Re: DHT11 Woes on: December 04, 2012, 04:59:29 pm
borrowed a friends Duemilanove and tried the same hookup

same result

most recent library I tested is from ADAfruit at https://github.com/adafruit/DHT-sensor-library

though I added at line 33
Code:
    Serial.print("h = ");
    Serial.println(h);
    Serial.print("t = ");
    Serial.println(t);


which spits out the result of
Code:
DHTxx test!
Read failh = 0.00
t = 0.00
Failed to read from DHT
h = 0.00
t = 0.00
Humidity: 0.00 % Temperature: 0.00 *C
h = 0.00
t = 0.00

same result with 3 different DHT11 sensors

this one is starting to really bug me


** EDIT: added debugging code & result **
13  Using Arduino / Sensors / Re: DHT11 Woes on: November 21, 2012, 10:51:02 pm
Borrowed a friends DHT11 -- plugged it in same result

even tried turning it around in the protoboard on an off chance

still nada...
14  Using Arduino / Sensors / Re: DHT11 Woes on: November 20, 2012, 06:47:46 pm
the sensors came from hong kong via eBay -- going to borrow one from a friend shortly

quick diagram attached
15  Using Arduino / Sensors / Re: DHT11 Woes on: November 20, 2012, 02:21:26 pm
Just tried grounding pins 3 &4 together -- same result

running the library from http://www.arduino.cc/playground/Main/DHTLib/
it returns bGlobalErr = 1 (Start condition not met)

if I disable that section then it spits out Error 3: DHT Checksum Error


beginning suspect the Arduino Uno I'm working with may be faulty as I've tried 2 different DHT11's and get the same result


any other ideas to debug are appreciated
Pages: [1] 2