473,320 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Com Port via Web Interface

Hi guys,
I'm controlling a step motor through serial port using C#. I wan't to
connect my C# program to a web interface, so I can control the direction of
the motor with 2 buttons on the web page. Is that possible?.
Dec 24 '06 #1
3 2815
Have a try of some code and see whether it works with ASP.NET.
http://msdn2.microsoft.com/en-us/lib...es(VS.80).aspx

chanmm

"Flemming Hansen" <ds******@cybercity.dkwrote in message
news:45*********************@dreader1.cybercity.dk ...
Hi guys,
I'm controlling a step motor through serial port using C#. I wan't to
connect my C# program to a web interface, so I can control the direction
of the motor with 2 buttons on the web page. Is that possible?.
Dec 26 '06 #2
Have a try of some code and see whether it works with ASP.NET.
http://msdn2.microsoft.com/en-us/lib...es(VS.80).aspx
Thanks for the answer. I don't know anything about ASP.NET. I just wonder,
if it's possible to make a C# program, that listens i.e port 1234 and when I
write http://www.mydomain.com:1234 in the web browser, it generates a
webpage with 2 buttons, and by pressing theese buttons, it communicates with
serial port? Thanks in advance.
"Flemming Hansen" <ds******@cybercity.dkwrote in message
news:45*********************@dreader1.cybercity.dk ...
>Hi guys,
I'm controlling a step motor through serial port using C#. I wan't to
connect my C# program to a web interface, so I can control the direction
of the motor with 2 buttons on the web page. Is that possible?.

Dec 26 '06 #3
yup, i'd start first by writing a simple windows application that performs
the activity. Then you can take that windows application and embed it in a
web form. You'd have to muck with CAS policy a bit but that shouldn't be too
dificult.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

"Flemming Hansen" <ds******@cybercity.dkwrote in message
news:45*********************@dreader1.cybercity.dk ...
>Have a try of some code and see whether it works with ASP.NET.
http://msdn2.microsoft.com/en-us/lib...es(VS.80).aspx

Thanks for the answer. I don't know anything about ASP.NET. I just wonder,
if it's possible to make a C# program, that listens i.e port 1234 and when
I write http://www.mydomain.com:1234 in the web browser, it generates a
webpage with 2 buttons, and by pressing theese buttons, it communicates
with serial port? Thanks in advance.
>"Flemming Hansen" <ds******@cybercity.dkwrote in message
news:45*********************@dreader1.cybercity.d k...
>>Hi guys,
I'm controlling a step motor through serial port using C#. I wan't to
connect my C# program to a web interface, so I can control the direction
of the motor with 2 buttons on the web page. Is that possible?.


Jan 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
4
by: dalewz | last post by:
Hi, Could sb kindly answer my following questions: Plan: I am trying to find a language to build a GUI to communicate with our device via serial port. Questions: 1. which language (VC++...
3
by: rusttree | last post by:
Many moons ago, I took a class in embedded control at school. The course focused on a micro-controller mounted on a small electric car that was programmed using simple C code. The...
5
by: Darrell Wesley | last post by:
Is there a good source of information on how to read a USB port, in particular reading data from a BarCode reader?
4
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. ...
25
by: bmearns | last post by:
Is it possible to specify which port to use as the outbound port on a connection? I have the IP address and port number for the computer I'm trying to connect to (not listening for), but it's...
4
by: Bjorn Sagbakken | last post by:
Hi. This might not be the right forum for my question, but still I throw it out: I have just succeeded in publishing my ASP.NET web application on my own PC, opening port 80 in/out in my...
4
by: Soren | last post by:
Hi, I want to control some motors using the parallel port.. however, my laptop does not have any parallel ports (very few do). What I do have is a USB->Parallel converter... I thought about...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.