A PocketC LapTimer

Share information about your software written for Palm OS

Postby gganio on Wed Dec 20, 2000 2:16 am

<title>A PocketC LapTimer (Palm OS)</title>

<body bgcolor="#FFFFFF" text="#000000">

<TITLE>A PocketC LapTimer / Stopwatch</TITLE>

<BODY LINK="#0000ff" VLINK="#800080">

<b>[size=5]<P ALIGN="CENTER">A PocketC LapTimer: A Pocket-C Based Laptimer (Stopwatch) for PalmOS machines </b></P>
<P ALIGN="CENTER">Palm OS v 1.00 (12/3/2000)</P>

</b></FONT><P>Laptimer that runs on Palm OS machines. It has been written with PocketC of (<A HREF="http://www.orbworks.com/">www.orbworks.com</A>).<br>
It is of very simple use. It features, big digits, remote button control (with external cable), Lap Time Log file downloadable to your PC.
I am still testing it, but is should work under all existing Palm Os.It has been so far tested on a couple of 4 stroke engine vehicles, and on a couple of 2 stroke go-karts. During the 2 Stroke testing application, some problems surfaced, see <A HREF="#Limitations">Limitations</A> section.</P>

<b>[size=5]<P><A NAME="Current_Features">Feature</A> List</P>

<li>Resolution 1/100 sec</li>
<li>Screen and remote button triggering</li>
<li>Big Digits </li>
<li>Max Lap Time (TBD)</li>
<li>Min Lap Time (2 sec)</li>
<li>Max Number of laps (99)</li>
<li>Best LapTime displayed</li>
<li>Lap Times saved to PalmOS memo, downloadable to PC</li>
<li>Image Background</li>
<li>Reusable code for personal modifications</li>
<li>Backlight possibility for night use</li>
<li>On Vehicle use possible</li>


<b>[size=5]<P><A NAME="History">History</A></P></b></FONT>

<P>v1.00 Palm OS 12/4/2000</TD>
<P>Initial Release</TD>
I am useing the picture of a pocket bike as wallpaper for this software, because I have thought that a Pocket PC machine running on PocketC would have look good with a picture of a Pocket Bike.<br>
Prerelease History:<br>
My first version of this software was triggered by Sersend(a). That allowed to use a conventional Palm Pilot Serial Cable. Unfortunately, I have found out that it was necessary to have the Palm Pilot to be waked up on the event of time triggering. That happens with the command wait()+Hookhard() and triggering with the Hotsync button.<br>

<b>[size=5]<P><A NAME="Files">Files</A></P></b></FONT>

For Users: PoCLaTi1users.zip:<br>
<A HREF="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/dlpoclatiusers.html">
Download here PoCLaTi1users.zip</A>

PoCLaTi1.prc PocketC Laptimer v.1.00 (.prc style)
PoCLaTi1ni.pdb PocketC Laptimer v.1.00 (.pdb style), basically it has no icon
PocketC.prc PocketC palm OS runtime application v.3.7rt
PktCSysLib.prc PocketC Palm OS system library
PoCLaTi1Readme.txt This file
PoCrtReadme.txt Read me of PocketC Palm OS runtime v.3.7rt
PktCSysLibReadme.html Read me of PocketC system library


For Developers: PoCLaTi1developers.zip:<br>
<A HREF="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/dlpoclatidevelopers.html">
Download here PoCLaTi1developers.zip</A>

PoCLaTi1.prc PocketC Laptimer v.1.00 (.prc style)
PoCLaTi1.pc Source for PocketC Laptimer v.1.00 (.prc style)
PoCLaTi1ni.pdb PocketC Laptimer v.1.00 (.pdb style), basically it has no icon
PoCLaTi1ni.pc Source for PocketC Laptimer v.1.00 (.pdb style)
PocketC.prc PocketC palm OS runtime application v.3.7rt
PktCSysLib.prc PocketC Palm OS system library
PoCLaTi1Readme.txt This file
PoCrtReadme.txt Read me of PocketC Palm OS runtime v.3.7rt
PktCSysLibReadme.html Read me of PocketC system library
pocketbiks.bmp small icon for PoCLaTi1.pc compileing
pocketbikl.bmp large icon for PoCLaTi1.pc compileing
PktCSysLib.lib Source for PocketC Palm OS system library
Palmconnector.txt Info on the Palm connector
<A HREF="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/dlpoclatidevelopers.html">
contains the .bmp and .txt files to build digits and skins for PocketC
Laptimer developing

<b>[size=5]<P><A NAME="File Installation">File Installation</A></P>

Using your favorite PalmPilot program, install :<br>

(from PoCLaTi1users.zip)<br>

PocketC.prc <br>
PoCLaTi1.prc <br>
(optional PoClaTi1ni.pdc)<br>

Additionally, if you want modify this software you will need:<br>

files from PoCLaTi1developers.zip<br>
PocketC for palm OS full version<br>
It is possible to download the full version of PocketC at:
<A HREF="http://www.orbworks.com/">

<b>[size=5]<P><A NAME="Operation">Operation</A></P>

For screen triggering:<br>
start up either PoCLaTi1.prc or PoCLaTi1.pdb and touch the screen or any key button when ever
you want to measure a laptime. This data will be saved at the indicated memo file.<br>

For Hotsync button triggering:<br>
In the Prefs menu set the Hotsync Button to call PocketC.
Start up either PoCLaTi1.prc or PoCLaTi1.pdb and touch the button when ever
you want to measure a laptime. This data will be saved at the indicated memo file.<br>
The following pictures will further explain how to operate this software:<br>
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/scr01.gif" border=0>
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/scr02.gif" border=0><br>
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/scr03.gif" border=0>
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/scr04.gif" border=0><br>
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/scr05.gif" border=0>
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/scr06.gif" border=0><br>
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/scr07.gif" border=0>
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/scr08.gif" border=0><br>

<b>[size=5]<P><A NAME="System Hardware">System Hardware</A></P>

The following two pictures are some examples of onboard use of the Palm machine for Lap Timing:
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/otobaipocketclaptimer.jpg" border=0>
<img src="http://www.geocities.com/gganio.geo/PalmCELapTimer/PalmOS/kartpocketclaptimer.jpg" border=0><br>
During Onboard use, I have been putting my PDA machine into one of these boxes:<br>
<A HREF="http://www.otterbox.com/">
<img src="http://www.otterbox.com/images/2000.jpg" border=0> </A>
<A HREF="http://www.smartcart.com/diving/cgi/display.cgi?item_num=otter">Buy them here</A><br>
It is possible to buy cost effectively Palm Pilots or PocketPC machines and their Serial Cables at any Internet Auction. Here a link for two of them: <A HREF="http://list.auctions.yahoo.com/23557-category.html?alocale=1us&acc=us">
Yahoo Auctions US</A>
<A HREF="http://list.auctions.yahoo.co.jp/jp/23557-category.html?alocale=0jp">
Yahoo Auctions Japan</A>

The Palm Connector:<br>
The LapTimer can be triggered remotely thru the Hotsync button. The 2 hotsync pins of the Palm connector are not linked to the SD9 serial connector. Therefore it is necessary to modify an exixting Hotsync cable to enable it to trigger remotely the laptimer. It would also be possible to build on purpose a cable to link the Palm machine to a button. Unfortunately , Palm Inc., basically forbid the sale of the connector as an electronic component in order to maintain a large profit on the sales of the hotsync cables. <br>
I am trying to find a source of the Palm Pilot connector in order to build a remote Hotsync button for the right price. So far what I have been doing has been modifying existing Palm Pilot serial cables. These three links can help for custom building of modifyed Hotsync cables:<br>

<A HREF="http://www.syncablesolutions.com/">
Syncable Solutions (Palm Cables en Vrac)</A>
<A HREF="http://www.gethightech.com/homepage.html">
Gethightech.com (Palm Spare parts)</A>
<A HREF="http://www.pacificneotek.com/">
Pacific Neo-Tek(They have the E-Z Syncable)</A>
It follows a description of the cradle pinout for help in case of custom modifying of the Palm Pilot Serial Cable.

<a name=3></a>
<h3>Palm HotSync(tm) Cradle Pinout</h3>
Pinout (left to right, facing the front of the cradle) seems to be:

cradle cable Palm/PalmPilot
------ ----- -----
pin 1 DE9.6, DB25.6 Palm DTR (GPIO output) -> PC DSR
pin 2 N/C +3.3V on PalmPilot and Palm III handheld
(current limited by 330 Ohm series resistor.)
not connected on PalmPilot cradle
(+4.1V) (or +4.07V measured on my Palm V cradle)
pin 3 DE9.3, DB25.2 Palm RxD <- PC TxD
pin 4 DE9.8, DB25.5 Palm RTS -> PC CTS
pin 5 DE9.2, DB25.3 Palm Txd -> PC RxD
pin 6 DE9.7, DB25.4 Palm CTS <- PC RTS
pin 7 N/C GPIO input pin for detecting hotsync, contacts
with pin 2 when the hotsync button is pressed.
pin 8 N/C GPIO (input only, not connected in cable)
(+5.5V) (or around +5.5 on Palm V cradle only)
pin 9 N/C N/C (spare?)
pin 10 DE9.5, DB25.7 Signal Ground

N/C DE9.4, DB25.20 (PC DTR not connected to Palm)
N/C DE9.1, DB25.8 (PC DCD unconnected to Palm)

(Cradle uses single sided gold PCB edge connector with 2mm contact spacing.)

Additional Info at 3Com/Palm's
<a href ="http://www.palm.com/devzone/hw.html">
Hardware Development</a> page.

<b>[size=3]<P><A NAME="System Weights">System Weights</A></P>
Palm Pilot = TBD
Palm III = TBD
Palm Hotsysnc Cable = TBD
Sub D 9 connector and button = 40 g
Otter box 2000 series = TBD g


<b>[size=5]<P><A NAME="Limitations">Limitations</A></P>
<P>So far tested only on Palm OS 2.0 and 3.1.1 <br>
When used on vehicles, powered by single cylinder 2 stroke engines, it has been noticed that the local EMI produced by these engines are capable of shutting off a Palm Pilot. Especially the early models. This software doesn't need to operate with the Palm powered up. It simply will be turned on by the time trggering operation, and it will be , randomly , shut off by the engine EMI. Testing on 4 stroke engines had no problems.
The time display doesn't flow with the time. It simply displays the last measured laptime and the current best laptime.
Current remote trggering is with a button. I have not yet developed, or found a way to trigger the LapTimer remotely from an off board source.

<b>[size=5]<P><A NAME="Future Developments">Future Developments</A></P>
I plan to port this Laptimer to Windows CE.<br>
I plan to figure out a way to trigger with an outboard source the laptimer.

<b>[size=5]<P><A NAME="legal_stuff">Legal Stuff</A>

<b>[size=5]<P><A NAME="Special_Thanks">Special Thanks</A></P></FONT></b>
Special thanks to
<A HREF="http://alienbill.com/abp/pocketc.html">Alien Bill PocketC Page</A>, because of BMP2Hex (for Windows).<br>

Special thanks to <A HREF="http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=0011J4&b=zdpalm">Jolly Roger</A>
,screen capture software.<br>

<b>[size=5]<P><A NAME="Contact_Info">Contact Information</A></P>
[/b]</FONT><P>Please direct any bugs, suggestions, or feedback to <a href="mailto:gganio.geo@yahoo.com">gganio.geo@yahoo.com.</a><br>
See also my web site:<A HREF="http://www.geocities.com/gganio.geo">http://www.geocities.com/gganio.geo</A><br>


Edited by - gganio on 12/19/2000 20:22:33
Posts: 9
Joined: Wed Dec 20, 2000 2:05 am
Location: Italy

Return to Palm OS Software

Who is online

Users browsing this forum: No registered users and 2 guests