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.

mcianc

Member Since 15 May 2011
Offline Last Active Jul 14 2011 04:30 PM
-----

Posts I've Made

In Topic: OneWire ALPHA

31 May 2011 - 08:38 AM

Unfortunately, it is not possible to move OneWire.cs to another project, because there is 'native driver' (the actual implementation of 1-Wire methods decorated with MethodImpl(MethodImplOptions.InternalCall) attribute) in the firmware and it must match the dll name and checksum, otherwise the exception is thrown; and this happens in runtime.

Could you please provide more details on why you need MyNamespace.OneWire? It is planned to include OneWire class in the official firmware (and get the rid of CW.NETMF). Also, you can derive your own OneWire class in MyNamespace:

namespace MyNamespace
{
  public class OneWire : CW.NETMF.Hardware.OneWire
  {
    //...
  }
}


Hi CW2

thanks for your replay, I was trieing to migrate your class to my Class Library only to better have all that I need in a whole project and have less namespace to import, and the final and better reason is to grove my knologe to be albe to create by myself a low level language implementation in Netduino. Like yuo can see in this other my post i'm becoming mad with a wind sensor and I need to decide if comunicate with it trought C# or C++ low level language, but for this I need to learn how do it, and your project seem perfect to learn.

For OneWire implementation i can wait the official firmware, but for wind sensor I need do by myself, no one seem have exprerencie with netduino. :(

In Topic: OneWire ALPHA

28 May 2011 - 06:55 PM

Thanks, work perfectly.

But i have an issue, i have my Class Library, where live other my classes without problem, but if i copy the file OneWire.cs inside CW.NETMF.OneWire into my Class Library and so I have MyNamespace.OneWire the compilation finish without problem, I upload when whole solution to NetDuino but when the constructor is invoked and exception is generated..

To let work my project I need use the CW.NETMF.OneWire Class Library.
Someone have idea? I have checked every params of project, but I have not able to solve it.


Updated
... my be I understood, the problem is
.NET Micro Framework Porting Kit
http://blogs.msdn.co...ework-v3-0.aspx

In Topic: OneWire ALPHA

15 May 2011 - 04:20 PM

Hi to all I'm new too of NetDuino word and i'm tring to use OneWire protocol with NetDuino Plus, I'm excited to see this implemeentation become reality. I tested with DS18B20 and also for me work perfectlly, I just waiting the full integration into official firmware. Thanks so much

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.