SERIN from a Palm IIIe
Archiver
Posts: 46,084
I'm trying to use a Palm IIIe as the user interface for my robot.
I've read through the manual, and hope someone can help clarify some
SERIN info. By defining a variable as a word, the STAMP will support
a number up 65535 - the The palm supports 32bit floating point
numbers - I can limit myself to INT numbers 65535 or less, but still
wonder how to get the number from the palm into the STAMP.
On the STAMP, do I just make sure the dataIn label is defined as a
word (using DEC)?
Or do I have split the data into 2 bytes prior to sending from the
palm, recieve them on the STAMP end using two byte sized dataIn
variables, and use the HiByte, LoByte modifier/alias to reassemble
them into a word??
On the Palm, I am using Hotpaw Basic, which does not appear to have
the ability to split up a 32bit word. Any ideas?
Thanks
I've read through the manual, and hope someone can help clarify some
SERIN info. By defining a variable as a word, the STAMP will support
a number up 65535 - the The palm supports 32bit floating point
numbers - I can limit myself to INT numbers 65535 or less, but still
wonder how to get the number from the palm into the STAMP.
On the STAMP, do I just make sure the dataIn label is defined as a
word (using DEC)?
Or do I have split the data into 2 bytes prior to sending from the
palm, recieve them on the STAMP end using two byte sized dataIn
variables, and use the HiByte, LoByte modifier/alias to reassemble
them into a word??
On the Palm, I am using Hotpaw Basic, which does not appear to have
the ability to split up a 32bit word. Any ideas?
Thanks
Comments
using a program like RS232M Com Monitor from www.viddata.com was invaluable.
By connecting the serial source to my computer's com port and them
monitoring the serial transmission, it helped me to see exactly how the
serial data would come to the Stamp, so I could write the SERIN command to
capture it. I discovered that data I expected to come as straight integer,
was actually coming as ASCII data representing the individual integers. (if
that makes sense).
Original Message
From: md10bldr [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=QtUKHsTinPX4hUL7CQboMNMQeYuQ2eIwSvdeK4VjDQtfCqKEi6bdPIjMiu_MImRSMehHTmeLKaG5yOJ-w3kq]Paul.h.garcia@B...[/url
Sent: Thursday, October 31, 2002 1:44 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] SERIN from a Palm IIIe
I'm trying to use a Palm IIIe as the user interface for my robot.
I've read through the manual, and hope someone can help clarify some
SERIN info. By defining a variable as a word, the STAMP will support
a number up 65535 - the The palm supports 32bit floating point
numbers - I can limit myself to INT numbers 65535 or less, but still
wonder how to get the number from the palm into the STAMP.
On the STAMP, do I just make sure the dataIn label is defined as a
word (using DEC)?
Or do I have split the data into 2 bytes prior to sending from the
palm, recieve them on the STAMP end using two byte sized dataIn
variables, and use the HiByte, LoByte modifier/alias to reassemble
them into a word??
On the Palm, I am using Hotpaw Basic, which does not appear to have
the ability to split up a 32bit word. Any ideas?
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/
This e-mail message may contain legally privileged and/or confidential
information. If you are not the intended recipient(s), or the employee
or agent responsible for delivery of this message to the intended
recipient(s), you are hereby notified that any dissemination,
distribution or copying of this e-mail message is strictly prohibited.
If you have received this message in error, please immediately notify
the sender and delete this e-mail message from your computer.
[noparse][[/noparse]Non-text portions of this message have been removed]