Serin and debugin
Hi, I am trying to read information from a PC using pin 1 on a
bs2. I know that the baud rate from the PC is 9600. I tried using
both serin and debugin to read these commands and display it on the
debug screen. I can't get any information to come up. I took
commands from the editor help menu but that didn't help either. Can
anyone point me in the right direction?
Thanks in advance,
Chris
bs2. I know that the baud rate from the PC is 9600. I tried using
both serin and debugin to read these commands and display it on the
debug screen. I can't get any information to come up. I took
commands from the editor help menu but that didn't help either. Can
anyone point me in the right direction?
Thanks in advance,
Chris
Comments
CHRIS@R... writes:
> Hi, I am trying to read information from a PC using pin 1 on a
> bs2. I know that the baud rate from the PC is 9600. I tried using
> both serin and debugin to read these commands and display it on the
> debug screen. I can't get any information to come up. I took
> commands from the editor help menu but that didn't help either. Can
> anyone point me in the right direction?
>
> Thanks in advance,
>
Make sure your degug screen is set to the same Com port and baud rate as your
Stamp.
Sid Weaver
W4EKQ
Port Richey, FL
[noparse][[/noparse]Non-text portions of this message have been removed]
MAIN:
SERIN 16, 54 + $4000, [noparse][[/noparse]MyData]
SEROUT 16, 54 + $4000, [noparse][[/noparse]DEC MyData]
GOTO MAIN
The above should work. You'll have to
bring up the 'Terminal' at 9600 baud.
The program will 'hang' on the SERIN,
and then proceed to output the decimal
value of what you put in when you hit
'return'.
The '54' should be the 'baud selector' value,
and the $4000 is 'Invert', which you should use
when having a 232 driver in-circuit.
--- In basicstamps@yahoogroups.com, "christopher41877" <CHRIS@R...>
wrote:
> Hi, I am trying to read information from a PC using pin 1 on a
> bs2. I know that the baud rate from the PC is 9600. I tried using
> both serin and debugin to read these commands and display it on the
> debug screen. I can't get any information to come up. I took
> commands from the editor help menu but that didn't help either.
Can
> anyone point me in the right direction?
>
> Thanks in advance,
>
> Chris
index. It will only display charecters when I press keys on my
keyboard. Any other ideas?
Thanks
--- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
wrote:
> MyData VAR BYTE
> MAIN:
> SERIN 16, 54 + $4000, [noparse][[/noparse]MyData]
> SEROUT 16, 54 + $4000, [noparse][[/noparse]DEC MyData]
> GOTO MAIN
>
> The above should work. You'll have to
> bring up the 'Terminal' at 9600 baud.
> The program will 'hang' on the SERIN,
> and then proceed to output the decimal
> value of what you put in when you hit
> 'return'.
>
> The '54' should be the 'baud selector' value,
> and the $4000 is 'Invert', which you should use
> when having a 232 driver in-circuit.
>
> --- In basicstamps@yahoogroups.com, "christopher41877"
<CHRIS@R...>
> wrote:
> > Hi, I am trying to read information from a PC using pin 1 on a
> > bs2. I know that the baud rate from the PC is 9600. I tried
using
> > both serin and debugin to read these commands and display it on
the
> > debug screen. I can't get any information to come up. I took
> > commands from the editor help menu but that didn't help either.
> Can
> > anyone point me in the right direction?
> >
> > Thanks in advance,
> >
> > Chris
>I tried this code and it does the same thing as the one in the help
>index. It will only display charecters when I press keys on my
>keyboard. Any other ideas?
>
>Thanks
What were you expecting it to do ?
>--- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
>wrote:
> > MyData VAR BYTE
> > MAIN:
> > SERIN 16, 54 + $4000, [noparse][[/noparse]MyData]
> > SEROUT 16, 54 + $4000, [noparse][[/noparse]DEC MyData]
> > GOTO MAIN
> >
> > The above should work. You'll have to
> > bring up the 'Terminal' at 9600 baud.
> > The program will 'hang' on the SERIN,
> > and then proceed to output the decimal
> > value of what you put in when you hit
> > 'return'.
> >
> > The '54' should be the 'baud selector' value,
> > and the $4000 is 'Invert', which you should use
> > when having a 232 driver in-circuit.
> >
> > --- In basicstamps@yahoogroups.com, "christopher41877"
><CHRIS@R...>
> > wrote:
> > > Hi, I am trying to read information from a PC using pin 1 on a
> > > bs2. I know that the baud rate from the PC is 9600. I tried
>using
> > > both serin and debugin to read these commands and display it on
>the
> > > debug screen. I can't get any information to come up. I took
> > > commands from the editor help menu but that didn't help either.
> > Can
> > > anyone point me in the right direction?
> > >
> > > Thanks in advance,
> > >
> > > Chris
>
>
>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/
press keys on your keyboard. What else
did you want it to do? The example you
posted earlier implied that's what you
couldn't do.
Note you CAN'T enable both SERIN/SEROUT
and DEBUG at the same time on the DB-9
-- as they both use the same serial port
on your PC.
Again, what else did you want it to do?
--- In basicstamps@yahoogroups.com, "christopher41877" <CHRIS@R...>
wrote:
> I tried this code and it does the same thing as the one in the help
> index. It will only display charecters when I press keys on my
> keyboard. Any other ideas?
>
> Thanks
>
> --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
> wrote:
> > MyData VAR BYTE
> > MAIN:
> > SERIN 16, 54 + $4000, [noparse][[/noparse]MyData]
> > SEROUT 16, 54 + $4000, [noparse][[/noparse]DEC MyData]
> > GOTO MAIN
> >
> > The above should work. You'll have to
> > bring up the 'Terminal' at 9600 baud.
> > The program will 'hang' on the SERIN,
> > and then proceed to output the decimal
> > value of what you put in when you hit
> > 'return'.
> >
> > The '54' should be the 'baud selector' value,
> > and the $4000 is 'Invert', which you should use
> > when having a 232 driver in-circuit.
> >
> > --- In basicstamps@yahoogroups.com, "christopher41877"
> <CHRIS@R...>
> > wrote:
> > > Hi, I am trying to read information from a PC using pin 1 on a
> > > bs2. I know that the baud rate from the PC is 9600. I tried
> using
> > > both serin and debugin to read these commands and display it on
> the
> > > debug screen. I can't get any information to come up. I took
> > > commands from the editor help menu but that didn't help
either.
> > Can
> > > anyone point me in the right direction?
> > >
> > > Thanks in advance,
> > >
> > > Chris
bus. I want to view the information through the stamp instead of
using the program on my laptop. In the long run I hope to transmit
these diagnostic codes from the stamp wirelessly to view from a
remote area. For right now I just want to see if the stamp can view
this information.
--- In basicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
> At 08:26 PM 9/22/03 +0000, christopher41877 wrote:
> >I tried this code and it does the same thing as the one in the
help
> >index. It will only display charecters when I press keys on my
> >keyboard. Any other ideas?
> >
> >Thanks
>
> What were you expecting it to do ?
>
>
> >--- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
> >wrote:
> > > MyData VAR BYTE
> > > MAIN:
> > > SERIN 16, 54 + $4000, [noparse][[/noparse]MyData]
> > > SEROUT 16, 54 + $4000, [noparse][[/noparse]DEC MyData]
> > > GOTO MAIN
> > >
> > > The above should work. You'll have to
> > > bring up the 'Terminal' at 9600 baud.
> > > The program will 'hang' on the SERIN,
> > > and then proceed to output the decimal
> > > value of what you put in when you hit
> > > 'return'.
> > >
> > > The '54' should be the 'baud selector' value,
> > > and the $4000 is 'Invert', which you should use
> > > when having a 232 driver in-circuit.
> > >
> > > --- In basicstamps@yahoogroups.com, "christopher41877"
> ><CHRIS@R...>
> > > wrote:
> > > > Hi, I am trying to read information from a PC using pin 1
on a
> > > > bs2. I know that the baud rate from the PC is 9600. I tried
> >using
> > > > both serin and debugin to read these commands and display it
on
> >the
> > > > debug screen. I can't get any information to come up. I
took
> > > > commands from the editor help menu but that didn't help
either.
> > > Can
> > > > anyone point me in the right direction?
> > > >
> > > > Thanks in advance,
> > > >
> > > > Chris
> >
> >
> >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/
>Ok, there is a db-9 connector on a pc inside an electric transit
>bus. I want to view the information through the stamp instead of
>using the program on my laptop. In the long run I hope to transmit
>these diagnostic codes from the stamp wirelessly to view from a
>remote area. For right now I just want to see if the stamp can view
>this information.
Chris -
You will need to know the specs for the data which is being produced.
Is it 7 bit or 8 bit, even, odd, or no parity, and are you sure the baud
rate is 9600 ? Once you know the above parameters, you can probably
construct a Stamp BAUDMODE which will meet your needs. Not all combinations
of the above parameters are possible with the Stamp. The manual will
indicate which are possible, and which are not.
It would also be helpful to know the format of the data which is being
produced.
Regards,
Bruce Bates