Serial port question
Archiver
Posts: 46,084
Hello from Gregg C Levine
Here's a question for those of us, who've gone down that path before:
(More like something to ponder, but was a question when I first
started thinking about it.)
For serial communications and the stamps, am I correct that once the
program is working, and there aren't any debug statements, I can
disconnect the programming unit from the Stamp Carrier board? As for
what to have the Stamp talk to, while I'm streaming data out that way,
I've got another computer, setup with a terminal program for that.
It's the port settings, and the baud rate, that get me.
Now if there's something wrong with my facts, and the way I've framed
it. Along with that blurb regarding how to configure the pins so that
they will pose as a serial port, then go ahead and point them out. I'm
not against accepting advice.
Gregg C Levine hansolofalcon@w...
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke."· Obi-Wan Kenobi
Here's a question for those of us, who've gone down that path before:
(More like something to ponder, but was a question when I first
started thinking about it.)
For serial communications and the stamps, am I correct that once the
program is working, and there aren't any debug statements, I can
disconnect the programming unit from the Stamp Carrier board? As for
what to have the Stamp talk to, while I'm streaming data out that way,
I've got another computer, setup with a terminal program for that.
It's the port settings, and the baud rate, that get me.
Now if there's something wrong with my facts, and the way I've framed
it. Along with that blurb regarding how to configure the pins so that
they will pose as a serial port, then go ahead and point them out. I'm
not against accepting advice.
Gregg C Levine hansolofalcon@w...
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke."· Obi-Wan Kenobi
Comments
hansolofalcon@w... writes:
> Now if there's something wrong with my facts, and the way I've framed
> it. Along with that blurb regarding how to configure the pins so that
> they will pose as a serial port, then go ahead and point them out. I'm
> not against accepting advice.
>
I see nothing wrong with your logic. Once I have a Stamp in communication
with another MCU, I disconnect the PC serial cable, if that is what you are
referring to. I presently have a unit that I program parameters into - its a
data logger - then once the programmed unit is on its own, I disconnect my
serial cable. I communicate via Hyperterminal and once the data logger is
running
I shut it down.
Sid
[noparse][[/noparse]Non-text portions of this message have been removed]
the BASIC Stamp is programmed. If you want to "talk" with a terminal program
using the programming port, this is okay too. Just specify pin 16 in your
SEROUT argument and understand that the there is an inverter on the BASIC Stamp
(I'm talking about the BS2 family here).
Just keep in mind that the inverter/level shifter on the BASIC Stamp module
"borrows" power from the serial line, so any character you send to a BASIC Stamp
from your terminal program will get echoed. You can deal with this by telling
your terminal not to display the keys you press. What shows onscreen are the
echoes -- that way you know you're connected.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Gregg C Levine [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=rOqgEQq_pTaWKzd9yIwZG_VJSx-7dmBGnYYtWe42v5u0Dti-xvFRcZ9zHDkUd3C9-6IaWFX65pOfDcHnXBuEHdTz9bLRLQ]hansolofalcon@w...[/url
Sent: Monday, April 05, 2004 5:49 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Serial port question
Hello from Gregg C Levine
Here's a question for those of us, who've gone down that path before: (More like
something to ponder, but was a question when I first started thinking about it.)
For serial communications and the stamps, am I correct that once the program is
working, and there aren't any debug statements, I can disconnect the programming
unit from the Stamp Carrier board? As for what to have the Stamp talk to, while
I'm streaming data out that way, I've got another computer, setup with a
terminal program for that. It's the port settings, and the baud rate, that get
me.
Now if there's something wrong with my facts, and the way I've framed it. Along
with that blurb regarding how to configure the pins so that they will pose as a
serial port, then go ahead and point them out. I'm not against accepting advice.
Gregg C Levine hansolofalcon@w...
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke."· Obi-Wan Kenobi
SEROUT 16, 16384, [noparse][[/noparse]"Hi"]
is the same as DEBUG [noparse][[/noparse]"Hi"]
The 16384 represents 9600 baud,
inverted.
AND, this will only work if the DTR signal
is INACTIVE, or disconnected, or your
board has 2 .1 uF bypass capacitors.
Oh, yes, and the RS232 voltage comes from
the PC's transmit line -- so some other
device MUST be giving +12 on the TX line
for this to work.
--- In basicstamps@yahoogroups.com, "Gregg C Levine"
<hansolofalcon@w...> wrote:
> Hello from Gregg C Levine
> Here's a question for those of us, who've gone down that path
before:
> (More like something to ponder, but was a question when I first
> started thinking about it.)
>
> For serial communications and the stamps, am I correct that once the
> program is working, and there aren't any debug statements, I can
> disconnect the programming unit from the Stamp Carrier board? As for
> what to have the Stamp talk to, while I'm streaming data out that
way,
> I've got another computer, setup with a terminal program for that.
> It's the port settings, and the baud rate, that get me.
>
> Now if there's something wrong with my facts, and the way I've
framed
> it. Along with that blurb regarding how to configure the pins so
that
> they will pose as a serial port, then go ahead and point them out.
I'm
> not against accepting advice.
>
> Gregg C Levine hansolofalcon@w...
>
> "The Force will be with you...Always." Obi-Wan Kenobi
> "Use the Force, Luke."· Obi-Wan Kenobi
Okay. Right. That does agree with the online help files, and the PDF
files that I've been browsing. However, I should have made that clear
in my assertions, and ponderings, that the BS1 was the stamp in
question. I haven't bought the Stamp2 yet, but that, and several
others are part of my general purpose wish list.
With the BS1, any of the pins can be selected, I believe that the help
file made that clear, except the modifiers. That I've already figured
out. However, am I missing anything in that statement?
Gregg C Levine hansolofalcon@w...
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke."· Obi-Wan Kenobi
>
Original Message
> From: Jon Williams [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=o0h1t1acQfhGDJ0IzHTmchJRO6aKAYMnq4ed6n_TXv05siK_2UaUWE8SOl4ZRMIyIVCxe4v1hOehKJRzRGCaqg]jwilliams@p...[/url
> Sent: Monday, April 05, 2004 7:50 PM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]basicstamps] Serial port question
>
> You are correct that you don't need to keep the programming cable
connected once
> the BASIC Stamp is programmed. If you want to "talk" with a
terminal program
> using the programming port, this is okay too. Just specify pin 16
in your SEROUT
> argument and understand that the there is an inverter on the BASIC
Stamp (I'm
> talking about the BS2 family here).
>
> Just keep in mind that the inverter/level shifter on the BASIC Stamp
module
> "borrows" power from the serial line, so any character you send to a
BASIC Stamp
> from your terminal program will get echoed. You can deal with this
by telling your
> terminal not to display the keys you press. What shows onscreen are
the echoes --
> that way you know you're connected.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
>
Original Message
> From: Gregg C Levine [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=bTDBntT78QQG7wpS_1ln1e3UgdLKqS1BkOokN95JPLVgeq5vN4Rj3R7Vm8p4N4BMJJtdMcTck8Oa2PdDQnm0_BEPi9R_rNCWKQ]hansolofalcon@w...[/url
> Sent: Monday, April 05, 2004 5:49 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Serial port question
>
>
> Hello from Gregg C Levine
> Here's a question for those of us, who've gone down that path
before: (More like
> something to ponder, but was a question when I first started
thinking about it.)
>
> For serial communications and the stamps, am I correct that once the
program is
> working, and there aren't any debug statements, I can disconnect the
programming
> unit from the Stamp Carrier board? As for what to have the Stamp
talk to, while I'm
> streaming data out that way, I've got another computer, setup with a
terminal
> program for that. It's the port settings, and the baud rate, that
get me.
>
> Now if there's something wrong with my facts, and the way I've
framed it. Along
> with that blurb regarding how to configure the pins so that they
will pose as a serial
> port, then go ahead and point them out. I'm not against accepting
advice.
>
> Gregg C Levine hansolofalcon@w...
>
> "The Force will be with you...Always." Obi-Wan Kenobi
> "Use the Force, Luke."· Obi-Wan Kenobi
connector as an output like with the BS2 family. When you do a BS1 DEBUG, 100
bytes get sent to the PC at 4800 baud (at TTL levels -- which is why we used the
printer port way back when).
You can do SEROUT on a BS1 up to 2400 baud -- again at TTL levels. While you
can probably get away with connecting directly to some serial ports, using an
proper invertor (like a MAX232) is recommended. Also be aware that you'll have
to implement your own flow-control scheme.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Gregg C Levine [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ZjEyP83ednN1OpSxVlS5Owv6pg4ZXm2E7dMVmfS9G__S1F3SPizpY2qHqjQGH9QcL2eUzMlsd8TIveu9jWBfSVrhLDODgUVh]hansolofalcon@w...[/url
Sent: Monday, April 05, 2004 7:30 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Serial port question
Hello from Gregg C Levine
Okay. Right. That does agree with the online help files, and the PDF files that
I've been browsing. However, I should have made that clear in my assertions, and
ponderings, that the BS1 was the stamp in question. I haven't bought the Stamp2
yet, but that, and several others are part of my general purpose wish list.
With the BS1, any of the pins can be selected, I believe that the help file made
that clear, except the modifiers. That I've already figured out. However, am I
missing anything in that statement?
Gregg C Levine hansolofalcon@w...
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke."· Obi-Wan Kenobi
>
Original Message
> From: Jon Williams [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=5N5m-CDGHYixg4cI98OMLUCA9h-iY1IBxcQY2xs6tpRb_cE8-wix5VfSZidRtiiF_O6L12Za72UyqWt9HYQ]jwilliams@p...[/url
> Sent: Monday, April 05, 2004 7:50 PM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]basicstamps] Serial port question
>
> You are correct that you don't need to keep the programming cable
connected once
> the BASIC Stamp is programmed. If you want to "talk" with a
terminal program
> using the programming port, this is okay too. Just specify pin 16
in your SEROUT
> argument and understand that the there is an inverter on the BASIC
Stamp (I'm
> talking about the BS2 family here).
>
> Just keep in mind that the inverter/level shifter on the BASIC Stamp
module
> "borrows" power from the serial line, so any character you send to a
BASIC Stamp
> from your terminal program will get echoed. You can deal with this
by telling your
> terminal not to display the keys you press. What shows onscreen are
the echoes --
> that way you know you're connected.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
>
Original Message
> From: Gregg C Levine [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ZjEyP83ednN1OpSxVlS5Owv6pg4ZXm2E7dMVmfS9G__S1F3SPizpY2qHqjQGH9QcL2eUzMlsd8TIveu9jWBfSVrhLDODgUVh]hansolofalcon@w...[/url
> Sent: Monday, April 05, 2004 5:49 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Serial port question
>
>
> Hello from Gregg C Levine
> Here's a question for those of us, who've gone down that path
before: (More like
> something to ponder, but was a question when I first started
thinking about it.)
>
> For serial communications and the stamps, am I correct that once the
program is
> working, and there aren't any debug statements, I can disconnect the
programming
> unit from the Stamp Carrier board? As for what to have the Stamp
talk to, while I'm
> streaming data out that way, I've got another computer, setup with a
terminal
> program for that. It's the port settings, and the baud rate, that
get me.
>
> Now if there's something wrong with my facts, and the way I've
framed it. Along
> with that blurb regarding how to configure the pins so that they
will pose as a serial
> port, then go ahead and point them out. I'm not against accepting
advice.
>
> Gregg C Levine hansolofalcon@w...
>
> "The Force will be with you...Always." Obi-Wan Kenobi
> "Use the Force, Luke."· Obi-Wan Kenobi
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.
Yahoo! Groups Links
This message has been scanned by WebShield. Please report SPAM to
abuse@p....