Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 09, 2009 08:49 PM by freewill78
Jun 22, 2009 07:58 AM|LINK
Serial port communication in asp.net
Jun 22, 2009 08:14 AM|LINK
Hello Suthakar ... no offense meant: yours is a bit of a strange question. Let me explain:
ASP.NET (MVC or WebForms) is for Internet and Intranet applications.
serial port communications are generally for talking to attached devices: modems, various hardware that can interface to a computer (example, a gasoline fuel pump's computer captures quantity and fuel card information that can be input and sent to an accounting
So, I'm curious as to the nature of your application.
In answer to your question, it depends on the capabilities the device with which you happen to be communicating. You need to give the documentation for that device and then determine what you options are with it.
Example: likely most modern modems can send half duplex and full duplex. Which mode is better likely depends more on the nature of the developer's application than on the merits of half duplex versus full duplex.
Rule of thumb (general): if the developer needs to make decisions based on input line content, likely character input is preferred; OTOH, if the developer is processing
input records, likely line based input is preferred.
To better respond to your question, imo, you need to give us many more details. Sorry, your question is just way too general. You need to clarify it for the rest of us.
Jun 22, 2009 08:31 AM|LINK
Jun 22, 2009 12:45 PM|LINK
I do not see what this has to do with the ASP.NET paradigm.
I think you may be mixing ideas here. I'm not sure what you're trying to achieve.
ASP.NET MVC or WebForms
(a) a page request is received
(b) ASP.NET application displays that page and goes back to sleep
(c) GET or POST comes back from page displayed by (b)
(d) ASP.NET application responds appropriately and goes back to sleep.
serial port processing
(i) local application starts and negotiates connectivity with serial port.
(ii) local application runs constantly, no sleeping, and continuously listens to serial port.
Here is what you should read to meet your serial port listening needs:
i have got Data_received event occurs in windows application... can u guide me for asp.net application.
All you can do AFAIK is to store your data in your ASP.NET MVC Model until a user requests it by clicking a submit button.
Alternatively, your web page on your end user's computer could continuously request updates using Ajax.
Ajax example tutorial: #39 |
Iteration #7 – Add Ajax functionality View in
VB or C#
Jun 23, 2009 07:24 AM|LINK
thanks for the mail sir,
i got serial port communication in windows application. but i need serial port communication in web application. i am developing asp.net appplication in my server side. i need to communicate with external GSM modem via serial port.
Jun 25, 2009 05:28 PM|LINK
suthakar .... you can not have what you want per se.
you need a multi-tier architecture because the hardware that talks to the
external GSM modem via the serial port must be
physically connected to the external GSM modem.
external GSM modem<====>serial port[web_server] ...... Internet ..... [web_client]
external GSM modem<====>serial port[data_layer_computer]<====>[web_server] ...... Internet ..... [web_client]
external GSM modem<====>serial port[data_layer_computer] ..... Internet ..... [web_server] ...... Internet ..... [web_client]
<====> =. physical connection
....... =. TCP/IP connection
suthakar, please study the above three architectures. Remember,
physical devices without wireless connectivity
must be physically connected to whatever computer needs to communicate with the
Jun 26, 2009 04:58 AM|LINK
ok sir, i have connected my kit with my server via serial port. Asp webpage runs in a server only. i want receive or send data via serial port in server only. there is a SDK available for serial port communication. can i use it. is it safe for our project?
asp .net ... c# serial port communication
Jun 26, 2009 05:05 AM|LINK
i am having 5 client systems and one server. all the system having wireless kit. all the clients sends the data to server via serial port. i want to collect and save the all the data in to server.
Now i am using ASP.net and C#.
but i need to get data from wireless kit via serial port in whole day. Is it possible to communicate. otherwise can i change the environment web application to windows...
Jun 26, 2009 11:40 AM|LINK
suthakar, you are talking about architecture (A) ...
Earlier in this thread, I showed you what to check out:
Here is what you should read
to meet your serial port listening needs:
If you want to purchase someone's SKD, it's probably safe ~~ I would ask them for references from their existing customers. You probably do not need an SDK from a third party.
Also, the manufacturer of your modem should have documentation to help you.
You have at least two options: do it yourself; hire a specialist.
Jun 26, 2009 11:47 AM|LINK
suthakar, in your previous post, you said the modem was connected directly to the server. I do not understand ...
TIMTOWTDI =. there is more than one way to do it
are your clients in the same room as your server?
a remote client computer can capture information from its serial port and then send it via FTP to the server.
???? are you trying to do something in real time?
???? is this simply aggregating data for reporting purposes?
I really do not understand what you are trying to achieve. That makes it difficult for anyone to answer your question.
Perhaps you can explain your design goals, your design constraints, and your physical architecture in more detail?