View Full Version : BS2 to Internet question for "experts"

04-11-2007, 11:25 PM
I hope one of the "experts" here can help.·

I want to connect my BS2p to Internet in the easiest manner possible (and I suppose this means using PINK).

This is the set up I want to have working:

I have a high speed internet connection at home with a wireless router.· The wireless router has some ports to which I can connect· ethernet cable.

Say that my BS2 is connected to PINK.· And PINK is connected to the internet via one of ports of wireless router.

I want to be able to to communicate to BS2p via internet from a remote site (say another building).

For example, I want the BS2p to collect data during day and dump it to a website when commanded to do so by user (me).·

1.· Can someone please tell me if my set up is adequate?· i.e. 1 PINK and connection to back of wireless router is sufficient for communication over internet?
2.· Assuming YES to above question, can BS2p receive command from internet and then dump its data when directed to do so?
3.· Are there any examples (such as Nuts & Volts article) that shows how to do something similar?



Mike Green
04-11-2007, 11:35 PM
1) Yes. All you need is a PINK and a wired internet connection

2) Sort of. The PINK operates autonomously. It can receive commands from the internet by serving up a webpage with fields on it that the user can enter data into. It makes the contents of those fields available to the BS2p in an easy to use fashion. The BS2p program can "read" the values in those fields or "write" to other variables and the written values are available when the webpage is refreshed. It's up to you to provide the program on the BS2p to read and write to the PINK and to provide the HTML for the webpage.

3) The PINK documentation shows how to do this and includes some examples.

04-12-2007, 01:24 AM
Mike, I've read the PINK documentation but did not find it as thorough as other Parallax documents typically are.
I wonder if Parallax has plans for a N&V article on PINK coming up soon?
Perhaps Jon Williams or Parallax rep. can chime in pleeeeease?

Chris Savage
04-12-2007, 02:04 AM

The PINK documentation is currently being updated. You should see a new version by the end of next week. There are some things waiting for possible inclusion. Take care.

Chris Savage
Parallax Tech Support

Tracy Allen
04-12-2007, 11:12 AM
Could you clarify what you mean by, "dump it to a website when commanded"? Do you mean the web site served out by the PINK, or some other web site?. The web site hosted by the PINK will reside at the IP address of your router. Provided you have set up the router to expose the PINK, anyone who knows that IP address can see the web page and the data your Stamp puts on it at any time, and an external command entered in a form from outside can be picked up by the Stamp and cause it to change fields on the web page. If you have dynamic IP, the address will change from time to time. Some routers have the capability to link your dynamic IP address to a service that will provide a consistent address for your PINK page, even with dynamic IP.

Tracy Allen
www.emesystems.com (http://www.emesystems.com)