找传奇、传世资源到传世资源站!

c#通信调试工具源码(支持串口、tcp、udp调试)

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

本软件主要功能如下:
1.串口,TCP服务端/客户端,UDP服务端/客户端通讯调试;
2.支持Hex,ASCII两种格式的命令调试;
3.接收数据可通过右键菜单一键计算Hex对应的数值;
4.字节计算器/检验值计算器(CRC16,自定义多项式CRC16,XOR)。

下一版本计划加入功能:
1.串口通讯监视。
2.Socket通讯监视。
注意:
    开发环境为Visual Studio 2010from clipboard
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using LeafSoft.LeafControl;using System.Net;using System.Threading;using LeafSoft.Model;using LeafSoft.PartPanel;namespace LeafSoft{ public partial class yyzq : Form { frmCheck fc = new frmCheck(); frmBytes fb = new frmBytes(); public yyzq() { InitializeComponent(); fc.TopMost = true; fb.TopMost = true; this.Text = Lib.AppInfor.AssemblyTitle "[v" Lib.AppInfor.AssemblyVersion "][" Lib.AppInfor.AssemblyCopyright "][常州-Maximus]"; } private void CreateNewTest(object p,string title,Icon icon) { Form frm = new Form(); frm.StartPosition = FormStartPosition.CenterScreen; frm.Icon = icon; frm.Controls.Add((Control)p); frm.Width = 800; frm.Height = 500; frm.ShowIcon = true; frm.Text = title; frm.FormClosing = new FormClosingEventHandler(frm_FormClosing); frm.Show(); } void frm_FormClosing(object sender, FormClosingEventArgs e) { Form frm=(Form)sender; PartPanel.BasePanel bp = (PartPanel.BasePanel)frm.Controls[0]; bp.ClearSelf(); } private void MS_NewTCPServer_Click(object sender, EventArgs e) { TCPServerPanel tp = new TCPServerPanel(); tp.Dock = DockStyle.Fill; CreateNewTest(tp, "TCP Server[" DateTime.Now.ToString("HHmmss") "]",Properties.Resources.tcp); } private void MS_NewTCPClient_Click(object sender, EventArgs e) { TCPClientPanel tp = new TCPClientPanel(); tp.Dock = DockStyle.Fill; CreateNewTest(tp, "TCP Client[" DateTime.Now.ToString("HHmmss") "]", Properties.Resources.tcp); } private void MS_NewUDPServer_Click(object sender, EventArgs e) { UDPServerPanel tp = new UDPServerPanel(); tp.Dock = DockStyle.Fill; CreateNewTest(tp, "UDP Server[" DateTime.Now.ToString("HHmmss") "]", Properties.Resources.udp); } private void MS_NewUDPClient_Click(object sender, EventArgs e) { UDPClientPanel tp = new UDPClientPanel(); tp.Dock = DockStyle.Fill; CreateNewTest(tp, "UDP Client[" DateTime.Now.ToString("HHmmss") "]", Properties.Resources.udp); } private void MS_NewRs232_Click(object sender, EventArgs e) { ComPanel tp = new ComPanel(); tp.Dock = DockStyle.Fill; CreateNewTest(tp, "COM[" DateTime.Now.ToString("HHmmss") "]", Properties.Resources.com); } private void MS_Check_Click(object sender, EventArgs e) { if (fc.IsDisposed == true) { fc = new frmCheck(); fc.TopMost = true; } fc.Show(); } private void MS_Bytes_Click(object sender, EventArgs e) { if (fb.IsDisposed==true) { fb = new frmBytes(); fb.TopMost = true; } fb.Show(); } private void lklQQ_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { string qq = "275623749"; System.Diagnostics.Process.Start("tencent://message/?uin=" qq "&Site=yyzq.net&Menu=yes"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void lklEmail_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { System.Diagnostics.Process.Start("mailto:yq@yyzq.net"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { System.Diagnostics.Process.Start("www.yyzq.net/Index"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void MS_AboutMe_Click(object sender, EventArgs e) { new AboutMe().ShowDialog(); } private void lklBlog_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { System.Diagnostics.Process.Start("http://blog.csdn.net/sqqyq"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }}

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复