Scanning Devices Inc.



Sensors, Instruments and Controls
111 Terrace Hall Avenue
Burlington, Massachusetts (USA) 01803
1-781-272-5135
FAX: 1-781-272-4856
Email us: mail@scanningdevices.com


Reading and Writing Data using the Palm OS iConnection Manager

Readers familiar with Palm OS programming or Motorola Code Warrior will recognize the function to read a record from a Palm Database:

MyDataHandle = DmQueryRecord(MyDatabase, recordNumber);

(If you don't recognize this, well you will just have to take our word for it, this is a good way to read a Palm Database record).

Here's how to read a page from an iButton using the iConnection.

MyDataHandle = IcnReadPage(pageNumber, OD, CRC, Key, *error);

Looks familiar, doesn't it? Reading a button serial number is much the same:

MyButtonSerialNumberHandle=IcnReadButtonID();

The next thing you would probably do is update the data and write it out to the database with a function like this:

error = DmWrite(*databaseRecord, 0, *myData, recordLength);

Here's how to write the page to that iButton using the iConnecton.

 

error= IcnWritePage(pageNumbr, OD, Key, *myData);

 

Makes you feel right at home. No tricks, just straightforward Palm OS techniques.

 

Back to iConnection Home Page.


111 Terrace Hall Avenue
Burlington, Massachusetts (USA) 01803
1-781-272-5135
FAX: 1-781-272-4856
Email us: mail@scanningdevices.com

Scanning Devices Inc.

Home Page | Application Stories | Product Information | News | Trade Shows

 

CopyrightÓ 2004 Scanning Devices Inc