- Netduino Forums
- → pascal06's Content
pascal06's Content
There have been 95 items by pascal06 (Search limited from 24-May 23)
#3902 Netbios
Posted by pascal06 on 14 October 2010 - 07:09 PM in Netduino Plus 2 (and Netduino Plus 1)
#3904 Netbios
Posted by pascal06 on 14 October 2010 - 07:51 PM in Netduino Plus 2 (and Netduino Plus 1)
Great find, Pascal. Very interesting.
You're using the ENC28J60 on the Tahoe II board--right? I wonder if it's a difference between the lwIP drivers for the integrated AT91 EMAC and the lwIP drivers for the ENC28J60. Based on historical .NET MF use, the ENC28J60 drivers are probably well tested.
Chris
Yes I use ENC28J60 on Tahoe II board. I will search about differences ...
Pascal
#3906 Netbios
Posted by pascal06 on 14 October 2010 - 07:53 PM in Netduino Plus 2 (and Netduino Plus 1)
Yes I use ENC28J60 on Tahoe II board. I will search about differences ...
Pascal
But, if you are able to use a JTAG to debug, may you make a little test, just to ensure that all timer works ?
In tcpip.c, arp_timer() should be fire every 5 seconds ...
Pascal
#4072 Netduino hosted web server over WiFi
Posted by pascal06 on 21 October 2010 - 09:02 PM in Netduino 2 (and Netduino 1)
I'm trying to cobble together the parts & code needed to have the netduino act as a web server over WiFi. My end goal is to allow my robot to be controlled / receive commands from Windows Phone 7 device (which can only make http requests; no sockets here). Just as a note I have the original netduino, not the plus model. I was planning to use an XBee shield for WiFi as it appears to have been used successfully by others in this forum. The final missing piece of the puzzle will be to have the netduino listen for http requests and produce some kind of output (and, optionally, return some response data to the device making the requests). I found some code to host a web server from a previous post here http://forums.netdui...ch__1#entry3685 :
WebServer webServer = new WebServer(); while (true) { int requestLength = webServer.WaitForRequest(new RequestReceivedDelegate(RequestReceived)); if (requestLength > 0) { //-- Build response -- responseStr = "HTTP/1.1 200 OK\nContent-Type: text/html\n\n"; responseStr += ProcessRequest(receivedStr); // IMPORTANT: SendResponse() sends response AND closes the connection, please call only once per request. webServer.SendResponse(responseStr); receivedStr = ""; } Thread.Sleep(100); }}
Here I'm assuming / hoping the WebServer class is either part of the .NET Micro Framework or part of the example code from the previous post (I guess I should read that code . My question is would this work on the original netduino or do I need to upgrade to the plus - and does the overall solution for communicating wirelessly with WP7 sound like the right direction to go? Thanks!!
Hello James,
To use a netduino with wireless, you don't need the plus version. But you need a wireless shield. Xbee module doesn't use the same wireless techonlogies than your PC or Mobile. PC and Mobile use a wireless named Wi-Fi, which use 802.11() wireless technology. With this technology, it's possible to use a IPv4 stack over it, and use HTTP protocol. XBee modules use a different wireless technology, 802.15.4. This technology is perfect is case of low power needs. But, the frame size is 128 bytes only, so it's impossible to use IPv4 over it. Some IPv6 stack exists using 6lowPAN.
In conclusion :
- Use XBee on Netduino and another XBee on your PC. And forget Mobile use. This is a point to point communication. Like serial over the air.
- Or use a true Wi-Fi 802.11 shield, but you probably need to write a driver for it
Pascal
#4073 Camera Shutter Release Timer
Posted by pascal06 on 21 October 2010 - 09:20 PM in Project Showcase
#4097 What is the Netduino Mini?
Posted by pascal06 on 22 October 2010 - 09:32 AM in Netduino Mini
#4103 Netbios
Posted by pascal06 on 22 October 2010 - 03:20 PM in Netduino Plus 2 (and Netduino Plus 1)
#4122 Netbios
Posted by pascal06 on 22 October 2010 - 09:30 PM in Netduino Plus 2 (and Netduino Plus 1)
[Raises hand. Waves hand. Waves hand again.]
Thanks Chris,
My first proof of concept seems to be near now,
But the name is hardcoded, not a good idea, especialy for the majority of members who have multiple NetduinoPlus (or Netduino + Shield ) on the same network
I need to provide a way to specify the name of your device. What about this :
NetworkInterface[] networkInterfaces = NetworkInterface.GetAllNetworkInterfaces(); networkInterfaces[0].EnableNetBios("NETDUINO");
By this way, you can enable Netbios (disable by default) and you can specify a name.
Comments are welcome,
Pascal
#4142 Serious problem on my Netduino board
Posted by pascal06 on 23 October 2010 - 01:51 PM in General Discussion
I had a problem with start debugging in Visual Studio 2010....Vs didn't connect to the board.
I have tried to upgrade firmware on Netduino but the MFDeploy blocking on "Connecting to TinyCLR...".
So I have disconnected my Netduino board....
Now when I insert Netduino in USB port I get the following message on my status bar :
USB device not recognized
I have uninstalled and installed the Netduino SDk but it doesn' work !
I can't connected to the board with MFDeploy !
Help !!!
Paolo.
Don't worry
You probably need to reflash the firmware. Here the step-by-Step procedure to do it http://forums.netdui...e-does-not-fix/
Pascal
#4256 Netbios
Posted by pascal06 on 26 October 2010 - 08:21 PM in Netduino Plus 2 (and Netduino Plus 1)
#4261 What is the Netduino Mini?
Posted by pascal06 on 26 October 2010 - 09:52 PM in Netduino Mini
#4265 What is the Netduino Mini?
Posted by pascal06 on 26 October 2010 - 10:11 PM in Netduino Mini
What about a mesh of Netduino Mini paired with Atmel ATMEGA128RFA1s? And maybe 6lopan?
Chris
I see a lot of discussion arround IOT about one MCU versus two MCU on a single node. Like Ethernet Shield, we can use one MCU as the main brain, and the other for networking communication.
On a wireless node, we are very concern by the low power consumption. And some people can be say, why use a ARM MCU in this case and don't use the AVR for sensor communication also (probably enough in most of case) ? By using two MCU, you need to update two firmwares also.
But it can be a easier first step
Though ?
Pascal
#4394 Netbios
Posted by pascal06 on 31 October 2010 - 12:11 PM in Netduino Plus 2 (and Netduino Plus 1)
#4395 Netbios
Posted by pascal06 on 31 October 2010 - 12:13 PM in Netduino Plus 2 (and Netduino Plus 1)
Attached Files
- NetbiosBeta.zip 26.98KB 49 downloads
#4577 DHCP - getting different IP address each time I restart
Posted by pascal06 on 07 November 2010 - 11:08 AM in Netduino Plus 2 (and Netduino Plus 1)
Seems that the clientID = 1 is missing in the REQUEST (step 3). I have monitored other DHCP requests and all are sending clientID = 1 which means that the DHCP server should take care of the MAC address (as far as I understand the DHCP protocol).
Michael
Hi Michael,
You probably right concerning clientID, but it works fine with my Windows Server 2008 R2 DHCP server. And I use a reservation to fix my NetduinoPlus address.
Another strange behavior is that DHCP request take the configured static IP address to forge the IP packet. In case of this ip address use another subnet, it could be a issue. So, I have define 0.0.0.0 for static IP, subnet and gw.
If we definitly conclude that ClientID must be set, it probably not a big deal to fix it.
Pascal
#4615 DHCP - getting different IP address each time I restart
Posted by pascal06 on 07 November 2010 - 11:00 PM in Netduino Plus 2 (and Netduino Plus 1)
Hi Pascal,
yepp, seems that it is working with Microsoft DHCP server. I tried it with the AVM box as well as another Linux box and had no luck. Not sure who could give a try to add this option, should not be a big deal.
Can you do another test? What if you try to renew the lease in your application? Think of a module that you will plug to different networks while it is running. Is this working? I have configured the IP to 0.0.0.0, then I get an IP address from my DHCP... then I disconnect from network... connect again and renew the lease and get 0.0.0.0. :-(
Michael
Hi Micheal,
Unfortunatly, I'm traveling this week. Without possibility to test. I will try next week-end if anybody have done it before.
Pascal
#4902 DHCP - getting different IP address each time I restart
Posted by pascal06 on 14 November 2010 - 12:51 PM in Netduino Plus 2 (and Netduino Plus 1)
I have tested the last version with this code :
NetworkInterface[] networkInterfaces = NetworkInterface.GetAllNetworkInterfaces(); networkInterfaces[0].EnableDhcp(); networkInterfaces[0].RenewDhcpLease();
Netduino is already configured to use DHCP, the first request works fine. But, the renew doesn't works.
I'll wait for debugging capability to do more testing,
Also, I made some tests to evaluate the posibility to implement a little TCP/IP stack completly in managed code. It would be a good way to learn more by a easier way. The only bad effect would be the performance. Regarding FLASH/RAM use, it probably near the native code size. First implementation will be for the enc28j60 chip.
I'll let you know about it ...
Pascal
#4956 DHCP - getting different IP address each time I restart
Posted by pascal06 on 15 November 2010 - 07:22 PM in Netduino Plus 2 (and Netduino Plus 1)
#13061 RVDS Online Compiler
Posted by pascal06 on 10 May 2011 - 11:14 AM in General Discussion
I discover that mbed provide a online compiler compliant to RVDS 4.1 for users:
http://mbed.org/handbook/mbed-Compiler
What about this facility for Netduino users who wants to compile NETMF kit ?
rgds,
#13090 RVDS Online Compiler
Posted by pascal06 on 10 May 2011 - 02:29 PM in General Discussion
Hello Gary,I looked at the mbed before I chose the Netduino, but why would you want to program online when you can download visual studio express for free?
While I can see the benefit for mac users (I'm one), losing the ease and ability of visual studio, especially the debugging to use an online tool would defeat the purpose of programming for the Netduino. I use parallels and win7 under OSX, works great (though I'd love the netduino to talk to processing running on OSX of course )
Gary
I don't speak about managed code (C#, VS is perfect), but for native code ( C ),
For native code you have choice between GNU, RVDS, or others expensive compiler,
This is to rebuild NETMF firmware,
GNU produced firmware is to big to fit flash memory, especialy for Netduino Plus,
And RVDS cost multiple thousands of dollars !!!
So, a online compiler like mbed could be a great alternative for netduino user,
Pascal
- Netduino Forums
- → pascal06's Content
- Privacy Policy