Page 1 of 1

1-Wire MSACCESS

Posted: Thu Nov 27, 2008 1:07 pm
by Jeffo
Hello,

I would like to read 1-wire devices into MSACCESS on windows XP.
I have for testing the following devices:
On USB 1 (DS9490) --> DS1920 - DS2438 - DS1990A
I have the owapi.dll and the tmex.dll installed. The Maxim OneWireViewer is reading the devices well.
But I have no idea how to call the different functions from visual basic. [:(]
Is there anyone who can help me out? [:p]
Thanks. [:D]

1-Wire MSACCESS

Posted: Thu Nov 27, 2008 2:37 pm
by DMB
Jeffo,

See the code in http://www.domoticaforum.eu/topic.asp?TOPIC_ID=1681 , 4th reaction, code.txt.

I use the DS9097U in combination with 3 x DS1820(DS1920) and store the data in a mysql database.
If you change the mysql entrance with an MsAccess equivalent it must be working according to me.

DMB

1-Wire MSACCESS

Posted: Sat Dec 06, 2008 10:06 pm
by Jeffo
Hello DMB,


Thanks, but I am not getting far at this moment.

I have been filtering the code, as I am not using HomeSeer2 nor Scheduler.

But line 7.

Public adapter As com.dalsemi.onewire.adapter.DSPortAdapter

returns the following error: User-defined type not defined.

I have no clue how I can define the OWAPI lib ... [:I]

Can you or someone else help me on this ? [:p]

Thnks,

1-Wire MSACCESS

Posted: Tue Dec 09, 2008 1:24 am
by Jeffo
Did receive this info from Dallas Semiconductors:

Is it possible to access the OWAPI functions from within vbasic ?

Yes. The OWAPI has been compiled into a .NET object called OW.NET and can be found in our latest SDK (4.00Beta2) here: http://www.maxim-ic.com/products/ibutto ... /index.cfm

There are several VB examples in the kit under:| (kit install)\Examples\OW.NET\VB.NET

Thank You Dallas Semiconductors. So we can try further on...