Using HM-MOD-UART-AW-SH-2 with D1 mini

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Using HM-MOD-UART-AW-SH-2 with D1 mini

#1 Post by TungstenE2 » 09 Sep 2020, 12:48

Hi all,

I have eQ-3 HM-MOD-UART-AW-SH-2 with D1 mini using mega-20200721

Set up 'Communication - Serial Server' device.

The HM-MOD-UART-AW-SH-2 is connected via connection shield, see pics.

How to set up for swapped TX/RX communcation?

thx
Attachments
Unbenannt2.JPG
Unbenannt2.JPG (68.44 KiB) Viewed 10284 times
15995799547480.jpg
15995799547480.jpg (130.58 KiB) Viewed 10284 times
15995799548462.jpg
15995799548462.jpg (108.47 KiB) Viewed 10284 times
15995799547981.jpg
15995799547981.jpg (127.42 KiB) Viewed 10284 times
Unbenannt.JPG
Unbenannt.JPG (70.57 KiB) Viewed 10284 times

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Using HM-MOD-UART-AW-SH-2 with D1 mini

#2 Post by TD-er » 09 Sep 2020, 14:09

First of all, please do not use a minus in the task name, as that may lead to issues if you try to use it in rules.... as we found out about a week ago :)

As far as I can see, this plugin is not yet using the ESPEasySerial wrapper, so you cannot use other serial ports, like it is used in any other plugin using UART.

I thought someone mentioned it a while ago too, but right now I can't find any (open) pull request for it to make that plugin use this wrapper.

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: Using HM-MOD-UART-AW-SH-2 with D1 mini

#3 Post by TungstenE2 » 09 Sep 2020, 15:27

thx, so which serial device plugin in normal build is recommended to be used for this?


TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Using HM-MOD-UART-AW-SH-2 with D1 mini

#5 Post by TD-er » 09 Sep 2020, 15:51

I have no idea what you want to do here.
P087 is mainly to receive strings from the connected serial device and send them to a MQTT controller.
You can also send strings to the serial device via commands.

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: Using HM-MOD-UART-AW-SH-2 with D1 mini

#6 Post by TungstenE2 » 09 Sep 2020, 16:13

I want the D1 mini to connect via serial to the HM-MOD-UART shield and send to FHEM controller.

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Using HM-MOD-UART-AW-SH-2 with D1 mini

#7 Post by TD-er » 09 Sep 2020, 16:22

I don't know what that shield does.
So I cannot tell you whether it is useful or not.

Like I said, the P087 just reads lines (terminated by either CRLF or LF) from the selected serial port and forwards it to the connected MQTT controller.
And you can send some strings to the selected serial port via the command "serialproxy_write"

If that's how you would like to interact with it, then it is usable.
It was originally intended to interact with the CUL firmware, but for that one I made a new plugin.

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: Using HM-MOD-UART-AW-SH-2 with D1 mini

#8 Post by TungstenE2 » 09 Sep 2020, 16:42

according to this thread people got it working, but with slightly different setup

https://forum.fhem.de/index.php/topic,7 ... msg1027079

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Using HM-MOD-UART-AW-SH-2 with D1 mini

#9 Post by TD-er » 09 Sep 2020, 16:48

So then it must be -for now- done using the default pins of Serial0.

Not sure why this plugin isn't converted to use the ESPEasy Serial wrapper.
When I created that wrapper, I had looked at all plugins interacting with an UART and converted them.
So there probably is a good reason why this one isn't yet converted, but right now I don't know why.

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: Using HM-MOD-UART-AW-SH-2 with D1 mini

#10 Post by TungstenE2 » 09 Sep 2020, 20:22


Post Reply

Who is online

Users browsing this forum: No registered users and 134 guests