473,387 Members | 1,592 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,387 software developers and data experts.

asp.net 2 page and serial port

Hello,
I am writing an web base application that needs to read data
from a serial port(Postal Scale), I assume i will be using this namespace

System.IO.Ports.SerialPort

I know in vb it would be something like:
(serialport Control, 1200,8,E,1 ...)

Dim Weight As String
SerialPort1.Open()
SerialPort1.Write("W" & Chr(13))
Weight = SerialPort1.ReadLine
MessageBox.Show(Weight)
SerialPort1.Close()

I want to read the info from the local (clients) system that when press
"get weight" button it will call the routine and get this info.

I relize there will be security issuse involved, how to I setup the client
to allow this process.

Generally I need some help understanding and or an example of this in
asp.net 2

Thanks,
Tdar


Jan 23 '06 #1
1 2011
Hi,
It is not possible ! Because it is a WEB APPLICATION not a WINDOWS
APPLICATION. There is an important difference between them. Web Applications
are executed on server, but windows applicaitons are executed on client.. In
the following code, u try to access server's serial port. U have two choice
to do this, one is writing a windows application and the second one is
implementing an ActiveX component. and embedding that activeX component into
your asp.net page....

--
HTH

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET
Microsoft .NET & Security MVP

"TdarTdar" <Td**@noemail.nospam> wrote in message
news:15**********************************@microsof t.com...
Hello,
I am writing an web base application that needs to read data
from a serial port(Postal Scale), I assume i will be using this namespace

System.IO.Ports.SerialPort

I know in vb it would be something like:
(serialport Control, 1200,8,E,1 ...)

Dim Weight As String
SerialPort1.Open()
SerialPort1.Write("W" & Chr(13))
Weight = SerialPort1.ReadLine
MessageBox.Show(Weight)
SerialPort1.Close()

I want to read the info from the local (clients) system that when press
"get weight" button it will call the routine and get this info.

I relize there will be security issuse involved, how to I setup the client
to allow this process.

Generally I need some help understanding and or an example of this in
asp.net 2

Thanks,
Tdar

Jan 23 '06 #2

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...
2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
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...
3
by: collinm | last post by:
hi i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port void ledDisplayExist() { char msg={'\0', '\0', '\0', '\0',...
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. ...
4
by: Frank | last post by:
Hello, how to get information about all serial ports in the PC? I use the following code, but i got only the data of the FIRST serial port. All other serial port information are not available...
7
by: davetelling | last post by:
I'm a newbie that is still struggling with OOP concepts & how to make things work they way I want. Using Visual C# Express, I have a form in which I added a user control to display a graph, based...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
3
by: naveen.sabapathy | last post by:
Hi, I am trying to use virtual serial ports to develop/test my serial communication program. Running in to trouble... I am using com0com to create the virtual ports. The virtual ports seem to...
6
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.