Shop OBEX P1 Docs P2 Docs Learn Events
Connecting Stamp to Palm Pilot — Parallax Forums

Connecting Stamp to Palm Pilot

ArchiverArchiver Posts: 46,084
edited 2002-05-22 15:40 in General Discussion
Hey All,

Anyone have any information on connecting the stamp to a palm pilot. I
basically want to read temperatures on my palm.

Thanks in advance

Jason

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-05-15 06:51
    The other people here will inevitably be WAY more heloful than I will.
    When I spent two weeks straight looking for ways to interface a homade sonar
    device to a macintosh laptop with usb ports only, I discovered that there are
    alot of temperature data aquisition systems. Some that I saw incorporate the
    palm. Some were more commercial than others, but some had detailed
    information. Try a google.com search on "data aquisition" "thermometer"
    "palm".
    Sorry I could not be of more help. I probably skimmed over a thousand pages
    of Smile data those two weeks and my brain is still fried. What you are
    looking for is out there.
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-15 10:50
    Try a different way.
    Use Dallas 1-Wire concept.

    Regards
    Johnny B
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-15 15:31
    I use a Palm (one of the originals) to talk to equipment around here. All i do
    is run a terminal program on the
    palm and use the serial cable for connectioins (my palm has a hotsync cable
    thatplugs into the palm and has a 9
    pin serial connector on the end) You coud use the stamp to read your
    tempreature sensor and output it in serial
    format and read it on the palm. palm terminal programs are easy to find. try
    http://software.palm.com/ for terminal programs


    "Jason W. Day" wrote:

    > Hey All,
    >
    > Anyone have any information on connecting the stamp to a palm pilot. I
    > basically want to read temperatures on my palm.
    >
    > Thanks in advance
    >
    > Jason
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-15 16:41
    Hi Jason,

    My favorite Palm terminal program is "Online" from
    <http://www.markspace.com /online.html>
    With that you can immediately start looking at your Stamp output on
    the Palm screen. If you want to do something more customized, look
    into BASIC programming.
    <http://www.nsbasic.com/palm/> $149 IDE
    <http://www.rahul.net/rhn/hotpaw/> $19 shareware

    -- regards,
    Tracy Allen
    electronically monitored ecosystems
    mailto:tracy@e...
    http://www.emesystems.com


    >I use a Palm (one of the originals) to talk to equipment around
    >here. All i do is run a terminal program on the
    >palm and use the serial cable for connectioins (my palm has a
    >hotsync cable thatplugs into the palm and has a 9
    >pin serial connector on the end) You coud use the stamp to read
    >your tempreature sensor and output it in serial
    >format and read it on the palm. palm terminal programs are easy to find. try
    >http://software.palm.com/ for terminal programs
    >
    >
    >"Jason W. Day" wrote:
    > Hey All,
    > >Anyone have any information on connecting the stamp to a palm pilot. I
    > > basically want to read temperatures on my palm.
    > >Thanks in advance
    > > Jason
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-15 19:32
    Jason-

    I uploaded an application to the Files area that lets you look at the
    debug output of the Stamp on a Palm device. It also has some basic
    info about how to connect the Palm to the Stamp.

    Let me know if it works for you, and what Palm device that you are
    running it on. It is freeware.

    Best regards,

    peter

    Original Message
    From: "Jason W. Day" <j_w_day@y...>
    Date: Tuesday, May 14, 2002 10:50 pm
    Subject: [noparse][[/noparse]basicstamps] Connecting Stamp to Palm Pilot

    > Hey All,
    >
    > Anyone have any information on connecting the stamp to a palm
    > pilot. I
    > basically want to read temperatures on my palm.
    >
    > Thanks in advance
    >
    > Jason
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-15 23:27
    I have been looking at NSBasic. I see it has some serin & out
    commands. As to some of the other replys: I have a Palm Vx, I plan on
    connecting temperature, pressure, and a few other things.

    If anyone has any code for the NSBasic (related to the Serin and
    out), it would be helpful.

    Thanks Guys!


    --- In basicstamps@y..., Tracy Allen <tracy@e...> wrote:
    > Hi Jason,
    >
    > My favorite Palm terminal program is "Online" from
    > <http://www.markspace.com /online.html>
    > With that you can immediately start looking at your Stamp output on
    > the Palm screen. If you want to do something more customized, look
    > into BASIC programming.
    > <http://www.nsbasic.com/palm/> $149 IDE
    > <http://www.rahul.net/rhn/hotpaw/> $19 shareware
    >
    > -- regards,
    > Tracy Allen
    > electronically monitored ecosystems
    > mailto:tracy@e...
    > http://www.emesystems.com
    >
    >
    > >I use a Palm (one of the originals) to talk to equipment around
    > >here. All i do is run a terminal program on the
    > >palm and use the serial cable for connectioins (my palm has a
    > >hotsync cable thatplugs into the palm and has a 9
    > >pin serial connector on the end) You coud use the stamp to read
    > >your tempreature sensor and output it in serial
    > >format and read it on the palm. palm terminal programs are easy to
    find. try
    > >http://software.palm.com/ for terminal programs
    > >
    > >
    > >"Jason W. Day" wrote:
    > > Hey All,
    > > >Anyone have any information on connecting the stamp to a palm
    pilot. I
    > > > basically want to read temperatures on my palm.
    > > >Thanks in advance
    > > > Jason
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-16 05:57
    >I have been looking at NSBasic. I see it has some serin & out
    >commands. As to some of the other replys: I have a Palm Vx, I plan on
    >connecting temperature, pressure, and a few other things.
    >
    >If anyone has any code for the NSBasic (related to the Serin and
    >out), it would be helpful.
    >
    >Thanks Guys!
    >

    Hi again Jason,

    It is kind of hard to convey nsbasic code in an email message,
    because the code is spread out in association with different objects.
    But here is a lesson 1. Let's say you simply want to send some text
    data from the Stamp to the Palm and have it appear in a field. First
    note: the Palm uses chr(10) (line feed) to move from line to line,
    not chr(13) (carriage return). So assume you take care of that in
    the Stamp. That is, don't send data using the Stamp DEBUG command,
    which uses CR without an LF. It takes a little more programming on
    the Palm to convert CRs into LFs for display--but that is lesson 2!

    (BTW, nsBASIC is an IDE that runs on a windows PC. You test your
    program on the Palm emulator on the windows desktop, or you can
    hotsync it onto the actual Palm.)

    Start a new project, and it will have startup code, termination code,
    and one form with a scrolling field to display data received over the
    serial port from the Stamp.

    in the Startup code:
    global serflg as integer ' a flag for the state of the serial port
    ' you _must_ keep track of this

    in the Termination code:
    if serflg=1 then
    err=serialclose() ' if open, close the port before exiting
    end if

    Create one form, and on it put a field. You create a field by
    selecting the field object in the tool bar and then by dragging on
    the IDE screen. Make the field fill the screen. The IDE will assign
    a number to the field. In the field properties on the right pane of
    the IDE you can give the field a name, say "serialdata". Also, make
    it a scrolling field, and dynamic (meaning it can wrap and change
    size), and make the maximum number of characters a very large number,
    like 30000.

    Right click on the form to bring up the "After" code, which will
    execute after the form has displayed the field. Type there something
    like the following:

    dim mydata as string ' to hold data from the serial port
    dim err as integer
    if serflg=0 then
    err=serialopen(0,9600) ' if not already open, open at 9600 baud
    end if

    Do
    if syseventavailable()=1 then exit do ' see below
    err=serialreceive(mydata,100,.05) ' receive a bunch of characters
    ' up to 100 (the palm buffers
    ' lots of characters behind the
    ' scenes. Only wait .05 second
    ' though and then take whatever
    ' characters have come in.
    serialdata.text=serialdata.text+mydata ' append new text to the field text
    ' remember: chr(10) ends lines!
    loop ' forever
    end sub ' all subs end with this

    (Caveat--I was typing the above code directly into the email--question it!)

    The way events happen on the Palm is kind of tricky, and the program
    does not allow events to interrupt in the middle of a loop or
    subroutine. The syseventavailable() function allows the code to exit
    gracefully if you press one of the other application keys. At that
    point, the termination code runs (to close the serial port) and the
    new application runs.

    There are a lot of details. You probably want to parse your data to
    display the different variables neatly in three different fields?
    The manual and example programs are, shall we say, sketchy and
    exasperating. The nsbasic-palm egroup is very helpful, and a
    fabulous book by Mike Verive has just come out on Palm programming
    with nsbasic.

    I hope that helps you get started.

    -- best regards
    Tracy Allen
    electronically monitored ecosystems
    http://www.emesystems.com
    mailto:tracy@e...
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-22 06:35
    How do we access the "files" area that the information was uploaded to? And
    what is the name of the application? Thanks!
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-22 15:40
    Go to:

    http://groups.yahoo.com/group/basicstamps/files/

    There is a zip file called "DeBug" that has the application and a text
    file.

    Let me know if it works for you, and what PalmOS version and hardware
    (Palm vs Handspring, etc) you use it on. I have been tinkering with it
    to allow captured data to be imported into the notepad, but haven't
    quite finished it yet.

    Good luck,

    peter

    Original Message
    From: azeasi@a...
    Date: Wednesday, May 22, 2002 1:35 am
    Subject: Re: [noparse][[/noparse]basicstamps] Connecting Stamp to Palm Pilot

    > How do we access the "files" area that the information was
    > uploaded to? And
    > what is the name of the application? Thanks!
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >
    >
Sign In or Register to comment.