Scientific and technical programming on PCs often involves talking to instruments and machines that have RS232 interfaces. Most typically, the external device has some kind of format or script language, and gives and takes ASCII messages. For example, a stepper motor control might take an instruction like A200:V12.5:D22.2:GO:T10:TPM, which sets acceleration and velocity and a target distance, then performes a movement, then waits ten seconds, and then transfers the position of the motor back. It would return a string like *TPM22.2 to indicate that the motor had moved as instructed. You have to be able to manipulate strings and you have to set for example COM1 to 9600,8,N,1. The interface actually passes bytes one-at-a-time with perhaps some handshaking, and it isn’t too hard to graph what sending “a” would look like on an oscilloscope if you want.
Now many devices are also adding Ethernet interfaces. I’ve got Cat5e cable strung around my house and have hubs and switches laying about and have used Web-based data acquisition and other hardware with Web-page interfacing and configurations, but I have pretty little idea what Ethernet works like on a level like what I describe above. I think it’s packet data, which I imagine looks sort of like little files, with header and redundancy information. I think it can use TCP/IP to break big things up and reassemble them at the other end and manage reordering and requesting parts be resent and whatnot. But I think it can use things other than TCP/IP too. I’m really pretty vague on the whole thing.
Can anybody enlighten me? What does it look like to send “D22.5:GO” to a device by Ethernet? Do you send it to a 255.255.255.255-like address?