STAMPII to PC serial
Archiver
Posts: 46,084
I have read just about all there is in the manual and on the website,
and still cannot get my stampII to read simple instructions from my
PC
(window 98).
here is what I have done:
I modified the serial cable such that there is a switch on the DTR -
ATN line. To download a program to the stamp, I turn the switch on,
When communicating from another program, I turn it off. That is
straight form the manual. And it works!
The program that I have in the stamp is:
serData var byte
i var byte
readSerial:
serIn 16, 16468,[noparse][[/noparse]WAIT ("hello")]
For i=1 to 20
low 1
pause 250
high 1
pause 250
Next
goto readSerial
which simply keep waiting for a "hello" form the terminal program and
then blink an LED on line 1. BUT IT DOES NOT WORK!
Now I checked the LED and it works fine so there is no problem there.
Any help?
Has anyone tried talking to the PC before? could you share some
hints
or possibly some examples that I can learn from?
Thanks
and still cannot get my stampII to read simple instructions from my
PC
(window 98).
here is what I have done:
I modified the serial cable such that there is a switch on the DTR -
ATN line. To download a program to the stamp, I turn the switch on,
When communicating from another program, I turn it off. That is
straight form the manual. And it works!
The program that I have in the stamp is:
serData var byte
i var byte
readSerial:
serIn 16, 16468,[noparse][[/noparse]WAIT ("hello")]
For i=1 to 20
low 1
pause 250
high 1
pause 250
Next
goto readSerial
which simply keep waiting for a "hello" form the terminal program and
then blink an LED on line 1. BUT IT DOES NOT WORK!
Now I checked the LED and it works fine so there is no problem there.
Any help?
Has anyone tried talking to the PC before? could you share some
hints
or possibly some examples that I can learn from?
Thanks
Comments
Regards,
Al Williams
AWC
*Stamp FAQ: http://www.al-williams.com/wd5gnr/stampfaq.htm
>
Original Message
> From: alnajjar@s... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=D795-y2xohDHHkv3-bV0Exz8ebvToWMb5C34Tj8AT2IptM7umGfLhRKsrWvOfkigE-w4CI_rR6OLVQ]alnajjar@s...[/url
> Sent: Sunday, August 13, 2000 8:21 PM
> To: basicstamps@egroups.com
> Subject: [noparse][[/noparse]basicstamps] STAMPII to PC serial
>
>
> I have read just about all there is in the manual and on the website,
> and still cannot get my stampII to read simple instructions from my
> PC
> (window 98).
>
> here is what I have done:
> I modified the serial cable such that there is a switch on the DTR -
> ATN line. To download a program to the stamp, I turn the switch on,
> When communicating from another program, I turn it off. That is
> straight form the manual. And it works!
>
> The program that I have in the stamp is:
>
> serData var byte
> i var byte
>
> readSerial:
>
> serIn 16, 16468,[noparse][[/noparse]WAIT ("hello")]
> For i=1 to 20
> low 1
> pause 250
> high 1
> pause 250
> Next
> goto readSerial
> which simply keep waiting for a "hello" form the terminal program and
> then blink an LED on line 1. BUT IT DOES NOT WORK!
>
> Now I checked the LED and it works fine so there is no problem there.
>
> Any help?
> Has anyone tried talking to the PC before? could you share some
> hints
> or possibly some examples that I can learn from?
>
>
> Thanks
>
>
>
>
the value that you given of 24660 is for 9600 baud, 7 data bits, even
parity, inverted. According to that table, 9600 8N inverted is
16468.
I will check what you recommend just in case the table is wrong!
Al najjar
--- In basicstamps@egroups.com, "norman doty" <normdoty@h...> wrote:
> your baud rate setting doesnt look correct.
> what settings are you looking for?
> if set to 24660 this would be inverted data 9600 baud 8 bits no
parity and 1
> stop bit.
>
> this would be the norm for communicating with a pc.
>
>
>
> >From: alnajjar@s...
> >Reply-To: basicstamps@egroups.com
> >To: basicstamps@egroups.com
> >Subject: [noparse][[/noparse]basicstamps] STAMPII to PC serial
> >Date: Mon, 14 Aug 2000 01:21:26 -0000
> >
> >I have read just about all there is in the manual and on the
website,
> >and still cannot get my stampII to read simple instructions from my
> >PC
> >(window 98).
> >
> >here is what I have done:
> >I modified the serial cable such that there is a switch on the DTR
-
> >ATN line. To download a program to the stamp, I turn the switch
on,
> >When communicating from another program, I turn it off. That is
> >straight form the manual. And it works!
> >
> >The program that I have in the stamp is:
> >
> >serData var byte
> >i var byte
> >
> >readSerial:
> >
> > serIn 16, 16468,[noparse][[/noparse]WAIT ("hello")]
> > For i=1 to 20
> > low 1
> > pause 250
> > high 1
> > pause 250
> > Next
> > goto readSerial
> >which simply keep waiting for a "hello" form the terminal program
and
> >then blink an LED on line 1. BUT IT DOES NOT WORK!
> >
> >Now I checked the LED and it works fine so there is no problem
there.
> >
> >Any help?
> >Has anyone tried talking to the PC before? could you share some
> >hints
> >or possibly some examples that I can learn from?
> >
> >
> >Thanks
> >
> >
> >
> >
> >
>
>
______________________________________________________________________
__
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com
what settings are you looking for?
if set to 24660 this would be inverted data 9600 baud 8 bits no parity and 1
stop bit.
this would be the norm for communicating with a pc.
>From: alnajjar@s...
>Reply-To: basicstamps@egroups.com
>To: basicstamps@egroups.com
>Subject: [noparse][[/noparse]basicstamps] STAMPII to PC serial
>Date: Mon, 14 Aug 2000 01:21:26 -0000
>
>I have read just about all there is in the manual and on the website,
>and still cannot get my stampII to read simple instructions from my
>PC
>(window 98).
>
>here is what I have done:
>I modified the serial cable such that there is a switch on the DTR -
>ATN line. To download a program to the stamp, I turn the switch on,
>When communicating from another program, I turn it off. That is
>straight form the manual. And it works!
>
>The program that I have in the stamp is:
>
>serData var byte
>i var byte
>
>readSerial:
>
> serIn 16, 16468,[noparse][[/noparse]WAIT ("hello")]
> For i=1 to 20
> low 1
> pause 250
> high 1
> pause 250
> Next
> goto readSerial
>which simply keep waiting for a "hello" form the terminal program and
>then blink an LED on line 1. BUT IT DOES NOT WORK!
>
>Now I checked the LED and it works fine so there is no problem there.
>
>Any help?
>Has anyone tried talking to the PC before? could you share some
>hints
>or possibly some examples that I can learn from?
>
>
>Thanks
>
>
>
>
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com