Shop OBEX P1 Docs P2 Docs Learn Events
communication timeout! between bs2 and pink — Parallax Forums

communication timeout! between bs2 and pink

dwbowendwbowen Posts: 30
edited 2008-06-11 20:53 in BASIC Stamp
Hello All,

It seems I am having issues with communication between a basic stamp 2 and a pink netburner. When running the PINKTestV1.0.bs2 program I receive following message in my debug terminal:

Testing communication with PINK Module...PASSED!

Which I think is good right?

And for PINKReadString2.bs2 I receive:

IP Address: 192.168.1.76

Which is the IP I set up in the IPSETUP program and in the Static Settings on the factory web configuration page. This leads me to believe that there is some communication going on between the stamp and the pink... But when running the PINKWriteVariable.bs2 program and then running the PINKReadVariable.bs2 program I receive the following message in my debug terminal:

Communication Timeout!

Both the read and write programs are downloaded directly for the parallax website and I have made no changes. I have double and triple checked my Baud Rate settings on both the IPSETUP and the and Web Config. 2400 right for BS2 right? Likewise I have double and triple checked the Data Bits = 8 Data, Parity = None and Stop Bits = 1 on the Web Config... Also of course, made sure to submit new settings. I am using a BS2 Rev J on a BOE usb RevC and 9VDC 1amp radioshack powersupply so we should be getting enough amps. Checked my wiring from the BOE to the pink and even tried different pins in case I accidentally smoked one. Everything looks good. I also have two pink modules and two BOEs both with stamps. When I attempt everything in the same sequence with the other pair and the exact same thing occurs. It was suggested by tech support at parallax that I adjust the pause after Baud and before timeout in the program...
Here:
SERIN RX, Baud, 100, Timeout, [noparse][[/noparse]DEC nbvar]
Here:
SERIN RX, Baud, 100, Timeout, [noparse][[/noparse]nbvar]
and here:
SERIN RX, Baud, 100, Timeout, [noparse][[/noparse]nbvar]
I have attempted this changing the number from 1 to 1000 in increments of 50. But it doesn't seem matter what I set it at.... Communication Timeout!

I also adapted the PINKReadVariable.bs2... please see attached. With this I made a little headway. As you can see this program continues to loop rather than simply end at timeout. It also counts the number of cycles it takes until the variables are seen by the stamp. The stamp does read the variables eventually, but it fluctuates between 1 and 500 cycles before reading them. I also changed pause, as suggested by parallax tech support, after Baud and before timeout (now delay in PINKReadVariable_tryagain.bs2) again from 1 to 1000 in increments of 50 with the same results... anywhere between 1 and 500 cycles before the variables are read by the stamp. It did not seem to matter what I set delay at. There seems to be no pattern. Has anyone out there had similar issues or does anyone have any ideas on why this is happening? Any help would be greatly appreciated.

cheers!

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-06-11 19:50
    David,

    What version of the PINK Firmware does your module have? You can find this information by going into the Modify Variables or Configuration sections of the web interface.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • dwbowendwbowen Posts: 30
    edited 2008-06-11 20:53
    Chris,

    Firmware Version: SB70 Parallax Web server 1.1
Sign In or Register to comment.