Results 1 to 6 of 6

Thread: need to sniff a USB serial port

  1. #1
    MountainX's Avatar
    MountainX is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jan 2008
    Location
    A place with no mountains
    Beans
    1,610
    Distro
    Kubuntu

    need to sniff a USB serial port

    I'm developing a java app that uses rxtx to speak to an instrument via the CP210x kernel driver on /dev/ttyUSB0.

    I need to sniff the data going back and forth between my instrument and my java app.

    I have found all these serial sniffers but I can't get any of them to work.

    ttysnoop - repos (seems very complicated to me)
    ttylog - repos (apparently just logs, won't sniff an open connection)
    statserial - repos (looks to be for a different purpose)
    jpnevulator -- http://jpnevulator.snarl.nl/ -- my app is not able to open the pty it creates
    interceptty - http://www.suspectclass.com/~sgifford/interceptty/
    sersniff - http://www.earth.li/projectpurple/progs/sersniff.html
    slsnif - http://freshmeat.net/projects/slsnif/
    linuxserialsniffer - http://freshmeat.net/projects/linuxserialsniffer/
    serialsnoop - http://freshmeat.net/projects/serialsnoop/

    Is there anyone in this forum who knows one of these apps and knows how to make to sniff a USB-to-serial line without locking the port? Thanks
    Last edited by MountainX; September 22nd, 2010 at 01:03 AM. Reason: forgot jpnevulator
    Desktop: KX Studio (Kubuntu 12.04)
    Laptop & Netbook: Kubuntu 12.04
    Tablet: Samsung Galaxy Tab 10.1
    Phone: Nexus 4 Cyanogenmod

  2. #2
    Join Date
    Jul 2008
    Beans
    30

    Re: need to sniff a USB serial port

    I'm in the same boat; I want to work out what a Windows programme is sending to a serial device so I can write an app in Java (using rxtx) that does the same thing.

  3. #3
    MountainX's Avatar
    MountainX is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jan 2008
    Location
    A place with no mountains
    Beans
    1,610
    Distro
    Kubuntu

    Re: need to sniff a USB serial port

    Quote Originally Posted by aquarat View Post
    I'm in the same boat; I want to work out what a Windows programme is sending to a serial device so I can write an app in Java (using rxtx) that does the same thing.
    There are several choices for serial sniffers in WIndows. I have one that I paid $60 for called Advanced Serial Port Monitor. It is powerful and easy to use. I have not found anything like it for Linux yet.

    In fact, I'll be happy to just find something for Linux that works. Period.
    Desktop: KX Studio (Kubuntu 12.04)
    Laptop & Netbook: Kubuntu 12.04
    Tablet: Samsung Galaxy Tab 10.1
    Phone: Nexus 4 Cyanogenmod

  4. #4
    Join Date
    Oct 2007
    Location
    Buenos Aires, Argentina
    Beans
    103
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: need to sniff a USB serial port

    Any update on this?

    Could you find anything useful?

  5. #5
    MountainX's Avatar
    MountainX is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jan 2008
    Location
    A place with no mountains
    Beans
    1,610
    Distro
    Kubuntu

    Re: need to sniff a USB serial port

    Quote Originally Posted by MountainX View Post
    I'm developing a java app that uses rxtx to speak to an instrument via the CP210x kernel driver on /dev/ttyUSB0.

    I need to sniff the data going back and forth between my instrument and my java app.

    I have found all these serial sniffers but I can't get any of them to work.

    ttysnoop - repos (seems very complicated to me)
    ttylog - repos (apparently just logs, won't sniff an open connection)
    statserial - repos (looks to be for a different purpose)
    jpnevulator -- http://jpnevulator.snarl.nl/ -- my app is not able to open the pty it creates
    interceptty - http://www.suspectclass.com/~sgifford/interceptty/
    sersniff - http://www.earth.li/projectpurple/progs/sersniff.html
    slsnif - http://freshmeat.net/projects/slsnif/
    linuxserialsniffer - http://freshmeat.net/projects/linuxserialsniffer/
    serialsnoop - http://freshmeat.net/projects/serialsnoop/

    Is there anyone in this forum who knows one of these apps and knows how to make to sniff a USB-to-serial line without locking the port? Thanks

    UPDATE: it turns out that several of these tools will in fact work -- and they worked very well. I just had to read a bit and experiment a bit, but in the end I accomplished everything I needed to. I ended up using interceptty and I like it best of everything I tried, but I also figured out that several of the other tools listed above work as well. I'm not sure why I had so much trouble at first, because once I got interceptty working, it wasn't difficult. It works like a charm.
    Desktop: KX Studio (Kubuntu 12.04)
    Laptop & Netbook: Kubuntu 12.04
    Tablet: Samsung Galaxy Tab 10.1
    Phone: Nexus 4 Cyanogenmod

  6. #6
    Join Date
    Oct 2007
    Location
    Buenos Aires, Argentina
    Beans
    103
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: need to sniff a USB serial port

    Quote Originally Posted by MountainX View Post
    UPDATE: it turns out that several of these tools will in fact work -- and they worked very well. I just had to read a bit and experiment a bit, but in the end I accomplished everything I needed to. I ended up using interceptty and I like it best of everything I tried, but I also figured out that several of the other tools listed above work as well. I'm not sure why I had so much trouble at first, because once I got interceptty working, it wasn't difficult. It works like a charm.
    Great then! I read about all of these, but thought they all captured only one way communication.
    I will try interceptty then, as you suggest.

    Thanks for the heads up!

    //EDIT: corrected "...captured in way..." for "...captured only one way..."
    Last edited by chronos00; May 9th, 2011 at 07:19 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •