Hello all, I am new to ASP.Net, please forgive me if I use incorrect terminology, I just do not know where to begin.
I have a server located in my equipment closet. In the equipment closet there are several pieces of audio video equipment. Some of the equipment can be controlled via asynchronous tcp/ip control and some can be controlled via RS232. The equipment that is controlled via tcp/ip control is directly connected to the router which is also in the equipment closet. The equipment that is controlled via RS232 to directly connected to the server. All the different equipment both receive and send data. Originally I created a windows application using vb.net to control the equipment, this worked great and I had it working perfectly. The application would run, and I would be able to send and receive data. This included turning on the equipment, raising the volume, changing channels,... I would also receive feedback telling me the status of the equipment. The communication was either in ASCII or hex, depending on the equipment.
After a while, I got to thinking of using the windows server to host an ASP.net website to host this application for equipment control. With this design, any computer or phone on the LAN can control the equipment and check status. Thinking that this was an easy transition, I copied the code and created a form and ran the website on the server. Needless to say, it didn't work as I had hoped. Due to postbacks and the state of websites, it sends the data once and closes the connection. As such, I do not receive data back, I cannot resend data, unless I open the connection again and a number of other issues. What began as a fun project and a cool thing to do turned into an obsession to get it working. I have spent nearly a month trying to figure out how to make this work. I looked into WCF, web services and activeX controls. I cannot seem to figure out if this can be done and what is the best method. I have tried to learn all these new methods, to no avail.
I am by no means an expert, i enjoy programming as a fun hobby as i like challenges So here are my questions:
1). Can I control the equipment in my closet via tcp/ip using an ASP website?
2). Can I control the equipment in my closet via RS232 that is directly connected to the server using an ASP website?
3). If it is feasible, then what is the best way to make this work?
In this situation, I am so lost I do not even know if it can be done and if it can, I do not know how to go about doing it. Thank you in advance for looking at the post an I appreciate any guidance.