王彦为

聚沙成塔
  1. 首页
  2. 工具
  3. 正文

RS232 & Socket & CAN调试助手

2022-03-01 9108点热度 10人点赞 51条评论

引言

由于工作需求,长期与RS232、Socket和CAN打交道,网络上RS232的工具很多,但是Socket的软件并没那么好用。所以自己开发了一个软件,集成了这三种通讯。软件包的组成由下图所示,这里针对32位系统和64位系统分成了两个文件夹,其中kerneldlls文件夹、Lib文件夹和VC2008都是CAN所需要的。

立即下载

RS232和Socket

这款工具集成了RS232、TCP Server、TCP Client、UDP Server和UDP Client共5中模式,且TCP Client和UDP Client支持断线重连,网络中的一些工具不具备该功能。

该工具的另外一个功能就是支持文本发送,这样就方便我们在调试过程中连续发送若干条指令,目前只支持固定时间间隔发送。

文本发送的流程如下
1、选择文本是ASCII码还是HEX字符,HEX字符既可以用空格隔开,也可以连在一起。
2、设置每条指令的发送间隔,最小为0ms
3、点击“发送文件”
4、选择要发送的文件,支持txt文档,且多条指令之间通过回车换行符隔开
5、点击“发送”
6、如果需要对该文件进行循环发送,可以点击“循环发送”。循环发送时如果UI显示数据量较大,可能出现页面卡死,但不影响数据发送。

CAN

说到CAN,估计很多人会问,难道官方提供的调试工具不香嘛,比说说周立功的CAN Test。不可否认,官方的CAN TEST很强大,但也存在一些弊端。比如说周立功的CAN TEST安装后默认使用32位的动态库,可能在64位系统上无法运行,还得替换成64位的ControlCAN.dll,再比如说,它们都不支持发送文本,至于研华,官方根本没有像样的调试工具。这款工具不仅支持常见的几个CAN厂商,例如周立功、广成科技、创芯科技、北京爱泰和研华,还支持CAN232协议的调试。

特殊说明


1、关于CAN的动态库依赖VC++2008
2、周立功和iTEKon的动态库依赖kerneldlls文件中的库文件,所以使用之前必须将Lib文件夹中对应的kerneldlls文件夹拷贝到根目录
3、关于研华CAN,我个人觉得不成熟。老驱动(驱动版本V1.35)与新驱动(V5.0.2.0)的SDK还不一样,该软件已做兼容性处理,能自动识别不同的驱动。新驱动的稳定性较差,高频次的发送会导致蓝屏。

文件发送


文件发送的方式与串口的相似,流程如下图所示。

说明:文本文档的格式“COB-ID,Data”,示例如下:

标签: 暂无
最后更新:2022-03-01

王彦为

新生代农民工,十年医疗器械行业从业经验,现居苏州。爱生活,爱做梦。

打赏 点赞
< 上一篇

文章评论

  • Drake4398

    <a href="https://shorturl.fm/sfRBt">https://shorturl.fm/sfRBt</a&gt;

    2025-08-26
    回复
  • Archie3425

    <a href="https://shorturl.fm/cBwbv">https://shorturl.fm/cBwbv</a&gt;

    2025-08-25
    回复
  • Lily548

    <a href="https://shorturl.fm/99Ufc">https://shorturl.fm/99Ufc</a&gt;

    2025-08-25
    回复
  • Carolina2678

    <a href="https://shorturl.fm/A7b6r">https://shorturl.fm/A7b6r</a&gt;

    2025-08-25
    回复
  • Hallie3287

    <a href="https://shorturl.fm/PS1tE">https://shorturl.fm/PS1tE</a&gt;

    2025-08-25
    回复
  • Margaret2859

    <a href="https://shorturl.fm/nfFQi">https://shorturl.fm/nfFQi</a&gt;

    2025-08-25
    回复
  • Cindy3970

    <a href="https://shorturl.fm/bFZX6">https://shorturl.fm/bFZX6</a&gt;

    2025-08-24
    回复
  • Raymond2191

    <a href="https://shorturl.fm/uJvlT">https://shorturl.fm/uJvlT</a&gt;

    2025-08-24
    回复
  • Marissa2276

    <a href="https://shorturl.fm/rRPaN">https://shorturl.fm/rRPaN</a&gt;

    2025-08-24
    回复
  • Grant2039

    <a href="https://shorturl.fm/8qcbv">https://shorturl.fm/8qcbv</a&gt;

    2025-08-23
    回复
  • Anne1473

    <a href="https://shorturl.fm/Sz9XT">https://shorturl.fm/Sz9XT</a&gt;

    2025-08-23
    回复
  • Sara1218

    <a href="https://shorturl.fm/TMfx2">https://shorturl.fm/TMfx2</a&gt;

    2025-08-23
    回复
  • Lynn3775

    <a href="https://shorturl.fm/6LzO7">https://shorturl.fm/6LzO7</a&gt;

    2025-08-23
    回复
  • Esperanza2294

    <a href="https://shorturl.fm/OUqKl">https://shorturl.fm/OUqKl</a&gt;

    2025-08-22
    回复
  • Haiden2891

    <a href="https://shorturl.fm/vdw2l">https://shorturl.fm/vdw2l</a&gt;

    2025-08-22
    回复
  • Joy225

    <a href="https://shorturl.fm/81NAl">https://shorturl.fm/81NAl</a&gt;

    2025-08-22
    回复
  • Adriana4501

    <a href="https://shorturl.fm/4fsOf">https://shorturl.fm/4fsOf</a&gt;

    2025-08-22
    回复
  • Rodney669

    <a href="https://shorturl.fm/6aiLr">https://shorturl.fm/6aiLr</a&gt;

    2025-08-21
    回复
  • Devin4747

    <a href="https://shorturl.fm/RfvPO">https://shorturl.fm/RfvPO</a&gt;

    2025-08-21
    回复
  • ökkeş

    Çok hoş bir stil.

    2025-08-20
    回复
  • Jeremy3825

    <a href="https://shorturl.fm/UNQPV">https://shorturl.fm/UNQPV</a&gt;

    2025-08-20
    回复
  • Colin2923

    <a href="https://shorturl.fm/zpx65">https://shorturl.fm/zpx65</a&gt;

    2025-08-20
    回复
  • Elena1119

    <a href="https://shorturl.fm/F3dbZ">https://shorturl.fm/F3dbZ</a&gt;

    2025-08-20
    回复
  • Martin4381

    <a href="https://shorturl.fm/o2dJL">https://shorturl.fm/o2dJL</a&gt;

    2025-08-20
    回复
  • Katherine1471

    <a href="https://shorturl.fm/4jQW8">https://shorturl.fm/4jQW8</a&gt;

    2025-08-20
    回复
  • Jordan1837

    <a href="https://shorturl.fm/m3ddx">https://shorturl.fm/m3ddx</a&gt;

    2025-08-19
    回复
  • Colleen2212

    <a href="https://shorturl.fm/66FfZ">https://shorturl.fm/66FfZ</a&gt;

    2025-08-19
    回复
  • Geoff2993

    <a href="https://shorturl.fm/GjqgR">https://shorturl.fm/GjqgR</a&gt;

    2025-08-18
    回复
  • Jim1832

    <a href="https://shorturl.fm/UB6nD">https://shorturl.fm/UB6nD</a&gt;

    2025-08-17
    回复
  • Derrick470

    <a href="https://shorturl.fm/n8JIN">https://shorturl.fm/n8JIN</a&gt;

    2025-08-17
    回复
  • Bryce3526

    <a href="https://shorturl.fm/BdQxv">https://shorturl.fm/BdQxv</a&gt;

    2025-08-17
    回复
  • Cheyenne3557

    <a href="https://shorturl.fm/7OmKg">https://shorturl.fm/7OmKg</a&gt;

    2025-08-17
    回复
  • Estelle4795

    <a href="https://shorturl.fm/upVFi">https://shorturl.fm/upVFi</a&gt;

    2025-08-17
    回复
  • Denise2291

    <a href="https://shorturl.fm/wcS6d">https://shorturl.fm/wcS6d</a&gt;

    2025-08-17
    回复
  • Gertrude4427

    <a href="https://shorturl.fm/JB8Ox">https://shorturl.fm/JB8Ox</a&gt;

    2025-08-17
    回复
  • Annabelle2144

    <a href="https://shorturl.fm/MkKyn">https://shorturl.fm/MkKyn</a&gt;

    2025-08-16
    回复
  • Israel1125

    <a href="https://shorturl.fm/eeYwk">https://shorturl.fm/eeYwk</a&gt;

    2025-08-16
    回复
  • Clara4712

    <a href="https://shorturl.fm/HGK36">https://shorturl.fm/HGK36</a&gt;

    2025-08-16
    回复
  • Clarence4051

    <a href="https://shorturl.fm/LnPjs">https://shorturl.fm/LnPjs</a&gt;

    2025-08-16
    回复
  • Nathan3855

    <a href="https://shorturl.fm/y3n8k">https://shorturl.fm/y3n8k</a&gt;

    2025-08-16
    回复
  • Jaden3065

    <a href="https://shorturl.fm/5LWEJ">https://shorturl.fm/5LWEJ</a&gt;

    2025-08-15
    回复
  • Adele702

    <a href="https://shorturl.fm/5TY32">https://shorturl.fm/5TY32</a&gt;

    2025-08-15
    回复
  • George2382

    <a href="https://shorturl.fm/kVowM">https://shorturl.fm/kVowM</a&gt;

    2025-08-15
    回复
  • Vera494

    <a href="https://shorturl.fm/kVowM">https://shorturl.fm/kVowM</a&gt;

    2025-08-15
    回复
  • Moses3031

    <a href="https://shorturl.fm/75kmc">https://shorturl.fm/75kmc</a&gt;

    2025-08-14
    回复
  • Harrison4621

    <a href="https://shorturl.fm/OxHN7">https://shorturl.fm/OxHN7</a&gt;

    2025-08-14
    回复
  • Cadence816

    <a href="https://shorturl.fm/rVHKo">https://shorturl.fm/rVHKo</a&gt;

    2025-08-13
    回复
  • 匿名

    大佬

    2024-04-01
    回复
  • firendlys

    tcp server / udp server 建议加上监听 127.0.0.1

    2023-05-25
    回复
  • garoa

    感谢老哥!!!!

    2022-10-12
    回复
  • Muller

    巨佬!!!!您开发的工具太实用了,真的非常感谢,辛苦了!

    2022-09-20
    回复
  • 取消回复

    COPYRIGHT © 2022 王彦为. ALL RIGHTS RESERVED.

    苏ICP备16063331号-1

    苏公网安备32050702011313号