module pink connection Pink--->pls help
sd
Posts: 9
Hi ,
i have a pink parallax internet netburner kit ,· demoboard BOE in USB port and a BS2P24-IC.
i installed the pink module to the computer, ·assign the ip address · and everythink works great.
wen i connect the basic stamp to the pink module as describe in the manual· and try to write some value on the variable·it doesnt work!
can anyone·help me with that?
that is the sample code i use
' PINK_01.bs2
' {$STAMP BS2p}
' {$PBASIC 2.5}
PAUSE 300
·SEROUT 8,1021,[noparse][[/noparse]"!NB0W06:125",CLS]· ' at 2400 boundmode and the serout pin is p8
end
or i tried this too
PAUSE 300
·SEROUT 15,17405,[noparse][[/noparse]"!NB0W06:125",CLS]· ' at 2400 boundmode
end
ofcourse the boudmode on the pink is setting at 2400.
please help!·
regards
i have a pink parallax internet netburner kit ,· demoboard BOE in USB port and a BS2P24-IC.
i installed the pink module to the computer, ·assign the ip address · and everythink works great.
wen i connect the basic stamp to the pink module as describe in the manual· and try to write some value on the variable·it doesnt work!
can anyone·help me with that?
that is the sample code i use
' PINK_01.bs2
' {$STAMP BS2p}
' {$PBASIC 2.5}
PAUSE 300
·SEROUT 8,1021,[noparse][[/noparse]"!NB0W06:125",CLS]· ' at 2400 boundmode and the serout pin is p8
end
or i tried this too
PAUSE 300
·SEROUT 15,17405,[noparse][[/noparse]"!NB0W06:125",CLS]· ' at 2400 boundmode
end
ofcourse the boudmode on the pink is setting at 2400.
please help!·
regards
Comments
Check the baud setting both via the PINK web interface, and with the IPSETUP utility. Verify that they match.
In the two examples you posted above, you changed I/O pins from 8 to 15 as well. Verify that you are connected to the I/O pin that you indicate in your code.
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
thank you very much for your feedback...
well , i checked everythik you said ...i\o pin connection and baund setting...everythig is ok , or matched.
wen i telnet to the IP of the pink , it will answers me with cls...cls...cls...cls..
wen i use the web interfece , for modify a variable or make any coonfiguration change , it will work , but if i try to modify a variable by bs2p it will not work!!!
did you have any suggest?
thank you very much.
' {$STAMP BS2}
' {$PBASIC 2.5}
sData VAR Byte
SEROUT 1, 16780, [noparse][[/noparse]30]
SEROUT 1, 16780, [noparse][[/noparse]"hello"]
SEROUT 1, 16780, [noparse][[/noparse]31]
SEROUT 1, 16780, [noparse][[/noparse]"This is the quispqix terminal server"]
DO
SERIN 0, 16780, [noparse][[/noparse]sData]
DEBUG "sData: ", sData, " "
LOOP
in the debug terminal it reads the keypress as the key not the code.
then,...<html>
<FORM method="post" action="/test06.html">
<P>
What value would you like stored in variable 06?
<INPUT name="Nb_var06"type="text"size="24"maxlength="63">
<INPUT type="submit">
</P>
</FORM>
</HTML>
This is the html I use to write to reg 06 on basic stamp 2,...
<html>
The value in variable 06 is: <Nb_var06>
\</html>
This reads back variable 06 in mozilla (orI.E.)
I guess I'am asumming the SB70 is at 2400 baud and the vt100 is at 2400b my difficulty is what I write at 06 in html and read back in html via the web browser, I cannot read back on the bs2 in the debug window.
Any suggestions?
' PINK_02.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
NBVAR VAR Byte(16)
SEROUT 8,16780,[noparse][[/noparse]"!NB0R06"]
SERIN 7,16780,[noparse][[/noparse]STR NBVAR\16\CLS]
DEBUG STR NBVAR
END
This is the code I try to use, In continuation of my last post,... I figure this should read back into/from the bs2 not on the vt100 terminal. but it should read from the web browser input to the bs2 debug terminal, (for now) assuming the variables show in the debug terminal, then I can use them on the vt100 terminal.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It is better to burn out than to fade away,... Because rust, never sleeps!
i use bs2p24-ic , and i cant make it !
Try changing the mode value to 1021 and see what happens using telnet to the PINK's IP address.
here is the code i use:
' PINK_03.bs2
' {$STAMP BS2p}
' {$PBASIC 2.5}
SEROUT 8,1021,[noparse][[/noparse]"!NB0W02:25"] ' pin 8 serout
end
it still doesnt work.
i telnet the ip of the pink module and iwhat i see is the <cls> command
here is the code i use:
' PINK_03.bs2
' {$STAMP BS2p}
' {$PBASIC 2.5}
SEROUT 8,1021,[noparse][[/noparse]"!NB0W02:25"] ' pin 8 serout
end
it still doesnt work.
i telnet the ip of the pink module and iwhat i see is the <cls> command
SEROUT 8, 1021, [noparse][[/noparse]"!NBOW02:25", CLS]
And check two things. I don't have my PINK connected right now to test this, but I'm pretty sure the first round character in that string is the letter oh. I know the second one is the digit zero. The font in the spec sheet does not distinguish these well so I can't be sure. But type it again making sure you type "En, Bee, Oh, DoubleU, zero two". The two-digit variable designation must be zero-two and you have to add the CLS.
Try that and see what happens.
thanks again for you help , but doesnt work!
can you try this with your pink· and see if works?
thanks alot!
·
Regards,
Marcel
The problems has been solved, see: http://forums.parallax.com/showthread.php?p=599131
Post Edited (Marcel) : 8/2/2006 6:07:38 PM GMT