Search DominoPower's 11,437 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Notes direct serial communications to Palm devices (continued)

  • Notes: Waits for 12 byte string from Palm in the form "USER.ID!nnnn" where nnnn is the size of the ID in bytes;

  • Notes: Parses the string to get the size and then waits for that data to be sent;

  • Notes: Saves the data to a temporary file and switches to it.

The Waba program was written with some classes to handle the Notes serial side and resource management, mostly so I had a framework that could be expanded later to handle extra id's like CERT.ID or later turn it into a data-gathering application. To give an idea of the general style a partial listing of the code is shown below.

//Main method. Tied to Start button
private void startup() {
int n;
byte buf[];
link=new NotesLnk(LINKSPEED);
if (link.isOpen ==false) {
println("Fatal: Can't open link");
return;
}
println("Link is open. Waiting to connect..");
if (link.connect('?',60)==true) {
println("Connected. Sending Id");
link.writeLine("user.id!"+cat.recSize);
buf = new byte[cat.recSize];
cat.readBytes(buf,0,cat.recSize);
link.writeBytes(buf, 0, cat.recSize);
println("Id sent");
} else
println("Failed to connect.");
link.close();
println("Link is closed.");
}

For an idea of how this looks on the Palm device, refer to Figure C.

FIGURE C

A screen shot of NotesId in action on the Palm unit.

Some ideas
Hopefully I've given you some ideas here about your Palm device and how easy it is to directly connect it to Notes. The same technology is equally applicable to serial devices, hardware, or terminals which, in turn, allows you to use the powerful Notes features as an intermediary step instead of using the old "text file/import" routine. Here at EML, we're just starting to investigate the practical applications of this idea using A/D systems taking temperature measurements. We're aiming to pull the readings into Notes using this direct technology, use Notes to log the data, manipulate it with an agent, and then send the results somewhere else, in turn, via TCP/IP.

Product availability and resources
The example database includes the LotusScript agents, a script library of the Netlink declarations and the Waba source code for NotesId. It's available from Mark's site at http://www.electricmemo.com/articler.nsf. The Palm executables are also included but note that the USER.ID resource in them is a dummy file.

You''ll need the Waba Beta 7 virtual machine for either a Palm device or a Windows CE device to run the demo. Don't use an earlier beta, it won't work. If you want to bind in a real USER.ID or play with the code you'll need the Beta 7 SDK. You can get both from http://www.wabasoft.com.

Portmon is available at http://www.sysinternals.com.

Pilot VT100 is available http://www.frotz.net/vt100.

Mark Lawson is a freelance Notes consultant in the UK. He can be reached at markl@electricmemo.com.


« Previous  ·  1  ·  2  ·  3  ·  4
Other articles you might like
Home > Mobile Technology > Palm OS (11 articles)
   Synchronizing Notes with Palm handhelds with Pylon 5.2
   Integrate Notes with Palm's new Tungsten T
   Top 10 support questions answered for Pylon products
Home > Lotus Technologies > Notes (84 articles)
   A walk down Memory Lane with Lotus Notes
   An application for scanning physical mail and distributing it virtually
   Managing Notes deployments with Teamstudio Build Manager
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
Adding Quick Highlighter support to IBM Lotus Notes Domino Wiki, Weblog, or Webpage
Remember Young Admins...there are 2 files
WebSphere Portal 6.1.0.2 and Lotus Domino 8.5
The CKEditor - with Domino
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login