"MemoryBanks.exe" Readme

Introduction
The MemoryBanks.exe is an example program that allows the user to read/write iButton/1-Wire devices supported by the OW.NET API's "Memory Bank" object. It will write only to a "Main Memory" or "Data Memory" Memory Bank if present.

This particular example was written in Microsoft Visual Basic .NET with Microsoft Visual Studio .NET 2005.

Requirements
1-Wire Drivers version 4.00 or higher, with the OneWireAPI.NET.dll in the same directory as the executable.

 

.NET Framework 2.0 Redistributable:


Visual J# .NET 2.0 Second Edition Redistributable:


When compiling this program, make sure that the program references “vjslib”, and the OneWireAPI.NET.dll.

 

Before running this program, make sure to set the default 1-Wire adapter settings to the preferred type (usually "{DS9490}") and number (usually "USB1").  This can be done by running the "Default 1-Wire NET.exe" program found in the 1-Wire Drivers application directory.

Operation
To run the MemoryBanks.exe program, double-click on the "MemoryBanks.exe" file.  This runs the program.  The main window of the program will appear containing a text box and 2 buttons.  The top of the text box shows which 1-Wire adapter and port is being used as the "Default" adapter and port.  To change the "Default" adapter and port, please look in the 1-Wire Drivers folder under "Program Files" and find the "Default 1-Wire Net" icon.  Double-clicking this icon will allow the user to select from the different available 1-Wire adapters and ports.

The two buttons on the main window of MemoryBanks.exe are titled "Read Memory Banks" and "Write 'Testing 123' to Each Main Memory Bank Page".  Clicking on "Read Memory Banks" will read out the contents of each Memory Bank on every iButton/1-Wire device found on a 1-Wire network.  Please note that some 1-Wire devices do not contain any Memory Banks while others may contain multiple Memory Banks. 

The second button is the "Write 'Testing 123" to Each Main Memory Bank Page" button.  This will write a "page packet" to every page of either the "Main Memory" Memory Bank or the "Data Memory" Memory Bank of a 1-Wire device.  The page packet consists of a length byte, followed by "Testing 123" in byte format, followed by a 2-byte CRC16.

Note:  Please be patient when using the DS1977, as the program will read/write the entire 32K of memory contents.

Files

 
AssemblyInfo.vb         - VB.NET assembly file.

FormMemBanks.resx       - VB.NET resource file.

FormMemBanks.vb         - MemoryBanks.exe main form.

MemoryBanks.sln         - VB.NET MemoryBanks solution file (opens project solution)

MemoryBanks.vbproj      - VB.NET project file.

MemoryBanks.vbproj.user - VB.NET project user file.

Readme.html             - This file.

 
..\..\..\..\Lib\OW.NET\OneWireAPI.NET.dll  - 1-Wire API

..\bin\MemoryBanks.exe  - Program executable