Shop OBEX P1 Docs P2 Docs Learn Events
Serin -serout — Parallax Forums

Serin -serout

ArchiverArchiver Posts: 46,084
edited 2000-04-06 15:03 in General Discussion
Hi All -
I get so frustrated using serin,serout with modifiers. I guess cause I don't
have a good knowledge of how they work. I'm sending 2 pieces of information
by RF from one BS2 to another. Here's my code fragment for the sender:
data1 var word
result var word
start:
data1 = "A"
result = 999/3
SEROUT 7,84,[noparse][[/noparse]data1," ",DEC result]
pause 1000
goto start

And this is on the receiving end:
data1 var word
result var word
start:
serin 8,84,1000,start,[noparse][[/noparse]data1,dec result]
if data1 <> "A" then start
debug data1
debug result
goto start

I get the right value for result but not for data1. Can someone tell me what
I am doing wrong?

Jerry

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-04-06 01:03
    could somebody please help me to get off this list. I have tried responding to
    that subscription verficiation thing several times but it doesn't work. I just
    can't work with emails arriving every minute! Suggestions of who to contact
    directly would be most appreciated!

    thanks,
    Matt.

    *******************Internet Email Confidentiality Footer*******************


    Privileged/Confidential Information may be contained in this message. If you
    are not the addressee indicated in this message (or responsible for delivery of
    the message to such person), you may not copy or deliver this message to anyone.
    In such case, you should destroy this message and kindly notify the sender by
    reply email. Please advise immediately if you or your employer do not consent to
    Internet email for messages of this kind. Opinions, conclusions and other
    information in this message that do not relate to the official business of my
    firm shall be understood as neither given nor endorsed by it.
  • ArchiverArchiver Posts: 46,084
    edited 2000-04-06 03:30
    Jerry:
    What do you get for data1, and is it always the same answer?

    Ray McArthur

    Original Message
    From: <CGIJERRY@A...>
    To: <basicstamps@egroups.com>
    Sent: Wednesday, April 05, 2000 8:00 PM
    Subject: [noparse][[/noparse]basicstamps] Re: SERIN -SEROUT


    > Hi All -
    > I get so frustrated using serin,serout with modifiers. I guess cause I
    don't
    > have a good knowledge of how they work. I'm sending 2 pieces of
    information
    > by RF from one BS2 to another. Here's my code fragment for the sender:
    > data1 var word
    > result var word
    > start:
    > data1 = "A"
    > result = 999/3
    > SEROUT 7,84,[noparse][[/noparse]data1," ",DEC result]
    > pause 1000
    > goto start
    >
    > And this is on the receiving end:
    > data1 var word
    > result var word
    > start:
    > serin 8,84,1000,start,[noparse][[/noparse]data1,dec result]
    > if data1 <> "A" then start
    > debug data1
    > debug result
    > goto start
    >
    > I get the right value for result but not for data1. Can someone tell me
    what
    > I am doing wrong?
    >
    > Jerry
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-04-06 03:32
    >I get so frustrated using serin,serout with modifiers
    I found my problem. I had the transmit module from my outside robot sitting on
    the desk next to the receiver while programming the bs2's. Evidently the
    transmitter was blanking the receiver somewhat so I was never able to get the
    correct results. After moving the tx into the hallway it worked fine. I still
    need to learn more about the modifiers though...
    Jerry...
  • ArchiverArchiver Posts: 46,084
    edited 2000-04-06 05:29
    At 08:00 PM 4/5/00 EDT, CGIJERRY@A... promulgated:
    >Hi All -
    >I get so frustrated using serin,serout with modifiers. I guess cause I don't
    >have a good knowledge of how they work. I'm sending 2 pieces of information
    >by RF from one BS2 to another. Here's my code fragment for the sender:
    >data1 var word
    >result var word
    >start:
    >data1 = "A"
    >result = 999/3
    > SEROUT 7,84,[noparse][[/noparse]data1," ",DEC result]
    >pause 1000
    >goto start
    >
    >And this is on the receiving end:
    >data1 var word
    >result var word
    >start:
    > serin 8,84,1000,start,[noparse][[/noparse]data1,dec result]
    >if data1 <> "A" then start
    >debug data1
    >debug result
    >goto start
    >
    >I get the right value for result but not for data1. Can someone tell me what
    >I am doing wrong?
    >

    It may have to do with your expectations.
    What do you EXPECT will be in datal, and why ?

    >Jerry
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-04-06 13:02
    In a message dated 4/6/00 12:37:52 AM Eastern Daylight Time,
    bvbates@u... writes:

    > It may have to do with your expectations.
    > What do you EXPECT will be in datal, and why ?
    >
    Hi Bruce,
    I'm sending an "A" and hopefully I get an "A" or "65" on the receiving end. I
    was getting all sorts of numbers or weird characters. As I mentioned I
    believe the transmitter was too close to the receiver and getting garbage.
    Normally the transmitter is outside but for programming the BS2 I had both
    sitting on my desk. I started getting the expected value after I moved the
    two apart about 10'. I have 4 BS2's hooked together, 3 wired and 1 wireless
    and the serin and serout and timing has been my biggest headache and I still
    don't have the them working the way I want them to work...

    Jerry...
  • ArchiverArchiver Posts: 46,084
    edited 2000-04-06 15:03
    At 08:02 AM 4/6/00 EDT, CGIJERRY@A... promulgated:
    >In a message dated 4/6/00 12:37:52 AM Eastern Daylight Time,
    >bvbates@u... writes:
    >
    >> It may have to do with your expectations.
    >> What do you EXPECT will be in datal, and why ?
    >>
    >Hi Bruce,
    >I'm sending an "A" and hopefully I get an "A" or "65" on the receiving
    end. I
    >was getting all sorts of numbers or weird characters. As I mentioned I
    >believe the transmitter was too close to the receiver and getting garbage.
    >Normally the transmitter is outside but for programming the BS2 I had both
    >sitting on my desk. I started getting the expected value after I moved the
    >two apart about 10'. I have 4 BS2's hooked together, 3 wired and 1 wireless
    >and the serin and serout and timing has been my biggest headache and I still
    >don't have the them working the way I want them to work...
    >
    >Jerry...

    Jerry -

    Gotcha - I responded before your later post ("later" by my subsequent
    receipt).

    UNBELIEVABLE delays on the List Server sometimes, and
    other times this thing is like the crack of whip !

    Regards,

    Bruce

    >
    >
    >
    >
Sign In or Register to comment.