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.
Photo

onewire library


  • Please log in to reply
12 replies to this topic

#1 mutsop

mutsop

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts

Posted 21 January 2012 - 11:42 AM

Hi, I've seen several post about the DS18B20 and the need to use a onewire library. The only thing I seem to find are codes without linking or attaching the library. So my question to you, where do I find this dll? :) or maybe source. I tried checking the maxim website as I do remember my work using it for their rfid Ibutton readers. But nowhere do i find a library. Regards

#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 21 January 2012 - 01:04 PM

Hi :)
It's not just a library but a custom built firmware, available here.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 mutsop

mutsop

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts

Posted 21 January 2012 - 01:51 PM

Aha... well I already found the firmware but I read several articles talking about a library. So I thought it was just a dll file I should have been looking for. But I'm not sure about flashing the firmware. Wouldn't it be better to just upgrade to 4.2? Btw when is the full release of 4.2? not the RC3, but the final one?

#4 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 21 January 2012 - 02:11 PM

Aha... well I already found the firmware but I read several articles talking about a library. So I thought it was just a dll file I should have been looking for.

The library and firmware are combined I think. Best to ask in that other thread though.

But I'm not sure about flashing the firmware. Wouldn't it be better to just upgrade to 4.2?

4.2 is also in beta, just like the onewire. It depends on your needs I suppose.

Btw when is the full release of 4.2? not the RC3, but the final one?

I honestly have no idea. I know people are working on it, but there are some issues that needs to be solved first.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#5 Valkyrie-MT

Valkyrie-MT

    Advanced Member

  • Members
  • PipPipPip
  • 315 posts
  • LocationIndiana, USA

Posted 21 January 2012 - 10:37 PM

Aha... well I already found the firmware but I read several articles talking about a library. So I thought it was just a dll file I should have been looking for.


First off, if you want to work with 1-Wire, you will have to flash your firmware to a build that supports it, there is no way around it. The ONLY one available right now is the one Stefan linked to.

If you have a Netduino, the library and the firmware are both in the file named:

Netduino_v4.1.1_beta1_CW.NETMF.OneWire-1.0.5.0.zip

If you have a Netduino Plus, then use the library from the above mentioned zip (in the folder Solutions/Netduino/Interop/CW_NETMF_OneWire/ManagedCode/bin/Release/le) and the firmware from this zip:

NetduinoPlus_v4.1.1_beta1_CW.NETMF.OneWire-1.0.5.0.zip

-Valkyrie-MT

P.S. don't be afraid to flash this version. It is one of the most extensively tested versions and was quite solid for a v4.1 build. There are also additional classes that others have written to wrap the API and simplify the One-Wire interactions.

#6 rnagel

rnagel

    New Member

  • Members
  • Pip
  • 3 posts

Posted 23 January 2012 - 04:37 AM

I am having trouble with VS 2010 Express opening csproj for the CW.NETMF.Onewire

#7 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 23 January 2012 - 09:46 AM

I am having trouble with VS 2010 Express opening csproj for the CW.NETMF.Onewire

What kind of trouble do you have? Are you using Visual C# 2010 Express (and not C++) ?

#8 rnagel

rnagel

    New Member

  • Members
  • Pip
  • 3 posts

Posted 23 January 2012 - 09:07 PM

What kind of trouble do you have? Are you using Visual C# 2010 Express (and not C++) ?

I try to open the CW.NETMF.onewire csproj file with C# 2010 Express. I get an error that project file is unsupported.

Attached Files



#9 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 23 January 2012 - 09:50 PM

I try to open the CW.NETMF.onewire csproj file with C# 2010 Express. I get an error that project file is unsupported.

Are you opening .sln or .csproj file? You've mentioned csproj above, but the error indicates solution file - if the IDE automatically picks .sln during opening .csproj, you can either delete (or rename) .sln as it is not really needed, or open it in a favorite text editor and delete lines between Project ... = "CW.NETMF.OneWire_DeviceCode" and EndProject (inclusive). Alternatively, add .csproj to your existing solution.

#10 rnagel

rnagel

    New Member

  • Members
  • Pip
  • 3 posts

Posted 24 January 2012 - 03:09 AM

After looking closer it was a .sln file from the download Netduino_v4.1.1_beta1_CW.NETMF.OneWire-1.0.5.0.zip

#11 nd_user

nd_user

    New Member

  • Members
  • Pip
  • 1 posts

Posted 11 May 2012 - 04:11 PM

Hello, I am newbee in Netduino, not in electronics. First I erase my Netduino and reloaded the last firmware with SAM-BA. ..etc...with MFDeploy.exe... I installed version 4.2 RTM QFE1 in May 10, 2012. I made the blue led to blink...it runs OK. Then I made a VB program to interact with a DS1820 component using OneWire protocol. The program has "stoped" at the first statement OneWire. I tried to use for example what is shown here: "http://forums.netdui...newire-alpha/". Unfortunately, the OneWire instructions are not the same except for the reading and writing. My questions: Where to find the OneWire reference ? Where to find samples in VB and/or C # for version 4.2 RTM QFE1 ?

#12 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 11 May 2012 - 04:26 PM

Hi and welcome to the forums! Onewire isn't supported by 4.2 yet, just in a 4.1 beta firmware. So regretfully no VB Samples either, since VB is supported since 4.2 :(
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#13 waynemcl

waynemcl

    New Member

  • Members
  • Pip
  • 3 posts

Posted 30 August 2012 - 09:25 AM

Having discovered this, I'm jumping over to a tmp102 i2c sensor to get my measurement done: https://www.sparkfun.com/products/9418 HTH, W




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.