serial port sniffer
-
Friends ! I need help ! I have to write a programme in Visual C++ 6 which can listen or sniff the serial port, but without opening the port. The sniffer and the programme which communicates through the serial port has to be on the same PC, I have to write a program which can read ( or listen ) the data that goes out and comes in from the serial port, BUT NOT TO OPEN THE PORT, to let communication programmes communicate through serial ports. If anyone has an idea how to write this sniffer programme, please send me a advise. Many thanks ! Szilard SZ
-
Friends ! I need help ! I have to write a programme in Visual C++ 6 which can listen or sniff the serial port, but without opening the port. The sniffer and the programme which communicates through the serial port has to be on the same PC, I have to write a program which can read ( or listen ) the data that goes out and comes in from the serial port, BUT NOT TO OPEN THE PORT, to let communication programmes communicate through serial ports. If anyone has an idea how to write this sniffer programme, please send me a advise. Many thanks ! Szilard SZ
You cannot do that (or from what I know you cannot do). When I need to do such a thing, I make a 'harware' sniffer :). That is, I connect another connector on the wire so I can plug it into another serial port (if you have two on your computer) and I can sniff the data on the port. Hope this helps
-
Friends ! I need help ! I have to write a programme in Visual C++ 6 which can listen or sniff the serial port, but without opening the port. The sniffer and the programme which communicates through the serial port has to be on the same PC, I have to write a program which can read ( or listen ) the data that goes out and comes in from the serial port, BUT NOT TO OPEN THE PORT, to let communication programmes communicate through serial ports. If anyone has an idea how to write this sniffer programme, please send me a advise. Many thanks ! Szilard SZ
-
You cannot do that (or from what I know you cannot do). When I need to do such a thing, I make a 'harware' sniffer :). That is, I connect another connector on the wire so I can plug it into another serial port (if you have two on your computer) and I can sniff the data on the port. Hope this helps
Thank you for your reply Cedric :). I don't know if you have heard about the HHD Free Serial Port Monitor. That would be a good model for the programme I have to write. I don't know what tehnique they use. This HHD software monitors in a passive mode al the communication done by other software through the serial port, I don't think it opens the port otherwise it could block the communication for other software. I also have another question, what if I use assembler code, embedded C or something like that, and integrate in my visual C++ code? I think there has to be a possibility to read the memory location through which the serial communication is done. Thanks in advance ! Szilard Szilard
-
You cannot do that (or from what I know you cannot do). When I need to do such a thing, I make a 'harware' sniffer :). That is, I connect another connector on the wire so I can plug it into another serial port (if you have two on your computer) and I can sniff the data on the port. Hope this helps
sniffing serial-port is certainly possible, with a filter-driver layered just above the serial-port driver. (talking NT/2000/XP here). There are lots of products on the internet which does this: http://www.aggsoft.com/serial-port-monitor/serial-port-spy.htm[^] http://www.hhdsoftware.com/sermon.html[^] There was also an article about it in an old issue of Windows Developer Journal which came with free sourcecode: http://www.windevnet.com/documents/s=7282/wdj9910a/9910a.htm[^]
http://www.catch22.net -
sniffing serial-port is certainly possible, with a filter-driver layered just above the serial-port driver. (talking NT/2000/XP here). There are lots of products on the internet which does this: http://www.aggsoft.com/serial-port-monitor/serial-port-spy.htm[^] http://www.hhdsoftware.com/sermon.html[^] There was also an article about it in an old issue of Windows Developer Journal which came with free sourcecode: http://www.windevnet.com/documents/s=7282/wdj9910a/9910a.htm[^]
http://www.catch22.net