CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - serial port read
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - serial port read - List
[
Com Port
]
20050120091918_MySerialPort[2004-01-18-01]
DL : 0
从串口读取数据,有两种方法,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 analysis is, in fact, overtime judgment. If a receiver to the news, some time had not received a EV_RXCHAR, it is a data packet to an end. This thread will receive notification of data threads for da
Date
: 2025-07-12
Size
: 45kb
User
:
刘云鹏
[
Windows CE
]
CRs232
DL : 0
vb.net 开发的WinCE下的串口通讯类,open()打开串口,read(),write()读写串口-vb.net WinCE development of the serial communications, open () to open the serial port, read (), write () to read and write serial
Date
: 2025-07-12
Size
: 9kb
User
:
韩俊峰
[
Com Port
]
serial IO
DL : 0
tcl编写的串口API,包括发送命令,以及读取串口命令。-Serial port IO API coding with tcl. Include write and read data from serial IO port.
Date
: 2025-07-12
Size
: 1kb
User
:
吴滔
[
Com Port
]
CommPort-CSharp
DL : 0
利用rs232类进行串口的读写操作,并在windows下显示读写的数据.开发环境:VS.NET2003-use RS232 serial port for the class to read and write operation and shown in the windows read and write data. Development environment : VS.NET2003
Date
: 2025-07-12
Size
: 2kb
User
:
任绘锦
[
Communication
]
duxiechuankou
DL : 0
一个简单的例子:如何从串口读取数据,以及向串口写数据-a simple example : how to read data from the serial port and write data to the serial port
Date
: 2025-07-12
Size
: 29kb
User
:
凌东生
[
Windows Mobile
]
zylgpsrecmob
DL : 0
从串口读取数据,然后解析nmia,进行定位。 源码码齐全-read data from the serial port, then analytic nmia for positioning. Complete source code. .
Date
: 2025-07-12
Size
: 497kb
User
:
beckin
[
Embeded Linux
]
ew809
DL : 0
这是一个对ARM9通用的LINUX ARM QT串口初始化设置,只要在自己的程序打开这个程序,及初始化数据结构,就可以读写出N个字节的串口数据-This is an ARM9 general-purpose serial port LINUX ARM QT initialization settings, as long as in their own program to open this process, and to initialize the data structure, you can read and write out the N-byte serial data
Date
: 2025-07-12
Size
: 18kb
User
:
陈龙昌
[
Driver Develop
]
ISA12port9054
DL : 0
win2000下ISA接口的串口板卡的驱动程序,接口芯片用的是9054,共有12路串口,包括对串口的读、写及初始化操作。-win2000 under ISA serial interface card driver, interface chip is used in 9054, a total of 12 serial ports, including the serial port of the read, write, and the initialization.
Date
: 2025-07-12
Size
: 18kb
User
:
蔡琦
[
Communication
]
Serial_oscillogragh
DL : 0
从串口读取数据,本例是读取数据包,然后筛选所需要的数据进行波形显示-Read data from the serial port, which in this case is to read the packet, and then filter the data needed to carry out waveform display
Date
: 2025-07-12
Size
: 37kb
User
:
hechao
[
Other
]
prodram
DL : 0
编写VB程序来访问串口,达到读取电子秤上显示的数据-The preparation of VB to access serial port, to read the electronic scale shown on the data
Date
: 2025-07-12
Size
: 3kb
User
:
张艳荣
[
Communication
]
comm
DL : 0
关于串口通讯的类,很方便的读写串口进行通讯。-On the serial communication class, it is easy to read and write serial port to communicate.
Date
: 2025-07-12
Size
: 7kb
User
:
龙哥
[
Communication
]
loadometerReader
DL : 0
托利多电子地磅,串口直接读取程序源码。该源码无需任何Dll,内置了地磅的串口协议。能自动读取指定的二进制位的读数。-Toledo Electronic loadometer, serial direct source reading program. The source without any Dll, built-in serial port loadometer agreement. Can automatically read the specified binary readings.
Date
: 2025-07-12
Size
: 9kb
User
:
pengyong
[
Driver Develop
]
wdf_kmdf_basic_src
DL : 0
serial port read/write,对USB和com端口的数据读写可以实时操作,但是com端口必须未被其他程序占用,如果被占用,将会无法打开。-serial port read/write, and com port on the USB data read and write real-time operation, but the com port must have not been occupied by other programs, if occupied, will be unable to open.
Date
: 2025-07-12
Size
: 5kb
User
:
langqichao
[
Communication
]
serial
DL : 0
由于WINCE不支持重叠I/O操作,因此可分别用单独的线程去读写串口,通过多线程来模拟重叠操作[4]-WINCE does not support as a result of overlapping I/O operation, it can be a separate thread to read and write serial port, through multi-threading to simulate the overlapping of operations [4]
Date
: 2025-07-12
Size
: 172kb
User
:
owen
[
CSharp
]
DLL
DL : 0
GsmModem 源码 短信模块通过串口与PC机相连,该程序操作短信模块,发送手机短信,不支持接收手机短信,短信内容是从Microsoft SQL server中读取的,数据表和存储过程都提供了。开发平台是.net,语言是C#。操作短信模块指令是AT指令。 -GsmModem message source modules through the serial port and PC-connected operation of the program module message, send cell phone message, cell phone does not support the message receiver, message content from the Microsoft SQL server are read, the data tables and stored procedures are provided. Development platform are. Net, language is C#. Message module operating instructions are AT commands.
Date
: 2025-07-12
Size
: 2.98mb
User
:
邸
[
GPS develop
]
serial-port-communication-examples
DL : 0
包括了读取GPS串口,串口读写操作,串口数据合并等串口操作实例,对于熟悉串口操作有很大帮助。-Read and Write example performs a Serial Port Read, a Serial Port Write, or a combination of these actions while setting some advanced serial features like buffer size, termination characters, and XON/XOFF flow control.
Date
: 2025-07-12
Size
: 109kb
User
:
wu
[
Linux-Unix
]
serial
DL : 0
在linux下的串口读写程序,包括串口的各种设置。用到open-port和set-port函数。-In linux serial port to read and write under the procedures, including a variety of serial port settings. Open-port and use set-port function.
Date
: 2025-07-12
Size
: 1kb
User
:
牛志强
[
Com Port
]
Port
DL : 0
It is an application to read or write to a bluetooth device using serial port communication
Date
: 2025-07-12
Size
: 8.25mb
User
:
vishal
[
Com Port
]
Linux-read-serial-port-
DL : 0
linux c/c++的串口的读写方法,提供详尽的Linux源程序,方便读者实现串口读写功能-linux c/c++ read and write the serial method, Linux source code to provide detailed, easy to readers to read and write capabilities to achieve serial
Date
: 2025-07-12
Size
: 1.59mb
User
:
Essay
[
LabView
]
Serial-Port-DataConvert
DL : 0
LabVIEW编写的,用于串口的调试,里面包括很多子vi,包括串口的配置,串口的读取,写入,串口数据的进制转换等-Written in LabVIEW, for serial debugging, which includes many sub-vi, including the configuration of the serial port, serial port read, write, and serial data hex conversion
Date
: 2025-07-12
Size
: 335kb
User
:
张先生
«
1
2
3
4
5
6
7
8
9
10
...
48
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.