Shop OBEX P1 Docs P2 Docs Learn Events
Hex Ser Some Question — Parallax Forums

Hex Ser Some Question

ArchiverArchiver Posts: 46,084
edited 2003-04-23 17:20 in General Discussion
Dear All

Thanks for your replies. I have some more question, your replies would really be
valuable for me.

The stamp I am using gets data from one camera(input camera) and has to transmit
the information to another(output camera) after certain calculations.

Now I have conected the Input camera and it works perfectly.My question is can I
used the same serial port(#16) which I use for downloading the program in the
stamp for transmitting data to the Output camera.

I mean after downlading the program intot he stamp I disconnect the serial port
from the PC and connect it to the Output camera

Is this possible

Thanks Once again

waiting eargerly for your reply

Jimmy


Allan Lane <allan.lane@h...> wrote:Yes, this should work as you
intend.

Note 'Hex' may confuse some people. If you
use: SEROUT
, , [noparse][[/noparse]HEX ] then
converted to one or more hex characters
will be output.

If you just output [noparse][[/noparse] $ff ], then the one byte
containing $ff will be output, which I believe
is what you intend.

--- In basicstamps@yahoogroups.com, "jimmy_prett"
wrote:
> Dear All
> I am tryin to get RS 232 signals from the BS2 SX.The stamp will
send
> hexadecimal signals(7 byte size) of the form "FF 01 00 04 20 00 25"
> Can I use the serial port avaiable with education board for this.Do
> have to make any special connections??
> Also will this code work(I mean is it ok if I send the hex message
> like this)
> SerString Var Byte(7)
> SerString(0)=$FF
> SerString(1)=$01
> SerString(2)=$00
> SerString(3)=$04
> SerString(4)=$20
> SerString(5)=$00
> SerString(6)=$25
> SEROUT 16, 240, [noparse][[/noparse]STR SerString\7]
> I would be really grateful if any of you could help me
> Best
> Jimmy


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/




Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-04-23 17:20
    Yes, you can connect the BS2's serial
    port to the 'output' camera.

    Some caveats, though.
    The BS2 serial port uses the attached device's
    TX line to provide voltage for its RX-Out
    transistor. (BS2 drives the DB-9 Rx pin,
    so you can use a straight through cable).

    As long as the camera you attach the
    cable to is driving its TX line, this should
    work. Of course, you have to match baud
    rates and modes (when using BS2 built-in
    serial, you need to select 'Inverted' mode)

    Note also that the BS2 is a single-threaded
    beast -- so it can't 'listen' to one port
    while transmitting on the other. You may
    have to do something to guarantee that
    the 'input camera' does not talk while the
    BS2 is talking to the 'output camera'.

    --- In basicstamps@yahoogroups.com, JIMMY GILL <jimmy_prett@y...>
    wrote:
    >
    > Dear All
    >
    > Thanks for your replies. I have some more question, your replies
    would really be valuable for me.
    >
    > The stamp I am using gets data from one camera(input camera) and
    has to transmit the information to another(output camera) after
    certain calculations.
    >
    > Now I have conected the Input camera and it works perfectly.My
    question is can I used the same serial port(#16) which I use for
    downloading the program in the stamp for transmitting data to the
    Output camera.
    >
    > I mean after downlading the program intot he stamp I disconnect the
    serial port from the PC and connect it to the Output camera
    >
    > Is this possible
    >
    > Thanks Once again
    >
    > waiting eargerly for your reply
    >
    > Jimmy
    >
    >
    > Allan Lane <allan.lane@h...> wrote:Yes, this should work as you
    intend.
    >
    > Note 'Hex' may confuse some people. If you
    > use: SEROUT
    > , , [noparse][[/noparse]HEX ] then
    > converted to one or more hex characters
    > will be output.
    >
    > If you just output [noparse][[/noparse] $ff ], then the one byte
    > containing $ff will be output, which I believe
    > is what you intend.
    >
    > --- In basicstamps@yahoogroups.com, "jimmy_prett"
    > wrote:
    > > Dear All
    > > I am tryin to get RS 232 signals from the BS2 SX.The stamp will
    > send
    > > hexadecimal signals(7 byte size) of the form "FF 01 00 04 20 00
    25"
    > > Can I use the serial port avaiable with education board for
    this.Do
    > > have to make any special connections??
    > > Also will this code work(I mean is it ok if I send the hex
    message
    > > like this)
    > > SerString Var Byte(7)
    > > SerString(0)=$FF
    > > SerString(1)=$01
    > > SerString(2)=$00
    > > SerString(3)=$04
    > > SerString(4)=$20
    > > SerString(5)=$00
    > > SerString(6)=$25
    > > SEROUT 16, 240, [noparse][[/noparse]STR SerString\7]
    > > I would be really grateful if any of you could help me
    > > Best
    > > Jimmy
    >
    >
    > 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/
    >
    >
    >
    >
    >
    > Do you Yahoo!?
    > The New Yahoo! Search - Faster. Easier. Bingo.
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.