Network Question
#1
Posted 13 December 2012 - 02:54 AM
#2
Posted 13 December 2012 - 07:39 AM
ntools
TCP Listener (Beta) · FTP Server (Alpha)
Netduino Plus Go Module · Xml Parser
http://ntools.codeplex.com/
#3
Posted 13 December 2012 - 08:32 AM
Mav29x,Hey Everyone,
I'm new to the microcontroller world and just got my Netduino Plus 2 today. Is there any way to set a hostname for the board so that I can still connect to it over the network without specifically knowing its IP address?
Second newbie question - If I want to use a WiFi shield like the WiFly, I understand it needs the WiFly class libraries/drivers (not sure what the official term is) in order for it to work. Where do I get them?
Thanks.
Welcome to the forum.
I think what you are asking in question 1 is how do you connect to the Netduino Plus 2 from the internet. To do this (without having a static IP address) you will need a Dynamic Naming Service (DNS). There are some that are free and some that charge. A free one is No-IP.org, a pay one that I use is DYNDNS.
The DNS has the Host Name that you pick, then either the router or the computer runs an update routine that looks for an out of date IP, if it finds the IP is no longer good it contacts the DNS and gets a new one. The DNS keeps track of this. If someone goes to log into your host name it routes it to the new IP address, then your router send it to the Netduino, normally using port forwarding.
So to connect to the Netduino you enter something like "YourHostName.com:1035"
The second question, one of the forum members, Stefan has written a lot of good code called NET Micro Framework Toolbox (the link is in Nicky's post), he has the code in both Visual Basic and C# along with samples to show how it works.
Also you search the forum for WiFly and find information on using it.
Chuck
#4
Posted 13 December 2012 - 11:34 AM
After your network settings are setup its as simple as this: (just remember Netbios names are limited to 16 characters. First 15 are the name, last is the type).
NameService nameService = new NameService(); nameService.AddName("NETDUINOPLUS", NameService.NameType.Unique, NameService.MsSuffix.Default);
#5
Posted 13 December 2012 - 01:31 PM
#6
Posted 02 May 2013 - 08:31 PM
I tried the Pascal06 code for name registration (modified to run in a thread) and it works just fine with Netduino Plus 2 (v4.2.2.1),
http://forums.netdui...ic/473-netbios/
C:UsersbebDesktop>ping plus_2Pinging plus_2 [192.168.0.50] with 32 bytes of data:Reply from 192.168.0.50: bytes=32 time=18ms TTL=255Reply from 192.168.0.50: bytes=32 time=2ms TTL=255Reply from 192.168.0.50: bytes=32 time=2ms TTL=255Reply from 192.168.0.50: bytes=32 time=7ms TTL=255C:UsersbebDesktop> nbtstat -cLocal Area Connection:Node IpAddress: [192.168.0.106] Scope Id: [] NetBIOS Remote Cache Name Table Name Type Host Address Life [sec] ------------------------------------------------------------ PLUS_2 <00> UNIQUE 192.168.0.50 482
It is a bit more lightweight than the Huysentruit Wouter code and the code by Nicolas3 is even more compact,
http://www.ghielectr...share/entry/245
#7
Posted 20 September 2013 - 06:34 PM
hi!!!!
if i justo want to change the name of the netduino on the router, what can I do???
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users