Shop OBEX P1 Docs P2 Docs Learn Events
Safe to Assume? — Parallax Forums

Safe to Assume?

ArchiverArchiver Posts: 46,084
edited 2002-10-19 22:21 in General Discussion
Question about "buffered" serial communications.

I have a serial controlled UHF radio That I want to "talk" to. The manual is
a bit vague as it is not the EXACT manual for this radio but I think in this
case it's close enough.

The radio uses RS-232 to communicate with a host processor. Got that working
so far. The radio has a 96 character buffer. The radio also use CTS/RTS for
handshaking. The manual states that the handshake goes up when the buffer is
3/4 full and goes back down when the buffer is emptied to 1/4 full. The
handshake does not appear to flip with every character. Question is this. If I
simply do a loop to read characters one at a time into an array will the buffer
in the radio "wait" until the stamp does a SERIN or is there a possibility the
radio will spit out characters while I am busy handeling the last character? In
other words will I get out of sync and if so how should I handle this situation
to make sure I get all the characters in the buffer??

(Don't ya just love RS-232? <g>?)
Thanks

Mike B.


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-10-19 22:12
    Is this for the Icom interface cv? or something like this. I have
    done some Icom or CV-something interface for the opto-electronic
    Scout.

    Larry


    Original Message
    From: "Mike Blier" <w6ffc@p...>
    To: "Basic Stamps" <basicstamps@yahoogroups.com>
    Sent: October 19, 2002 11:00 AM
    Subject: [noparse][[/noparse]basicstamps] Safe to Assume?


    Question about "buffered" serial communications.

    I have a serial controlled UHF radio That I want to "talk" to.
    The manual is a bit vague as it is not the EXACT manual for this
    radio but I think in this case it's close enough.

    The radio uses RS-232 to communicate with a host processor.
    Got that working so far. The radio has a 96 character buffer.
    The radio also use CTS/RTS for handshaking. The manual states
    that the handshake goes up when the buffer is 3/4 full and goes
    back down when the buffer is emptied to 1/4 full. The handshake
    does not appear to flip with every character. Question is this.
    If I simply do a loop to read characters one at a time into an
    array will the buffer in the radio "wait" until the stamp does a
    SERIN or is there a possibility the radio will spit out
    characters while I am busy handeling the last character? In
    other words will I get out of sync and if so how should I handle
    this situation to make sure I get all the characters in the
    buffer??

    (Don't ya just love RS-232? <g>?)
    Thanks

    Mike B.


    [noparse][[/noparse]Non-text portions of this message have been removed]


    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-10-19 22:21
    Hi Larry:

    Nope, this is a commerical "data modem" that happens to be in the 420 Mhz
    ham band. There are no operator controls on the radio and I wondering if a
    buffered system just blindly spits out the data and expects you to always be
    ready to recieve the data or not. I only have half the comm link available
    at this time as I haven't built the remote system yet but I wanted to get a
    leg up on the comm portion for the local side. Been trying to come up with
    a way to send a string to the local unit with the other radio. Perhaps
    "Hyper Terminal" connected to the other radio can do it. So far as I can
    tell there Hyper sends each character as it is typed, not much help to test
    what I am try to nail down at this time.

    Any ideas??

    Mike B. W6FFC

    Original Message
    From: "Larry Gaminde" <lgaminde@t...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, October 19, 2002 2:12 PM
    Subject: Re: [noparse][[/noparse]basicstamps] Safe to Assume?


    > Is this for the Icom interface cv? or something like this. I have
    > done some Icom or CV-something interface for the opto-electronic
    > Scout.
    >
    > Larry
    >
    >
    >
    Original Message
    > From: "Mike Blier" <w6ffc@p...>
    > To: "Basic Stamps" <basicstamps@yahoogroups.com>
    > Sent: October 19, 2002 11:00 AM
    > Subject: [noparse][[/noparse]basicstamps] Safe to Assume?
    >
    >
    > Question about "buffered" serial communications.
    >
    > I have a serial controlled UHF radio That I want to "talk" to.
    > The manual is a bit vague as it is not the EXACT manual for this
    > radio but I think in this case it's close enough.
    >
    > The radio uses RS-232 to communicate with a host processor.
    > Got that working so far. The radio has a 96 character buffer.
    > The radio also use CTS/RTS for handshaking. The manual states
    > that the handshake goes up when the buffer is 3/4 full and goes
    > back down when the buffer is emptied to 1/4 full. The handshake
    > does not appear to flip with every character. Question is this.
    > If I simply do a loop to read characters one at a time into an
    > array will the buffer in the radio "wait" until the stamp does a
    > SERIN or is there a possibility the radio will spit out
    > characters while I am busy handeling the last character? In
    > other words will I get out of sync and if so how should I handle
    > this situation to make sure I get all the characters in the
    > buffer??
    >
    > (Don't ya just love RS-232? <g>?)
    > Thanks
    >
    > Mike B.
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > 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/
    >
    >
    >
    >
    > 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.