-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Build is missing Modbus features with Modbus checked. #344
Comments
Jan, try to contact Tasmota Dev Team on discord. As stated here: https://tasmota.github.io/docs/Modbus-Bridge this functionality should be enabled by: #ifndef USE_MODBUS_BRIDGE
#define USE_MODBUS_BRIDGE // Add support for software Modbus Bridge (+3k code)
#define USE_MODBUS_BRIDGE_TCP // Add support for software Modbus TCP Bridge (Must also enable USE_MODBUS_BRIDGE)
#endif and exactly that is enabled by TasmoCompiler when Modbus Bridge is selected as the feature (described here) For sure you have to assign GPIO pins in your Tasmota configuration for Modbus to work properly (docs mentioned above) |
Thanks @benzino77! I got Modbus working with the official release as stated. But not the TCP bridge. Edit: asked on discord: https://discord.com/channels/479389167382691863/790187952416358460/1082415371807641650 |
I installed the tasmota32-allsensors.bin which, apparently, is build from Tasmota HEAD every time a new commit gets pushed. The allsensors.bin, according to @Jason2866, has the required flags added. Maybe there are some issue in the latest release building everything correctly with the defines above. These were the Console commands required for my setup:
|
I have the same issue. I checked the Modbus Bridge but can not get the "MODBr" RX and TX in the web configuration. |
@lyazide |
Hi I am sorry to add firewood into this older bug report. However, I have hit the exact same issue today. It was clear and confirmed that Tasmocompiler has a typo in the #define USE_MODBUSBRIDGE instead of correct on: #define USE_MODBUS_BRIDGE |
Seem like a typo, the underscores are missing (just cut & paste from Tasmocompiled FW 13.3.0)
|
Thanks for this finding! Great job. I will fix it soon. |
Hi @benzino77 I've tested using the devel. branch of Tasmocompiler (TasmoCompiler v11.0.0-dev) and I can confirm, the test was successful Selection used: Thank you for the effort. |
I'm glad to hear it. Thanks for your help! I will release new stable version as soon as I have some free time. |
Thank you for this awesome project!
I tried to get a custom build for either ESP32 devkit or a generic ESP8266 including Modbus bridge and Modbus TCP functionality. The default Tasmota release for ESP32 (tasmota32.bin) contains only the Modbus bridge functionality so this seemed the only way.
I’m using gitpod.io.
At first I simply tried to use the web interface to set up my build:
Tasmota source code
WiFi configuration (my Wifi)
Select features (with Modbus checked)
Custom parameters (none)
Select version and compile (latest version)
That didn’t work: ModBr RX and ModBr TX were missing from the “Module parameters” for the pins in the Tasmota web UI.
So I tried the official tasmota32.bin and that got me to at least get Modbus serial working. The Modbus TCP apparently isn’t enabled in the official builds. This means for example the that console command “ModbusTCPStart 502” will fail with “RESULT = {"Command":"Unknown"}”.
Then I tried Tasmota again via gitpod.io. Same settings as above, but this time with Modbus checked and these “Custom parameters”
Still no dice.
And finally:
And again so support for either “ModBr RX“ or “ModBr TX” for the pins and “ModbusTCPStart 502” is still failing.
I’m at all out of ideas about what to try next. Any pointers? What am I missing?
Thank you again!
The text was updated successfully, but these errors were encountered: