需要代码从rs232端口读取数据并存储在asp.net的数据库中 [英] Need code to read data from rs232 port and store in database in asp.net

查看:93
本文介绍了需要代码从rs232端口读取数据并存储在asp.net的数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个连接到rs232端口的设备。我需要从rs232端口读取数据并应存储在数据库中。我需要控制台应用程序中的代码在asp.net但不在vb.net中

i have a device with rs232 port conneted to it.I need to read data from rs232 port and should store in database. i need code in console application are in asp.net but not in vb.net

推荐答案

嗨Kalyan,



你的rs232会创建虚拟COM端口吗?如果是,您可以使用串行端口类。打开端口,从中可以读取和写入数据。请查看以下链接。





[ ^ ]



http://www.dreamincode.net/forums/topic/35775-serial-port-communication-in-c%23/ [< a href =http://www.dreamincode.net/forums/topic/35775-serial-port-communication-in-c%23/target =_ blanktitle =New Window> ^ ]



希望它对你有用。



Babu.K
Hi Kalyan,

Is your rs232 will create virtual COM Port? If Yes, You can go with Serial Port Class. Open the port, from that u can read and write data into it. Check the below link.


[^]

http://www.dreamincode.net/forums/topic/35775-serial-port-communication-in-c%23/[^]

Hope its useful for u.

Babu.K


这篇关于需要代码从rs232端口读取数据并存储在asp.net的数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆