Shop OBEX P1 Docs P2 Docs Learn Events
Serout — Parallax Forums

Serout

ArchiverArchiver Posts: 46,084
edited 2001-09-09 17:26 in General Discussion
I'm trying to send text strings out the serial port of the BSII.
I am able to send single characters to DCE equipment, but I am unable
to send text strings to DTE equipment. I've disconected the ATN line
on the carrier board, but still no data.

Any suggestions?

Todd

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-08-10 01:35
    Hi,

    Normally DTE and DCE equipment have their TX/RX pins (2 and 3) swapped.
    Check your cabling documentation..

    Greetings peter


    Oorspronkelijk bericht
    Van: Todd Goetze [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=NpeI1X0UQlYKaBqSSTG2IS3Am2c35yMx-8dTl_O1XKiqcglFirh4ohL9ZDwgeWpznQ_S3ViSkEIyOkI]todd_goetze@y...[/url
    Verzonden: vrijdag 10 augustus 2001 01:10
    Aan: basicstamps@yahoogroups.com
    Onderwerp: [noparse][[/noparse]basicstamps] Serout

    I'm trying to send text strings out the serial port of the BSII.
    I am able to send single characters to DCE equipment, but I am unable
    to send text strings to DTE equipment. I've disconected the ATN line
    on the carrier board, but still no data.

    Any suggestions?

    Todd



    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 2001-08-10 02:27
    All of that DTE / DCE stuff confuses me -- here are a few things that come
    to mind that may be of use.

    The transmit and receive lines on a cable to connect a 25-pin serial port to
    a 25-pin modem do not cross.
    The transmit and receive lines on a 25-pin to 25-pin null cable do cross.

    The transmit and receive lines on a cable to connect a 9-pin serial port to
    a 25-pin modem do cross.
    The transmit and receive lines on a 9-pin to 25-pin null cable do not cross.

    If I remember right, the rules for the 25-pin to 25-pin cables stated above
    also apply to a 9-pin to 9-pin cable.

    Adapters used to connect a 9-pin mouse to a 25-pin serial cable rarely have
    all the connections necessary to use them for anything other than the mouse.

    Original Message

    > Normally DTE and DCE equipment have their TX/RX pins (2 and 3) swapped.
    > Check your cabling documentation..

    > I'm trying to send text strings out the serial port of the BSII.
    > I am able to send single characters to DCE equipment, but I am unable
    > to send text strings to DTE equipment. I've disconected the ATN line
    > on the carrier board, but still no data.
  • ArchiverArchiver Posts: 46,084
    edited 2001-08-10 16:53
    My first message was a bit vague. The problem is not cabling because
    I am getting communications. The problem is when I send a text
    string all I receive is a NULL character from the stamp. I've tried
    sending one character at a time and several other methods. Still all
    I get are NULLs.

    Please Help.
    Todd

    --- In basicstamps@y..., "Peter Verkaik" <peterverkaik@b...> wrote:
    > Hi,
    >
    > Normally DTE and DCE equipment have their TX/RX pins (2 and 3)
    swapped.
    > Check your cabling documentation..
    >
    > Greetings peter
    >
    >
    >
    Oorspronkelijk bericht
    > Van: Todd Goetze [noparse][[/noparse]mailto:todd_goetze@y...]
    > Verzonden: vrijdag 10 augustus 2001 01:10
    > Aan: basicstamps@y...
    > Onderwerp: [noparse][[/noparse]basicstamps] Serout
    >
    > I'm trying to send text strings out the serial port of the BSII.
    > I am able to send single characters to DCE equipment, but I am
    unable
    > to send text strings to DTE equipment. I've disconected the ATN
    line
    > on the carrier board, but still no data.
    >
    > Any suggestions?
    >
    > Todd
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@y...
    > 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 2001-08-10 17:43
    Hi,

    Have you tried/checked lower baudrates yet. At some equipment
    that use software decoding a too high baudrate causes them
    to miss transients. A 1200 baud setting always should work.

    Greetings peter


    Oorspronkelijk bericht
    Van: Todd Goetze [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=7dTprP4wdunCYy4VZvVNIYva9GVYTj8bRjjKjDC_zsdtQqR4L9C9a1BrwtHm4gTejJcLa49e19grpn15nRM]todd_goetze@y...[/url
    Verzonden: vrijdag 10 augustus 2001 16:53
    Aan: basicstamps@yahoogroups.com
    Onderwerp: [noparse][[/noparse]basicstamps] Re: Serout

    My first message was a bit vague. The problem is not cabling because
    I am getting communications. The problem is when I send a text
    string all I receive is a NULL character from the stamp. I've tried
    sending one character at a time and several other methods. Still all
    I get are NULLs.

    Please Help.
    Todd

    --- In basicstamps@y..., "Peter Verkaik" <peterverkaik@b...> wrote:
    > Hi,
    >
    > Normally DTE and DCE equipment have their TX/RX pins (2 and 3)
    swapped.
    > Check your cabling documentation..
    >
    > Greetings peter
    >
    >
    >
    Oorspronkelijk bericht
    > Van: Todd Goetze [noparse][[/noparse]mailto:todd_goetze@y...]
    > Verzonden: vrijdag 10 augustus 2001 01:10
    > Aan: basicstamps@y...
    > Onderwerp: [noparse][[/noparse]basicstamps] Serout
    >
    > I'm trying to send text strings out the serial port of the BSII.
    > I am able to send single characters to DCE equipment, but I am
    unable
    > to send text strings to DTE equipment. I've disconected the ATN
    line
    > on the carrier board, but still no data.
    >
    > Any suggestions?
    >
    > Todd
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@y...
    > 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/
  • ArchiverArchiver Posts: 46,084
    edited 2001-09-09 00:03
    > SEROUT 1,17405,[noparse][[/noparse]65]

    This specifies I/O 1 and a baud rate of 2400--won't work.

    To send data back to your PC, use the DEBUG command or send via I/O
    16 at 9600 baud:

    DEBUG 65 ' dec 65 = hex 41 = ASC 'A'
    or
    SEROUT 16,16624,[noparse][[/noparse]65]

    See BASIC Stamp Programming Manual 2.0 pages 97 and 297.


    Regards,

    Steve
  • ArchiverArchiver Posts: 46,084
    edited 2001-09-09 06:48
    I have just started trying to learn the SEROUT command. When I
    download the simple program:

    SEROUT 1,17405,[noparse][[/noparse]65]

    to my BS2SX, should it give an output to the debug terminal? If so,
    something is wrong b/c I don't see anything.
  • ArchiverArchiver Posts: 46,084
    edited 2001-09-09 06:54
    This would send the data out Pin #1. You can send this data to the debug
    terminal by using Pin
    #16.

    Jared


    --- pstrittmatter@y... wrote:
    > I have just started trying to learn the SEROUT command. When I
    > download the simple program:
    >
    > SEROUT 1,17405,[noparse][[/noparse]65]
    >
    > to my BS2SX, should it give an output to the debug terminal? If so,
    > something is wrong b/c I don't see anything.
    >
    >
    > 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/
    >
    >


    =====
    electrolinx - http://www.geocities.com/SiliconValley/File/2400/

    __________________________________________________
    Do You Yahoo!?
    Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
    http://im.yahoo.com
  • ArchiverArchiver Posts: 46,084
    edited 2001-09-09 14:32
    I tried that too and still nothing. I have the debug window set to
    the right baud rate and everything so I'm not sure what the problem
    is.



    --- In basicstamps@y..., Jared Hoylman <electrolinx@y...> wrote:
    > This would send the data out Pin #1. You can send this data to the
    debug terminal by using Pin
    > #16.
    >
    > Jared
    >
    >
    > --- pstrittmatter@y... wrote:
    > > I have just started trying to learn the SEROUT command. When I
    > > download the simple program:
    > >
    > > SEROUT 1,17405,[noparse][[/noparse]65]
    > >
    > > to my BS2SX, should it give an output to the debug terminal? If
    so,
    > > something is wrong b/c I don't see anything.
    > >
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@y...
    > > 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/
    > >
    > >
    >
    >
    > =====
    > electrolinx - http://www.geocities.com/SiliconValley/File/2400/
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Get email alerts & NEW webcam video instant messaging with Yahoo!
    Messenger
    > http://im.yahoo.com
  • ArchiverArchiver Posts: 46,084
    edited 2001-09-09 17:26
    That worked, thanks. Why does the baud have to be at 9600?


    --- In basicstamps@y..., "S Parkis" <parkiss@e...> wrote:
    > > SEROUT 1,17405,[noparse][[/noparse]65]
    >
    > This specifies I/O 1 and a baud rate of 2400--won't work.
    >
    > To send data back to your PC, use the DEBUG command or send via I/O
    > 16 at 9600 baud:
    >
    > DEBUG 65 ' dec 65 = hex 41 = ASC 'A'
    > or
    > SEROUT 16,16624,[noparse][[/noparse]65]
    >
    > See BASIC Stamp Programming Manual 2.0 pages 97 and 297.
    >
    >
    > Regards,
    >
    > Steve
Sign In or Register to comment.