Forum >Wifi shield v2.1
Wifi shield v2.1

Hello
I have one of the above shields and it is all working fine -- I can connect to pachube via a terminal (putty) but am unable to have it connect through a andruino sketch would someone be able to post a sample sketc that can upload data to pachube.
Have tried the ethernet libary - no go... tried serialsoft libary using rx/tx on pins 1&2 see some action but no connect
Thanks for any assistance
I have one of the above shields and it is all working fine -- I can connect to pachube via a terminal (putty) but am unable to have it connect through a andruino sketch would someone be able to post a sample sketc that can upload data to pachube.
Have tried the ethernet libary - no go... tried serialsoft libary using rx/tx on pins 1&2 see some action but no connect
Thanks for any assistance
2012-07-09 23:07:04 no have the sheild working fully and switiching modes but have a problem with formating the sketch to upload to pachube - works fine in a terminal program but not in a sketch
y2kgrays

2012-07-09 23:07:04 no have the sheild working fully and switiching modes but have a problem with formating the sketch to upload to pachube - works fine in a terminal program but not in a sketch
y2kgrays

2012-07-09 18:36:16 Hey Y2K,
have you been able to get your project working?
If you got it working, would you mind sharing the code with us? We will make a wiki article for it, and probably a blog post. Or if you like, register in the community and you can write your own tutorial for others
Let me know if you are interested.
Hector
have you been able to get your project working?
If you got it working, would you mind sharing the code with us? We will make a wiki article for it, and probably a blog post. Or if you like, register in the community and you can write your own tutorial for others

Let me know if you are interested.

2012-07-09 18:36:16 Hey Y2K,
have you been able to get your project working?
If you got it working, would you mind sharing the code with us? We will make a wiki article for it, and probably a blog post. Or if you like, register in the community and you can write your own tutorial for others
Let me know if you are interested.
Hector
have you been able to get your project working?
If you got it working, would you mind sharing the code with us? We will make a wiki article for it, and probably a blog post. Or if you like, register in the community and you can write your own tutorial for others

Let me know if you are interested.

2012-07-09 13:31:14 got it sorted as below
Serial.print("+"); //put in command mode
delay(300);
Serial.print("+");
delay(300);
Serial.print("+");
delay( 5000 ); //hang round on command mode for a bit - no reason
Serial.println("ATO"); // send a command to ensure back in data mode
Serial.flush();
y2kgrays
Serial.print("+"); //put in command mode
delay(300);
Serial.print("+");
delay(300);
Serial.print("+");
delay( 5000 ); //hang round on command mode for a bit - no reason
Serial.println("ATO"); // send a command to ensure back in data mode
Serial.flush();

2012-07-09 13:31:14 got it sorted as below
Serial.print("+"); //put in command mode
delay(300);
Serial.print("+");
delay(300);
Serial.print("+");
delay( 5000 ); //hang round on command mode for a bit - no reason
Serial.println("ATO"); // send a command to ensure back in data mode
Serial.flush();
y2kgrays
Serial.print("+"); //put in command mode
delay(300);
Serial.print("+");
delay(300);
Serial.print("+");
delay( 5000 ); //hang round on command mode for a bit - no reason
Serial.println("ATO"); // send a command to ensure back in data mode
Serial.flush();

2012-06-30 19:13:13 thanks hector
what i did find is this but how would this get transfered over to an Aduino Sketch?
the fist section up to #9 works fine from the terminal window but don't know how to get unit to accept the <esc> command etc
geoff
4.1 Example: Posting to Pachube.com
1. Associate with AP
AT+NDHCP=1
AT+WWPA=password
AT+WA=DexterIndustries,,01
2. Start TCP Client to Pachube’s IP and port 80
AT+NCTCP=173.203.98.29,80
3. Send data to remote server by using the <ESC>S sequence and the CID number:
Enter the [ESC] key
Enter the [S] key
Enter the [CID number from step 3]
4. Copy the highlighted text, and paste it on Tera Term (via the "Edit" menu, choose "Paste" Option)
PUT /v2/feeds/11366.csv HTTP/1.1
User-Agent: curl/7.19.5 (i486-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3
libidn/1.15
Host: api.pachube.com
Accept: */*
X-PachubeApiKey:
103338a658c84debc9d4d0609362056882b6ccaa312d3de7fbde57e592630007
Content-Length: 4
Content-Type: application/x-www-form-urlencoded
1,44
5. Indicate end of transmission by using the <ESC>E sequence:
Enter the [ESC] key
Enter the [E] key
y2kgrays
what i did find is this but how would this get transfered over to an Aduino Sketch?
the fist section up to #9 works fine from the terminal window but don't know how to get unit to accept the <esc> command etc
geoff
4.1 Example: Posting to Pachube.com
1. Associate with AP
AT+NDHCP=1
AT+WWPA=password
AT+WA=DexterIndustries,,01
2. Start TCP Client to Pachube’s IP and port 80
AT+NCTCP=173.203.98.29,80
3. Send data to remote server by using the <ESC>S sequence and the CID number:
Enter the [ESC] key
Enter the [S] key
Enter the [CID number from step 3]
4. Copy the highlighted text, and paste it on Tera Term (via the "Edit" menu, choose "Paste" Option)
PUT /v2/feeds/11366.csv HTTP/1.1
User-Agent: curl/7.19.5 (i486-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3
libidn/1.15
Host: api.pachube.com
Accept: */*
X-PachubeApiKey:
103338a658c84debc9d4d0609362056882b6ccaa312d3de7fbde57e592630007
Content-Length: 4
Content-Type: application/x-www-form-urlencoded
1,44
5. Indicate end of transmission by using the <ESC>E sequence:
Enter the [ESC] key
Enter the [E] key

2012-06-30 19:13:13 thanks hector
what i did find is this but how would this get transfered over to an Aduino Sketch?
the fist section up to #9 works fine from the terminal window but don't know how to get unit to accept the <esc> command etc
geoff
4.1 Example: Posting to Pachube.com
1. Associate with AP
AT+NDHCP=1
AT+WWPA=password
AT+WA=DexterIndustries,,01
2. Start TCP Client to Pachube’s IP and port 80
AT+NCTCP=173.203.98.29,80
3. Send data to remote server by using the <ESC>S sequence and the CID number:
Enter the [ESC] key
Enter the [S] key
Enter the [CID number from step 3]
4. Copy the highlighted text, and paste it on Tera Term (via the "Edit" menu, choose "Paste" Option)
PUT /v2/feeds/11366.csv HTTP/1.1
User-Agent: curl/7.19.5 (i486-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3
libidn/1.15
Host: api.pachube.com
Accept: */*
X-PachubeApiKey:
103338a658c84debc9d4d0609362056882b6ccaa312d3de7fbde57e592630007
Content-Length: 4
Content-Type: application/x-www-form-urlencoded
1,44
5. Indicate end of transmission by using the <ESC>E sequence:
Enter the [ESC] key
Enter the [E] key
y2kgrays
what i did find is this but how would this get transfered over to an Aduino Sketch?
the fist section up to #9 works fine from the terminal window but don't know how to get unit to accept the <esc> command etc
geoff
4.1 Example: Posting to Pachube.com
1. Associate with AP
AT+NDHCP=1
AT+WWPA=password
AT+WA=DexterIndustries,,01
2. Start TCP Client to Pachube’s IP and port 80
AT+NCTCP=173.203.98.29,80
3. Send data to remote server by using the <ESC>S sequence and the CID number:
Enter the [ESC] key
Enter the [S] key
Enter the [CID number from step 3]
4. Copy the highlighted text, and paste it on Tera Term (via the "Edit" menu, choose "Paste" Option)
PUT /v2/feeds/11366.csv HTTP/1.1
User-Agent: curl/7.19.5 (i486-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3
libidn/1.15
Host: api.pachube.com
Accept: */*
X-PachubeApiKey:
103338a658c84debc9d4d0609362056882b6ccaa312d3de7fbde57e592630007
Content-Length: 4
Content-Type: application/x-www-form-urlencoded
1,44
5. Indicate end of transmission by using the <ESC>E sequence:
Enter the [ESC] key
Enter the [E] key

2012-06-29 19:06:38 Hi Geof,
I am not very familiar with Pachube. I would suggest you setup a sample code in the wifi shield and connect your PC to the wifi shield Wirelessly so you can see what the wifi shield is sending, then modify it. Once you "see" that the wifi shield is sending the correct information then you can try connecting it to pachube.
I will try to test it myself as well. I would also like to setup a pachube feed for our office. But it will take me some time.
Hector
I am not very familiar with Pachube. I would suggest you setup a sample code in the wifi shield and connect your PC to the wifi shield Wirelessly so you can see what the wifi shield is sending, then modify it. Once you "see" that the wifi shield is sending the correct information then you can try connecting it to pachube.
I will try to test it myself as well. I would also like to setup a pachube feed for our office. But it will take me some time.

2012-06-29 19:06:38 Hi Geof,
I am not very familiar with Pachube. I would suggest you setup a sample code in the wifi shield and connect your PC to the wifi shield Wirelessly so you can see what the wifi shield is sending, then modify it. Once you "see" that the wifi shield is sending the correct information then you can try connecting it to pachube.
I will try to test it myself as well. I would also like to setup a pachube feed for our office. But it will take me some time.
Hector
I am not very familiar with Pachube. I would suggest you setup a sample code in the wifi shield and connect your PC to the wifi shield Wirelessly so you can see what the wifi shield is sending, then modify it. Once you "see" that the wifi shield is sending the correct information then you can try connecting it to pachube.
I will try to test it myself as well. I would also like to setup a pachube feed for our office. But it will take me some time.

2012-06-29 13:50:14 yes have proven all working fine and can even connect to pachube via terminal using "AT" commands -- then change jumpers to wifi -
but how do i send via an arduino sketch - the unit takes the "at" commands fine but when arriving at <esc> codes the unit appears to error, how are the +++ are passed to get in to a command mode to push the data?
thanks
Geof
y2kgrays
but how do i send via an arduino sketch - the unit takes the "at" commands fine but when arriving at <esc> codes the unit appears to error, how are the +++ are passed to get in to a command mode to push the data?
thanks
Geof

2012-06-29 13:50:14 yes have proven all working fine and can even connect to pachube via terminal using "AT" commands -- then change jumpers to wifi -
but how do i send via an arduino sketch - the unit takes the "at" commands fine but when arriving at <esc> codes the unit appears to error, how are the +++ are passed to get in to a command mode to push the data?
thanks
Geof
y2kgrays
but how do i send via an arduino sketch - the unit takes the "at" commands fine but when arriving at <esc> codes the unit appears to error, how are the +++ are passed to get in to a command mode to push the data?
thanks
Geof

2012-06-29 00:08:40 Hi Geoff,
The Wifi Shield is using the Arduino's Tx/Rx pins (D1,D0) to communicate with the Arduino. That is why you need to change the jumpers when you program the arduino, and when you setup the shield. Once the shield is setup and the Arduino programmed, you should set the jumpers back to wifi mode.
That means once you have setup your Wifi shield to connect to your router, AND you have setup the Arduino to spit out some code over "Serial" something like "Hello world" you should be able to use something like Windows Xp's "Hyperterminal" to connect to the Wifi shield's IP address, and see this message. Then you know you have a connection.
I think you should verfy this is working properly first. Then you can try to communicate with PACHUBE later.
Hector
The Wifi Shield is using the Arduino's Tx/Rx pins (D1,D0) to communicate with the Arduino. That is why you need to change the jumpers when you program the arduino, and when you setup the shield. Once the shield is setup and the Arduino programmed, you should set the jumpers back to wifi mode.
That means once you have setup your Wifi shield to connect to your router, AND you have setup the Arduino to spit out some code over "Serial" something like "Hello world" you should be able to use something like Windows Xp's "Hyperterminal" to connect to the Wifi shield's IP address, and see this message. Then you know you have a connection.
I think you should verfy this is working properly first. Then you can try to communicate with PACHUBE later.

2012-06-29 00:08:40 Hi Geoff,
The Wifi Shield is using the Arduino's Tx/Rx pins (D1,D0) to communicate with the Arduino. That is why you need to change the jumpers when you program the arduino, and when you setup the shield. Once the shield is setup and the Arduino programmed, you should set the jumpers back to wifi mode.
That means once you have setup your Wifi shield to connect to your router, AND you have setup the Arduino to spit out some code over "Serial" something like "Hello world" you should be able to use something like Windows Xp's "Hyperterminal" to connect to the Wifi shield's IP address, and see this message. Then you know you have a connection.
I think you should verfy this is working properly first. Then you can try to communicate with PACHUBE later.
Hector
The Wifi Shield is using the Arduino's Tx/Rx pins (D1,D0) to communicate with the Arduino. That is why you need to change the jumpers when you program the arduino, and when you setup the shield. Once the shield is setup and the Arduino programmed, you should set the jumpers back to wifi mode.
That means once you have setup your Wifi shield to connect to your router, AND you have setup the Arduino to spit out some code over "Serial" something like "Hello world" you should be able to use something like Windows Xp's "Hyperterminal" to connect to the Wifi shield's IP address, and see this message. Then you know you have a connection.
I think you should verfy this is working properly first. Then you can try to communicate with PACHUBE later.

2012-06-28 18:26:17 thank
What I need to know is how to communicte the arduino data to the wifi shield - there does not appear to be a libary for the sheild and i am unsure what pins the shield uses to communicate with the arduino board
eg does it use SPI using Arduino digital pins 10-13 (CS, MOSI, MISO, SCLK respectively)?
and do i use the ethernet libary --
do i leave in usb pin mode or wifi pin mode (jumpers)
So i want to leave out the pc bit and let the wifi shield replace the ethernet sheild to send to pachube via the network
Geoff
y2kgrays
What I need to know is how to communicte the arduino data to the wifi shield - there does not appear to be a libary for the sheild and i am unsure what pins the shield uses to communicate with the arduino board
eg does it use SPI using Arduino digital pins 10-13 (CS, MOSI, MISO, SCLK respectively)?
and do i use the ethernet libary --
do i leave in usb pin mode or wifi pin mode (jumpers)
So i want to leave out the pc bit and let the wifi shield replace the ethernet sheild to send to pachube via the network
Geoff

2012-06-28 18:26:17 thank
What I need to know is how to communicte the arduino data to the wifi shield - there does not appear to be a libary for the sheild and i am unsure what pins the shield uses to communicate with the arduino board
eg does it use SPI using Arduino digital pins 10-13 (CS, MOSI, MISO, SCLK respectively)?
and do i use the ethernet libary --
do i leave in usb pin mode or wifi pin mode (jumpers)
So i want to leave out the pc bit and let the wifi shield replace the ethernet sheild to send to pachube via the network
Geoff
y2kgrays
What I need to know is how to communicte the arduino data to the wifi shield - there does not appear to be a libary for the sheild and i am unsure what pins the shield uses to communicate with the arduino board
eg does it use SPI using Arduino digital pins 10-13 (CS, MOSI, MISO, SCLK respectively)?
and do i use the ethernet libary --
do i leave in usb pin mode or wifi pin mode (jumpers)
So i want to leave out the pc bit and let the wifi shield replace the ethernet sheild to send to pachube via the network
Geoff

2012-06-28 18:21:43 Hello
I have one of the above shields and it is all working fine -- I can connect to pachube via a terminal (putty) but am unable to have it connect through a andruino sketch would someone be able to post a sample sketc that can upload data to pachube.
Have tried the ethernet libary - no go... tried serialsoft libary using rx/tx on pins 1&2 see some action but no connect
Thanks for any assistance
y2kgrays
I have one of the above shields and it is all working fine -- I can connect to pachube via a terminal (putty) but am unable to have it connect through a andruino sketch would someone be able to post a sample sketc that can upload data to pachube.
Have tried the ethernet libary - no go... tried serialsoft libary using rx/tx on pins 1&2 see some action but no connect
Thanks for any assistance
