Shop OBEX P1 Docs P2 Docs Learn Events
module pink connection Pink--->pls help — Parallax Forums

module pink connection Pink--->pls help

sdsd Posts: 9
edited 2006-08-02 10:19 in BASIC Stamp
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

Comments

  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2006-07-13 14:07
    Telent to the IP of the PINK. Watch the serial data going back and forth to verify your connections.

    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
  • sdsd Posts: 9
    edited 2006-07-14 10:19
    hi ryan,
    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.
  • quispqixquispqix Posts: 64
    edited 2006-07-15 15:07
    This is simple code I use on my ascii terminal (wyse vt100) the code works great 16780 for 2400 baud,...

    ' {$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?
  • quispqixquispqix Posts: 64
    edited 2006-07-16 03:26
    Finish explaining,...
    ' 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.
  • quispqixquispqix Posts: 64
    edited 2006-07-17 17:05
    I got my stamp to read the registers, I took the PDF on the PINK. I copied the text and pasted it to the BS2 Editor. I suppose in the example above with sd, the communication between the pink and the BS2 was wrong. I was not using the vt100 settings but the code was wrong. I did try 396 a couple of times.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    It is better to burn out than to fade away,... Because rust, never sleeps!
  • sdsd Posts: 9
    edited 2006-07-20 19:24
    so anyone can help me ?

    i use bs2p24-ic , and i cant make it !
  • HarborHarbor Posts: 73
    edited 2006-07-21 04:49
    The PINK app note lacks a little as a spec, but since the example code uses mode=396 for a BS2, we infer that the PINK wants 8-bit, no-parity, TRUE. The same speed and mode on a BS2P would be 1021. I haven't got my code handy, but I think I was planning to use 240 for a baud rate of 9600. I believe the PINK supports that, and a BS2P should be able to keep up easily.

    Try changing the mode value to 1021 and see what happens using telnet to the PINK's IP address.
  • sdsd Posts: 9
    edited 2006-07-21 14:07
    thnak you harbor,
    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
  • sdsd Posts: 9
    edited 2006-07-21 14:08
    thnak you harbor,
    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
  • HarborHarbor Posts: 73
    edited 2006-07-22 01:58
    You may see it in the telnet screen, but it isn't in that command, sd. Make it:

    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.
  • sdsd Posts: 9
    edited 2006-07-22 08:50
    hi harbor ,

    thanks again for you help , but doesnt work!

    can you try this with your pink· and see if works?

    thanks alot!
    ·
  • MarcelMarcel Posts: 32
    edited 2006-08-02 10:19
    sd said...
    hi harbor ,

    thanks again for you help , but doesnt work!

    can you try this with your pink· and see if works?

    thanks alot!
    I have the same problem and tried the examples given here but I·can't get the BS2 and the PINK in communication with each other.

    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
Sign In or Register to comment.