Show Posts
Pages: [1] 2 3
1  Using Arduino / Networking, Protocols, and Devices / Re: new Twitter API - HTTPS always required on: June 22, 2013, 05:39:14 pm
Hi Christophe,

That's quite a good find. Thanks for sharing.
2  Using Arduino / Networking, Protocols, and Devices / new Twitter API - HTTPS always required on: June 15, 2013, 11:10:36 am
Hi,

On the 11th of this month, Twitter stopped some of their old API (like search.twitter.com) but most importantly, all of their API is HTTPS only.

This is a problem for arduino, as there's no ssl support as far as I'm aware (ram issue?). It's a shame, I tried to look everywhere for a arduino only solution but no luck.

The only solution is a proxy server (Arduino ask Server to make quiery Twitter's API). It's not as elegant, I was really enjoying having just an arduino board and no computer.

If anyone has a different solution or thoughts about it, that would be great.

Cheers

founds during my searches incase:
https://code.google.com/p/crypto-arduino-library/
https://polarssl.org/
http://www.yassl.com/yaSSL/Home.html

3  Using Arduino / Programming Questions / Re: CuHead/Uno R3 and Twitter on: June 14, 2013, 02:13:02 pm
@andersoncentral

If you are using "search.twitter", like me, than you might get into problems as Twitter spotted it on the 11th of June. You have now to use api.twitter.com/1.1/search, register your app, and do an auth. It's a bit more complicated as you need to submit two keys to get a token that you will include in your queries to the API.

I am starting to adapt my php test to arduino. Will post the results if I'm successful. 
4  Using Arduino / Networking, Protocols, and Devices / Re: [Resolved] Ethernet Board, client.connect(URL, port) only works with IP? on: May 26, 2013, 11:23:52 am
Cheers SurferTim,

I will check it out when I get to this part in my project. I will need some time to get my head around the code you putted on Playground.

Again, thank you very much for your help.
5  Using Arduino / Networking, Protocols, and Devices / Re: [Resolved] Ethernet Board, client.connect(URL, port) only works with IP? on: May 26, 2013, 08:09:15 am
I'm so happy about this I've got to thank you guys again. That was driving me insane! It's one of those things, it's right in front of you but you've been looking at it for long that you can't even see it.

Thank you!
6  Using Arduino / Programming Questions / Re: Ethernet and SD in the same sketch on: May 26, 2013, 07:55:34 am
Hi,

this worked for me:
http://forum.arduino.cc/index.php?topic=168374.msg1253159#msg1253159

Code:
void setup() {
  Serial.begin(9600);

  // disable SD SPI
  pinMode(4, OUTPUT);
  digitalWrite(4, HIGH);

  // now do the rest of your setup stuff.
}

thanks to SurferTim.
7  Using Arduino / Networking, Protocols, and Devices / Re: [Resolved] Ethernet Board, client.connect(URL, port) only works with IP? on: May 26, 2013, 07:52:34 am
SurferTim, you're the man!

I should have read the SD library doc in more details and realise that there's both using SPI communication.

So if I want to use the SD card to store information, I would need to switch on and off pin 4:

1/ switch off pin 4
2/ HTTP request
3/ store response in memory
4/  switch on pin 4
5/ write to card
(back to step 1)

Cool, I hope this will also help others. ( I can't believe how much time I wasted because of this).

Cheers!
8  Using Arduino / Programming Questions / Re: Ethernet and SD in the same sketch on: May 26, 2013, 07:40:26 am
Hi,

I've just came across the same issue. After wondering if the problem was with the ethernet library I found through Zoomkat reply that I needed to remove the SD card (left in from previous test).

Have you found a solution for this problem?
9  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet Board, client.connect(URL, port) only works with IP? on: May 26, 2013, 07:35:48 am
Ok, that's weird and I don't think I saw any mention of this on the documentation of the Ethernet Lib.

I saw in your comments that the SD card needed to be removed. Which I did, and now it works.

I don't really understand it. Any idea?
10  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet Board, client.connect(URL, port) only works with IP? on: May 26, 2013, 07:28:38 am
Hi ZoomKat,

I've you tested your code recently? This code doesn't work on my side.
I don't see any differences with the Webclient client example I posted (in terms of using the client.connect()).

Cheers


11  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet Board, client.connect(URL, port) only works with IP? on: May 26, 2013, 07:20:54 am
Thanks Guys for the quick reply.


@ zoomkat: Trying it now and I will report back.

@ JohnHoward: I'm testing with google, bbc, etc... so that shouldn't be an issue.
12  Using Arduino / Networking, Protocols, and Devices / [Resolved] Ethernet Board, client.connect(URL, port) only works with IP? on: May 25, 2013, 01:13:21 pm
Hi,

I've looked everywhere but I can't find someone with the same issue. Some people had this problem but it was because they didn't specified a host in their header. Is it something that I'm missing?

Basically, the ethernet library with the ethernet board doesn't seem to accept a URL (char array) in the method connect(); It works fine with an IP.

Here's a piece of code (the webclient example):

Code:
#include <SPI.h>

#include <Dhcp.h>
#include <Dns.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <EthernetUdp.h>
#include <util.h>

/*
  Web client
 
 This sketch connects to a website (http://www.google.com)
 using an Arduino Wiznet Ethernet shield.
 
 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13
 
 created 18 Dec 2009
 modified 9 Apr 2012
 by David A. Mellis
 
 */

// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress server(173,194,41,184); // google.co.uk
IPAddress serverMM(69,89,31,106);
char serverName[] = "www.google.co.uk";  // google URL

// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;

void setup() {
 // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
  
  // start the Ethernet connection:
  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    // no point in carrying on, so do nothing forevermore:
    for(;;)
      ;
  }
  // give the Ethernet shield a second to initialize:
  delay(1000);
  Serial.println("connecting...");
 
  // if you get a connection, report back via serial:
  if (client.connect(serverName, 80)) {
    Serial.println("connected");
    // Make a HTTP request:
     client.println("GET /search?q=arduino HTTP/1.1");
  
    //client.println("GET /search?q=arduino HTTP/1.1");
    client.println("Host: www.google.com");
    //client.println("Connection: close");
    client.println();
  }
  else {
    // kf you didn't get a connection to the server:
    Serial.println("connection failed");
  }
}

void loop()
{
    
  // if there are incoming bytes available
  // from the server, read them and print them:
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
  }

  // if the server's disconnected, stop the client:
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();

    // do nothing forevermore:
    for(;;)
      ;
  }

  
}

When using a URL instead of an IP, the program just hang a the client.connect().

I've tried so many combination, even thought that maybe the example was missing libraries to enable URLs. If any one the answer that would be great, otherwise could that will be a bug I will report.

Cheers!
13  Forum 2005-2010 (read only) / Troubleshooting / Re: Download code from a Arduino Board to Arduino Soft on: October 19, 2008, 12:38:36 pm
Great!, I've got Ubuntu 8.4 installed so that you should pretty straight forward then.
14  Forum 2005-2010 (read only) / Troubleshooting / Re: Download code from a Arduino Board to Arduino Soft on: October 19, 2008, 12:22:32 pm
I looked for a "how to install avrdude" on mac and that looks complicate. I've put the avrDude folder in my home directory and tried your command line but that didn't work. I added sudo but it gave me a warning, so I am not really sure if I should do this.

I am going to try it on linux tomorrow as it might be simpler and I don't mind messing around the linux computer as I have nothing on it.

Thank you for helping me.
15  Forum 2005-2010 (read only) / Troubleshooting / Download code from a Arduino Board to Arduino Soft on: October 16, 2008, 01:26:18 pm
Hi every one.
It might be a stupid quetsion but you know what people say. There is no stupid questions.

Anyway I can't remember which of my boards have which code on it.
I don't want to look at all my programs and guess which one is the right one and then overwrite the precious code on the board.
So is it possible to download ( decompile? ) the code from the board to the arduino software. Maybe there is a anti-Arduino that transform machine code to Human code.

Thanksssssssssssssssssssssssssssssssss smiley
Pages: [1] 2 3