Power

Discussion about the upcoming YellowJacket (WiFi+Arduino mini).

Re: Power

Postby John_Ryan » Fri May 28, 2010 9:15 pm

GregEigsti wrote:Nice stuff! Can you explain what the IP address parameter to "CONNECT:" should point to? I pointed it at an intarweb site and it downloaded the site data (e.g. curl like) but my subsequent LED1 ON / LED1 OFF / KILL commands yielded "Invalid IP address." So I am guessing that my incorrect use of the IP address param to CONNECT is to blame?

Thanks for sharing!
Greg


Umm, the IP address you entered is the IP address for "EatLiver.com" - so you need to use your own IP address, the IP address which points to your controller.
John_Ryan
 
Posts: 155
Joined: Thu Jun 04, 2009 11:24 pm

Re: Power

Postby John_Ryan » Fri May 28, 2010 9:18 pm

I've reset your macro so the home page of EatLiver.com isn't in the response section.

To determine what your IP address is, assuming it's the same LAN as your computer, you can get your IP address here:-

www.whatsmyip.org
John_Ryan
 
Posts: 155
Joined: Thu Jun 04, 2009 11:24 pm

Re: Power

Postby GregEigsti » Fri May 28, 2010 10:25 pm

Clear as mud ;) Been averaging about 4 hours of sleep a night this week and I'm starting to feel it :shock:
I see you have posted a couple times since I hit reply and your posts do clear things up a bit.
  • My computer is behind a NAT router; so should the IP be my external IP or my LAN IP?
  • Does the computer at the provided IP need to be running a webserver, etc.?
  • I am forwarding incoming HTTP requests to a different computer which hosts multiple domains - is this going to get in the way?
  • Does your code correctly handle an IP like 1.1.1.1 or does it need to be 001.001.001.001?

With some hand holding and intensive therapy I am sure that I'll get it :lol:

Thanks!
Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: Power

Postby John_Ryan » Fri May 28, 2010 11:56 pm

GregEigsti wrote:Clear as mud ;) Been averaging about 4 hours of sleep a night this week and I'm starting to feel it :shock:


No worries, I'm suffering from a late night out last night on French Red and no amount of sleep is fixing the hangover, so I hope what I've posted makes sense = )

GregEigsti wrote:I see you have posted a couple times since I hit reply and your posts do clear things up a bit.


After my first post I decided to check your macro. Luckily you saved the session and I could see immediately that the IP address belonged to someone's dot com.

GregEigsti wrote:[*]My computer is behind a NAT router; so should the IP be my external IP or my LAN IP?


Your external IP.

GregEigsti wrote:[*]Does the computer at the provided IP need to be running a webserver, etc.?


Nope. Just edit copy paste the sketch I posted on the other page - its for WiServer mode so you should be able to enter your IP address in your browsers URL bar and the controller should respond with "Ready >".

GregEigsti wrote:
[*]I am forwarding incoming HTTP requests to a different computer which hosts multiple domains - is this going to get in the way?


Yip, that's an unusual set up but I've also just noticed that all the aps you posted on the previous page are pachube feeds or websites, you don't appear to actually have your controller set up as a server that can be accessed from a web browser like I do with mine which you can access at this address:-

http://125.236.233.39/

GregEigsti wrote:
[*]Does your code correctly handle an IP like 1.1.1.1 or does it need to be 001.001.001.001?[/list]


The IP address can be entered as is, no special formatting is required. I've only used 000.000.000.000 as an example so take no notice of it = ) The connect string for my IP address shown about, would be entered as:-

Connect: 125.236.233.39

GregEigsti wrote:
With some hand holding and intensive therapy I am sure that I'll get it :lol:

Thanks!
Greg


No rush, my controller is sitting around doing nothing and has it's own static IP address, internet connection and router, so feel free to use my connect string to get the feel for the application if you like.

..

WiCLi LOGIN AT http://www.cssgurus.com/pm/
John_Ryan
 
Posts: 155
Joined: Thu Jun 04, 2009 11:24 pm

Re: Power

Postby John_Ryan » Sat May 29, 2010 1:26 pm

I discovered some WiShield weirdness happening to FREE and USED immediately after an ELAPSED was called, so I've changed the command ELAPSED to display minutes instead of milliseconds.

ELAPSED was returning a simple WiServer.print(millis()); but in that format USED would drop to 1, and FREE would increase to 2047??? So millis() appeared to be doing something strange to malloc or free, but changing the output to WiServer.print(millis()/1000/60) "appears" to have fixed it.
John_Ryan
 
Posts: 155
Joined: Thu Jun 04, 2009 11:24 pm

Re: Power

Postby John_Ryan » Sat May 29, 2010 9:29 pm

Two minor changes to the sketch have been submitted, here:

http://www.asynclabs.com/forums/viewtopic.php?p=2320#p2320

It's now better, stronger, faster and smaller!
John_Ryan
 
Posts: 155
Joined: Thu Jun 04, 2009 11:24 pm

Re: Power

Postby GregEigsti » Sat May 29, 2010 9:43 pm

Its the Six Million Dollar Script? :lol: Whatever happened to that show???

Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: Power

Postby John_Ryan » Sat May 29, 2010 10:44 pm

GregEigsti wrote:Its the Six Million Dollar Script? :lol: Whatever happened to that show???

Greg


The 70's ended and his flairs went horribly out of fashion?

ewww, has ghastly flash-back of 70's chicks with frizzy mops of hair all over.
John_Ryan
 
Posts: 155
Joined: Thu Jun 04, 2009 11:24 pm

Previous

Return to YellowJacket

Who is online

Users browsing this forum: No registered users and 1 guest