Skip to content

fix qmodbus #1907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions iot/qmodbus/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ if PKG_USING_QMODBUS
select RT_USING_SAL
default n

config MB_USING_SOCK_BACKEND
bool "using TCP-server backend"
select RT_USING_SAL
default n

config MB_USING_RTU_PROTOCOL
bool "using MODBUS-RTU protocol"
default y
Expand Down Expand Up @@ -86,6 +91,13 @@ if PKG_USING_QMODBUS
select MB_USING_TCP_PROTOCOL
select MB_USING_SLAVE
default n

config MB_USING_SAMPLE_TCP_SRV_SLAVE
bool "sample TCP-server slave"
select MB_USING_SOCK_BACKEND
select MB_USING_TCP_PROTOCOL
select MB_USING_SLAVE
default n
endif

choice
Expand All @@ -97,13 +109,17 @@ if PKG_USING_QMODBUS
config PKG_USING_QMODBUS_LATEST_VERSION
bool "latest"

config PKG_USING_QMODBUS_V110
bool "v1.10"

config PKG_USING_QMODBUS_V100
bool "v1.00"
endchoice

config PKG_QMODBUS_VER
string
default "latest" if PKG_USING_QMODBUS_LATEST_VERSION
default "v1.10" if PKG_USING_QMODBUS_V110
default "v1.00" if PKG_USING_QMODBUS_V100

endif
6 changes: 6 additions & 0 deletions iot/qmodbus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"filename": "qmodbus-1.00.zip",
"VER_SHA": ""
},
{
"version": "v1.10",
"URL": "https://github.com/qiyongzhong0/qmodbus/archive/v1.10.zip",
"filename": "qmodbus-1.10.zip",
"VER_SHA": ""
},
{
"version": "latest",
"URL": "https://github.com/qiyongzhong0/qmodbus.git",
Expand Down
Loading