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.

Jeff LaFay

Member Since 07 Dec 2010
Offline Last Active Dec 30 2010 03:08 PM
-----

Posts I've Made

In Topic: Program Storage and Execution

30 December 2010 - 03:08 PM

Just closing the loop: I figured out how to load assemblies dynamically and wrote post about it on my blog: http://fabienroyer.w...ith-a-netduino/


Thanks so much!

In Topic: Netduino + SQL client (maybe System.Data.SqlClient)??

07 December 2010 - 09:27 PM

I was wondering if anyone has had success with the Netduino plus and connecting to a SQL server for the purposes of logging data to a server. Normally, I would use the System.Data.SqlClient namespace to do this in a .Net application, but it doesnt look like those classes are available on the Netduino Plus.

Is there any way others have found to directly (or indirectly) communicate with a remote SQL server?

Also as a site note, what would be involved with adding some .net classes to be usable by the Netduino? Is this something that would need to be done by Secret Labs (ie in the Firmware), or could i do something in VS to compile them and load them on the device? I know I might be sounding dumb, but I am not familiar with how all the low level stuff works...


I know your question is SQL server specific but would a SQLite configuration suit your purpose better? I'm not even sure if there's a direct solution for a Netduino/SQLite. It could be favorable because it's SQL without the server, in other words, nice and compact.

In Topic: Program Storage and Execution

07 December 2010 - 04:11 PM

I'm pretty certain you can't run multiple executables on the .NET Micro Framework at the same time. I could be wrong and maybe someone else knows otherwise.

Aside from that, if you want to have a different set of code run while your main code runs you should look into System.Threading. For example, you could have your main code running and then at some point you can have some other code to execute on a different thread while the main code runs its own thread.

Again, you should probably look to StackOverflow for solutions or read the MSDN documentation. If you are completely new to the .NET framework in general, you should probably pick up in introductory book first.


I'll check out StackOverflow and see what's going on for Netduino questions there. I'm new to Netduino development as a hobbyist and .Net software engineer by day. That's why I chose the platform for microcontroller development. Thanks for the info needed to whet my appetite and getting me in the right direction.

In Topic: Program Storage and Execution

07 December 2010 - 04:08 PM

Yes, it is possible to load assemblies (e.g. dll's) from external storage at runtime. You should probably search StackOverflow for solutions to make this work. The way to do this is probably the same for both the .NET Micro Framework and the full .NET Framework.

StackOverflow search results for loading assemblies at runtime in .NET


I think it could be beneficial to have a program running in memory that could read a manifest on SD storage that contained metadata on executables on SD. The thing is, could those executables execute from the external storage or would they need to be copied into memory?

Maybe threading could work but it would be nice to have the controller software handle process management for me when I don't have to.

In Topic: Program Storage and Execution

07 December 2010 - 04:03 PM

Please note that you should be referencing documentation on the .NET Micro Framework API and not the .NET Compact Framework API as they are two different things.


My mistake, thanks for pointing that out.

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.