Click here to Skip to main content
16,016,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it possible to access serial port gsm modem in asp.net application?
Posted

serial port on the client or server?

On the client would be nearly impossible and would require something like an ActiveX component to do that.

On the server it would be a bad idea to do it directly because the purpose of the code is to serve a page and listening to the serial port would mean that there is no page sent to the client. Also, you would encounter collisions because it is possible that multiple clients would try to open the serial port and that wouldn't work. So, it would be best to create a service that runs on the server and does the serial port communication and some sort of communication asp.net. This could be by having that service monitoring a directory. It is certainly not advised to communicate to the port directly because there are the permissions needed that an asp.net page normally doesn't have.

Good luck!
 
Share this answer
 
Yes.

There are loads of examples on the net of how to do this. Google is your friend here.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900