Shop OBEX P1 Docs P2 Docs Learn Events
help needed please - still serial cable - update — Parallax Forums

help needed please - still serial cable - update

ArchiverArchiver Posts: 46,084
edited 2002-03-17 22:56 in General Discussion
Hi all
sorry for the bombardment of messages but i found something strange
in my circuit.
When the BS2OEM has nothing in its memory, the attachment of the
serial cable CHANGES the values on my pins

Now correct values appear on the pins (voltmeter) with the cable off
(and no program in memory) that is 15 is HIGH, and 14 is low, 13 is
DNC still.
Now when i connect the serial cable (still no program in memory) the
values on the pin14,15 change: PIN 15 is no LOW, and pin14 while
still LOW does not change (go HIGH) as required when a ring arrives.

Could it be a connection problem?
thank you in advance

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-03-15 19:14
    Hi raducu80

    Sounds like the serial cable you are using is either wired with minimal
    wires, has an intermittent wire
    contact (broken wire), or it may be an old video cable instead of a serial
    cable. Try a different cable and see
    if this solves the problem. Make sure it is a serial cable not a old video
    cable, they look the same from the
    outside but are wired differently.

    Have Fun !!
    Dale Fleischmann

    raducu80 wrote:

    > Hi all
    > sorry for the bombardment of messages but i found something strange
    > in my circuit.
    > When the BS2OEM has nothing in its memory, the attachment of the
    > serial cable CHANGES the values on my pins
    >
    > Now correct values appear on the pins (voltmeter) with the cable off
    > (and no program in memory) that is 15 is HIGH, and 14 is low, 13 is
    > DNC still.
    > Now when i connect the serial cable (still no program in memory) the
    > values on the pin14,15 change: PIN 15 is no LOW, and pin14 while
    > still LOW does not change (go HIGH) as required when a ring arrives.
    >
    > Could it be a connection problem?
    > thank you in advance
    >
    > 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-03-15 19:52
    Rado,
    Sorry, I had to find my BS2OEM.
    Have you written a simple routine to determine if the stamp can work with
    your computer in DEBUG mode?
    Something that poles an input and reports that value in a DEBUG statement,
    then loops?

    '{$STAMP BS2}
    x VAR BYTE
    y VAR BYTE
    z VAR BYTE
    readpins
    x=in15:y=in14:z=in13
    pause 5
    debug bin1 x," ",bin1 y,cr
    if x=1 then readpins
    if y=0 then readpins
    debug " DATA=",bin1 z,cr
    goto readpins

    This works fine on my BS2OEM.

    Mike

    At 06:23 PM 3/15/2002 +0000, you wrote:

    >Now correct values appear on the pins (voltmeter) with the cable off
    >(and no program in memory) that is 15 is HIGH, and 14 is low, 13 is
    >DNC still.
    >Now when i connect the serial cable (still no program in memory) the
    >values on the pin14,15 change: PIN 15 is no LOW, and pin14 while
    >still LOW does not change (go HIGH) as required when a ring arrives.
    >
    >Could it be a connection problem?
    >thank you in advance

    _________________________________
    Mike Walsh
    walsh@c...
    California Institute of Technology
    Biology Electronics Shop
    MS 216-76
    Pasadena, CA 91125

    626-395-6825 , FAX 626-584-1654
    237 Beckman Behavioral Biology Bldg.


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-03-15 21:54
    It seems to me you must have a misconnection, a solder bridge, or
    something. If you have a serial break out box (or get one of those
    two-ended DB connectors with jumper wires inside that are common at
    computer stores) it would be interesting to attach one of the 4 DB9
    wires one at a time until the problem shows up. Connect ground first. If
    everything is OK, then connect each or SIN SOUT and ATN until you see
    the problem. That would narrow things down.

    Al Williams
    AWC
    * Floating point math for the Stamp, PIC, SX, or any microcontroller
    http://www.al-williams.com/awce/pak1.htm



    >
    Original Message
    > From: raducu80 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cauXLZiDtA54P3haLkUYvkOzfpf8j3SBZgRP_oeE5WC2D1DXAwESmYUbC_7DT3-7qf0u_obzafvF]raducu80@y...[/url
    > Sent: Friday, March 15, 2002 12:24 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] help needed please - still serial
    > cable - update
    >
    >
    > Hi all
    > sorry for the bombardment of messages but i found something strange
    > in my circuit.
    > When the BS2OEM has nothing in its memory, the attachment of the
    > serial cable CHANGES the values on my pins
    >
    > Now correct values appear on the pins (voltmeter) with the cable off
    > (and no program in memory) that is 15 is HIGH, and 14 is low, 13 is
    > DNC still.
    > Now when i connect the serial cable (still no program in memory) the
    > values on the pin14,15 change: PIN 15 is no LOW, and pin14 while
    > still LOW does not change (go HIGH) as required when a ring arrives.
    >
    > Could it be a connection problem?
    > thank you in advance
    >
    >
    > 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-03-16 20:13
    Hi Mike
    Your program works fine on my bs2
    > '{$STAMP BS2}
    > x VAR BYTE
    > y VAR BYTE
    .....
    However i tried what Al suggested:..connecting the
    serial pins towards the PC one by one. Well i
    connected the gnd....everything was fine, but when i
    connected the Rx-pin2 the changes occured. your
    program indicates this as well
    1 0
    1 0
    0 1 DATA=1 when i plug the phone line in the socket
    with the seerial cable attached.
    I checked all the transistors they behave
    well...connections between them are good (from RN1 to
    RN2)...i'm running out of ideas [noparse]:)[/noparse]
    Radu

    __________________________________________________
    Do You Yahoo!?
    Yahoo! Sports - live college hoops coverage
    http://sports.yahoo.com/
  • ArchiverArchiver Posts: 46,084
    edited 2002-03-17 22:56
    Hi Radu Gheorghe;

    Your problem might be that the transmit and receive lines of the serial cable
    may need to be crossed, or the need
    to be uncrossed, I would look up the serial protocol to to see which is correct.
    I think that they are to be
    crossed as shown in the following diagram;

    ? ________________________________ ?
    Tx _______________ _______________ Rc
    Rc _______________ X _______________ Tx
    Gnd ________________________________ Gnd

    It has been awhile since I had to make a serial cable that I need to look it up
    now if I need to make one.

    Have Fun !!
    Dale Fleischmann


    Radu Gheorghe wrote:

    > Hi Mike
    > Your program works fine on my bs2
    > > '{$STAMP BS2}
    > > x VAR BYTE
    > > y VAR BYTE
    > .....
    > However i tried what Al suggested:..connecting the
    > serial pins towards the PC one by one. Well i
    > connected the gnd....everything was fine, but when i
    > connected the Rx-pin2 the changes occured. your
    > program indicates this as well
    > 1 0
    > 1 0
    > 0 1 DATA=1 when i plug the phone line in the socket
    > with the seerial cable attached.
    > I checked all the transistors they behave
    > well...connections between them are good (from RN1 to
    > RN2)...i'm running out of ideas [noparse]:)[/noparse]
    > Radu
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Yahoo! Sports - live college hoops coverage
    > http://sports.yahoo.com/
    >
    > 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/


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