"MemoryBanks.exe" Readme

Introduction
The MemoryBanks.exe is an example program that reads/writes any iButton/1-Wire device that is supported by the OWCOM API's "MemoryBank" object.

This particular example was written in Microsoft Visual Basic 6.0.

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.  Also, note that reading the memory contents of the DS1977 is too large for the text box to hold, so it will write the contents, instead, to a "MemContents.txt" text file (located in the same directory as the program).

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

  Form1.frm                   - The main window form file.  Contains most of the VB code.

  Readme.html                 - This file.

  MemoryBanks.exe             - A program to read/write 1-Wire "Memory Banks".

  MemoryBanks.vbp             - The Visual Basic project file.

  MemoryBanks.vbw             - The Visual Basic workspace file.

  globals.bas                 - A VB code module containing global variables used
                                in the program.