Show Posts
Pages: 1 ... 164 165 [166] 167 168 ... 404
2476  Using Arduino / Networking, Protocols, and Devices / Re: mega 2650 and ethernet shield v1 on: June 22, 2013, 09:41:55 am
I presume the ethernet shield does not have the ICSP connector on the bottom? You can "pin bend" D11-D13 on the shield, and connect those to the ICSP pins instead. Most newer shields that have SPI devices onboard use the ICSP connector for the SPI data lines.

That will free up D11 to D13 on the Mega.
 
edit: You don't really need to jumper to the ICSP connector. The Mega uses D50-D52 for the SPI data lines like the Uno uses D11-D13, so you can't use those for anything else anyway. Just bend the pins.
2477  Using Arduino / Programming Questions / Re: How to format a Get Request on: June 22, 2013, 08:48:58 am
Right, and the ability to recognize a virtual server so you know what header parameters are required.  smiley

Here is how I determined your server uses virtual hosting. In the address bar of your browser
http://www.seti.net
and you get your home page.

In nslookup
Code:
C:\Documents and Settings\user>nslookup www.seti.net
Server:  ip68-105-28-16.at.at.cox.net
Address:  68.105.28.16

Non-authoritative answer:
Name:    seti.net
Address:  205.134.250.170
Aliases:  www.seti.net

Then try that ip in your web browser
http://205.134.250.170
You will get your web hosting service page
inmotionhosting.com
2478  Using Arduino / Programming Questions / Re: How to format a Get Request on: June 22, 2013, 08:29:44 am
The correct format on the GET line is important for obvious reasons. The virtual server is a bit more obscure. Here is a wiki article on virtual hosting.
http://en.wikipedia.org/wiki/Virtual_hosting
A Google search works good for that if you need more info.
2479  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield + arduino as a CLIENT, please help! on: June 22, 2013, 07:42:01 am
Here is my client code. It uses a static ip.
http://playground.arduino.cc/Code/WebClient
Code:
IPAddress ip(192,168,1,2);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);

// change to your server
IPAddress server(192,168,1,3); // Your server

Ooops. Forgot the serverName change. That is a recent change to my code, so I keep forgetting it.
Code:
//Change to your domain name for virtual servers
// If no domain name, use the ip address above
char serverName[] = "192.168.1.3";
2480  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield + arduino as a CLIENT, please help! on: June 22, 2013, 06:47:06 am
Have you set the server firewall to allow port 80 through? Have you tried accessing the server with a computer? Don't use the server for this test. It doesn't check the firewall settings.

If the Arduino gets a local ip address with dhcp, the client code should still work.
2481  Using Arduino / Programming Questions / Re: How to format a Get Request on: June 22, 2013, 06:35:40 am
Do not use the double slash preceding the GET.
Code:
// change this
client.println("//GET /php/getEvents.php HTTP/1.0");
// to this
client.println("GET /php/getEvents.php HTTP/1.0");

And your web host uses virtual hosting. Insure you send the Host parameter. I use HTTP/1.1 for that.
Code:
client.println("GET /php/getEvents.php HTTP/1.1");
client.println("Host: www.seti.net");
client.println("Connection: close\r\n");
2482  Using Arduino / Project Guidance / Re: Arduino to Arduino comms over ethernet on: June 21, 2013, 06:42:51 am
UDP is pretty simple. No connection or error checking. Just send the packet. You won't know if the packet gets to the destination unless the destination device sends a response packet.
2483  Topics / Home Automation and Networked Objects / Re: Signal on 230AC on: June 21, 2013, 06:34:02 am
X10 devices use mains power for data transmission. Great care is required when testing, or you could damage yourself.
http://www.x10.com/homepage.htm
2484  Using Arduino / Storage / Re: problems with arduino ethernet and its SD card on: June 21, 2013, 06:27:22 am
You should post all your code. Here are mine.

Web server.
http://playground.arduino.cc/Code/WebServerST

Email client.
http://playground.arduino.cc/Code/Email

FTP client(w5100 and SD working together).
http://playground.arduino.cc/Code/FTP

You may be running a bit low on SRAM with an Uno-type processor. 2K doesn't go far. You will certainly need the F() macro for those static strings. Look at any of those sketches for an example.
2485  Using Arduino / Networking, Protocols, and Devices / Re: DUE + Ethernet Shield + RTC DS3234 = SPI Problem? on: June 20, 2013, 02:08:00 pm
...and that main(void) stays in the loop() function forever.

Har har! The "pirate's code" only applies to pirates, and they are only guidelines.  smiley-wink

It is up to YOU to initialize your devices correctly. The SPI bus has 4 modes. Set it incorrectly, and "Remember the Hindenburg!" Oh, the humanity!!
2486  Using Arduino / Project Guidance / Re: WiFi Shield on: June 20, 2013, 11:09:44 am
If you must disconnect the MISO line for a device, then that device slave select pin is LOW, or the device is not really SPI compatible. The SS LOW enables the driver on the MISO, and that is NOT GOOD! Insure that device slave select pin is OUTPUT and HIGH.
Code:
pinMode(thisSS, OUTPUT);
digitalWrite(thisSS, HIGH);

edit: Ooops! Forgot a closing parenthesis.  smiley-red
2487  Using Arduino / Networking, Protocols, and Devices / Re: DUE + Ethernet Shield + RTC DS3234 = SPI Problem? on: June 20, 2013, 11:01:05 am
That code is not what I would use. The SD and w5100 should be initialized in setup(), not loop(). Set it, and forget it. Same with the RTC.

Once you get all set correctly, you should end up like this user:
http://forum.arduino.cc/index.php?topic=172871.0
2488  Using Arduino / Installation & Troubleshooting / Re: Shields using all my pins on: June 20, 2013, 09:53:35 am
Yes, that is the plan. I like this proto shield because it includes the ICSP header. That allows you to stack SPI devices on it like SD, ethernet and wifi shields.
2489  Using Arduino / Installation & Troubleshooting / Re: Shields using all my pins on: June 20, 2013, 09:33:01 am
Like this?
http://www.nkcelectronics.com/MEGAshield-KIT-for-Arduino-MEGA-2560-R3-and-Arduino-DUE_p_309.html
2490  Using Arduino / Project Guidance / Re: WiFi Shield on: June 20, 2013, 09:15:01 am
Normally the respective libraries take care of the slave select pin for each device once you get the devices initialized. I have not looked at the library code for your GPS unit, but it should be the same. The low level read/write functions manage the SS pin.
Pages: 1 ... 164 165 [166] 167 168 ... 404