Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I have a device connected to serial port RS-232 on my computer and an application that is communicating with it. How secure is this? Can another application communicate with the device at the same time or is is just possible for one application?

And if my application isn't running, can another application communicate with the device? If so, how can I protect other applications to not communicate with the device? Is there any security settings in Windows for this?

I can not change the behaviour of the device, and it has no password protection.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

If your application is running and the port is open, no other applications will be able to read/write to/from the same port. But, if your application is not running, any other application will be able to open the port and to send data, commands to the device.

share|improve this answer
add comment

To add to ocsid80's answer, one solution to the security is to ensure that there is always a known program running that has connected to the serial port and hence locked out all other programs. As an example you could write a service/device driver that connects to the physical port on start up and acts as a proxy to the physical port. Then your desired application talks to this proxy as required and you can build in all the security you need to establish this link.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.