官网:http://www.hw-group.com/products/hercules/index_en.html 不要再自己傻傻的写socket测试客户端了 Hercules is great utility if you are working with the serial and Ethernet devices & interfaces. General useful parts : Serial port terminal (COM5 and higher support) TCP
public class TestConnect { string hostIp = ""; int port = 3314; public string recMsg = ""; Socket socketC = null; private readonly ManualResetEvent TimeoutObject = new ManualResetEvent(false); public TestConnect(string hostIp, int po
建议像我这样最开始未接触过的,还是先从简单录制开始.录制完之后,分析测试脚本,再学习,再自己根据需要编写测试脚本. 第一:录制. A. B. 选择需要录制的exe的目录 ,填写完后点击ok. C.系统会自动调用exe,开始进行录制状态. D.操作录制完后,点击stop按钮.查看录制脚本,和发送buf如下: 第二:直接写测试脚本. A. action内脚本如下: #include "lrs.h" Action(){ int c=0; int sum=0; int ret; //第一