2018-06-28 15:45:41 +00:00
|
|
|
menu "Modbus configuration"
|
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_MASTER_TIMEOUT_MS_RESPOND
|
2018-10-19 13:51:27 +00:00
|
|
|
int "Slave respond timeout (Milliseconds)"
|
|
|
|
default 150
|
|
|
|
range 50 400
|
|
|
|
|
|
|
|
help
|
|
|
|
If master sends a frame which is not broadcast, it has to wait sometime for slave response.
|
|
|
|
if slave is not respond in this time, the master will process timeout error.
|
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_MASTER_DELAY_MS_CONVERT
|
2018-10-19 13:51:27 +00:00
|
|
|
int "Slave conversion delay (Milliseconds)"
|
|
|
|
default 200
|
|
|
|
range 50 400
|
|
|
|
|
|
|
|
help
|
|
|
|
If master sends a broadcast frame, it has to wait conversion time to delay,
|
|
|
|
then master can send next frame.
|
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_QUEUE_LENGTH
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus serial task queue length"
|
|
|
|
range 0 200
|
|
|
|
default 20
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus serial driver queue length. It is used by event queue task.
|
|
|
|
See the serial driver API for more information.
|
2018-06-28 15:45:41 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_SERIAL_TASK_STACK_SIZE
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus serial task stack size"
|
|
|
|
range 768 8192
|
|
|
|
default 2048
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus serial task stack size for event queue task.
|
|
|
|
It may be adjusted when debugging is enabled (for example).
|
2018-06-28 15:45:41 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_SERIAL_BUF_SIZE
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus serial task RX/TX buffer size"
|
|
|
|
range 0 2048
|
|
|
|
default 256
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus serial task RX and TX buffer size for UART driver initialization.
|
|
|
|
This buffer is used for modbus frame transfer. The Modbus protocol maximum
|
|
|
|
frame size is 256 bytes. Bigger size can be used for non standard implementations.
|
2018-06-28 15:45:41 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_SERIAL_TASK_PRIO
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus serial task priority"
|
|
|
|
range 3 10
|
|
|
|
default 10
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus UART driver event task priority.
|
2019-04-26 16:47:21 +00:00
|
|
|
The priority of Modbus controller task is equal to (CONFIG_FMB_SERIAL_TASK_PRIO - 1).
|
2018-06-28 15:45:41 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_CONTROLLER_SLAVE_ID_SUPPORT
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "Modbus controller slave ID support"
|
|
|
|
default n
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus slave ID support enable.
|
|
|
|
When enabled the Modbus <Report Slave ID> command is supported by stack.
|
2018-06-28 15:45:41 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_CONTROLLER_SLAVE_ID
|
2019-01-25 16:10:53 +00:00
|
|
|
hex "Modbus controller slave ID"
|
|
|
|
range 0 4294967295
|
|
|
|
default 0x00112233
|
2019-04-26 16:47:21 +00:00
|
|
|
depends on FMB_CONTROLLER_SLAVE_ID_SUPPORT
|
2019-01-25 16:10:53 +00:00
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus slave ID value to identify modbus device
|
|
|
|
in the network using <Report Slave ID> command.
|
|
|
|
Most significant byte of ID is used as short device ID and
|
|
|
|
other three bytes used as long ID.
|
2018-06-28 15:45:41 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_CONTROLLER_NOTIFY_TIMEOUT
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus controller notification timeout (ms)"
|
|
|
|
range 0 200
|
|
|
|
default 20
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus controller notification timeout in milliseconds.
|
|
|
|
This timeout is used to send notification about accessed parameters.
|
2018-06-28 15:45:41 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_CONTROLLER_NOTIFY_QUEUE_SIZE
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus controller notification queue size"
|
|
|
|
range 0 200
|
|
|
|
default 20
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus controller notification queue size.
|
|
|
|
The notification queue is used to get information about accessed parameters.
|
2018-06-28 15:45:41 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_CONTROLLER_STACK_SIZE
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus controller stack size"
|
|
|
|
range 0 8192
|
|
|
|
default 4096
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus controller task stack size. The Stack size may be adjusted when
|
|
|
|
debug mode is used which requires more stack size (for example).
|
2018-06-28 15:45:41 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_EVENT_QUEUE_TIMEOUT
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus stack event queue timeout (ms)"
|
|
|
|
range 0 500
|
|
|
|
default 20
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus stack event queue timeout in milliseconds. This may help to optimize
|
|
|
|
Modbus stack event processing time.
|
2019-01-25 16:10:53 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_TIMER_PORT_ENABLED
|
2018-10-19 13:51:27 +00:00
|
|
|
bool "Modbus slave stack use timer for 3.5T symbol time measurement"
|
2019-01-25 16:10:53 +00:00
|
|
|
default y
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
If this option is set the Modbus stack uses timer for T3.5 time measurement.
|
|
|
|
Else the internal UART TOUT timeout is used for 3.5T symbol time measurement.
|
2019-01-25 16:10:53 +00:00
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_TIMER_GROUP
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus Timer group number"
|
|
|
|
range 0 1
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Modbus Timer group number that is used for timeout measurement.
|
|
|
|
|
2019-04-26 16:47:21 +00:00
|
|
|
config FMB_TIMER_INDEX
|
2019-01-25 16:10:53 +00:00
|
|
|
int "Modbus Timer index in the group"
|
|
|
|
range 0 1
|
|
|
|
default 0
|
|
|
|
help
|
2018-10-19 13:51:27 +00:00
|
|
|
Modbus Timer Index in the group that is used for timeout measurement.
|
2018-06-28 15:45:41 +00:00
|
|
|
|
|
|
|
endmenu
|