mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
d0b9829eef
Add TCP port files to provide Modbus TCP interface for communication Add freemodbus add tcp support for common master/slave iface and tcp example based on socket API The communication between master and slave checked for each example serial_master, serial_slave (use ModbusPoll TCP) update tcp example according netif changes, fix ci issues update TCP slave implementation update example_test.py to to set IP through stdin update API documentation event bit instead of semahore to lock communication resource update default options and master/slave port files Closes https://github.com/espressif/esp-idf/issues/858 Closes IDF-452
19 lines
539 B
Plaintext
19 lines
539 B
Plaintext
#
|
|
# Modbus configuration
|
|
#
|
|
CONFIG_FMB_COMM_MODE_TCP_EN=y
|
|
CONFIG_FMB_TCP_PORT_DEFAULT=502
|
|
CONFIG_FMB_TCP_CONNECTION_TOUT_SEC=20
|
|
CONFIG_FMB_PORT_TASK_STACK_SIZE=4096
|
|
CONFIG_FMB_PORT_TASK_PRIO=10
|
|
CONFIG_FMB_COMM_MODE_RTU_EN=n
|
|
CONFIG_FMB_COMM_MODE_ASCII_EN=n
|
|
CONFIG_FMB_MASTER_TIMEOUT_MS_RESPOND=2000
|
|
CONFIG_FMB_MASTER_DELAY_MS_CONVERT=300
|
|
CONFIG_FMB_TIMER_PORT_ENABLED=y
|
|
CONFIG_FMB_TIMER_GROUP=0
|
|
CONFIG_FMB_TIMER_INDEX=0
|
|
CONFIG_FMB_TIMER_ISR_IN_IRAM=y
|
|
CONFIG_MB_MDNS_IP_RESOLVER=n
|
|
CONFIG_MB_SLAVE_IP_FROM_STDIN=y
|
|
CONFIG_EXAMPLE_CONNECT_IPV6=n |