Jump to content
Sign in to follow this  
vickerps

Device Plugged Into Serial Port

Recommended Posts

Hi not sure if this can be done

Is there anyway autoit can check if a device is attached to com1 and report back a true or false statement.

Share this post


Link to post
Share on other sites

you could try this command : >mode com1 /status > com1.txt

Then com1.txt will contain something like:

    Baud:            1200

    Parity:          None

    Data Bits:    7

    Stop Bits:    1

    Timeout:      OFF

    XON/XOFF:        OFF

    CTS handshaking: OFF

    DSR handshaking: OFF

    DSR sensitivity: OFF

    DTR circuit:  ON

    RTS circuit:  ON

Normally When CTS/DSR are ON, theres a device attached.


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

thanks anyway but there is not change in these line wether somthing is attached or not there are always ON

DTR circuit: ON

RTS circuit: ON

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...