command line input for serialsend to rflink

Moderators: grovkillen, Stuntteam, TD-er

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

command line input for serialsend to rflink

#1 Post by Galan » 18 Oct 2023, 22:18

Hello folkes,
I'm mutch further than the last time, but not there yet :)
It's fun to mess about with the tools, but I'm running to a problem with Esp Easy.
setup:
RFLINK 433.92 (v1.1.4f)
ARDUINO Mega software RFlink firmware version 1.48 on ard
ANTENNE
rflink Wifi bridge v.0.9.2
NodeMCU software Build: ESP_Easy_mega_20230822_normal_ESP8266_4M1M Aug 22 2023

It is now possible for me to read the 433mhz messages and send them to MQTT. Now the receiving part :)
I cannot send messages via the command line to serial. I think it's via serialsend, but the below options didn't work. Then, when I've got it working, I want to send the info from Home assistant -> MQTT -> Esp Easy -> RFlink -> 433 mhz
Can you maybe help me? It must be something stupid, but I couldn't find the answer on the forum nor wiki.

Reseived parameter via MQTT Explorer

Code: Select all

domotica_veranda_2/switch = !Serial#20;01;TriState;ID=0a828a;SWITCH=0;CMD=ON;
domotica_veranda_2/switch = !Serial#20;02;AB400D;ID=59;SWITCH=3;CMD=OFF;
The options that I've tried out:

Code: Select all

10;TriState;0a828a;2;OFF;
10;TriState;0a828a;0;ON;
serialsend 10;TriState;0a828a;2;OFF;
serialsend [10;TriState;0a828a;2;OFF;]
serialsend (10;TriState;0a828a;2;OFF;)
serialsend (10;TriState;0a828a;2;OFF;);
serialsend "10;TriState;0a828a;2;OFF;"
serialsend '10;TriState;0a828a;2;OFF;
and various above

Serial.println 20;TriState;0a828a;2;OFF;
and Serial.print 20;TriState;0a828a;2;OFF;
gives an error
Command unknown: Serial.println 20;TriState;0a828a;2;OFF;
Command unknown: Serial.print 20;TriState;0a828a;2;OFF;

I've got espRFLinkMQTT working alright, and I could execute messages from MQTT Explorer. Kudos for seb821. The software is still going strong! And was easy to install :) But I want to install also some other sensors on the Nodemcu instead of installing another one...
Might you know which ports are not in use please let me know (and make my live easier), than I dont need to figure that out ;)

tnx for answering and kudos for the developers who made and maintaining this project!!!

greetings Alex

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

Re: command line input for serialsend to rflink

#2 Post by Ath » 18 Oct 2023, 23:06

Sending data to a serial port can be achieved by using the Serial Proxy plugin (P087) available in the Collection C builds.
This has commands to send either ASCII text-like data, or hex formatted binary data (and a combination of that) to a serial device.
I'm not sure how it will behave when using one task (assuming you are using P020 - Serial Server), for receiving serial data, and trying to send out data from another task to the same serial port, though. Possibly this won't work at all :o

Can't help on the RFLink side, though, as I've never used those devices...
/Ton (PayPal.me)

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

Re: command line input for serialsend to rflink

#3 Post by Galan » 19 Oct 2023, 12:53

Hey Ath,

tnx for your reaction. I'll look into it.

greetings Alex

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

Re: command line input for serialsend to rflink

#4 Post by Galan » 05 Jan 2024, 00:52

A bit later than expected, but I'm there. I've update ESP Easy and altered the rules. Home Assistant is sending the right code and esp easy can receive the MQTT message and even send it to RFLink. And RFLink refuses to execute it :(
Also Commands freezes in RFLink Loader when I want to send manual the command.

so HA is sending "10;AB400D;059;2;OFF;" and here is the logging from ESP Easy
Schermafbeelding 2024-01-05 004630.png
Schermafbeelding 2024-01-05 004630.png (51.39 KiB) Viewed 13267 times
If I deactivate the device serial proxy or Serial Server, I can interact with the command line.

Publishing the serial data from rflink to esp easy to mqtt keeps working (with an activated device).

I've tried to Clean Rolling code but that didn't help
10;RTSCLEAN; => Clean Rolling code table stored in internal EEPROM

Do you have a solution?

update:
I've played with the rules and plugin selections:
Schermafbeelding 2024-01-05 010305.png
Schermafbeelding 2024-01-05 010305.png (59.4 KiB) Viewed 13261 times

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

Re: command line input for serialsend to rflink

#5 Post by Ath » 05 Jan 2024, 08:35

This looks like an issue with the connection to RFLink. Can you see the commands being received by RFLink in the logging over there?

(Don't have any RFLink experience myself, except from reading some RFLink related messages in that section of the forum :?)
/Ton (PayPal.me)

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

Re: command line input for serialsend to rflink

#6 Post by Galan » 05 Jan 2024, 20:38

Thanks for the tip Ath, I’ll look if there is an other option than look at the commandline in the arduino board.

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

Re: command line input for serialsend to rflink

#7 Post by Galan » 06 Jan 2024, 00:36

I couldn't find a different log option than serial port logging. I thought that this might be the reason why it isn't working (two serial port write programs) but that isn't the solution.

I'll update somewhat my problem:
I've bought on Nodo-shop the full package incl ESP8266.
The chain is RFLINK (Arduino mega r50) <> Arduino Wi-Fi shield v0.9.2I <> ESP8266 with ESP_Easy_mega_20231225_collection_C_ESP8266_4M1M <> MQTT <> Home assistant

Through the whole chain I can receive 433mhz signals and I can send MQTT data from HA to ESP8266. The logging is stating that this is sent to the shield to rflink, but the outcome is the same. No switch nor a response from RFLINK.
If I deactivate the serial proxy device in ESPEasy and in RFLink Loader I set serial Port Logging ON, and then I execute the command to switch off and on, then the switch reacts.
So there is something from ESP8266 to RFLINK that isn't working properly. But from RFLINK to ESP8266 it works just fine...

There must be something off but what... :S

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

Re: command line input for serialsend to rflink

#8 Post by Ath » 06 Jan 2024, 10:31

Serial server allows a different Serial port to be used, that doesn't conflict with the serial log via Serial0, even SoftwareSerial should be usable at 9600 baud (AFAIK) on an ESP8266.
/Ton (PayPal.me)

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

Re: command line input for serialsend to rflink

#9 Post by Galan » 06 Jan 2024, 23:56

Sadly nothing. I tried to shut down all logging and wait until a reaction. I can see on MQTT Explorer that a message is sent but no expected reaction.

I also tried restart with pins 12 and 13 shorted and pin 12 with ground. No results. viewtopic.php?t=2665

I tried flashing old firmware.
I've tried removing the rf link shield and connect it directly trough with wiring to rx/tx. Also no result...

What I also saw, that command line signal "10;ping;" is also not working. It seems that such interaction is frozen. Only receiving 433 mhz signals and send them trough to MQTT is working. Could it be that the shield is giving to mutch voltage trough from Arduino mega? Nothing is getting warm...

The situation lets me puzzled.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 28 guests