progjh
01-16-2007, 03:24 AM
Gentlemen -
I've used the BS2 off and on for literally dozens of projects over the past several years, always able to figure things out for myself without harassing others in these forums (in fact, I've never even used these forums, but happen to be exceptionally thankful for them on this particular day). I've encountered a bit of a problem that has me puzzled.
I've a BS2 circuit attached at one end to my PC using SOUT, SIN, ATN and VSS lines. VIN and VSS on the right side of the chip are connected. The chip powers and works fine.
On Pins p8, p9, p10 and p11, a Male DB9 is connected as outlined in the diagram. The Signal Ground from the DB9 ties back to the VSS of the power source on the right just below VIN.
I am attempting to empower the·BS2 to communicate with an automation controller which uses DTR handshaking. I've written a simple VB6 application which communicates with the controller flawlessly, proving that my cable works fine. The cable itself carries only pins 1 through 5; pins 6 and 7 perform a loopback at each end of the cable.
To further test the cable (as well as my BS2 code), I am able to communicate through the BS2 to a secondary PC using a similar VB6 application. In the VB6 app, DTR handshaking is enabled. The data seems to flow smoothly from the stamp to the PC both with and without use of the flow control function on P11.
So we've established that (A) the cable is fine, since it works both from PC to automation controller AND from Stamp to PC using DTR handshaking, (B) the stamp code at least SHOULD be working fine since it talks from the stamp to PC both with and without DTR handshaking in the code, and (C) the wiring of the circuit appears to be fine, given that the stamp circuit communicates at all.
When connected to the automation controller, however, the automation controller does not respond when the data stream is transmitted (as it does when the same stream is transmitted from the VB6 app on the PC). I know it's got to be a flow control issue, but I'm pulling my hair out and thus far have been unable to resolve it. I do not have the ability to disable DTR handshaking on the automation controller itself.
I've tried OUTing P8 high (the CD line) just on the off-chance the automation controller requires a signal on the CD pin. The automation controller seems indifferent.
Bright ideas would be VERY welcome right about now. Thanks in advance for any assistance you might be able to offer.
progjh@yahoo.com (mailto:progjh@yahoo.com)
I've used the BS2 off and on for literally dozens of projects over the past several years, always able to figure things out for myself without harassing others in these forums (in fact, I've never even used these forums, but happen to be exceptionally thankful for them on this particular day). I've encountered a bit of a problem that has me puzzled.
I've a BS2 circuit attached at one end to my PC using SOUT, SIN, ATN and VSS lines. VIN and VSS on the right side of the chip are connected. The chip powers and works fine.
On Pins p8, p9, p10 and p11, a Male DB9 is connected as outlined in the diagram. The Signal Ground from the DB9 ties back to the VSS of the power source on the right just below VIN.
I am attempting to empower the·BS2 to communicate with an automation controller which uses DTR handshaking. I've written a simple VB6 application which communicates with the controller flawlessly, proving that my cable works fine. The cable itself carries only pins 1 through 5; pins 6 and 7 perform a loopback at each end of the cable.
To further test the cable (as well as my BS2 code), I am able to communicate through the BS2 to a secondary PC using a similar VB6 application. In the VB6 app, DTR handshaking is enabled. The data seems to flow smoothly from the stamp to the PC both with and without use of the flow control function on P11.
So we've established that (A) the cable is fine, since it works both from PC to automation controller AND from Stamp to PC using DTR handshaking, (B) the stamp code at least SHOULD be working fine since it talks from the stamp to PC both with and without DTR handshaking in the code, and (C) the wiring of the circuit appears to be fine, given that the stamp circuit communicates at all.
When connected to the automation controller, however, the automation controller does not respond when the data stream is transmitted (as it does when the same stream is transmitted from the VB6 app on the PC). I know it's got to be a flow control issue, but I'm pulling my hair out and thus far have been unable to resolve it. I do not have the ability to disable DTR handshaking on the automation controller itself.
I've tried OUTing P8 high (the CD line) just on the off-chance the automation controller requires a signal on the CD pin. The automation controller seems indifferent.
Bright ideas would be VERY welcome right about now. Thanks in advance for any assistance you might be able to offer.
progjh@yahoo.com (mailto:progjh@yahoo.com)