LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS-232 Serial Port Sniffer


@Ravens Fan wrote:

A device such at this http://www.bb-elec.com/product_family.asp?familyid=33&webSyncID=3e948270-0e0d-6b02-d066-2e1530b3cac5... could come in handy for tapping into and monitoring a serial line.


Thanks.  I am aware of the cable sniffer; however, it would require the use of two ports, in which case, I can just use a null cable to loop the signal back on the PC.  But this is a device I was not aware of before this discussion and would come in handy for troubleshooting purchases.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 11 of 16
(2,899 Views)

@MoReese wrote:


One site made mention of this and noted that the computer could do this automatically but did not say what that meant or how to fix it.


Here is the site that notes the problem but doesn't really say it is a problem.Smiley Mad

 

http://divesoftware.org/libdc/contribute.html

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 12 of 16
(2,899 Views)

One possible approach could be to use a com port redirector (there's lots of free ones) to redirect the serial port to an ethernet port, then connect to that port from LabVIEW.

I've used this before, but not to connect from the same machine. It should be possible though.

 

Good luck!

 

Message 13 of 16
(2,896 Views)

@MaxCrunch wrote:

One possible approach could be to use a com port redirector (there's lots of free ones) to redirect the serial port to an ethernet port, then connect to that port from LabVIEW.

I've used this before, but not to connect from the same machine. It should be possible though.

 

Good luck!

 


This might be a possible solution.  Thanks for the input.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 14 of 16
(2,892 Views)

MoReese,

 

The most direct way I found to accomplish this is to just simply hookup an RS232 splitter cable from the PC's serial port. Leave one side of split cable alone, then on the other just clip the rest that you do not need, leaving only the RX cables (I think there's a total of 2 or 3 you leave alone). The one side of the split you left alone is what is used for your application already, the other one you clipped? Well, just hook it up to a RS232 to USB cable (I prefer Prolific because the drivers are usually already, but for WIN 98 I doubt). Now you can sniff all traffic on your applications line through the newly generated COM port which was generated by the RS232 to USB cable. From there (in labview) all you have to do is read the bytes in a loop off the new COM port. No interference issues should arise.  Smiley Happy

 

-Chazzzmd

0 Kudos
Message 15 of 16
(2,883 Views)

@Chazzzmd wrote:

MoReese,

 

The most direct way I found to accomplish this is to just simply hookup an RS232 splitter cable from the PC's serial port.


Are you talking about a Y-splitter? Or 1:3 or more?

 


 

 

Leave one side of split cable alone, then on the other just clip the rest that you do not need, leaving only the RX cables (I think there's a total of 2 or 3 you leave alone).




What do you mean by this?  By clip, you mean cut, right?  What do you mean by RX cable?

@Chazzzmd wrote:

MoReese,

 

The one side of the split you left alone is what is used for your application already, the other one you clipped? Well, just hook it up to a RS232 to USB cable (I prefer Prolific because the drivers are usually already, but for WIN 98 I doubt). Now you can sniff all traffic on your applications line through the newly generated COM port which was generated by the RS232 to USB cable. From there (in labview) all you have to do is read the bytes in a loop off the new COM port. No interference issues should arise.  Smiley Happy

 

-Chazzzmd


Perhaps a diagram would be better to indicate what you're talking about.  Sorry, it's not too clear to me.  How do I hookup an RS-232-USB converter to a serial port/cable?  Unless you're indicating that the converter should be hooked up to the cable and then plugged into a USB port to act as a loop-back.  I think this is what you are saying.  This is basically doing the same thing as a cable sniffer, which is what it is.  This would be OK for lack of RS-232 ports, but if I have the 232 ports available, you can't beat the simplicity of using a null cable.  This is a good solution for my laptop, so thanks for the input.  I appreciate it.



-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 16 of 16
(2,880 Views)