Hello,
I have a device that is controlled over serial, I want to be able to replace the controller with my own unit and need to work out what commands are being sent over the serial connection. The problem Im having is that the data is garbled. I have tried a bunch of different Baud rates and found numbers counting down at 1200, but their followed by gibberish.
I don't have access to an oscilloscope so am unable to use that route.
????? ???????? ???????? ???????? ???????? ???????????????? ???????? ???????? ???????? ???????? ????????
???????? ; ???????? : ???????? 9 ???????? 8 ???????? 7 ???????? 6 ???????? 5???????? 4 ???????? 3 ???????? 2 ????????1 ???
Hi
Ok, here is the matrix:
Baud rates from 300 to 115.2K
Data size from 5 to 10 bits
One start bit
Zero or one parity bit (odd or even if present)
One or two stop bits.
Signal inverted or not
There are a *lot* of things to search out in that.
Since standard baud rates are related to each other, you can find multiple baud rates that give you some correct characters. Auto baud routines use this fact to figure out what the baud rate is. You need to search all the baud rates to be sure you have the right one. There are some that are above and below what I listed above.
Start with signal un-inverted and do a search at 8 data, no parity,one stop bit. See what you find. Go back, invert the signal and repeat the process. That should get you somewhere. If it does not, find a friend with a scope.
Also consider -- there is no reason why a controller would talk ASCII text. It may be talking binary ...what you have may be the right baud rate already.
Bob