EmbeddedRelated.com
Forums

Anyone used Portmon on a USB-RS232?

Started by Joerg August 15, 2007
Ok, folks, Portmon shows COM6 which is the port to a scope, via a USB 
connection. The terminal program (TeraTerm) is talking to it via that 
port. Later it's going to be a VBA routine and that's why I need to 
monitor, to see what gets stuck or doesn't appear.

Long story short I can set Portmon to monitor all other COM ports but 
not COM6. Says "Portmon cannot attach .... device may be in use". Well, 
duh, if it weren't in use I wouldn't need to monitor it ;-)

Is that normal? Any remedies? Use another port monitor software? Go back 
to ye olde logic analyzer like I used to do it (it's heavy, leads to 
backaches...)?

-- 
Regards, Joerg

http://www.analogconsultants.com
Joerg wrote:

> Ok, folks, Portmon shows COM6 which is the port to a scope, via a USB > connection. The terminal program (TeraTerm) is talking to it via that > port. Later it's going to be a VBA routine and that's why I need to > monitor, to see what gets stuck or doesn't appear. > > Long story short I can set Portmon to monitor all other COM ports but > not COM6. Says "Portmon cannot attach .... device may be in use". Well, > duh, if it weren't in use I wouldn't need to monitor it ;-) > > Is that normal? Any remedies? Use another port monitor software? Go back > to ye olde logic analyzer like I used to do it (it's heavy, leads to > backaches...)? >
Ok, found out a somewhat kludgy fix: Close the terminal program, start Portmon, then re-open the terminal. If Portmon isn't open and set to the desired COM port before the terminal program then Portmon won't work, at least not here. Strange, but at least it works now. -- Regards, Joerg http://www.analogconsultants.com
Joerg schrieb:
> Joerg wrote: > >> Ok, folks, Portmon shows COM6 which is the port to a scope, via a USB >> connection. The terminal program (TeraTerm) is talking to it via that >> port. Later it's going to be a VBA routine and that's why I need to >> monitor, to see what gets stuck or doesn't appear. >> >> Long story short I can set Portmon to monitor all other COM ports but >> not COM6. Says "Portmon cannot attach .... device may be in use". >> Well, duh, if it weren't in use I wouldn't need to monitor it ;-) >> >> Is that normal? Any remedies? Use another port monitor software? Go >> back to ye olde logic analyzer like I used to do it (it's heavy, leads >> to backaches...)? >> > > Ok, found out a somewhat kludgy fix: Close the terminal program, start > Portmon, then re-open the terminal. If Portmon isn't open and set to the > desired COM port before the terminal program then Portmon won't work, at > least not here. Strange, but at least it works now. >
Hi Joerg, in my experience that's normal behaviour with all programs which use the com port. You have first to attach portmon to the port and than start the program which generates the traffic I want to watch. Cheers Dirk
Dirk Zabel wrote:
> Joerg schrieb: > >> Joerg wrote: >> >>> Ok, folks, Portmon shows COM6 which is the port to a scope, via a USB >>> connection. The terminal program (TeraTerm) is talking to it via that >>> port. Later it's going to be a VBA routine and that's why I need to >>> monitor, to see what gets stuck or doesn't appear. >>> >>> Long story short I can set Portmon to monitor all other COM ports but >>> not COM6. Says "Portmon cannot attach .... device may be in use". >>> Well, duh, if it weren't in use I wouldn't need to monitor it ;-) >>> >>> Is that normal? Any remedies? Use another port monitor software? Go >>> back to ye olde logic analyzer like I used to do it (it's heavy, >>> leads to backaches...)? >>> >> >> Ok, found out a somewhat kludgy fix: Close the terminal program, start >> Portmon, then re-open the terminal. If Portmon isn't open and set to >> the desired COM port before the terminal program then Portmon won't >> work, at least not here. Strange, but at least it works now. >> > Hi Joerg, > in my experience that's normal behaviour with all programs which use the > com port. You have first to attach portmon to the port and than start > the program which generates the traffic I want to watch.
Ok, thanks, Dirk. I didn't know that. It probably would be a good thing to mention in the troubleshooting section but I couldn't see anything about it there. Oh well, on to learning VBA then. Not that easy for an analog dude like myself, creating user forms and trying to make them control some hardware. That's why I need Portmon. -- Regards, Joerg http://www.analogconsultants.com
Joerg wrote:
> Joerg wrote: > >> Ok, folks, Portmon shows COM6 which is the port to a scope, via a USB >> connection. The terminal program (TeraTerm) is talking to it via that >> port. Later it's going to be a VBA routine and that's why I need to >> monitor, to see what gets stuck or doesn't appear. >> >> Long story short I can set Portmon to monitor all other COM ports but >> not COM6. Says "Portmon cannot attach .... device may be in use". Well, >> duh, if it weren't in use I wouldn't need to monitor it ;-) >> >> Is that normal? Any remedies? Use another port monitor software? Go back >> to ye olde logic analyzer like I used to do it (it's heavy, leads to >> backaches...)? > > Ok, found out a somewhat kludgy fix: Close the terminal program, start > Portmon, then re-open the terminal. If Portmon isn't open and set to the > desired COM port before the terminal program then Portmon won't work, at > least not here. Strange, but at least it works now.
That sounds like a useful testing tool. Where does it come from? -- Chuck F (cbfalconer at maineline dot net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> -- Posted via a free Usenet account from http://www.teranews.com
On Aug 16, 8:08 am, Joerg <notthisjoerg...@removethispacbell.net>
wrote:
> Dirk Zabel wrote: > > Joerg schrieb: > > >> Joerg wrote: > > >>> Ok, folks, Portmon shows COM6 which is the port to a scope, via a USB > >>> connection. The terminal program (TeraTerm) is talking to it via that > >>> port. Later it's going to be a VBA routine and that's why I need to > >>> monitor, to see what gets stuck or doesn't appear. > > >>> Long story short I can set Portmon to monitor all other COM ports but > >>> not COM6. Says "Portmon cannot attach .... device may be in use". > >>> Well, duh, if it weren't in use I wouldn't need to monitor it ;-) > > >>> Is that normal? Any remedies? Use another port monitor software? Go > >>> back to ye olde logic analyzer like I used to do it (it's heavy, > >>> leads to backaches...)? > > >> Ok, found out a somewhat kludgy fix: Close the terminal program, start > >> Portmon, then re-open the terminal. If Portmon isn't open and set to > >> the desired COM port before the terminal program then Portmon won't > >> work, at least not here. Strange, but at least it works now. > > > Hi Joerg, > > in my experience that's normal behaviour with all programs which use the > > com port. You have first to attach portmon to the port and than start > > the program which generates the traffic I want to watch. > > Ok, thanks, Dirk. I didn't know that. It probably would be a good thing > to mention in the troubleshooting section but I couldn't see anything > about it there. > > Oh well, on to learning VBA then. Not that easy for an analog dude like > myself, creating user forms and trying to make them control some > hardware. That's why I need Portmon. > > -- > Regards, Joerg > > http://www.analogconsultants.com
--snip--
> Oh well, on to learning VBA then. Not that easy for an analog dude like > myself, creating user forms and trying to make them control some > hardware.
Yeah, VB is most favorable for developing quick GUIs. But you might give a try to C# from .net 2005, there is built in support for com port and quite easy as compare to VB. ali
> That sounds like a useful testing tool. Where does it come from?
It comes from Mark Russinovich (http://en.wikipedia.org/wiki/Mark_Russinovich). You can download PortMon and many other useful tools from: http://www.microsoft.com/technet/sysinternals/default.mspx Leo Havm&#4294967295;ller.
CBFalconer wrote:

<snip - questions about portmon serial monitoring>
> > That sounds like a useful testing tool. Where does it come from? >
Come on - first hit on google Its one of the Sys-Internals tools, now owned by Microsoft http://www.microsoft.com/technet/sysinternals/utilities/portmon.mspx Glyn
On Thu, 16 Aug 2007 09:31:16 +0200, Leo Havm&#4294967295;ller
<rtxleh@nospam.nospam> wrote:

>> That sounds like a useful testing tool. Where does it come from? > >It comes from Mark Russinovich >(http://en.wikipedia.org/wiki/Mark_Russinovich). >You can download PortMon and many other useful tools from: >http://www.microsoft.com/technet/sysinternals/default.mspx > >Leo Havm&#4294967295;ller.
He wont go there, he hates MS. Mark and the other guy did a great job with all the SysInternals tools. I have been using their tools for years now. Hopefully they got enough cash from MS to retire on, cause they deserve it!
On Aug 16, 3:52 pm, The Real Andy <thereala...@nospam.com> wrote:
> On Thu, 16 Aug 2007 09:31:16 +0200, Leo Havm=F8ller > > <rtx...@nospam.nospam> wrote: > >> That sounds like a useful testing tool. Where does it come from? > > >It comes from Mark Russinovich > >(http://en.wikipedia.org/wiki/Mark_Russinovich). > >You can download PortMon and many other useful tools from: > >http://www.microsoft.com/technet/sysinternals/default.mspx > > >Leo Havm=F8ller. > > He wont go there, he hates MS. Mark and the other guy did a great job > with all the SysInternals tools. I have been using their tools for > years now. Hopefully they got enough cash from MS to retire on, cause > they deserve it!
Maybe, Its good for windows users. I hope M$ will replace their creepy and * taskmanager with Mark's fine process explorer! Job does make us a good pet, I use to read Mark's explorations about win* before he joined them, found always quite aggressive while pointing the bug and malfunctioning. However, things are very different now! To feel the difference check this [ http://www.microsoft.com/technet/technetmag/issues/2007/02/VistaKernel/ ] out , no he does sound like a sales person rather tech specialist. ali