Per Malmberg
Everything is possible, including the impossible. It just takes a little longer…
Everything is possible, including the impossible. It just takes a little longer…
Here’s another post in english, to please the larger audience.
As the title suggests, I’m busying myself with 1-Wire mixed with C# again. I’m not sure if all this is good or bad idea, but it is fun, and that’s enough to keep me going
So, what’s this all about then? Well, almost a year ago – to the day actually – I expressed my disappointment in that Maxim/Dallas still hadn’t released their Pure C# 1-Wire library. They still haven’t, and they’re not giving any indication on when they will provide a finished library. The last time they said anything about this was on Nov 29th, 2007:
Brian Hindman:
Hi. We hope to come out with a OneWireLinkLayer dll compiled for .NET 2.0. The plan is to include it in the next revision of the 1-Wire SDK for Windows. Look for it at the end of the year. I’m afraid it won’t have any advanced features than what is available now. We have not ported over any 1-Wire Containers or MemoryBanks yet, as we have been short-staffed for quite some time. We hope to remedy this and get back on track soon.
In the latest release (currently 4.01) of their TMEX drivers they included a OneWireAPI.NET.dll, but it is Java-based, and as such it requires you to install the J# redistributable on all computes where you want to run the application in which you use the dll, and it also requires you to mix Java with C# in your application. Not a solution I’m very fond of.
What can be done about this? Well, you could wait for them to release their Pure C# 1-Wire libary, or you can do like me: write your own implementation in C#! Yes, you read that right – I am writing my own 1-Wire library, in C#. Below are some details (subject to change) about the library:
Back to coding!
Comments are closed.
2008/04/03 - 13:46
Good work, i´ll be waiting for your post telling us, that you alredy finish your work.
2008/04/03 - 13:56
Thanks,
Actually, I’ve put this project on ice and are working on another 1-Wire library with another developer. See for yourself:
https://sourceforge.net/projects/owdotnet
2008/05/01 - 16:18
HI,
I am writring application to support DS9097E and collect data from ds1820. Unfortunatelly I am new to 1-wire technology, and I prefer to use Visual Studio c# to develop this. I found your project which is grate. I am very keen to use it but I don’t know how. Can you send me few lines of code just to help me start coding.
Regards
Vivi
2008/05/01 - 19:31
Hello Vivi,
Start by examining the AccessProvider class and read the source comments, it is all rather self-explanatory.
// Per
2008/05/26 - 12:34
Hi Per,
Thank you for your help. I still have some problems attaching DS1820 thermometer to my ds9097E (serial port). I believe I am doing something wrong and I didn’t have much time to play with it. I am sure the hardware is OK ( tested with c++ old code). Can you please just describe the sequence of the tasks in order to connect to the detector using OWdotNET.dll or paste some code which I can use as reference.
It would be also beneficial also for people not very experienced in OW technology like me.
Thanks Vivi
2008/05/27 - 18:46
Hello Vivi,
Is the adapter you’re using a homebuilt version? If so, check out the HomebrewSerialAdapter, located in the CustomAdapter folder.
2008/05/28 - 17:03
Hi Per,
It is homebuild taken from here: http://www.elektroniikka.org/thermometer/?page=adapter
Where is CustomAdpater folder located ?
Vivi
2008/05/28 - 17:49
Hello,
Ok, if you are using that adapter you’ll need to use the HomebrewSerialAdapter. The folder is located directly under the trunk or tag, depending on which version of the source you are using.
http://owdotnet.svn.sourceforge.net/viewvc/owdotnet/Source/Classes/OWdotNET/trunk/CustomAdapter/