View Full Version : Can BS2 ping IP address

Gwyan Rhabyt
04-25-2006, 04:29 AM
I want to build a simple device that will keep my network connection up by using a BS2 to ping an external IP address (like -- which is google) every ten seconds and if it fails for 5 tries in a row, then turning off a relay (to power cycle my dsl modem), waiting five seconds, and then turning the relay on again.
Would this require a PINK module? Or can a BS2 do it by itself? I could write the code and build it if it were serial info rather than a ping command. Would it be easier to just connect the stamp to a serial/ethernet interface like a picotux (www.picotux.com)?



04-25-2006, 06:28 AM
I think if you wanted to do that it would take a lot of memory and algorithems. not only do you need it to use the ICMP Protocol for pinging, it would also have to be able to compile an internet frame consisting of the 7 layers of the OSI (open system interconection) model:

Application data
Presintation data
Session data
Transport data
Network data
Datalink data
Physical media

good luck though and let us know if you where secessful

Post Edited (Grant_O) : 4/24/2006 11:41:44 PM GMT

Tom Walker
04-25-2006, 08:15 PM
Just in the interest of accuracy, I believe that the Presentation layer sat on top of the Application layer. Of course, it's been so long since I learned that stuff that I could just be mis-remembering... :^)

Truly Understand the Fundamentals and the Path will be so much easier...