串口通信 hub4com

  • AgeeLo
    了解作者
  • C/C++
    开发工具
  • 237.8KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2022-05-26 13:56
    上传日期
源代码: hub4com-2.1.0.0.zip - 解包大小为 789.9 KB 。http://sourceforge.net/projects/com0com/
hub4com-2.1.0.0.zip
  • hub4com-2.1.0.0
  • plugins
  • linectl
  • filter.cpp
    12.3KB
  • linectl.vcproj
    4.6KB
  • precomp.cpp
    1012B
  • .cvsignore
    24B
  • precomp.h
    1.2KB
  • escinsert
  • escinsert.vcproj
    4.6KB
  • filter.cpp
    16.5KB
  • precomp.cpp
    1012B
  • .cvsignore
    24B
  • precomp.h
    1.2KB
  • telnet
  • opt_comport.h
    3.6KB
  • opt_termtype.h
    1.4KB
  • import.h
    1.6KB
  • telnet.vcproj
    5KB
  • telnet.cpp
    9.6KB
  • filter.cpp
    31.6KB
  • opt_termtype.cpp
    2.3KB
  • precomp.cpp
    1.2KB
  • opt_comport.cpp
    23.5KB
  • .cvsignore
    24B
  • precomp.h
    1.3KB
  • telnet.h
    4.3KB
  • tag
  • filter.cpp
    19.7KB
  • precomp.cpp
    1007B
  • tag.vcproj
    4.5KB
  • .cvsignore
    24B
  • precomp.h
    1.2KB
  • trace
  • trace.vcproj
    4.5KB
  • filter.cpp
    24.9KB
  • precomp.cpp
    1012B
  • .cvsignore
    24B
  • precomp.h
    1.3KB
  • escparse
  • escparse.vcproj
    4.6KB
  • filter.cpp
    21.5KB
  • precomp.cpp
    1012B
  • .cvsignore
    24B
  • precomp.h
    1.3KB
  • pinmap
  • pinmap.vcproj
    4.6KB
  • filter.cpp
    20.1KB
  • precomp.cpp
    1012B
  • .cvsignore
    24B
  • precomp.h
    1.2KB
  • awakseq
  • awakseq.vcproj
    4.6KB
  • filter.cpp
    13.3KB
  • precomp.cpp
    1.2KB
  • .cvsignore
    24B
  • precomp.h
    1.2KB
  • connector
  • comport.cpp
    4.5KB
  • connector.vcproj
    4.7KB
  • import.h
    1.2KB
  • port.cpp
    10KB
  • precomp.cpp
    1007B
  • .cvsignore
    24B
  • precomp.h
    1.2KB
  • comport.h
    1.8KB
  • purge
  • filter.cpp
    9KB
  • purge.vcproj
    4.5KB
  • precomp.cpp
    1012B
  • .cvsignore
    24B
  • precomp.h
    1.2KB
  • tcp
  • comio.h
    4.8KB
  • comport.cpp
    17.6KB
  • comparams.h
    2KB
  • tcp.vcproj
    5KB
  • import.h
    1.9KB
  • port.cpp
    13.8KB
  • comio.cpp
    17.5KB
  • comparams.cpp
    2.8KB
  • precomp.cpp
    1.2KB
  • .cvsignore
    24B
  • precomp.h
    1.3KB
  • comport.h
    5KB
  • pin2con
  • pin2con.vcproj
    4.6KB
  • filter.cpp
    15.9KB
  • precomp.cpp
    1.2KB
  • .cvsignore
    24B
  • precomp.h
    1.2KB
  • lsrmap
  • filter.cpp
    8.5KB
  • lsrmap.vcproj
    4.6KB
  • precomp.cpp
    1012B
  • .cvsignore
    24B
  • precomp.h
    1.2KB
  • echo
  • filter.cpp
    5.3KB
  • precomp.cpp
    1.1KB
内容介绍
================================ HUB for communications (hub4com) ================================ INTRODUCTION ============ The HUB for communications (hub4com) is a Windows application and is a part of the com0com project. It allows to receive data and signals from one port, modify and send it to a number of ports and vice versa. In conjunction with the com0com driver the hub4com allows to - handle data and signals from a single real serial device by a number of different applications. For example, several applications can share data from one GPS device; - use real serial ports of remote computer like if they exist on the local computer. The homepage for com0com project is http://com0com.sourceforge.net/. TESTING ======= 1. With the com0com driver create three virtual COM port pairs with port names CNCA0, CNCB0, CNCA1, CNCB1, CNCA2 and CNCB2 (see com0com's ReadMe.txt file for details). 2. Start the hub4com.exe on CNCB0, CNCB1 and CNCB2 ports: hub4com --route=All:All \\.\CNCB0 \\.\CNCB1 \\.\CNCB2 3. Start the HyperTerminal on CNCA0 port. 4. Start the HyperTerminal on CNCA1 port. 5. Start the HyperTerminal on CNCA2 port. 6. The data typed to any HyperTerminal window should be printed on the others HyperTerminal windows. EXAMPLES OF USAGE ================= GPS hub ------- You have a GPS device that connected to your computer via a phisical COM1 port and you'd like to handle its data by two GPS applications. You can do it this way: 1. With the com0com's Setup Command Prompt create COM5<->CNCB0 and COM6<->CNCB1 virtual COM port pairs (see com0com's ReadMe.txt for more info). For example: command> install 0 PortName=COM5 - command> install 1 PortName=COM6 - 2. Start the hub4com.exe on COM1, CNCB0 and CNCB1 ports: hub4com \\.\COM1 \\.\CNCB0 \\.\CNCB1 It will send data received from COM1 port to CNCB0 and CNCB1 ports and it will send data received from CNCB0 port to COM1 port. 3. Start the GPS applications on COM5 and COM6 ports. COM port to telnet redirector ----------------------------- You have old TERM95.EXE application from the Norton Commander 5.0 for MS-DOS and you'd like to use it to communicate with your.telnet.server telnet server. You can do so this way: 1. With the com0com's Setup Command Prompt create COM2<->CNCB0 virtual COM port pair (see com0com's ReadMe.txt for more info). For example: command> install 0 PortName=COM2 - 2. Start the com2tcp.bat on CNCB0 port. For example: com2tcp --telnet \\.\CNCB0 your.telnet.server telnet 3. Start the TERM95.EXE on COM2 port. BTW: com2tcp.bat is a wrapper to hub4com.exe. It works very similar to the "COM port to TCP redirector" (com2tcp). It supports all com2tcp's options. If you feel that com2tcp is what you need but can't find any required functionality (for example RFC 2217 support) then try use hub4com instead. RFC 2217 server (TCP to COM port redirector) -------------------------------------------- You have a server computer with phisical COM1 port and you'd like to share it through the network by the RFC 2217 "Telnet Com Port Control Option" protocol: 1. Start the com2tcp-rfc2217.bat on COM1 port. For example: com2tcp-rfc2217 COM1 7000 It will listen TCP/IP port 7000 for incaming connections and redirect them to COM1 port. RFC 2217 client (COM port to TCP redirector) -------------------------------------------- You have a server computer your.comport.server with phisical serial port shared through the network by the RFC 2217 protocol (see above example) and you'd like to use it on the client computer like a virtual serial port. 1. With the com0com's Setup Command Prompt create COM5<->CNCB0 virtual COM port pair (see com0com's ReadMe.txt for more info). For example: command> install 0 PortName=COM5,EmuBR=yes - 2. Start the com2tcp-rfc2217.bat on CNCB0 port. For example: com2tcp-rfc2217 \\.\CNCB0 your.comport.server 7000 It will redirect virtual serial port COM5 on the second computer to the phisical serial port on the first computer. CHAT server ----------- You'd like by using computer with address your.computer.addr to allow up to 5 users to chat by using ordinary telnet application. 1. Start the hub4com.exe on the computer with address your.computer.addr: hub4com --load=,,_END_ --create-filter=telnet --add-filters=All:telnet --route=All:All --use-driver=tcp *5555 *5555 *5555 *5555 *5555 _END_ 2. Now users can join to the chat by connecting to port 5555 of your computer. For example: telnet your.computer.addr 5555 CVS pserver proxy ----------------- You have a computer that has not access to the internet and you'd like to allow it to access to hub4com's CVS repository by using proxy computer with address your.computer.addr. 1. Start the hub4com.exe on the computer with address your.computer.addr: hub4com.exe --use-driver=tcp /2401 com0com.cvs.sourceforge.net:2401 2. On computer that has not access to the internet check out the hub4com souce code from the CVS repository: cvs -d:pserver:anonymous@your.computer.addr:/cvsroot/com0com login cvs -z3 -d:pserver:anonymous@your.computer.addr:/cvsroot/com0com co -P hub4com CVS ssh to https proxy ---------------------- You have a computer that is behind firewall which block traffic on the SSH ports used to access SourceForge CVS servers for developers. SourceForge provides SSH access to CVS servers using port 443, to eliminate this problem but CVSNT does not allow specifying the port for using the SSH. To eliminate this problem (for <your-progect>, <developername> and <modulename>): 1. Start the hub4com.exe: hub4com.exe --use-driver=tcp <your-progect>.cvs.sourceforge.net:443 --interface=localhost /22 2. Check out the souce code from the CVS repository: cvs -z3 -d:ssh:<developername>@localhost:/cvsroot/<your-progect> co -P <modulename> Multiplexing ------------ You have a client computer that has a serial port COM1 and a server computer that has four serial ports COM1, COM2, COM3 and COM4. Both computers linked each other by null-modem cable between their COM1 ports. There are not any other connections between the computers. You'd like to use COM2, COM3 and COM4 of the server computer like if they exist on the client computer: -------------------------------------- -------------------- | Client computer | | Server computer | | | | | | app1 -- COM2 (virtual) -- | null-modem | -- COM2 --- | \ | cable | / | | app2 -- COM3 (virtual) --->-- COM1 -------------- COM1 --<--- COM3 --- | / | | \ | | app3 -- COM4 (virtual) -- | | -- COM4 --- -------------------------------------- -------------------- |<--------multiplexed------->| |<-------------RFC 2217------------->| 1. With the com0com's Setup Command Prompt on client computer create COM2<->CNCB0, COM3<->CNCB1 and COM4<->CNCB2 virtual serial port pairs (see com0com's ReadMe.txt for more info). For example: command> install 0 PortName=COM2,EmuBR=yes - command> install 1 PortName=COM3,EmuBR=yes - command> install 2 PortName=COM4,EmuBR=yes - 2. Start the multiplexer.bat on the Server compu
评论
    相关推荐
    • 串口通信.zip
      串口通信程序,刚学习的适合看一看,这也是我在学习时编写的。
    • 串行通讯-例子.zip
      RJ485 通信3 专题-串行通讯PPT等Labview串行通讯专题讲座介绍
    • 串口通讯.zip
      通过 VC 编写的一个串口通讯例子代码。
    • 串口通讯.rar
      labview串口通讯,读取串口数据,显示数据
    • 串口通讯.rar
      串口通讯labview中实现串口设备的读写通信操作
    • MFC串口通信
      MFC串口通信程序代码,含界面 // 串口通信.cpp : 定义应用程序的类行为。 // #include "stdafx.h" #include "串口通信.h" #include "串口通信Dlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // C串口通信...
    • 串口编程大全串行通信程序
      串口编程 串口开发 串行通信程序 学习不同操作系统和硬件平台之间轻松移植程序
    • 串口通信编程大全》
      17. 串行通信波特率的一种自动检测方法…………………………………53 18. RS-232、RS-422 与RS-485 标准及应用………………………………56 19. 串口泵…………………………………………………………………64
    • CX1000串口通讯.zip
      使用CX1000作为串口的的发送端,发送PLC相关数据到接收端
    • 串行通信教程.rar
      欧姆龙PPLC串行通信教程,很详细的说明教程