Shop OBEX P1 Docs P2 Docs Learn Events
PINK won't work — Parallax Forums

PINK won't work

P!-RoP!-Ro Posts: 1,189
edited 2008-11-30 16:53 in General Discussion
On my PINK, the lights blink randomly and I can't find it on IP setup. I haven't used the thing in a while, but it worked before. What could be wrong?


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pi Guy

Comments

  • lenswerkslenswerks Posts: 40
    edited 2008-11-26 13:13
    Do you have it connected to a router? If so, logon to the router and see if it logged in.

    Lights flashing - you mean PINK power or 10/100 and data. Looking head-on into the RJ45 connector LED1 is on the left and is lit for 100 and dark for 10. LED2 is on the·right and should be lit - flashing when data activity.

    Check the power, change the CAT5 cable, see if its on the network other than with IP setup.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-11-26 17:11
    Please post a complete description of your connections including network and power. Does the test code for the BASIC Stamp work?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • P!-RoP!-Ro Posts: 1,189
    edited 2008-11-29 06:16
    I got it working now. Turns out my wires were bad and weren't giving the PINK enough power (noticed it when the power led fluctuated in brightness). I have a different problem I would like to solve now, but it is much stranger than the last one. When my code looks like this:
    nbvar = 200
    SEROUT TX, Baud, [noparse][[/noparse]"!NB0W04:", nbvar, CLS]
    or this:
    SEROUT TX, Baud, [noparse][[/noparse]"!NB0W04:", 10, CLS]
    it displays something strange like this:
    [noparse][[/noparse]
  • Mike GreenMike Green Posts: 23,101
    edited 2008-11-29 06:31
    Because the SEROUT is doing exactly what you've asked it, to output the byte whose value is given. In the first case, it's the byte whose value is in nbvar. In the second case, it's the byte whose value is 10. You probably want to put DEC in front of each value so it gets translated into a sequence of decimal digits.
  • P!-RoP!-Ro Posts: 1,189
    edited 2008-11-29 18:49
    Thanks Mike, it works. Strange, though, I was using the code from Parallax. Guess they'll have to change it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Pi Guy
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-11-30 16:53
    There's nothing wrong with the code. It does exactly what it is supposed to. It demonstrates the various way that a value can be written. You're used to seeing text so that is what you always expect to see, but when you write the variable directly or as a value (10) it is a binary value and not an ASCII version of the number. You would use the DEC formatter to display it once gotten back in that format, as any binary value. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
Sign In or Register to comment.