I created my own outside sensorbox containing a TSL2591 light sensor and a Hydreon RG-9 RAIN SENSOR. Both are attached to a NodeMCU running ESPEasy. The TSL2591 runs with the TSL2591 plugin. The rain sensor is attached to the RX and TX pins. Until now the rain sensor communication was via the serial server (ser2net) plugin, but the serial plugin in the Openhab software that I run stops every few days, which is the only problematic openhab plugin. And as the rain sensor is an additional security to pull up the sunshades when it starts to rain it should simply work.
The light sensor is connected to an MQTT server and works flawless. So my idea is to have the serial values sent to MQTT as well. Last week I built my own ESPEasy mega to incorporate the TSL2591 and serial proxy plugins at the same time. However the Serial Proxy is not sending any data to the MQTT controller. The Serial proxy device is showing data received, but not assigning a value to “Regen”. I’ve tried without regex and with several different regex’s, but to no avail. What is my mistake?
Serial proxy help
Moderators: grovkillen, Stuntteam, TD-er
-
- New user
- Posts: 5
- Joined: 10 Nov 2021, 16:59
Serial proxy help
You do not have the required permissions to view the files attached to this post.
-
- Core team member
- Posts: 9907
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: Serial proxy help
SerialProxy only considers the \n character as the end of a line.
Make sure your device is sending that char.
Do you have an example of the strings you want to parse?
Make sure your device is sending that char.
Do you have an example of the strings you want to parse?
-
- New user
- Posts: 5
- Joined: 10 Nov 2021, 16:59
Re: Serial proxy help
The specification can be found in https://rainsensors.com/wp-content/uplo ... ctions.pdf. It states the following:
All lines are terminated with a carriage return followed by a new line, this is used for all output. But only the new line is required for commands.
The unit is sending regularly “Line overlow Line overlow” messages (supposedly with \r\n). I’m interested in the messages “R 0” to “R 7” that indicate the rain intensity.
I will try to get some raw data the coming days.
All lines are terminated with a carriage return followed by a new line, this is used for all output. But only the new line is required for commands.
The unit is sending regularly “Line overlow Line overlow” messages (supposedly with \r\n). I’m interested in the messages “R 0” to “R 7” that indicate the rain intensity.
I will try to get some raw data the coming days.
-
- New user
- Posts: 2
- Joined: 18 Feb 2023, 13:51
Re: Serial proxy help
Hello everyone,
I see exactly the same behavior from Rainsensors.com's RG-15 sensor:
- The RG-15 clearly receives what I send from putty, since it sends "Line overlow" after every 50 characters
- It even talks to me, I receive a rain accumulation message every hour or so.
- HOWEVER, it completely ignores my commands
- I've tried two different USB-to-serial adapters with two different chipsets
- I've tried different "implicit CR with every LF" and "implicit LF with every CR" settings in putty
- I use a very short cable (< 20 cm)
- I've tried powering it with 3.3V or 5V (on the appropriate pins) - makes no difference
@chiuaua, were you able to solve your problem?
Any ideas/suggestions very welcome!
Many thanks,
Bigfin
I see exactly the same behavior from Rainsensors.com's RG-15 sensor:
- The RG-15 clearly receives what I send from putty, since it sends "Line overlow" after every 50 characters
- It even talks to me, I receive a rain accumulation message every hour or so.
- HOWEVER, it completely ignores my commands

- I've tried two different USB-to-serial adapters with two different chipsets
- I've tried different "implicit CR with every LF" and "implicit LF with every CR" settings in putty
- I use a very short cable (< 20 cm)
- I've tried powering it with 3.3V or 5V (on the appropriate pins) - makes no difference
@chiuaua, were you able to solve your problem?
Any ideas/suggestions very welcome!
Many thanks,
Bigfin
-
- Normal user
- Posts: 4334
- Joined: 10 Jun 2018, 12:06
- Location: NL
Re: Serial proxy help
Hi Bigfin, welcome to ESPEasy.
Have you ensured that the signal voltage on your USB-Serial adapter was configured for 3.3V, as these sensors seem to not be 5V tolerant on the serial lines...
Have you ensured that the signal voltage on your USB-Serial adapter was configured for 3.3V, as these sensors seem to not be 5V tolerant on the serial lines...
/Ton (PayPal.me)
-
- New user
- Posts: 2
- Joined: 18 Feb 2023, 13:51
Re: Serial proxy help
Hi Ath,
Thank you!
Yes, I've used the correct signal voltage for each of the two adapters I've tried (after trying an incorrect one with one of the two...).
Thank you!
Yes, I've used the correct signal voltage for each of the two adapters I've tried (after trying an incorrect one with one of the two...).
Who is online
Users browsing this forum: Anthropic Claude Bot [bot], Bing [Bot] and 23 guests