摘要: 发布者: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks; namespace 阅读全文
posted @ 2020-04-23 14:46 卢惠 阅读(141) 评论(0) 推荐(0) 编辑
摘要: socket服务端: using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Sockets;using System.Security.Cryptograph 阅读全文
posted @ 2020-04-23 14:38 卢惠 阅读(1624) 评论(0) 推荐(1) 编辑
摘要: @model ProdOrderAutoGrGiRequestSystem.Models.ProdKBCardModel@{ ViewBag.Title = "Index"; var jTableStyle = "metro/blue/jtable.css"; if (!string.IsNullO 阅读全文
posted @ 2020-04-23 12:00 卢惠 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 页面: 引入静态脚本: <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> <script src="https://code.highcharts.com/highcharts.js"></s 阅读全文
posted @ 2020-04-23 11:48 卢惠 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 页面部分: List部分: @{ Layout = null;}@using ePR.Models;@using ePR;@using BusinessObjectLayer.Entities;@using DataAccessLayer;@model ePR.Models.pRHeaderList 阅读全文
posted @ 2020-04-23 11:44 卢惠 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 微软在 .NET FrameWork2.0中对串口通讯进行了封装,我们可以在.net2.0及以上版本开发时直接使用SerialPort类对串口进行读写操作。 SerialPort类的属性主要包括: 1)串口名称(PortName) 2)波特率(BaudRate) 3)数据位 DataBits 4)停 阅读全文
posted @ 2020-04-23 11:28 卢惠 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 所谓通信协议是指通信双方的一种约定。约定包括对数据格式、同步方式、传送速度、传送步骤、检纠错方式以及控制字符定义等问题做出统一规定,通信双方必须共同遵守,属于OSI七层参考模型中的数据链路层。目前,采用的通信协议有两类:异步协议和同步协议。 异步协议为起止式异步协议。异步通信是按字符传输的,每传输一 阅读全文
posted @ 2020-04-23 11:24 卢惠 阅读(1743) 评论(0) 推荐(0) 编辑
摘要: 串口进行操作的类,其中包括写和读操作,类可设置串口参数、设置接收函数、打开串口资源、关闭串口资源,操作完成后,一定要关闭串口、接收串口数据事件、接收数据出错事件、获取当前全部串口、把字节型转换成十六进制字符串等功能。这个串口类已经过了调试。 using System; using System.Co 阅读全文
posted @ 2020-04-23 11:21 卢惠 阅读(3106) 评论(0) 推荐(1) 编辑
摘要: using Dapper;using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Web;using Syst 阅读全文
posted @ 2020-04-23 11:19 卢惠 阅读(84) 评论(0) 推荐(0) 编辑