.net-micro-framework

Parsing an RFC822-Datetime in .NETMF 4.0

半世苍凉 提交于 2019-12-05 16:40:05
I have an application written in .NETMF that requires that I be able to parse an RFC822-Datetime. Normally, this would be easy, but NETMF does not have a DateTime.parse() method, nor does it have some sort of a pattern matching implementation, so I'm pretty much stuck. Any ideas? EDIT: "Intelligent" solutions are probably needed. Part of the reason this is difficult is that the datetime in question has a tendency to have extra spaces in it (but only sometimes). A simple substring solution might work one day, but fail the next when the datetime has an extra space somewhere between the parts. I

Is there a compiler switch to turn off support for Generics in C#?

佐手、 提交于 2019-12-05 15:57:44
I am working with a partner where we are trying to move a complex driver from the .NET platform to the .NET MicroFramework. The problem is that the .NET MF doesnt support Generics and when we try to build the application the last "link" operation exits with the error code "CLR_E_PARSER_UNSUPPORTED_GENERICS". There is however no information on WHERE (module, code-line). As far as we know nobody has intentionally inserted Generics and they have been really looking over the code to identify what the problem is with no luck. So my question is: Is there some way to turn off support for Generics in

Connect to SQL Server from Microcontroller (Arduino or Fez with .Net Micro Framework)

旧时模样 提交于 2019-12-05 08:55:30
I'm looking for examples, tutorials, or just "this+this+this should work" for reading from and writing to a SQL server (2008) from a microcontroller such as the Arduino board. I've also looked at (and will probably go with) devices with the .Net Micro Framework such as the Fez Cobra . The Micro Framework does not include ADO. I'm sure this is going to involve some XML, but I can't figure out which technology to further investigate. I do not want to have an PC application to serve as a go-between. Thanks! Honestly, I would make a thin service that would sit in-front of your database and use

Netduino no “Console.WriteLine”, Console does not exist in current context

雨燕双飞 提交于 2019-12-05 01:17:27
I cannot seem to get my very simple netduino program to write to the debug console; VS throws an error The name 'Console' does not exist in the current context Any ideas what might cause it to not exist? using System; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.NetduinoPlus; namespace LumenReader { public class Program { public static void Main() { AnalogInput photoResistor = new AnalogInput(Pins.GPIO_PIN_A0); int photoVolt; while

Cannot implicity convert type 'int' to 'ushort' : already explicity cast

馋奶兔 提交于 2019-12-04 07:35:11
I am trying to explicity cast an int into a ushort but am getting the Cannot implicity convert type 'int' to 'ushort' ushort quotient = ((12 * (ushort)(channel)) / 16); I am using .Net Micro framework so BitConverter is unavailable. Why I am using ushort in the first place has to do with how my data is being sent over SPI. I can understand this particular error has been brought up before on this site but I cannot see why when I am explicity declaring that I dont care if any data goes missing, just chop the 32 bit into a 16 bit and I will be happy. public void SetGreyscale(int channel, int

Json Library for .Net Microframework

拟墨画扇 提交于 2019-12-04 05:07:14
I'm running a light webserver using .Net Microframework and I was wondering what libraries would work well for for mainly JSON serialization, but possibly deserialization as well. Problem I've found with a lot of JSON libraries is they use fancy .Net features not available in MF, and are more complicated then what I need. I could easily write a simple library to accomplish my tasks but I was wondering if anything else was available. Thanks There is a lightweight JSON parser in the NetduinoHelpers library that is specifically built to minimize footprint: http://netduinohelpers.codeplex.com/

CRC32 implementation on .NET Micro

和自甴很熟 提交于 2019-12-02 20:06:26
问题 I was looking for a CRC32 implementation I could use on the .Net Micro framework. I found this implementation, but the micro framework has not yet implemented the HashAlgorithm. What would be the best way to get this working ? 回答1: .net microframework has Utility.ComputeCRC method albeit I am not sure about what algorithm actually uses. It certainly doesn't use one from OP. Utility.ComputeCRC 回答2: Try the CRC implementation from http://vbcity.com/cfs-file.ashx/__key/CommunityServer.Components

CRC32 implementation on .NET Micro

﹥>﹥吖頭↗ 提交于 2019-12-02 10:35:20
I was looking for a CRC32 implementation I could use on the .Net Micro framework. I found this implementation , but the micro framework has not yet implemented the HashAlgorithm. What would be the best way to get this working ? .net microframework has Utility.ComputeCRC method albeit I am not sure about what algorithm actually uses. It certainly doesn't use one from OP. Utility.ComputeCRC Try the CRC implementation from http://vbcity.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.47.04.55/CRC_5F00_Lib.zip . This is an implementation discussed at http://vbcity.com

Atan2 in C# (or similar lanaguge)

ぃ、小莉子 提交于 2019-12-02 06:22:01
问题 Can anyone point me to a good example of Atan2 defined in C# (or something vaguely close to C#) that doesn't use any internal math methods? This is on .NET Microframework, so there is no such thing as an internal math library. I have already defined Sin()/Cos(), but I am having a lot of trouble with Atain2. There are a few scatter shot math libraries in NETMF, but I have found them all to be flawed or broken. One of the major ones didn't even define PI correctly! 回答1: An implementation should

Atan2 in C# (or similar lanaguge)

不羁岁月 提交于 2019-12-02 01:24:46
Can anyone point me to a good example of Atan2 defined in C# (or something vaguely close to C#) that doesn't use any internal math methods? This is on .NET Microframework, so there is no such thing as an internal math library. I have already defined Sin()/Cos(), but I am having a lot of trouble with Atain2. There are a few scatter shot math libraries in NETMF, but I have found them all to be flawed or broken. One of the major ones didn't even define PI correctly! An implementation should be quite straight forward starting with the definition on Wikipedia/atan2 and then using the infinite