I was wondering if there was any Descriptor part in the data packets during RS 232 based Serial Communication. If not (apparently) then how does the computer decide regarding the type of device connected.?
Electronic – Device Descriptors in Serial Communication
serial
Related Topic
- Electronic – Microcontroller hanging during serial communication
- Linux – Serial Over IP or USB over IP
- Electronic – Serial protocol delimiting/synchronization techniques
- Electronic – Monitoring serial communication and problems with the RS232 listening device
- Electronic – Serial Communication 8051
- Electronic – How to decipher hex code for time data on an older serial port device
Best Answer
There are no packets in traditional RS232 communication, let alone device descriptors. Neither the computer nor the device inherently know anything about each other.
Usually, the device has fixed characteristics; sometimes some of these characteristics can be modified by setting switches, moving links, choosing an appropriate cable, or judicious use of a soldering iron.
These characteristics have to be accurately matched at the computer end, when the device is installed, typically by the user reading the device manual, and modifying options, perhaps in a .ini file, or on the command line of the communications program.
Failure to communicate accurately results in an iterative process of trying different options, scratching one's head, and (often) rebooting the peripheral to clear out garbage (like thirty thousand characters misinterpreted as form feeds aka "new page" in its print buffer)
Some of the variable characteristics are:
1) baud rate. Failure to agree on this causes complete gibberish
2) Control flow. This can be :
3) Variations in what a simple byte looks like : 7 or 8 bits, parity or not, odd or even parity (if present), 1, 1.5 or 2 stop bits afterwards.
4) Standard 25-pin D-type connectors with an apparently arbitrary mix of male and female connectors at each end of the cable, and an assortment of non-standard connectors like 9-pin D-types...
All this variability used to support an entire industry of RS232 testers and adapters...
And I haven't even mentioned the liberties sometimes taken with voltage levels.
Sometimes it feels like a miracle that anything RS232 ever worked at all...