实例介绍
基于qt4-5的,基于开源modbus协议,基于qt串口,可以配置为linux或windows平台编译都可以,作为串口,网络通讯的学习也是一个不错的资源
【实例截图】
【核心代码】
da3aad8f-79ae-4e6f-bd78-aa5785a2bb47
└── qmodbus-master
├── 3rdparty
│ ├── libmodbus
│ │ ├── acinclude.m4
│ │ ├── AUTHORS
│ │ ├── autogen.sh
│ │ ├── config.h
│ │ ├── configure.ac
│ │ ├── COPYING.LESSER
│ │ ├── debian
│ │ │ ├── changelog
│ │ │ ├── compat
│ │ │ ├── control
│ │ │ ├── copyright
│ │ │ ├── libmodbus5.install
│ │ │ ├── libmodbus-dev.docs
│ │ │ ├── libmodbus-dev.examples
│ │ │ ├── libmodbus-dev.install
│ │ │ ├── libmodbus-dev.manpages
│ │ │ ├── rules
│ │ │ └── source
│ │ │ └── format
│ │ ├── doc
│ │ │ ├── asciidoc.conf
│ │ │ ├── libmodbus.txt
│ │ │ ├── Makefile.am
│ │ │ ├── modbus_close.txt
│ │ │ ├── modbus_connect.txt
│ │ │ ├── modbus_flush.txt
│ │ │ ├── modbus_free.txt
│ │ │ ├── modbus_get_byte_from_bits.txt
│ │ │ ├── modbus_get_byte_timeout.txt
│ │ │ ├── modbus_get_float_dcba.txt
│ │ │ ├── modbus_get_float.txt
│ │ │ ├── modbus_get_header_length.txt
│ │ │ ├── modbus_get_response_timeout.txt
│ │ │ ├── modbus_get_socket.txt
│ │ │ ├── modbus_mapping_free.txt
│ │ │ ├── modbus_mapping_new.txt
│ │ │ ├── modbus_mask_write_register.txt
│ │ │ ├── modbus_new_rtu.txt
│ │ │ ├── modbus_new_tcp_pi.txt
│ │ │ ├── modbus_new_tcp.txt
│ │ │ ├── modbus_read_bits.txt
│ │ │ ├── modbus_read_input_bits.txt
│ │ │ ├── modbus_read_input_registers.txt
│ │ │ ├── modbus_read_registers.txt
│ │ │ ├── modbus_receive_confirmation.txt
│ │ │ ├── modbus_receive.txt
│ │ │ ├── modbus_reply_exception.txt
│ │ │ ├── modbus_reply.txt
│ │ │ ├── modbus_report_slave_id.txt
│ │ │ ├── modbus_rtu_get_rts.txt
│ │ │ ├── modbus_rtu_get_serial_mode.txt
│ │ │ ├── modbus_rtu_set_rts.txt
│ │ │ ├── modbus_rtu_set_serial_mode.txt
│ │ │ ├── modbus_send_raw_request.txt
│ │ │ ├── modbus_set_bits_from_bytes.txt
│ │ │ ├── modbus_set_bits_from_byte.txt
│ │ │ ├── modbus_set_byte_timeout.txt
│ │ │ ├── modbus_set_debug.txt
│ │ │ ├── modbus_set_error_recovery.txt
│ │ │ ├── modbus_set_float_dcba.txt
│ │ │ ├── modbus_set_float.txt
│ │ │ ├── modbus_set_response_timeout.txt
│ │ │ ├── modbus_set_slave.txt
│ │ │ ├── modbus_set_socket.txt
│ │ │ ├── modbus_strerror.txt
│ │ │ ├── modbus_tcp_accept.txt
│ │ │ ├── modbus_tcp_listen.txt
│ │ │ ├── modbus_tcp_pi_accept.txt
│ │ │ ├── modbus_tcp_pi_listen.txt
│ │ │ ├── modbus_write_and_read_registers.txt
│ │ │ ├── modbus_write_bits.txt
│ │ │ ├── modbus_write_bit.txt
│ │ │ ├── modbus_write_registers.txt
│ │ │ └── modbus_write_register.txt
│ │ ├── libmodbus.pc.in
│ │ ├── libmodbus.spec.in
│ │ ├── m4
│ │ ├── Makefile.am
│ │ ├── MIGRATION
│ │ ├── NEWS
│ │ ├── qmodbus-diff.diff
│ │ ├── README.md
│ │ ├── src
│ │ │ ├── Makefile.am
│ │ │ ├── modbus-ascii.c
│ │ │ ├── modbus-ascii.h
│ │ │ ├── modbus-ascii-private.h
│ │ │ ├── modbus.c
│ │ │ ├── modbus-data.c
│ │ │ ├── modbus.h
│ │ │ ├── modbus-private.h
│ │ │ ├── modbus-rtu.c
│ │ │ ├── modbus-rtu.h
│ │ │ ├── modbus-rtu-private.h
│ │ │ ├── modbus-tcp.c
│ │ │ ├── modbus-tcp.h
│ │ │ ├── modbus-tcp-private.h
│ │ │ ├── modbus-version.h
│ │ │ ├── modbus-version.h.in
│ │ │ └── win32
│ │ │ ├── config.h.win32
│ │ │ ├── configure.js
│ │ │ ├── Make-tests
│ │ │ ├── modbus-9.sln
│ │ │ ├── modbus.dll.manifest.in
│ │ │ ├── modbus.rc
│ │ │ ├── modbus.vcproj
│ │ │ └── README.win32
│ │ └── tests
│ │ ├── bandwidth-client.c
│ │ ├── bandwidth-server-many-up.c
│ │ ├── bandwidth-server-one.c
│ │ ├── Makefile.am
│ │ ├── random-test-client.c
│ │ ├── random-test-server.c
│ │ ├── README
│ │ ├── unit-test-client.c
│ │ ├── unit-test.h.in
│ │ ├── unit-test-server.c
│ │ └── version.c
│ └── qextserialport
│ ├── posix_qextserialport.cpp
│ ├── qextserialenumerator.h
│ ├── qextserialenumerator_osx.cpp
│ ├── qextserialenumerator_unix.cpp
│ ├── qextserialenumerator_win.cpp
│ ├── qextserialport.cpp
│ ├── qextserialport_global.h
│ ├── qextserialport.h
│ ├── qwineventnotifier_p.h
│ └── win_qextserialport.cpp
├── AUTHORS
├── build_mingw32
├── cmake
│ ├── MinGWCrossCompile.cmake
│ ├── Win32Toolchain.cmake
│ └── Win32Toolchain-Native.cmake
├── CMakeLists.txt
├── COPYING
├── data
│ ├── logo.png
│ ├── logo.svg
│ ├── qmodbus.ico
│ └── qmodbus.qrc
├── forms
│ ├── about.ui
│ ├── BatchProcessor.ui
│ ├── ipaddressctrl.ui
│ ├── mainwindow.ui
│ ├── serialsettingswidget.ui
│ └── tcpipsettingswidget.ui
├── INSTALL
├── qmodbus.pro
├── qmodbus.rc.in
├── README
├── src
│ ├── asciisettingswidget.cpp
│ ├── asciisettingswidget.h
│ ├── BatchProcessor.cpp
│ ├── BatchProcessor.h
│ ├── imodbus.h
│ ├── ipaddressctrl.cpp
│ ├── ipaddressctrl.h
│ ├── iplineedit.cpp
│ ├── iplineedit.h
│ ├── main.cpp
│ ├── mainwindow.cpp
│ ├── mainwindow.h
│ ├── rtusettingswidget.cpp
│ ├── rtusettingswidget.h
│ ├── serialsettingswidget.cpp
│ ├── serialsettingswidget.h
│ ├── tcpipsettingswidget.cpp
│ └── tcpipsettingswidget.h
└── TODO
15 directories, 163 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论