Shop OBEX P1 Docs P2 Docs Learn Events
Visual Basic interface Stamps — Parallax Forums

Visual Basic interface Stamps

ArchiverArchiver Posts: 46,084
edited 2003-07-11 20:41 in General Discussion
Hello all I have been doing extensive research on a VB interface to stamp I am
building a simple Driving simulator with 6 inputs need to take it into vb and
convert it using text1.text I was wondering do I need as max 232 to do this and
A link to some sample code it seems that to the best of my knowledge there is
not much documentation for the VB interface I have ordered books on VB and rs
232 but it only gives info on modem apps
I recently used a bs2 to dial a pager system and output an alpha message that
was kool.
very simple but need help with where to purchase VB interface to stamp or pic
anything any help would be appreciated. thanks jim HAPPY STAMPING.


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-07-08 04:25
    I wrote an article for Nuts & Volts on BS2-to-VB comms. It uses a
    standard MAX-232 inverter, and the code uses flow control so the Stamp
    can control when data flows back and forth. You can find the article
    (in PDF form) on the Parallax web site.

    Downloads >> Nuts & Volts Columns >> Volume 3 >> Column 89 : Data
    Exchange with Visual BASIC

    I used Al Williams' RS-I to make connections convenient.

    -- Jon Williams
    -- Parallax


    Original Message
    From: frog28043 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=rnQxpzu771Gf1xvWSt8N_KA33GZDeNnD-G2vq71efekVb-wZsRwYIXWYXbl_GUwZNOn_sL5SMb8E4Qw]frog28043@y...[/url
    Sent: Monday, July 07, 2003 9:33 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Visual Basic interface Stamps


    Hello all I have been doing extensive research on a VB interface to
    stamp I am building a simple Driving simulator with 6 inputs need to
    take it into vb and convert it using text1.text I was wondering do I
    need as max 232 to do this and A link to some sample code it seems that
    to the best of my knowledge there is not much documentation for the VB
    interface I have ordered books on VB and rs 232 but it only gives info
    on modem apps I recently used a bs2 to dial a pager system and output an
    alpha message that was kool.
    very simple but need help with where to purchase VB interface to stamp
    or pic anything any help would be appreciated. thanks jim HAPPY
    STAMPING.


    Do you Yahoo!?
    SBC Yahoo! DSL - Now only $29.95 per month!

    [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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-08 18:20
    You should be able to use the built-in DB9
    on the Stamp Board Of Education -- the
    BS2 has an on-chip pseudo-232 driver.

    On the stamp, send data as:

    MyData VAR BYTE
    I9600 CON 240 + 16384

    SEROUT P16, I9600, [noparse][[/noparse]MyData]

    --- In basicstamps@yahoogroups.com, frog28043 <frog28043@y...> wrote:
    > Hello all I have been doing extensive research on a VB interface to
    stamp I am building a simple Driving simulator with 6 inputs need to
    take it into vb and convert it using text1.text I was wondering do I
    need as max 232 to do this and A link to some sample code it seems
    that to the best of my knowledge there is not much documentation for
    the VB interface I have ordered books on VB and rs 232 but it only
    gives info on modem apps
    > I recently used a bs2 to dial a pager system and output an alpha
    message that was kool.
    > very simple but need help with where to purchase VB interface to
    stamp or pic anything any help would be appreciated. thanks jim
    HAPPY STAMPING.
    >
    >
    >
    > Do you Yahoo!?
    > SBC Yahoo! DSL - Now only $29.95 per month!
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-10 22:15
    Thanks for all the input I loaded a know good program and still no luck it
    turns out that it was my fault I was using a development board and I need to
    disc the programming pin in order for it to communicate with the vb rs232 line
    my fault went back to the serial programs and they worked I feel stupid!!!!!!!!!
    to spend that much time you see on a terminal program I can see the port and
    input dont know why but can when using vb if the program pin is left connected
    can't will need to research this one probably very simple answer. thanks for all
    your help guys.

    Allan Lane <allan.lane@h...> wrote:You should be able to use the
    built-in DB9
    on the Stamp Board Of Education -- the
    BS2 has an on-chip pseudo-232 driver.

    On the stamp, send data as:

    MyData VAR BYTE
    I9600 CON 240 + 16384

    SEROUT P16, I9600, [noparse][[/noparse]MyData]

    --- In basicstamps@yahoogroups.com, frog28043 wrote:
    > Hello all I have been doing extensive research on a VB interface to
    stamp I am building a simple Driving simulator with 6 inputs need to
    take it into vb and convert it using text1.text I was wondering do I
    need as max 232 to do this and A link to some sample code it seems
    that to the best of my knowledge there is not much documentation for
    the VB interface I have ordered books on VB and rs 232 but it only
    gives info on modem apps
    > I recently used a bs2 to dial a pager system and output an alpha
    message that was kool.
    > very simple but need help with where to purchase VB interface to
    stamp or pic anything any help would be appreciated. thanks jim
    HAPPY STAMPING.
    >
    >
    >
    > Do you Yahoo!?
    > SBC Yahoo! DSL - Now only $29.95 per month!
    >
    > [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/




    Do you Yahoo!?
    SBC Yahoo! DSL - Now only $29.95 per month!

    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-10 22:28
    Yes, very simple answer. The DTR signal must be
    turned 'off' in VB. This signal is used by the
    BS2 as a 'RESET' when it goes 'active'. 'active'
    is the default way VB brings it up.

    If you say: MSCOMM.DTREnable = FALSE before you
    do MSCOMM.PortOpen = TRUE, then the DTR line will
    not reset the Stamp, and you can run your program.
    OR:
    Simple Tx Use:
    Comm.CommPort = 1 ' Using 'COM1' port
    Comm.DTREnable = FALSE
    Comm.PortOpen = TRUE ' Opens port.
    Buffer = CHR$(Value)
    Comm.Output = Buffer


    --- In basicstamps@yahoogroups.com, frog28043 <frog28043@y...> wrote:
    > Thanks for all the input I loaded a know good program and still
    no luck it turns out that it was my fault I was using a development
    board and I need to disc the programming pin in order for it to
    communicate with the vb rs232 line my fault went back to the serial
    programs and they worked I feel stupid!!!!!!!!! to spend that much
    time you see on a terminal program I can see the port and input dont
    know why but can when using vb if the program pin is left connected
    can't will need to research this one probably very simple answer.
    thanks for all your help guys.
    >
    > Allan Lane <allan.lane@h...> wrote:You should be able to use the
    built-in DB9
    > on the Stamp Board Of Education -- the
    > BS2 has an on-chip pseudo-232 driver.
    >
    > On the stamp, send data as:
    >
    > MyData VAR BYTE
    > I9600 CON 240 + 16384
    >
    > SEROUT P16, I9600, [noparse][[/noparse]MyData]
    >
    > --- In basicstamps@yahoogroups.com, frog28043 wrote:
    > > Hello all I have been doing extensive research on a VB interface
    to
    > stamp I am building a simple Driving simulator with 6 inputs need
    to
    > take it into vb and convert it using text1.text I was wondering do
    I
    > need as max 232 to do this and A link to some sample code it seems
    > that to the best of my knowledge there is not much documentation
    for
    > the VB interface I have ordered books on VB and rs 232 but it only
    > gives info on modem apps
    > > I recently used a bs2 to dial a pager system and output an alpha
    > message that was kool.
    > > very simple but need help with where to purchase VB interface to
    > stamp or pic anything any help would be appreciated. thanks jim
    > HAPPY STAMPING.
    > >
    > >
    > >
    > > Do you Yahoo!?
    > > SBC Yahoo! DSL - Now only $29.95 per month!
    > >
    > > [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/
    >
    >
    >
    >
    >
    > Do you Yahoo!?
    > SBC Yahoo! DSL - Now only $29.95 per month!
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-11 20:41
    From Frog thanks Allan I tried it in my code now it works great no more
    removing the pin connect thanks.

    Allan Lane <allan.lane@h...> wrote:Yes, very simple answer. The DTR
    signal must be
    turned 'off' in VB. This signal is used by the
    BS2 as a 'RESET' when it goes 'active'. 'active'
    is the default way VB brings it up.

    If you say: MSCOMM.DTREnable = FALSE before you
    do MSCOMM.PortOpen = TRUE, then the DTR line will
    not reset the Stamp, and you can run your program.
    OR:
    Simple Tx Use:
    Comm.CommPort = 1 ' Using 'COM1' port
    Comm.DTREnable = FALSE
    Comm.PortOpen = TRUE ' Opens port.
    Buffer = CHR$(Value)
    Comm.Output = Buffer


    --- In basicstamps@yahoogroups.com, frog28043 wrote:
    > Thanks for all the input I loaded a know good program and still
    no luck it turns out that it was my fault I was using a development
    board and I need to disc the programming pin in order for it to
    communicate with the vb rs232 line my fault went back to the serial
    programs and they worked I feel stupid!!!!!!!!! to spend that much
    time you see on a terminal program I can see the port and input dont
    know why but can when using vb if the program pin is left connected
    can't will need to research this one probably very simple answer.
    thanks for all your help guys.
    >
    > Allan Lane wrote:You should be able to use the
    built-in DB9
    > on the Stamp Board Of Education -- the
    > BS2 has an on-chip pseudo-232 driver.
    >
    > On the stamp, send data as:
    >
    > MyData VAR BYTE
    > I9600 CON 240 + 16384
    >
    > SEROUT P16, I9600, [noparse][[/noparse]MyData]
    >
    > --- In basicstamps@yahoogroups.com, frog28043 wrote:
    > > Hello all I have been doing extensive research on a VB interface
    to
    > stamp I am building a simple Driving simulator with 6 inputs need
    to
    > take it into vb and convert it using text1.text I was wondering do
    I
    > need as max 232 to do this and A link to some sample code it seems
    > that to the best of my knowledge there is not much documentation
    for
    > the VB interface I have ordered books on VB and rs 232 but it only
    > gives info on modem apps
    > > I recently used a bs2 to dial a pager system and output an alpha
    > message that was kool.
    > > very simple but need help with where to purchase VB interface to
    > stamp or pic anything any help would be appreciated. thanks jim
    > HAPPY STAMPING.
    > >
    > >
    > >
    > > Do you Yahoo!?
    > > SBC Yahoo! DSL - Now only $29.95 per month!
    > >
    > > [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/
    >
    >
    >
    >
    >
    > Do you Yahoo!?
    > SBC Yahoo! DSL - Now only $29.95 per month!
    >
    > [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/




    Do you Yahoo!?
    SBC Yahoo! DSL - Now only $29.95 per month!

    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.