Sign in to follow this  
Followers 0
vickerps

Device Plugged Into Serial Port

7 posts in this topic

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



Nope

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.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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

sorry wrong lines

They are always OFF

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  
Followers 0