Main Site Documentation

Raptor, WIFIRS21, .Net 4.3 - Simple Ping


#1

Hello,
I am trying to figure out a simple “ping” call for wifi functionality, similar to opening the command prompt and typing “ping www.google.com”. I will have it debug.print the results. I have tried all sorts of code, httprequest, send request, basically everything I could find on the internet, most of which appears to apply to 4.2 and earlier and I can not get anything to work.
I am connected to my home network and I am assigned an IP, gateway and subnet.

Is there any documentation that explains the .netmf 4.3 wifi/network functions, i.e. webserver, client, helper, request, response, etc? I have tried to look through the object browser and have been surfing for quite a few hours, it just seems like most of the documentation is for 4.2 and earlier.

Really what I am after is being able to update my system clock from an internet server. There are some examples on the web, but again the code is not quite transferring over. So i figure a simple ping routine should be useful for checking connectivity to the web.

Thank you for any help and sorry for the long winded question,
Jordan


#2

@ L1256937 - the following output


The thread '<No Name>' (0x2) has exited with code 0 (0x0).
06/01/2011 00:28:23 System : Copyright (C) GHI Electronics, LLC
06/01/2011 00:28:23 Version: 4.3.5.0

06/01/2011 00:28:23 Preparing the network...
06/01/2011 00:28:25 Joining ... AK16
06/01/2011 00:28:32 Network joined.

06/01/2011 00:28:32 Waiting for network address ...
06/01/2011 00:28:32 Waiting for network address ...
06/01/2011 00:28:33 Waiting for network address ...
06/01/2011 00:28:33 Waiting for network address ...
06/01/2011 00:28:33 Network availability = True
06/01/2011 00:28:33 Waiting for network address ...
06/01/2011 00:28:33 Waiting for network address ...
06/01/2011 00:28:34 Waiting for network address ...
06/01/2011 00:28:34 Waiting for network address ...
06/01/2011 00:28:34 Network address change 
06/01/2011 00:28:34 New address for the Network Interface 
06/01/2011 00:28:34  Is DHCP enabled: True
06/01/2011 00:28:34  Is DynamicDnsEnabled enabled: True
06/01/2011 00:28:34  NetworkInterfaceType 71
06/01/2011 00:28:34  Network settings:
06/01/2011 00:28:34   IP Address: 192.168.39.12
06/01/2011 00:28:34   Subnet Mask: 255.255.255.0
06/01/2011 00:28:34   Default Gateway: 192.168.39.123
06/01/2011 00:28:34   MAC Address: 00-23-A7-23-8E-AE
06/01/2011 00:28:34   Number of DNS servers: 1
06/01/2011 00:28:34     DNS Server 0:192.168.39.123
06/01/2011 00:28:34 ------------------------------------------------------

06/01/2011 00:28:34 Grabbing the time from ... de.pool.ntp.org

12/03/2014 20:52:54 Date and time updated thru NTP

12/03/2014 20:52:54... the blue LED should be blinking now ...

is coming from this codeshare https://www.ghielectronics.com/community/codeshare/entry/962 hope it helps.

With getting the time from the internet you are pretty sure the connection is present …


#3

Hi guys,
thanks for the replies. It looks like I am getting to be where I need to be. I now have my system able to update the clock via user input if there is not a network connected or if the internet is available it will go online and update the system clock. This is important because I need a current clock to update my data logging to an SD card.
I will post my entire program later on tonight. Thanks for the help.

V/R,
Jordan


#4

@ L1256937 - What kind of ping times do you have when pinging the RS21 ?