morcillo
morcillo

Reputation: 1109

Serial Port over the Web

I am starting to program in C# and build applications over the web. I have a board with a PIC microcontroller that I made that communicates with the PC via USB-Serial converter (FT232). Now I want to do this: I want to create a website on another computer that allows you to communicate with the PC with the PIC board. Via the other computer I want to be able to control the PIC board. I think that in order to do that I have to start learning about ActiveX, if I'm not mistaken. Does ActiveX allow me to write on another computer's serial port? I really want to learn that. Could you please guide me in the correct direction, and if possible a book or tutorial? Thank you very much, and sorry for any english mistakes.

Upvotes: 1

Views: 2410

Answers (3)

Damon8or
Damon8or

Reputation: 527

Might look at something like this product http://www.virtualserialport.com/products/serial-over-ethernet/, if you want to make it look like a local serial port. If that's not necessary, I'd write a service that listened on a socket and simply sent the serial data between the socket and the serial port.

Upvotes: 0

kay.herzam
kay.herzam

Reputation: 3063

You could build a website or a webservice which runs on the computer with the PIC board. This website would allow you to send commands to the local attached board.

If you have got a .NET SDK for your board you should be able to wrap all the commands in the service or website.

Upvotes: 2

CodeCaster
CodeCaster

Reputation: 151594

No, ActiveX is to let a web page interact with the computer of the visitor of that web page, an old system which should not be used again. Although HTML5 seems to want to reimplement a lot of ActiveX-like functionality again, this is not what you want.

If you create a C# application or service that uses the SerialPort class to talk to your PIC, and use for example a WCF service to accept commands over the internet.

You can then create a web page that lets the user issue commands, while the back end of the web page calls the WCF service to send the command to the PIC.

Upvotes: 3

Related Questions