1-wire nb plugin for ds18b20 temperature sensor

Using NeoBook to control external hardware and devices.

Moderator: Neosoft Support

Locked
User avatar
frednet
Posts: 88
Joined: Fri Sep 23, 2005 4:29 am
Location: netherlands

1-wire nb plugin for ds18b20 temperature sensor

Post by frednet »

At the time I use the digitemp windows software that brian C lane wrote. https://www.digitemp.com/software/windows/index.html
The routine can be run from neobook and it works 24/7 and is stable.
This way of working has some downsides the most important one; it is comport only.
I found a ds9490 usb to 1 wire adapter and it works perfectly with this http://www.mrsoft.fi/ohj01en.htm software.
But now the question: http://files.maximintegrated.com/sia_bu ... _Help.html
Maxim offers several options in the windows sdk
The 1-Wire Software Development Kit (SDK) for Windows is divided into 3 sections, each representing a unique Applications Programmer Interface (API). The first focuses on the 1-Wire .NET J# libraries and is called OW.NET API. The second section focuses on a second API (pretty much a subset of OW.NET API) called Compact.NET API. This is a limited port of OW.NET to C# and is focused on Windows CE/Mobile/Pocket PC using the Compact .NET framework. For now Maxim only provides the equivalent of the DSPortAdapter object in the Compact.NET API. However, an open-source effort is taking place to provide more pure C# classes (such as OneWireContainers, MemoryBanks, etc). It is available from http://sourceforge.net/projects/owdotnet/. The third API is the TMEX API. This is a basic low-level, natively-compiled API that performs 1-Wire communication and file structure primitives (as opposed to the .NET APIs that are high-level and object oriented). Both the OW.NET API and the TMEX API need the 1-Wire Drivers package installed before the example programs will run. Compact.NET programs can run without the 1-Wire Drivers as it can make calls to C#'s serial port library.
So what is the best route to go in creating some kind of driver device neobook can handle, now and in the future development plans?
User avatar
dec
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain
Contact:

Re: 1-wire nb plugin for ds18b20 temperature sensor

Post by dec »

Hello,

Sorry but I can't understand exactly what you wanted. Can you explain a litle more exactly what you wanted? If you are thinking on a possible NeoBook plugin to deal with some of the refered API's, probably the best one can be the TMEX API, since they are native, instead of prepared for the Microsoft .NET platform. The TMEX API appear in form of some DLLs that probably you can call using one of the supported NeoBook Plugins API, Delphi, for example. However, maybe the other APIs, if they offer DLLs too, can be also a possible option, if DLLs are designed to be used by one of the supported NeoBook Plugins API.

On the other hand, a question for you, that appear with more experience than me in this field: you can't get a cable that works from/to COM ports from/to USB? I ask if you can't take your currently used device (and software) and use some cable in order to convert the COM port to USB, without touch any code nor software.

Sorry If I can't understand very well the question Fred. ;)
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
frednet
Posts: 88
Joined: Fri Sep 23, 2005 4:29 am
Location: netherlands

Re: 1-wire nb plugin for ds18b20 temperature sensor

Post by frednet »

dec wrote:Hello,

On the other hand, a question for you, that appear with more experience than me in this field: you can't get a cable that works from/to COM ports from/to USB? I ask if you can't take your currently used device (and software) and use some cable in order to convert the COM port to USB, without touch any code nor software.

Sorry If I can't understand very well the question Fred. ;)
I have a usb to comport converter and it works most of the time. The real problem is the com port adapter. we mis use it to talk to the one wire protocol.
I found that only about 50 % of the computers I use this way work stable. It depends on the hardware behind the comport and for example the purity of the power the computer gets. For example one laptop works fine on battery power but does weird things connected to the power supply. The usb adapter does not have these problem because it uses dedicated hardware ment for communicating with the one wire hardware. So the 1 wire usb adapter works on all computers I tried and the comport version doesnt.

the 1 wire protocol has hardware for temperature and humidity measuring, but also for example pulse counting or relays control even data storage is possible in a 1 wire device. The 1 wire protocol is especial interesting for me because i can use long cable lengths. At the moment i have a system with 6 sensors and a cable lenght of about 70 meters.

What I need is a plugin for neobook basically it does two things.
- it initializes the one wire net meaning that it sends a signal that invites all the temperature devices to call their name. each device has an unique 64 bit adres. the software returns a list of devices on the net.
- next one can poll all channels or poll a certain channel.

This sounds simpel but looking at http://files.maximintegrated.com/sia_bu ... tions.html
things like class list, class hierarchy, class members sounds like Russian to me very interesting, but will take me years to understand how to make a plugin from that. Hope this answers some of your questions, kind regards Fred.
Locked