From: bt@irfu.se (Bo Thide')
Newsgroups: comp.sys.laptops,comp.sys.hp,comp.sys.hp48
Subject: Re: Need hp95lx data file formats -- Any HPers out there?
Date: 27 Dec 92 14:21:29 GMT
Organization: Swedish Institute of Space Physics, Uppsala, Sweden

In article <1992Dec26.164929.104612@jrh.uucp> jrh@jrh.uucp (James R. Hamilton) writes:
>    HP provides a connectivity package that allows hp95lx users to transfer
>    data to and from DOS based systems, however, since I run a UNIX box, this
>    doesn't solve the problem for me.  File transfer is easy but what is 
>    missing is a description of the file formats used by the telephone, memo,
>    and appointment applications.
>
>    With a description of the file formats, they can be translated to and from
>    industry standard formats for data exchange with other systems and other
>    applications.
>
>    Even if you can't help, a reference to a likely HP contact or a pointer to 
>    a HP system support net ID would be very useful.  Thanks,
>
>                    --jrh
>-- 
>
>James R. Hamilton                               inet: jrh@jrh.gts.org
>telephone: +1 416 493 4162                      uunet: ...!uunet!jrh!jrh
>Toronto, Canada                                 work: jrh@torolab.vnet.ibm.com



This is what I found in a package from csn.org:
==============================================

HP 95LX Phone Book File Format

The HP 95LX Phone Book file is structured as a file identification 
record, followed by a variable number of phone book data records, 
and terminated by an end of file record.  Each data record contains
the information for one phone book entry.

The format of these phone book records is described below.  In the
descriptions, the type <int> refers to a two byte integer stored least 
significant byte first, the type <char> refers to a one byte integer, 
and the type <ASCII> refers to a string of ASCII characters.

HP 95LX Phone Book File Identification Record:

Byte Offset      Name            Type     Contents

0                ProductCode     int      -2 (FEh, FFh)
2                ReleaseNum      int      1 (01h, 00h)
4                FileType        char     3 (03h)   


HP 95LX Phone Book Data Record:

Byte Offset      Name            Type     Contents

0                RecordType      char     1 (01h)
1                RecordLength    int      Number of bytes in remainder
                                          of this data record, see note
                                          below.
3                NameLength      char     Length of name text in bytes.
4                NumberLength    char     Length on number text in bytes.
5                AddressLength   int      Length of address text in bytes.
7                NameText        ASCII    Name text, 30 characters maximum.
7+NameLength     NumberText      ASCII    Number text, 30 characters maximum.
7+NameLength+
  NumberLength   AddressText     ASCII    Address text where the null 
                                          character is used as the line 
                                          terminator.  Addresses are limited
                                          to a maximum of 8 lines of 39
                                          characters per line (not counting
                                          the line terminator).

HP 95LX Phone Book End of File Record:

Byte Offset      Name            Type     Contents

0                RecordType     char      2 (02h)
1                RecordLength   int       0 (00h, 00h)



Note: Files created by the Phone Book application may contain 
some padding following the last field of some data records.  Hence,
the RecordLength field must be used to determine the start of the
next record.  Phone book files created by other programs need not
have any padding.

================================================


I think the HP95LX appointment book format is similar.  Now, you just
have to write a HP-UX <--> HP95LX filter.  Please e-mail me a copy when
you have done it :-).  Seriously, I would very much like to see the VUE
'datebook' being able to handle the HP95LX appointment book format (plus
'calendar', 'finger', and its own format).  Or, even better, I would
like to have a filter which translates the HP95LX file to pure ACII
files and back.  Then it would be possible to keep your VUE 'datebook'
and the HP95LX appointment calendar synchronized and up to date a all
times.  You just connect the HP95 and your HP workstation via a serial
line ('kermit' works great on both, that's what I use all the time) and
transfer the calendar data between them.  It could even be done
automatically so that whenever you update 'datebook', the data gets
translated and automatically transferred to the HP95LX if it's connected.

Bo
-- 
   ^   Bo Thide'----------------------------------------------Science Director
  |I|        Swedish Institute of Space Physics, S-755 91 Uppsala, Sweden
  |R|    Phone: (+46) 18-303671.  Fax: (+46) 18-403100.  IP: 130.238.30.23
 /|F|\          INTERNET: bt@irfu.se      UUCP: ...!mcvax!sunic!irfu!bt  
 ~~U~~ ----------------------------------------------------------------sm5dfw-
Newsgroups: comp.sys.laptops