Show Posts
Pages: 1 [2] 3 4 ... 16
16  Using Arduino / Networking, Protocols, and Devices / Re: WIFI Shield firmware update 1.0.5 attempt on: June 08, 2014, 07:35:23 am
I put the two files in a temp directory, they upload ok, I get the blue light on constantly, and "Wifi Shield Not found" ...
17  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wifi Shield Port Issue on: June 08, 2014, 06:53:15 am
It was 1.0.0

I upgraded, and now Get wifi shield not found. Grrrrr.

See http://forum.arduino.cc/index.php?topic=244934.0

I apologize for having two threads, but wasn't sure if it was a programming issue or a networking issue.

Should we take all the disussion over to the other thread, or point that discussion here?
18  Using Arduino / Programming Questions / Re: WiFiClient port numbers? on: June 08, 2014, 06:49:04 am
I reran to sketch to check firmware version, and now get "Wifi shield not present"
19  Using Arduino / Programming Questions / Re: WiFiClient port numbers? on: June 08, 2014, 06:46:39 am
I went into Computer Management, right clicked on the Atlem device with the yellow exclamation, said "update driver" and pointed it to the Atmel directory. Told it to search subdirectories. This time it found and installed!

Now when I run the command prompt

 batchisp.exe -device AT32UC3A1256 -hardware usb -operation erase f memory flash blankcheck loadbuffer /Arduino/hardware/arduino/firmware/wifishield/binary/wifi_dnld.elf program verify start reset 0

It continues much further, until I get:


Device selection....................... PASS
Hardware selection..................... PASS
Opening port........................... PASS
Reading Bootloader version............. PASS    1.0.2
Erasing................................ PASS
Selecting FLASH........................ PASS
Blank checking......................... PASS    0x00000 0x3ffff
Parsing ELF file....................... Can't open input file "/Arduino/hardware
/arduino/firmware/wifishield/binary/wifi_dnld.elf"
FAIL    Reading error.
(A)bort, (R)etry, (I)gnore ? r
PASS    /Arduino/hardware/arduino/firmware/wifishield/binary/wifi_dnld.elf
Parsing ELF file....................... Can't open input file "/Arduino/hardware
/arduino/firmware/wifishield/binary/wifi_dnld.elf"
FAIL    Reading error.
(A)bort, (R)etry, (I)gnore ? r
PASS    /Arduino/hardware/arduino/firmware/wifishield/binary/wifi_dnld.elf
WARNING: The user program and the bootloader overlap!
Programming memory..................... PASS    0x00000 0x00000
Verifying memory....................... PASS    0x00000 0x00000
Starting Application................... PASS    RESET   0

Summary:  Total 14   Passed 12   Failed 2

C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>
20  Using Arduino / Programming Questions / Re: WiFiClient port numbers? on: June 08, 2014, 06:38:05 am
I downloaded the elf file from

https://github.com/arduino/Arduino/tree/master/hardware/arduino/firmwares/wifishield/wifi_dnld/Release

I separated the wifi shield from my uno, downloaded Flip, and I set the jumper on the wifi shield. Plugged in a mini-usb cable, and got an error that AT32UC3A could not be installed.

That would explain why

batchisp.exe -device AT32UC3A1256 -hardware usb -operation erase f memory flash blankcheck loadbuffer /Arduino/hardware/arduino/firmware/wifishield/binary/wifi_dnld.elf program verify start reset 0

did not work either. Says AtLibUsbDfu.dll is missing.
21  Using Arduino / Programming Questions / Re: WiFiClient port numbers? on: June 08, 2014, 06:13:41 am
Sure enough, it was 1.0.0

Upgrading per http://arduino.cc/en/Hacking/WiFiShieldFirmwareUpgrading
22  Using Arduino / Programming Questions / Re: WiFiClient port numbers? on: June 05, 2014, 09:46:34 am
I will check the version number when I get home tonight. If it's out of date, I'll will update and retry. As to PeterH, Yes, I did try port 26 in the sketch and got a Connection Failed message in the serial monitor, but no problem using telnet. Used the same strings from the sketch in telnet, and received the test message.
23  Using Arduino / Programming Questions / Re: WiFiClient port numbers? on: June 05, 2014, 09:38:31 am
Yes, of course, But given that I have several ports that my server can respond to (587, 2525, and others) that are not blocked, how can I tell the client to use one of those other ports. I have verified, for instance, I can send email using telnet on port 26.
24  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wifi Shield Port Issue on: June 04, 2014, 01:52:34 pm
Have not upgraded firmware (brand new wifi card - rev3).  I've tried SMTP2GO and Hostgator. Both are accessible by way of telnet (SMTP2GO didn't actually deliver the email, Hostgator did) on ports other than 25. ports other than 25 do not seem to work in the arduino sketch.
25  Using Arduino / Networking, Protocols, and Devices / Arduino Wifi Shield Port Issue on: June 04, 2014, 01:06:51 pm
I posted this in programming, but that was probably the wrong location. The long and short of it is ISP's are commonly blocking port 25, so I need to use port 26 (or other more common smtp ports). I've verified port 26 responds (and sends an email) using telnet, but calling port 26 says no connection.

if(client.connect(server,26)) {

Sketch:

Code:
//    Email client sketch for IDE v1.0.3 and Ethernet Shield
//    Posted December 2012 by SurferTim
//    Modified 17 March 2013 for WiFi Shield by
//    MisterResistor and SurferTim


/*  THIS ONE WORKS!  Output below is from Serial Monitor
    Ready. Press 'e' to send.
connected
220 mail.yourmailserver.com ESMTP Sendmail 8.13.6/8.13.1; Sun, 17 Mar 2013 12:59:58 +0000
Sending helo
250 mail.yourmailserver.com Hello [38.123.84.242], pleased to meet you
Sending From
250 2.1.0 <me@mine.com>... Sender ok
Sending To
250 2.1.5 <you@mine.com>... Recipient ok
Sending DATA
354 Enter mail, end with "." on a line by itself
Sending email
250 2.0.0 r2HCxwgc027560 Message accepted for delivery
Sending QUIT
221 2.0.0 mail.yourmailserver.com closing connection
disconnected
Email sent


*/
/******************************************************/

//#include <SPI.h>
#include <WiFi.h>

// Setup on a 128 bit WEP network, change to suit for WPA

char ssid[] = "insert ssid";      //  your network SSID (name)
char pass[] = "insert password";   // your network password


char server[] = "insert mail server name";  // smtp mail server  (mine.com)

int status = WL_IDLE_STATUS;

WiFiClient client;

void setup()
 {
 Serial.begin(9600);
 pinMode(9,OUTPUT);          // changed to use onboard LED
 digitalWrite(9,HIGH);
 WiFi.begin(ssid, keyIndex, pass);

 }

void loop()
 {
   byte inChar;
   inChar = Serial.read();

  if(inChar == 'e')
   {
       if(sendEmail()) Serial.println("Email sent");     
       else Serial.println("Email failed");
   }       
 }

byte sendEmail()
 {
   byte thisByte = 0;
   byte respCode;

  if(client.connect(server,25)) {
     Serial.println("connected");
   } else {
     Serial.println("connection failed");
     return 0;
   }

  if(!eRcv()) return 0;
   Serial.println("Sending helo");

// change to your public ip
   client.write("helo 1.2.3.4\r\n");

  if(!eRcv()) return 0;
   Serial.println("Sending From");

// change to your email address (sender)
   client.write("MAIL From: <insert email address>\r\n");

  if(!eRcv()) return 0;

// change to recipient address
   Serial.println("Sending To");
   client.write("RCPT To: <insert email address>\r\n");

  if(!eRcv()) return 0;

  Serial.println("Sending DATA");
   client.write("DATA\r\n");

  if(!eRcv()) return 0;

  Serial.println("Sending email");

// change to recipient address
   client.write("To: Name <insert email address>\r\n");

// change to your address
   client.write("From: Arduino <insert email address>\r\n");

  client.write("Subject: Arduino email test\r\n");
  client.write("This is from my Arduino WiFi shield!\r\n");
  client.write(".\r\n");

  if(!eRcv()) return 0;

  Serial.println("Sending QUIT");
  client.write("QUIT\r\n");

  if(!eRcv()) return 0;

  client.stop();

  Serial.println("disconnected");

  return 1;
 }

byte eRcv()
{
  byte respCode;
  byte thisByte;
  int loopCount = 0;

  while(!client.available()) {
    delay(1);
    loopCount++;

    // if nothing received for 10 seconds, timeout
    if(loopCount > 10000) {
      client.stop();
      Serial.println("\r\nTimeout");
      return 0;
    }
  }

  respCode = client.peek();

  while(client.available())
   { 
     thisByte = client.read();   
     Serial.write(thisByte);
   }

  if(respCode >= '4')
   {
     efail();
     return 0; 
   }

  return 1;
 }

void efail()
{
  byte thisByte = 0;
  int loopCount = 0;

  client.write("QUIT\r\n");

  while(!client.available()) {
    delay(1);
    loopCount++;

    // if nothing received for 10 seconds, timeout
    if(loopCount > 10000) {
      client.stop();
      Serial.println("\r\nTimeout");
      return;
    }
  }

  while(client.available())
  { 
    thisByte = client.read();   
    Serial.write(thisByte);
  }

  client.stop();

  Serial.println("disconnected");
}
26  Using Arduino / Programming Questions / WiFiClient port numbers? on: June 04, 2014, 11:24:15 am
Reposted in "Networking" as it seems a more appropriate location for this question.

Setting up my UNO to send emails. The example code expects the smtp server to be on port 25:

if(client.connect(server,25)) {

but my isp blocks port 25. specifying a port I can actually telnet into and send an email manually (using telnet) does not seem to work. For instance

if(client.connect(server,26)) {

What port numbers are legit, or how can I modify the library to accept a more common port.
27  Using Arduino / Programming Questions / sprintf format specifiers on: April 19, 2014, 10:30:26 am
C++ sprintf supports a %f (decimal floating point), but Charles Bell in his book on Sensor Networks says the Arduino version of sprintf does not. Where can one find what format specifiers are useable on the Arduino?
28  Using Arduino / Programming Questions / Re: Can Arduino Playground code for an Arduino Uno be used for SainSmart Uno on: April 16, 2014, 08:57:36 am
There are no operational differences between a SainSmart Uno and a Arduino branded UNO.  Any 328 based Arduino clone will work the same. And Paul, this forum isn't just for Arduino Hardware, it's for Arduino software issues as well, so stop being a bigot :-)
29  Using Arduino / Programming Questions / Re: GPS Module Output Error on: February 23, 2014, 04:10:14 pm
here is a working example
stuffing gps data into variables - http://arduinotronics.blogspot.com/2014/02/arduino-ublox-neo-6m-gps.html
30  Using Arduino / Sensors / Re: Arduino UNO GPS Serial Troubles on: February 23, 2014, 04:04:09 pm
Here is another example of viewing NEMA data in the serial monitor. LCD display is coming soon.

stuffing gps data into variables - http://arduinotronics.blogspot.com/2014/02/arduino-ublox-neo-6m-gps.html
Pages: 1 [2] 3 4 ... 16