Skip to content

Commit af742f2

Browse files
authored
fix qmodbus (#1907)
* add drmp * fix misc/drmp/Kconfig * fix qmodbus
1 parent 36eef9a commit af742f2

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

iot/qmodbus/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ if PKG_USING_QMODBUS
3838
select RT_USING_SAL
3939
default n
4040

41+
config MB_USING_SOCK_BACKEND
42+
bool "using TCP-server backend"
43+
select RT_USING_SAL
44+
default n
45+
4146
config MB_USING_RTU_PROTOCOL
4247
bool "using MODBUS-RTU protocol"
4348
default y
@@ -86,6 +91,13 @@ if PKG_USING_QMODBUS
8691
select MB_USING_TCP_PROTOCOL
8792
select MB_USING_SLAVE
8893
default n
94+
95+
config MB_USING_SAMPLE_TCP_SRV_SLAVE
96+
bool "sample TCP-server slave"
97+
select MB_USING_SOCK_BACKEND
98+
select MB_USING_TCP_PROTOCOL
99+
select MB_USING_SLAVE
100+
default n
89101
endif
90102

91103
choice
@@ -97,13 +109,17 @@ if PKG_USING_QMODBUS
97109
config PKG_USING_QMODBUS_LATEST_VERSION
98110
bool "latest"
99111

112+
config PKG_USING_QMODBUS_V110
113+
bool "v1.10"
114+
100115
config PKG_USING_QMODBUS_V100
101116
bool "v1.00"
102117
endchoice
103118

104119
config PKG_QMODBUS_VER
105120
string
106121
default "latest" if PKG_USING_QMODBUS_LATEST_VERSION
122+
default "v1.10" if PKG_USING_QMODBUS_V110
107123
default "v1.00" if PKG_USING_QMODBUS_V100
108124

109125
endif

iot/qmodbus/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
"filename": "qmodbus-1.00.zip",
2727
"VER_SHA": ""
2828
},
29+
{
30+
"version": "v1.10",
31+
"URL": "https://github.com/qiyongzhong0/qmodbus/archive/v1.10.zip",
32+
"filename": "qmodbus-1.10.zip",
33+
"VER_SHA": ""
34+
},
2935
{
3036
"version": "latest",
3137
"URL": "https://github.com/qiyongzhong0/qmodbus.git",

0 commit comments

Comments
 (0)