Shop OBEX P1 Docs P2 Docs Learn Events
Digest Number 1478 — Parallax Forums

Digest Number 1478

ArchiverArchiver Posts: 46,084
edited 2003-01-22 17:03 in General Discussion
--- basicstamps@yahoogroups.com wrote:
> 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.
>
>
>
> There are 25 messages in this issue.
>
> Topics in this digest:
>
> 1. serin / wait problem...
> From: "Chris Anderson"
> <fuel@b...>
> 2. Re: serin / wait problem...
> From: Bruce Bates
> <bvbates@u...>
> 3. Re: serin / wait problem...
> From: "Chris Anderson"
> <fuel@b...>
> 4. Diode
> From: Newzed@a...
> 5. RE: Diode
> From: "Jim Forkin" <jjf@p...>
> 6. Re: Diode
> From: Newzed@a...
> 7. Battery Backup Question
> From: "Chris Savage"
> <knight_designs@y...>
> 8. Re: serin / wait problem...
> From: Tracy Allen <tracy@e...>
> 9. Re: Battery Backup Question
> From: Tracy Allen <tracy@e...>
> 10. Help, New at Rev D
> From: "jkrze" <jkrzemin@h...>
> 11. Re: Battery Backup Question
> From: azeasi@a...
> 12. Re: USB programming cable
> From: azeasi@a...
> 13. Re: Battery Backup Question
> From: Chris Savage
> <knight_designs@y...>
> 14. AW: Battery Backup Question
> From: "ulibasic"
> <ulibasic@r...>
> 15. Re: Battery Backup Question
> From: Chris Savage
> <knight_designs@y...>
> 16. Re: Battery Backup Question
> From: "Chris Savage"
> <knight_designs@y...>
> 17. Re: USB programming cable
> From: Ben <ben@l...>
> 18. RE: Battery Backup Question
> From: "Tim Tapio" <tim@t...>
> 19. virus in message from David Peterson
> From: "peter verkaik"
> <peterverkaik@b...>
> 20. Re: Diode
> From: "Neil Excel Representative"
> <excelneil@m...>
> 21. Re: serin / wait problem...
> From: "Chris Anderson"
> <fuel@b...>
> 22. Re: virus in message from David Peterson
> From: Rodent <daweasel@s...>
> 23. BS2P40
> From: "max powell" <mpowell@t...>
> 24. Logic families around the BS.
> From: "Alberto Calderara"
> <albertocalderara@t...>
> 25. Re: virus in message from David Peterson
> From: Jim Higgins <HigginsJ@s...>
>
>
>
________________________________________________________________________
>
________________________________________________________________________
>
> Message: 1
> Date: Mon, 11 Nov 2002 20:28:05 +0800
> From: "Chris Anderson" <fuel@b...>
> Subject: serin / wait problem...
>
> Hello fellow stampers...
> I'm using bs2sx...
> I have a situaltion where I am using the serin and
> "wait" command to control
> program flow depending on data received. If I
> receive "ab" I want one
> option, and if I receive anything else I want
> another option.
> The "wait" command doesnt seem to work properly if
> you use a timeout time
> and label, as shown below...
>
> serin serinpin,baud,1000,nodata,[noparse][[/noparse]wait
> ("ab"),databyte]
> do something if "ab" comes in
> nodata:
> do something if "ab" not received after timeout
> period
>
>
> I thought it should wait for the timeout period, and
> if "ab" is not
> received, then go to the "nodata" label. It seems
> that if any data comes at
> all, it will act as though "ab" has been received.
> The only way to get it to
> go to the "nodata" label is to stop the stamp
> receiving data on the serin
> pin.
>
> Any thoughts would be appreciated..
>
> Best regards, and thanks in advance if you can help,
> Chris
> Australind
> Western Australia
>
>
>
>
________________________________________________________________________
>
________________________________________________________________________
>
> Message: 2
> Date: Mon, 11 Nov 2002 07:50:39 -0500
> From: Bruce Bates <bvbates@u...>
> Subject: Re: serin / wait problem...
>
> At 08:28 PM 11/11/2002 +0800, you wrote:
> >Hello fellow stampers...
> >I'm using bs2sx...
> >I have a situaltion where I am using the serin and
> "wait" command to control
> >program flow depending on data received. If I
> receive "ab" I want one
> >option, and if I receive anything else I want
> another option.
> >The "wait" command doesnt seem to work properly if
> you use a timeout time
> >and label, as shown below...
> >
> >serin serinpin,baud,1000,nodata,[noparse][[/noparse]wait
> ("ab"),databyte]
> > do something if "ab" comes in
> >nodata:
> > do something if "ab" not received after
> timeout period
> >
> >
> >I thought it should wait for the timeout period,
> and if "ab" is not
> >received, then go to the "nodata" label. It seems
> that if any data comes at
> >all, it will act as though "ab" has been received.
> The only way to get it to
> >go to the "nodata" label is to stop the stamp
> receiving data on the serin
> >pin.
> >
> >Any thoughts would be appreciated..
> >
> >Best regards, and thanks in advance if you can
> help,
> >Chris
> >Australind
> >Western Australia
> Hi Chris -
>
> The TIMEOUT parameter is exactly what it says it is,
> and no more. It's not a
> "NOT FOUND" facility, although in some circumstances
> it may act that way.
>
> Is there some reason why you can't just read in the
> data with no WAIT
> parameter and check the incoming data for whatever
> characters you wish to
> process, and loop back to the SERIN if you didn't
> get what you want ?
>
> Regards,
>
> Bruce Bates
>
>
>
>
> >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/
>
>
>
=== message truncated ===


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Sign In or Register to comment.