Is there any working and complete .NET 1-Wire library?

I have a 1-wire USB adapter (this one is bluish) and wanted to use it from a small Linux box to monitor the temperature. The Linux box is currently out of order, so I wanted to use my .NET-based monitoring software on my Windows desktop to record temperatures. But there seems to be no single .NET library for .NET. The one that comes with the Maxim SDK requires J #, which I don't have and you want to use. I'm not even sure if I can use it in my .NET 4.0 based application since J # is terminated by AFAIK. Another "open source" sourceforge (owdotnet) dates back to 2008 and looks pretty dead. There is not even any information page. The Maxim SDK also comes with a version of "Compact.NET" that, at least, can find the device connected to the adapter, but I will need to implement the entire 1-Wire protocol myself, it seems (sending raw bytes, short waiting, and the like ) So now it does not help. Google did not find anything. You?

I got the impression that the whole 1-Wire thing is pretty dead. It can only be used on Linux systems (with owfs, which is huge for compilation), and the whole ecosystem of products is not quite active. What other solutions exist for measuring temperature, environmental parameters (humidity, water, pressure, etc.) And conditions (for example, open doors) and, perhaps, even switch things (turn on and turn off the light) that are not worth a fortune (as with "home automation")? And preferably also available from .NET code?

+4
source share
4 answers

Well, for the sake of answering the questions, this question has been here for a long time.

I came to the conclusion that there is no such library .

Just add your answer, if you find something, please so that I can update things here.

0
source

You do not need OWFS, although I can understand why this will make life easier. I tried this in the past, but he did not do what I wanted, as I had some devices that were unsupported.

I am currently using OWW , which I am running on Raspberry Pi at the moment, and it works very well. However, it is based only on Linux.

Sorry, but I can not help with your .net request since I never used it. It seems that there is nothing else .net based on what I can find separately from Maxim.

0
source

I'm not sure I know enough of your problem to give you the right answer (but this is the beginning, and perhaps we can improve it together.)

I understand that you have something in J # that does the job.

The J # application compiles into a regular .NET assembly. You have J # code (in this case you can compile it into a library using the old J # compiler and then reference this library in your .NET application to use it in any .NET language) or you already have assembler assembly in this case feel free to use it in any language.

Otherwise, you can find your own library and then create a .NET wrapper around it using C ++ / CLI . This option works fine from my experience. The main way is 32/64 bit compatibility: your .NET application should be limited to the original dll format (64 bit or 32 bit).

0
source

I would encounter the same problem with my last work project.

I used OW.NET and a few weeks ago I provided the svn patch file in the sourceforge project for the Container41 class. With my patch, basically all the functionality for this device family should be supported.

But yes, there is no complete library. And the Maxim J # library is a bad joke.

0
source

Source: https://habr.com/ru/post/1395287/


All Articles