Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

David Karlas

Member Since 04 Oct 2013
Offline Last Active Sep 05 2015 01:51 PM
-----

#55267 javascript / node.js on NETMF

Posted by David Karlas on 09 January 2014 - 06:11 PM

rht while looking around forums I ran into this post:

http://forums.netdui...nd-sample-apps/

If you download MonoNetduinoBootloader_NetduinoPlus.zip and open Program.cs you can see a way to load DLL at runtime and run it. In that sample its loaded from SD card but it should not be a problem for you to download from website via Socket...

Since .Net Microframework is basiclly interpreter for IL code(which is compiled from C#). IMO performance should be same as C# compiled source code deployed via VisualStudio...

 

You should be able to create very nice and robust Bootloader in C# deployed via VisualStudio only fist time. And this Bootloader would at boot check for update on website at boot and load from website plus you could cache DLLs on SD card(lower boot time, lower network usage , backup in case of no internet connection...)

 

I think this is very nice solution for your problem... ;)


  • rht likes this


#55255 Sending data from netduino+ethernet/wifi shield to a sql server (MS) on the web

Posted by David Karlas on 08 January 2014 - 06:07 PM

Because SQL database TCP protocol is very complex compering to HTTP requests. You should not connect directilly to database but instead to your web service which should run inside same application as your website.
 
I suggest you to create restful web service where you will call something like this http://youraddress-a...livingroom/23.4.
 
Since your data is so simple you don't even have to bother with JSON or XML...(see last link for more details)

 

Here is guide about creating WebServices with ASP.NET on msdn: http://msdn.microsof...(v=vs.108).aspx
Also nice explination about RestFul on CodeProject: http://www.codeproje...ASP-NET-Web-API

Google and Youtube can be alot of help aswel.

 

What you have to do on NetDuino side is something like this:

Quick sample: http://stackoverflow...etrequeststream

Nice blog post(focus on function [color=rgb(0,0,0);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:12px;]SendPulseOximeterData)[/color]: http://mikedodaro.ne...st-web-service/




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.