Author Topic: communication with PC via the com port (serial port)  (Read 10334 times)

0 Members and 1 Guest are viewing this topic.

Offline anshTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 1
communication with PC via the com port (serial port)
« on: March 10, 2016, 05:39:56 PM »
Hello

I have computer that has internet connection and Microcontroller is connected to computer via usb to db9 cable. LED is connected to port pin of microcontroller

Computer -> web page (com port of PC)----- DB9 connector -> max Rs232 - > micro c -> LED

I want to control LED via web page I have created a web page , there are two buttons on web page , start and stop, if I press start button on web page , led should be “on’’ and If I press stop button on web page ,led should be turn “off’’
I am using Windows ,I want to send this information (LED ON/OFF) from internet to one of the serial ports of my computer? I am looking example code , can anyone tell me How does web page send data to port of computer ?