How to: Receive Strings From Serial Ports in Visual Basic. Strings from the computer's serial ports in Visual Basic. All code that manipulates the serial port.
Doug Richards 28-Oct-09 16:04 28-Oct-09 16:04 As suggested by others, this article is a bit short on information. However, the code is quite interesting.
What I need is some clarification on what is inbound data and what is outbound data. Basically is it possible to modify the data moving in both directions. I note that there are SerialRead and SerialAsyncRead functions. Evoscan keygen crack serial. There are also SerialWrite and SerialAsyncWrite function. So do the SerialAsyncRead and SerialAsyncWrite functions refer to device end data? Implying that SerialRead and SerialWrite refer to PC software bound data.
The CommsSerial class has wrapper methods for all four read and write functions, but only one of these (SerialAsyncWrite) is used in the demo.
If you have control over the first program that talks to you COMM port, why not change the program to pass data received from the port to the 2nd program of yours via remoting or any other type of IPC. Better still if you can write a proxy program that connected to the COMM port, and have 2 of the other program talk to this proxy to get the communication done. Another idea is, if you need to sniff only incoming data, you can get a Y-cable (splitter) and connect to 2 COMM port, each program connects to each COMM port. But you need to make sure the 2nd program is not trying to transmit. In some cases you might need a splitter which only connects the RX pin for the 2nd output. Let me know if you need the diagram.
If you don't have 2 COMM, you can easily get a USB-Serial Converter for less than USD10.