Show Posts
Pages: 1 ... 49 50 [51] 52 53 ... 147
751  Using Arduino / Programming Questions / Re: If Statement for my arduino mega + fingerprint sensor on: December 22, 2013, 05:46:20 am
You do not have a closing brace for your "void loop()". It needs to go before the function "getFingerprintEnroll".
752  Using Arduino / Programming Questions / Re: If Statement for my arduino mega + fingerprint sensor on: December 22, 2013, 05:31:07 am
You will need to post all of "void loop()" if you want us to have a crack at it ( error message says line 58  and 272, your code is cut short ).

But you have either left a semi colon off the end of a class declaration or you have not matched the number of open brackets '{' with closed ones.
753  Using Arduino / Programming Questions / Re: Ethernet header question on: December 22, 2013, 03:49:36 am
westfw is on the money, notice your IP addresses n ports mixed in there:

c0 a8 01 8c == 192.168.1.140
c0 a8 01 77 == 192.168.1.119
f2 30 == 62000
00 17 == 23
754  Using Arduino / Programming Questions / Re: Strange things happening when I try to use an array... on: December 18, 2013, 06:59:12 am
Here is a link to my BitBool class, it will handle storing/reading the bits as well as work just like a normal array: http://forum.arduino.cc/index.php?topic=128407.0
755  Using Arduino / Programming Questions / Re: Strange things happening when I try to use an array... on: December 18, 2013, 06:47:59 am
If the SD lib creates its buffer even when not used, then you are using a minimum of 1353 bytes with just the SD and array. If you use an Uno you may have swallowed all the RAM with the oled lib and such.
756  Using Arduino / Networking, Protocols, and Devices / Re: posted data not read by php script on: December 18, 2013, 01:45:02 am
No worries, hope I didn't wake you up with all the e-mails, I notice your profile says it would have been around 6am.
757  Using Arduino / Networking, Protocols, and Devices / Re: posted data not read by php script on: December 18, 2013, 01:24:15 am
Yup, got it!

You have parts of my test mixed in your code so you started multiple connections.
After removing that I got:

Quote
192.168.1.101.Moisture Sensor Reads 560
connected
GET /Arduino/sendmail.php?data=1 HTTP/1.0
Host: XXXXXXXXX.com
HTTP/1.1 408 Request Time-out
Date: Wed, 18 Dec 2013 06:25:07 GMT
Server: Apache
Content-Length: 223
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>408 Request Time-out</title>
</head><body>
<h1>Request Time-out</h1>
<p>Server timeout waiting for the HTTP request from the client.</p>
</body></html>

disconnecting.

This meant the header was malformed.
I added an '\r\n' to the end of the last header line and it worked.

Quote from: your server
192.168.1.101.Moisture Sensor Reads 555
connected
GET /Arduino/sendmail.php?data=1 HTTP/1.0
Host: XXXXXX.com
Connection: close

HTTP/1.1 200 OK
Date: Wed, 18 Dec 2013 06:18:11 GMT
Server: Apache
X-Powered-By: PHP/5.3.27
Connection: close
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
XXXXXXXXX@gmail.com</body>
</html>
disconnecting.

EDIT: sorry, left my arduino running, probably sent like 50 emails.

I will PM the sketch.
758  Topics / Home Automation and Networked Objects / Re: router on: December 17, 2013, 08:26:16 am
What ever cable you use to connect your PC to a router (CAT 5), just use that. Do not attempt to smush a standard copper telephone cable in.

Ethernet cable is commonly a CAT 5 cable which is a standard of cable that utilizes a design called UTP (unshielded twisted pair), there are many variants like straight through, rollover and crossover. RJ45 is the connector used on NIC cards like the Arduino Ethernet. Category 6 cable is used for more fragile signals like gigabit Ethernet, whereas category 5 is used with megabit connections.

Most if not all cards these days support auto negotiation and will conform to whatever format of (CAT5/6) cable you use. Back in the day, hardware could be destroyed by using the wrong cable, apparently ( never had a problem in my time ).
759  Using Arduino / Project Guidance / Re: Paranormal Investigation Equipment on: December 17, 2013, 07:43:14 am
Haha, gold. Keep posting everybody.
760  Using Arduino / Networking, Protocols, and Devices / Re: posted data not read by php script on: December 17, 2013, 05:47:47 am
I haven't received your PM yet, but just make sure you do have the Host portion in the headers you send, I mentioned it in reply#5 however you were quick to respond and might not have seen my edit.

I noticed it wasn't in your code posted in reply#4 last night, but you do have it in the initial post. Hopefully this is all that is missing.

Its required for servers like mine ( and most probably yours ) which are hosted with dynamic addresses. The main server host has the static IP and it forwards connections onto our virtual hosts. You probably can buy a static IP ( I can if needed ), which would remove the need for a host section.

You can see the dynamic-ness using my server: http://genx.biz/cpanel/ << Shows misconfiguration as its pointing to my server host rather than my sites virtual server.
761  Using Arduino / Networking, Protocols, and Devices / Re: Error when printing insanely long strings in HW serial on: December 16, 2013, 07:48:01 am
Did yours start compiling or did java spew out exceptions before any real output.

I'll have a try of a few ideas, I'm pretty sure I've had objects larger than that in PROGMEM....
Yes I have, this sketch I wrote a while ago fills an entire mega with 30,000 byte PROGMEM chunks:
Quote
Binary sketch size: 258,048 bytes (of a 258,048 byte maximum)
Code:
#define nothing

template< uint64_t C, typename T >
  struct LargeStruct{
    T Data;
    LargeStruct< C - 1, T > Next;
};
template< typename T > struct LargeStruct< 0, T >{ };

typedef LargeStruct< 80, uint64_t > Container;

PROGMEM LargeStruct< 50, Container > l_Struct;
PROGMEM LargeStruct< 50, Container > l_Struct1;
PROGMEM LargeStruct< 50, Container > l_Struct2;
PROGMEM LargeStruct< 50, Container > l_Struct3;
PROGMEM LargeStruct< 50, Container > l_Struct4;
PROGMEM LargeStruct< 50, Container > l_Struct5;
PROGMEM LargeStruct< 50, Container > l_Struct6;
PROGMEM LargeStruct< 50, Container > l_Struct7;

PROGMEM LargeStruct< 431, uint16_t > l_Struct8;
void setup()
  {
    volatile int i = ( int ) &l_Struct;
    volatile int i1 = ( int ) &l_Struct1;
    volatile int i2 = ( int ) &l_Struct2;
    volatile int i3 = ( int ) &l_Struct3;
    volatile int i4 = ( int ) &l_Struct4;
    volatile int i5 = ( int ) &l_Struct5;
    volatile int i6 = ( int ) &l_Struct6;
    volatile int i7 = ( int ) &l_Struct7;    
    volatile int i8 = ( int ) &l_Struct8;  
  }

void loop(){}

For now, that string is too large, the IDE hangs trying to parse it. You will have to try the compiler directly maybe.
762  Using Arduino / Networking, Protocols, and Devices / Re: Error when printing insanely long strings in HW serial on: December 16, 2013, 07:26:33 am
I can't even get close to compiling it, the IDE explodes before GCC even has a whiff of it. Tried 1.0.5 and 1.5.2.
763  Using Arduino / Networking, Protocols, and Devices / Re: Error when printing insanely long strings in HW serial on: December 16, 2013, 07:22:13 am
The string might create too many elements (addresses can only reference so much memory), I'll have a quick look to see what it says, looks mighty long though.
764  Using Arduino / Networking, Protocols, and Devices / Re: posted data not read by php script on: December 16, 2013, 07:18:48 am
Sorry, was at work. If you like, send the PM and I'll test it for you, working all day tomorrow so I may not respond till almost the same time as this post. I have a bit of spare time now, so I'll take your latest code here and I'll try it out.
765  Using Arduino / Networking, Protocols, and Devices / Re: Reliable UDP on: December 15, 2013, 08:22:00 pm
There is no special Arduino C, the IDE uses a real C/C++ compiler and the Arduino project only provides the hardware and an extensive set of libraries and code to use on them ( API ). The library might have come with examples or search the net for someone else that may have posted info on using it.
Pages: 1 ... 49 50 [51] 52 53 ... 147