No Serial Server output

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

No Serial Server output

#1 Post by Galan » 09 Feb 2023, 21:45

Hello fellow forummer,

I run into a problem with one of my projects. In short, my nodo rflink won't talk to NodeMCU. I guess the problem might be in the settings in ESPeasy that's why I've placed it here.

Background and technical stuff:
I've bought at Nodo-shop.nl
  • RFLINK 433.92 (v1.1.4f)
  • ARDUINO Mega
  • ANTENNE
  • rflink Wifi bridge v.0.9.2
  • NodeMCU
The manual is very clear qua soldering, and it was relatively straight forward.
I've flashed the Arduino mega board with the RFlink firmware version 1.48 and the output was amazing in the RFLink Loader. I get clear and fast signals. Now i've flashed NodeMCU with mega-20221224 via the ESP Easy flasher 0.04.007. Before placement on the wifi bridge, I've set it up. And after alter WD=38 setting (watchdog) and a powersource of 9v ESPEasy booted up fast and is stable. But now after the settings in Handleiding NodeMCU V4.pdf I can't get any info from the RFLink to ESPeasy and the values under Devices stays empty. MQTT publish under ESPeasy works. I tried many things but nothing seems to work. Some of the things that i've tried:
  • web log level on debug => high logging "WiFi : Set TX power to 14dBm sensitivity: -72dBm RSSI: -66dBm" and toggle "Send With Max TX Power" on
  • alter tcp port to different values
  • alter baud rate
  • alter event processing
  • serial Port
  • power the arduino with 12v
Does someone know what I could do wrong? Maybe it's something small and stupid, but I can't find it. Thank you in advance for reading my question :)

here some screenprints:
Attachments
IMG_0365.jpg
IMG_0365.jpg (1.34 MiB) Viewed 3070 times
IMG_0364.jpg
IMG_0364.jpg (1.47 MiB) Viewed 3070 times
Screenshot 2023-02-09 213655.png
Screenshot 2023-02-09 213655.png (21.61 KiB) Viewed 3070 times
image.png
image.png (86.74 KiB) Viewed 3070 times
image (1).png
image (1).png (27.09 KiB) Viewed 3070 times
image (2).png
image (2).png (51.27 KiB) Viewed 3070 times
image (3).png
image (3).png (46.96 KiB) Viewed 3070 times

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: No Serial Server output

#2 Post by Ath » 09 Feb 2023, 22:09

Not sure about the serial configuration, but I assume you got that from the RFLink manual?

The "Event processing" should probably be set to "RFLink", and because you are not connecting via TCP to ESPEasy, you need to enable the "Process events without client" checkbox, so events will be generated when receiving serial data.
/Ton (PayPal.me)

Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

Re: No Serial Server output

#3 Post by Galan » 09 Feb 2023, 22:44

Thanks for the fast reaction!
I've altered the settings and saw noting in the device nor in the log :S
Attachments
3.png
3.png (12.71 KiB) Viewed 3048 times
2.png
2.png (16.88 KiB) Viewed 3048 times
1.png
1.png (58.92 KiB) Viewed 3048 times

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: No Serial Server output

#4 Post by Ath » 09 Feb 2023, 23:26

I2C Serial is certainly not going to work, as you don't have that type of board installed. Best bet would be to disable the serial log by un-checking "Use Serial Port" option on Tools/Advanced page and select HW Serial 0 in the plugin settings.

Edit:
Added the exact checkbox to un-check. (The caption for that setting is not very explicit about it disabling the Serial Log, but it is required to be un-checked if a plugin wants to use the hardware Serial port)
/Ton (PayPal.me)

Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

Re: No Serial Server output

#5 Post by Galan » 10 Feb 2023, 10:08

thank you for your reaction. I'll try it out this morning

Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

Re: No Serial Server output

#6 Post by Galan » 12 Feb 2023, 22:23

Hello Ath, thank you for your reply. I've made the alterations:

Sadly, it wasn't successful.what I felt is that the nodemcu is not cold...
Do you have more ideas that I can try? :)
I'll try and install an older version, R147 was in use when they made the manual.
Attachments
serial settings.png
serial settings.png (23.11 KiB) Viewed 2953 times
plugin.png
plugin.png (162.49 KiB) Viewed 2953 times

Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

Re: No Serial Server output

#7 Post by Galan » 20 Apr 2023, 23:53

Hallo Ath and fellow forummers,

I've tried an other session and still same problem. Now I've bought and installed a new wifi shield from nodo-shop. Flashed the arduino board and checked the settings of the nodemcu. I've installed it with esp 147 as stated in the document of nodo shop

The problem is that I still can't reach the nodemcu esp url. I don't see it pops up in the wifi network for just a moment and then it seems that it looses the connection. Ping is getting trough. Does someone have a hint where I can look. I'm getting despread. :? :? :? :?

Code: Select all

C:\Users\Lappie>ping 192.168.1.176

Pinging 192.168.1.176 with 32 bytes of data:
Request timed out.
Reply from 192.168.1.176: bytes=32 time=3ms TTL=128
Reply from 192.168.1.176: bytes=32 time=3ms TTL=128
Reply from 192.168.1.176: bytes=32 time=4ms TTL=128

Ping statistics for 192.168.1.176:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 3ms, Maximum = 4ms, Average = 3ms

C:\Users\Lappie>ping 192.168.1.176

Pinging 192.168.1.176 with 32 bytes of data:
Reply from 192.168.1.176: bytes=32 time=98ms TTL=128
Reply from 192.168.1.176: bytes=32 time=7ms TTL=128
Reply from 192.168.1.176: bytes=32 time=148ms TTL=128
Reply from 192.168.1.176: bytes=32 time=51ms TTL=128

Ping statistics for 192.168.1.176:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 7ms, Maximum = 148ms, Average = 76ms

C:\Users\Lappie>
I've toggled the bottom options on.

Code: Select all

10;setGPIO=on;
10;setnodonrf=on;
10;setnodonrf=off;
10;rfdebug=on;
10;setnodonrf=on;
10;setMilight=on;
10;setBLE=on;
10;setMySensors=on;
10;setLivingColors=on;
10;setAnsluta=on;

Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

Re: No Serial Server output

#8 Post by Galan » 18 May 2023, 00:29

And then there was light! I saw that there was a new update (The Easter build for 2023) with some wifi fixing. This was the solution! it was plug-and-play. I could login when my nodemcu was on the wifi-shield.
THANK YOU VERY Much @TD-er I think you've nailed it!!!!!
Attachments
screenpint.jpg
screenpint.jpg (140.71 KiB) Viewed 2442 times

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

Re: No Serial Server output

#9 Post by TD-er » 18 May 2023, 10:23

Great!
Good to know :)

Not to be a "Debbie Downer", but there's still some strange situation with WiFi possible where there are rather timing critical situations possible when the ESP receives the disconnect event with a slight delay, so it might happen right when the new connection attempt is already in progress.... But that does happen only occasionally and I'm working on it :)
At least now I know where to look to make things even better :)

Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

Re: No Serial Server output

#10 Post by Galan » 18 May 2023, 11:42

Hello TD-er, Thanks for your reply. I'm still in the process to let it work with HA (I'm new in the land of MQTT ;) ). If I come across this behaviour, I'll let you know. Ow and I shall also keep a lookout when a new version is updated. I might be able to test it from an end user perspective

Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

Re: No Serial Server output

#11 Post by Galan » 15 Sep 2023, 00:09

How I can be pleased with a small step:
I've hooked the equipment to a laptop and monitored the output. This was good.
In MQTT nor logging was nothing.

I've selected the box 'Process events without client:' in serial server and I got 'Ser2Net : data send'

But no reaction in MQTT Explorer. I was glad that I saw interaction with ESPEasy.
A test message "publish muziek, test123" in the command line send was published in MQTT Explorer.

Now tne next step to the last step to get the serial output send trough MQTT :)

Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

Re: No Serial Server output

#12 Post by Galan » 17 Sep 2023, 16:47

I'm hitting a brick wall. I get the output "ser2net: data sent! " but I don't see it in mqtt explorer. A test" Generic - Dummy Device" to call mqtt works but I can't see the info that is created on arduino board rflink in the esp logging. I tried to figgle with the settings but nothing helped.

is there a test possible that I can send a message from ESP to the arduino and vise versa to see if the connection is good? or can someone send some screenprints of there setup that I can try?

so in the arduino ide i can see: "20;20;Dooya;ID=ad6c9480;SWITCH=00;CMD=STOP;"
in esp easy I see "ser2net: data sent!"
in MQTT explorer I see nothing

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: No Serial Server output

#13 Post by Ath » 17 Sep 2023, 18:15

The Data sent! message is just an indication that the data has been sent to the network client connected (or if none is connected with the checkbox enabled, the bits are sent into eternity...).
If you have Rules enabled (Tools/Advanced page), an event will also be generated, depending on the Event options selected, that will include the actual received data.
You can add a rule that will send the data to the MQTT server, with the requirement that you have a MQTT Controller configured and enabled.

Code: Select all

on !Serial do
  Publish,your/mqtt/topic,%eventpar% // The data is added after the # as the event-parameter name
endon
The (new) option checkbox "Append Task Number to eventname" should be left off to start with, for this to work. (see below)

ESPEasy doesn't store or forward any text received, other than via the rules.

A lot has been improved in this plugin in a pending PR #4283, that I've just started a new Actions run for. When logged in to your Github account, you can download and install this build, and that will probably work a lot better than the current SerialServer plugin.
/Ton (PayPal.me)

Galan
Normal user
Posts: 19
Joined: 28 Dec 2022, 23:13

Re: No Serial Server output

#14 Post by Galan » 17 Sep 2023, 22:22

VICTORY!!!!!

Thank you so much for your help! That was the missing link of the puzzle. I was becoming desperate but now I can continue with the project!

I Think I've made 2 mistakes. RX Receive Timeout (mSec): from 0 must be 20
and the rule.

Now this works for me with this

Code: Select all

on !RFLink* do
  Publish, %sysname%/arduni, %eventvalue% // The data is added after the # as the event-parameter name
endon
mqttexplorer
mqttexplorer.png
mqttexplorer.png (3.66 KiB) Viewed 2023 times

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 29 guests