登录
首页 » Com Port » Realize serial communication, two computers between the link function

Realize serial communication, two computers between the link function

于 2023-03-13 发布 文件大小:53.72 kB
0 183
下载积分: 2 下载次数: 1

代码说明:

实现串口通信,两台计算机之间的相互链接功能-Realize serial communication, two computers between the link function

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 从串口读取数据,有两种方法,1、每接收一个EV_RXCHAR,就用ReadFile读一次,这样我觉得太恐怖了。2、接收到一个EV_RXCHAR后,等一定数据量的...
    从串口读取数据,有两种方法,1、每接收一个EV_RXCHAR,就用ReadFile读一次,这样我觉得太恐怖了。2、接收到一个EV_RXCHAR后,等一定数据量的CPU周期(GetTickCount),再一次性读取缓冲区里的数据。这样做,一般情况下不会有问题,但是,如果数据很多,过了“一定数据量的CPU周期”,还没收完数据怎么办?就会少读数据了。 我用三个线程序来完成串口数据的接收,其实就是第一种方法的变种: 一个侦听EV_RXCHAR,一个对EV_RXCHAR进行分析,其实就是超时判断。如果接收到一个消息后,一段时间没收到下一个EV_RXCHAR,就认为是一个数据包的结束。这个线程就会通知数据接收线程,进行数据接收。一般同一包数据,两个字符之间的时间间隔,应该很小了吧,而两个数据包之间的间隔,应该不会太小吧!(这个地方我不清楚,猜的:( :) )最后一个线程,是接收数据的。-read data from the serial port, there are two methods, one, each receiving a EV_RXCHAR, on the ReadFile read, I think this vote. 2, received a EV_RXCHAR after a certain volume of data, such as CPU cycles (GetTickCount), and the one-time reader, the data buffer. To do so, under normal circumstances there is no problem, but if many of the data, and after a "certain amount of data the CPU cycles," also confiscated End Data how do? Few will read the data. I used three lines to complete serial data reception, the first method is a variant : an interception EV_RXCHAR, one pair of EV_RXCHAR analys
    2023-03-23 09:55:03下载
    积分:1
  • Visual C++串口通信编程实践(包括串口调试助手源代码)
    Visual C++串口通信编程实践(包括串口调试助手源代码)-Visual C serial communication programming practice (including serial debugging assistant source code)
    2022-06-20 12:18:28下载
    积分:1
  • use of IC cards issuers of prepaid PB VF BCB DELPHI VC
    使用IC卡发卡机构的预付费PB VF BCB DELPHI VC源程序,对其进行了详细说明
    2023-05-30 12:50:03下载
    积分:1
  • 通过串口控件的串口小程序,发送和接收数据,以及保存数据。...
    通过串口控件的串口小程序,发送和接收数据,以及保存数据。-serial control through serial small program to send and receive data, and store data.
    2023-04-09 21:05:03下载
    积分:1
  • 常用短消息SMS指令一览表及其用法详尽说明,简单易懂。
    常用短消息SMS指令一览表及其用法详尽说明,简单易懂。-SMS Short Message commonly used commands and their usage in detail a list of shows that simple.
    2022-03-04 10:38:44下载
    积分:1
  • operate under effective Serial GPS data from two, the file name suffix. Rar be r...
    eVC下操作串口提取GPS有效数据2,把文件名的后缀.rar去掉即可,不要解压缩。-operate under effective Serial GPS data from two, the file name suffix. Rar be removed, not decompress.
    2023-05-15 23:10:02下载
    积分:1
  • 水木清华所开发的超级终端工具,和putty工具大同小异,值得研究...
    水木清华所开发的超级终端工具,和putty工具大同小异,值得研究-SMTH HyperTerminal developed tools, and tools similar to putty, to be studied
    2022-07-21 15:29:55下载
    积分:1
  • 2005
    2005-7-13 10:03 前几天要做一个短信收发的小软件,于是按照习惯Box寻找例程和控件,可惜没有找到! 于是,大幅翁、Google!!!终于找到了好几个,不是要收费就是不能用!气愤!! 这又不是什么高新尖端科技,俺们不是做不出来,俺们只是秉承RAD的精神而已! 于是这个短消息控件诞生了!虽然还很简陋,起码胳膊腿都有了,剩下就看它怎么跑了! 使用标准AT指令 现在只能支持PDU模式(Text模式太简陋)! 支持7_Bit 和 UCS2 编码 集成了串口(spcomm) 只需要简单的配置几个参数就可以收发短信了-2005-7-13 10:03 A few days ago to be a small message to send and receive software, then in accordance with the customary Box search routines and controls, but did not find! Thus, a substantial Weng, Google!!! Finally found a few, not a fee is not! Angry! ! This is not a high-tech state of the art technology, not俺们not able to,俺们only uphold the spirit of just RAD! So the short message control was born! Although very simple, at least arm leg with the rest look on how it ran! Using standard AT commands can now only support PDU mode (Text model is too simple)! Support the UCS2 coding 7_Bit and integrated serial port (spcomm) only need a few simple parameters can be configured to send and receive a message
    2022-01-25 15:33:03下载
    积分:1
  • 开源串口利用Xmodem,Ymodem,ZModem 下载,上传的程序.在Linux,Arm
    开源串口利用Xmodem,Ymodem,ZModem 下载,上传的程序.在Linux,Arm-Linux 都可使用-Open serial port using Xmodem, Ymodem, ZModem download, upload procedure. In Linux, Arm-Linux can be used
    2022-08-13 12:28:55下载
    积分:1
  • 对带LED显示的非接触IC卡读写器的控制,寻卡、读取卡片的物理序列号、核对密钥、读卡、写卡,通过LED数码管显示卡号等信息。...
    对带LED显示的非接触IC卡读写器的控制,寻卡、读取卡片的物理序列号、核对密钥、读卡、写卡,通过LED数码管显示卡号等信息。-With LED display on the non-contact IC card reader control, look for cards, the card reader physical serial number, check the key, card reader, writing cards, through the LED digital display card number and other information.
    2022-03-03 20:48:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载