Bs2pe to ssc-32 problem bidirectional problem

hey all -

im trying to control the ssc-32 by way of a bs2pe stamp. im able to transmit commands at 9600, but im not getting any information back upon querying. i get the appropriate responses going directly into the ssc-32 with hyperterminal and the bluesmirf, but when i try to use the stamp i get no answer from the ssc-32. has anyone run into this issue before? thanks.

How do you have the two boards connected? If you went by some of the standard tutorial hook ups you only have the TX of your BS2 connected to the RX of the ssc-32 as well as a ground connection. This works great for sending down commands to the ssc-32.

However if you wish to query information back from the SSC32, you need to add an additional wire from the RX of your BS2 to the TX of the ssc32.

I hope this makes sense.

Kurt

Yeah, I have basically two I/O pins dedicated to communication with the SSC-32. I wrote out some code where the stamp sends the “Q” query to the SSC-32 and waits for a response, but I get a timeout every time I try.

What version of the SSC-32 firmware are you using. We tested the ability of a stamp to receive data back from the SSC-32 and increased some timeouts to ensure it would work.

I am using the 1-06XE version of the firmware.

That should be fine. Looks like we’re going to need some code examples then…

Here’s the block of code ive been working with to try and receive a response from the SSC-32.

query:
SEROUT 2, 84, “Q”, CR]
SERIN 3, 84, 2000, No_Response, [response]
SEROUT 6, 84, [CR, LF, "Servo Query Response: ", response, CR, LF]
GOTO out
No_Response:
SEROUT 6, 84, [CR, LF, “No response from SSC-32”, CR, LF]
GOTO out

I am not familiar with the bs2pe, but from the Parallax web site it looks like it is about half the speed of the bs2p. This issue might be due to the bs2pe not being ready to receive the transmission from the ssc32. An experiment you might try is to have the ssc32 send 2 bytes and have the bs2pe try to receive only one of the bytes. For example, send
SEROUT 2, 84, “Q A”, CR]

This should cause the ssc32 to send the result of the Q command followed by the status of the A input. See if the bs2pe receives one of the bytes.