compile tcp_bridge and modbus_bridge drivers

101 views
Skip to first unread message

A Kiss

unread,
Sep 16, 2022, 7:02:04 AM9/16/22
to TasmotaUsers
Hi,

I'm using sonoff basic with 1M flash
Trying to compile tcp_bridge and modbus_bridge drivers using the following defines in the user_config_ovverride.h file:

#define USE_TCP_BRIDGE
#define USE_MODBUS_BRIDGE
#define USE_MODBUS_BRIDGE_TCP

Compiled using PlatformIO, and even TasmoCompiler. I've tried develpment, main and older branches.
Compilation succeeds without error, uploaded via webupload and serial port (even after flashing blank_1MB.bin)

Despite that, I always got an Error message when trying to use the commands associated with tcp_bridge in the web console:
11:51:04.381 CMD: tcpbaudrate 9600
11:51:04.383 SRC: WebConsole from 192.168.50.201
11:51:04.385 CMD: Grp 0, Cmd 'TCPBAUDRATE', Idx 1, Len 4, Pld 9600, Data '9600'
11:51:04.388 RSL: RESULT = {"Command":"Error"}

modbus commands are completely unknown:
11:58:03.084 CMD: ModbusBaudrate 9600
11:58:03.086 SRC: WebConsole from 192.168.50.201
11:58:03.089 CMD: Grp 0, Cmd 'MODBUSBAUDRATE', Idx 1, Len 4, Pld 9600, Data '9600'
11:58:03.093 RSL: RESULT = {"Command":"Unknown"}

I've tried with different sonoff basic device, without luck.
Half a year ago, I've done this task in no time, but this time I've struggling since 2 days.

Any ideas?
- Andras

Philip Knowles

unread,
Sep 17, 2022, 4:47:55 PM9/17/22
to A Kiss, TasmotaUsers

Have you assigned TCP Tx and TCP Rx?

 

Sent from Mail for Windows

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/fa2835b0-7a85-490f-840a-11fe0a17cc82n%40googlegroups.com.

 

Andras Kiss

unread,
Sep 18, 2022, 1:52:41 AM9/18/22
to Philip Knowles, TasmotaUsers
Ahh thanks, I knew I just missing some trivial thing.
Now the commands are working.

Philip Knowles <knowles...@gmail.com> ezt írta (időpont: 2022.
szept. 17., Szo, 22:47):
Reply all
Reply to author
Forward
0 new messages