RFLink-ESP Commands

5 August, 2018

8:25

 

 

 

 

Commands

 

In General

Commands maybe in lower case or upper case.

10;  ….  Is a command

20;  ….  is a response

11;  …. special command

12;  …. Register Device in Learning Mode = 1

X   …. Special command in Learning_Mode = 1

Y   …. Special command in Learning_Mode = 1

19; …. System Commands

 

Action

Send To RFLink

Displayed info from RFLink

On Reset

 

20;00;MiRa RFLink V0.1;

Reception of Valid RF/IR-data

 

20;01;EV1527;ID=005DF;SWITCH=02;CMD=ON;

From Home Automation or manually to control a device

10;EV1527;005DF;2;ON;

 

Ping command

10;PING;

20;04;PONG;

Reboot command

10;REBOOT;

ets Jun  8 2016 00:22:57

 

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

configsip: 0, SPIWP:0xee

clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00

mode:DIO, clock div:1

load:0x3fff0018,len:4

load:0x3fff001c,len:808

load:0x40078000,len:6084

load:0x40080000,len:6696

entry 0x400802e4

 

20;00;MiRa RFLink V0.1;

Query Version

10;VERSION;

20;02;VER=0.1;

List all commands and Learning Modes

10;LIST;

10;LIST;

20;01;LIST;

10;LIST;         // list all commands

10;PING;         // return PONG

10;REBOOT;       // reboot RFLink

10;VERSION;      // displays version information

10;DEBUG=x   ;   //

10;OPDRACHT ....;

11;LEARN ....;

 

 0 : Production Mode

1 : Real Learning Mode

2 : one detection  + statistics

3 : all detections + statistics

4 : display pulstime

5 : display pulstime rounded at 30 usec

6 : Statistics, Binairy and Hex Results

7 : Statistics followed, by normal detection

8 : Transmit a predefined sequence

 

 

 

 

 

 

Directory Filelist

19;DIR;

Files in SPIFFS

  FILE: /RFLink.txt        SIZE: 48

  FILE: /aap/hello.txt        SIZE: 6

Display Content of a file

19;DUMP;/RFLink.txt;

Contents of /RFLink.txt

EV1527;ID=005DF;KAKU;ID=2508A7C;EV1527;ID=53706;

Delete a File

19;DEL;/aap/hello.txt;

Deleting file: /aap/hello.txt  - file deleted

 

19;CLEAR;

 

Remove a registered device

19;Remove;-EV1527;ID=005DF;

=====  Known Devices =====

    -EV1527;ID=005DF;

    NewKaku;ID=2508A7C;

19;Remove;-EV1527;ID=005DF;

=====  Known Devices =====

    NewKaku;ID=2508A7C;

 

12;

 

Register  the last unknown device

X

 

Register the last unknown device, but with a pseudo random code. (This code is based on the original received code)

Y

=====  Known Devices =====

Unknown Device: 12;EV1527;ID=005DF;

20;1B;EV1527;ID=005DF;SWITCH=02;CMD=ON;

Y

=====  Known Devices =====

    -EV1527;ID=005DF;

10;debug=0;

20;1E;DEBUG=0;

20;1F;EV1527;ID=4530B91;SWITCH=02;CMD=ON;

 

 

 

ToDo:

10;RTS;1b602b;0123;PAIR;

Pasted from <http://www.rflink.nl/blog2/protref>

 

 

 

10;TRISTATEINVERT; => Toggle Tristate ON/OFF inversion

10;RTSCLEAN; => Clean Rolling code table stored in internal EEPROM

10;RTSRECCLEAN=9 => Clean Rolling code record number (value from 0 - 15)

10;RTSSHOW; => Show Rolling code table stored in internal EEPROM (includes RTS settings)

10;RTSINVERT; => Toggle RTS ON/OFF inversion

10;RTSLONGTX; => Toggle RTS long transmit ON/OFF

Pasted from <http://www.rflink.nl/blog2/protref>

 

 

11;20;0B;NewKaku;ID=000005;SWITCH=2;CMD=ON; => 11; is the required node info it can be followed by any custom data which will be echoed

Pasted from <http://www.rflink.nl/blog2/protref>

 

 

 

 

Learning_Mode

 

    10;DEBUG=1;

 

Nr

Omschrijving

Voorbeeld

0

Production Mode

 

 

1

Real Learning Mode, needed to add new devices

 

2

LM = Learning_Mode

Protocol = name of the protocol found

Len = number of pulses ( High + Low ) -3

 

Len < 26 :   <

Puls < 100 usec :   -

Puls > 1500 usec   +

Max/Min > 8    ~

Max/Min < 2   ~

 

3

Same as 1, but all active protocols are tested

<plaatje>

4

Puls Times

 

The end shows the timeout period from FetchSignal

 

5

Puls Times (same as LM=3), but rounded at 30 usec

This is much easier to read

 

The first 2 values are the start puls (EV1527), where the long low value should be 31 times the short high value.

 

 

6

Binaire + Hex detectie

binaire detectie:

    0 = kort Hoog + lang Laag

    1 = lang Hoog + kort Laag

    ? = beide lang of kort

 

Pulses= Number of pulses

Min/Max/Mean usec of the pulses

< too few pulses

'> Too many pulses

+  very long pulse detected

'- Very short puls detected

~ ratio lng / short is weird

 

7

Statistics is shown, followed by normal detection. To optimize hardcore problems.

 

The example on the right, shows that all the fault detections are caused by a too short Min-puls and often a too large Max-puls. The EV1527 algortihm is very sensitive, because it uses dynamic margins.

 

The core algorithm now has detection for these errors.

 

 

8

Transmit a predefined set of sequences

 

9

 

 

 

 

 

 

10;RTS;0100F2;0;DOWN;

10;RTS;0100F2;0;UP;

10;RTS;0100F2;0;STOP;

Pasted from <https://www.domoticz.com/forum/viewtopic.php?t=9318&start=20>

 

 

https://matdomotique.wordpress.com/2016/04/21/domoticz-rflink-et-somfy/

 

 

 

 

x = x * 16807 % 2147483647

 

Pasted from <http://www.cplusplus.com/reference/random/minstd_rand0/>

 

 

x = x * 48271 % 2147483647

 

Pasted from <http://www.cplusplus.com/reference/random/minstd_rand/>

 

 

 

 

Created with Microsoft Office OneNote 2007
One place for all your notes and information