When issuing a V# command SSC-32 will return a binary answer.
We’re having a problem reading the answers between value 127 and 160, as the answer there doesn’t correspondent with the ASCII table…
any hints?
When issuing a V# command SSC-32 will return a binary answer.
We’re having a problem reading the answers between value 127 and 160, as the answer there doesn’t correspondent with the ASCII table…
any hints?
Is this a version 2 chip, GP? Are you getting just a single byte in return?
Edit: Was that a ver command? response would be something like “SSC32-1.06XE\r”. Analog values would be binary.
Alan KM6VV
I assume you meant C#, C sharp programming language?
As your problem description eludes to you can’t view all binary values as ascii characters. However your program will be able to read the value and use it in math correctly. What exactly is the question here?
You pobably need to get the numeric value of the byte sent back and work with that number. Below is some basic code I use to make use of the byte sent back from the ssc-32.
dataRead$ = input$(#comm, lof(#comm)) 'get returned data
num = ASC(dataRead$) 'used for analog data
print "voltage byte is "; num 'print out raw servo position
print "position byte is "; dataRead$ 'print out raw servo position
print "servo position is "; ASC(dataRead$)*10 'convert position into ms