Viewing RS-232 Commands/Strings
jabramson
Junior Member
What's the best way to capture a rs-232 string from a device? (The Serial commands are unknown, so I'm trying to "capture" them.) Tried hooking it into the terminal port on my computer and viewed in Netlinx studio. I could see the commands, but they are all gibberish, nothing remotely related to hex or ascii. Also tried Hex Com Tool with the same results.
Here are a couple of the strings if you want to take a crack (captured with Hex Com Tool, switched between ASCII and HEX)
I also tried capturing from a known device (Extron Router which uses ascii strings) and it gave me the same gibberish
Here are a couple of the strings if you want to take a crack (captured with Hex Com Tool, switched between ASCII and HEX)
188066666698189800E680 1E98608698E680 18806666669898E09800E680 1E98608698E680 or (18)(80)fff(98)(18)(98)(00)æ(80) (1E)(98)(60)(86)(98)æ(80) (18)(80)fff(98)(98)à(98)(00)æ(80) (1E)(98)(60)(86)(98)æ(80)
I also tried capturing from a known device (Extron Router which uses ascii strings) and it gave me the same gibberish
Comments
-
Could your baud, bits, or parity be wrong? Those are excellent ways to make gibberish out of good data.
-
What you're seeing there isn't gibberish at all. In the first example you posted it has each byte represented in hex (1 byte == 2 hex chars). The second example is the exact same data, however bytes that have a printable character equivalent in the UTF-8 character set have been shown as that character and non printable characters shown as there hex value within brackets.
If you were not seeing the data you were expecting from your known device (Extron switcher) you may have set an incorrect baud rate. In serial communication data is sent as a time-series of bits. That is, there is a voltage that alternates between two states which relate to either a high or low bit. The buad rate defines the number of times per second that this state is observed. If both devices involved in the communication are not speaking at the same baud rate then its a bit like watching a pendulum lit only by a slow strobe light. You'll see the pendulum move, but the motion you see may be wildly different to what is actually happening. The equivalent in computer terms results in data corruption.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums