Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: talking to serial in w2k + latest activestate

by talexb (Chancellor)
on Jan 08, 2002 at 22:53 UTC ( #137219=note: print w/replies, xml ) Need Help??


in reply to talking to serial in w2k + latest activestate

I can highly recommend renting a protocol analyzer to go between your computer and the sign you're working on. Something like an HP 4951A from ElectroRent (that's who I'd call in Toronto anyway) will tell you without fail what's passing from your PC to the sign.

Alternatively, you can do something clever like wrap your serial communications module in something that logs the input and output streams in real time (or maybe Win32::SerialPort has a trace feature that can be turned on). You need to be able to see the character data as well as the control lines, RTS, CTS, DTR and DSR (if they're being used -- you might be using ON/XOFF instead).

Once you can gurantee what's going on between the PC and the sign, then you can proceed to debugging your Perl code.

Yes, I have spent some time slaving over a hot protocol analyzer doing data communications work. :)

--t. alex

"Excellent. Release the hounds." -- Monty Burns.

  • Comment on Re: talking to serial in w2k + latest activestate

Replies are listed 'Best First'.
Re: Re: talking to serial in w2k + latest activestate
by tachekent (Acolyte) on Jan 09, 2002 at 06:52 UTC
    Thanks, unfortunately need it tonight as the device ships tomorrow(sic).However, I fixed it by making a new serialport object and cribbing a config file from the test program that came with the ppm.

    I realised that it was only working after I had run that particular test.
    Every time I thought "Hey it works", it was immediately after running the test program then going back to my original file incomprehensibly.

    So, I guess I'm a litle bit the wiser now...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://137219]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2022-10-07 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (30 votes). Check out past polls.

    Notices?