Page 1 of 1

rflink and mincom

Posted: Tuesday 23 February 2016 21:51
by tonadam
Hi,

Connected a Arduino running RFLINK to my Linux pc

[1037638.380253] usb 1-1.2: Manufacturer: Arduino (http://www.arduino.cc)
[1037638.380257] usb 1-1.2: SerialNumber: XXXXXXXXXXXXXXXXXXXXXXX
[1037638.428363] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
[1037638.428954] usbcore: registered new interface driver cdc_acm
[1037638.428956] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters


Connected using:

minicom -b 57600 -D /dev/ttyACM0 -8 -o

For receiving this works well:

20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R37;

Hitting some keys on an Action remote:

20;01;NewKaku;ID=002a3c02;SWITCH=1;CMD=OFF;
20;02;HomeEasy;ID=7b5b334e;SWITCH=07;CMD=OFF;
20;03;NewKaku;ID=002a3c02;SWITCH=2;CMD=OFF;
20;04;HomeEasy;ID=7b5b334e;SWITCH=0b;CMD=OFF;

However when sending commands, nothing happens.

Reading the RFLink Protocol Reference.txt I expected I should be able to send commands like:

10;PING;


But nothing happens. Command is not being echo'd en there is also no further response.

I played with hardware/software control, which makes no difference.

I'm overlooking here something?

Thanks!

Re: rflink and mincom

Posted: Wednesday 24 February 2016 9:49
by tonadam
Connected the RTFLINK to domoticz. That works, but again only the receiving part.

Sending 433MHZ commands it will log:

2016-02-24 09:44:52.695 (RFLINK) Light/Switch (Unknown)
2016-02-24 09:44:52.933 (RFLINK) Light/Switch (Unknown)
2016-02-24 09:44:54.018 (RFLINK) Light/Switch (Unknown)
2016-02-24 09:44:54.256 (RFLINK) Light/Switch (Unknown)
2016-02-24 09:44:55.968 (RFLINK) Light/Switch (Unknown)
2016-02-24 09:44:56.202 (RFLINK) Light/Switch (Unknown)


Configured 2 devices, I do see:

2016-02-24 09:36:49.721 User: Admin initiated a switch command
2016-02-24 09:36:49.721 RFLink Sending: 10;HomeEasy;7b5b334e;7;ON

But no response.

However, since I don't get responses back from '10;PING;' I'm not starting to look at the RFLINK transmitter hardware yet.

Re: rflink and mincom

Posted: Wednesday 24 February 2016 11:23
by tonadam
Got a little bit further.

Installed RFLink Loader v1.05 on Windows 10, running in a VirtualBox. Assigned the Arduino USB device to Windows. From within RFLink I was able to send commands, and get responses.

For example:

10;version;
20;03;VER=1.1;REV=37;BUILD=05;
10;ping;
20;04;PONG;

Good to know, the Arduino is still attached to the same Linux server, same cable, USB port etc.

Small progress, but getting somewhere:)

Re: rflink and mincom

Posted: Thursday 25 February 2016 12:43
by Stuntteam
Perhpas you do not get mincom to send because you should send a cr/lf at the end of commands?
Check the minicom setup 'Add Linefeed' option etc.

You might look into the Synology + RFLink thread for more information.. a 10uf capacitor had to be added to the MEGA to properly control the reset line.

Synology NAS:
If you want to use RFLink with a Synology NAS you can use:
- an Arduino Mega clone based on CH340 USB/serial chip
In all other cases:
- connect a 10 uF capacitor between reset and ground on the Arduino.
Simply stick the pins of the capacitor in the power connector socket.
When you want to update the firmware of the Arduino, remove the capacitor and reconnect it when done.

Re: rflink and mincom

Posted: Thursday 25 February 2016 17:05
by tonadam
Hi Stuntteam,

Right. That's very helpful.

When using minicom, hitting ^m and ^j after a command does the trick.

Thanks:)