Aliexpress Wifi ESP-01 Relay board

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Kol8
New user
Posts: 1
Joined: 18 Jan 2017, 11:01

Re: Aliexpress Wifi ESP-01 Relay board

#11 Post by Kol8 » 18 Jan 2017, 11:42

Great ntissm ! Many thanks for your solution!

In details:
The Serial server is included in V120, you need to configure it under the device menu like this:
http://www.letscontrolit.com/wiki/index.php/Ser2Net

then under linux, you can use netcat and pass the HEX string, assuming the ip address of the device is 192.168.0.10, port set to 23 :

to activate the relay:

Code: Select all

echo -ne '\xA1\x01\x01\xA2' | nc 192.168.0.10 23
to de-activate it:

Code: Select all

echo -ne '\xA1\x01\x00\xA1' | nc 192.168.0.10 23
Let you know if I find a way with http...

Cheers & thanks again !

wabikboy
New user
Posts: 1
Joined: 24 Jan 2017, 23:31

Re: Aliexpress Wifi ESP-01 Relay board

#12 Post by wabikboy » 24 Jan 2017, 23:44

Hello.

First: Sorry for my english :)

I have a this module.
https://pl.aliexpress.com/item/ESP8266- ... 32428.html


Does anyone know how to control it? Someone already wrote that there is nowhere information about this. I tried the datasheet stc15F I do not understand any of it
http://www.stcmicro.com/datasheet/STC15F100-en.pdf

riker1
Normal user
Posts: 344
Joined: 26 Dec 2017, 18:02

Re: Aliexpress Wifi ESP-01 Relay board

#13 Post by riker1 » 26 Jan 2018, 08:37

ntissm wrote: 07 Jan 2017, 22:13 The problem is not VCC but how you can close/open the relay.
This kind of device is not using gpio directly but the serial interface.

You have to send the following over serial in 9600,8,N,1

like for this other USB relay of the same company

LC USB switch the default communication baud rate: 9600 BPS
LC USB switch communication protocol
Data (1) - startup logo (the default is 0 xA0)
Data (2) - switch address code (the default is 0 x01, identifies the first switch)
Data (3) - operation data (0 x00 to "off", 0 x01 to "on")
Data (4) - check code

For example:
Open the USB switch: A0 01 01 A2
Close the USB switch: A0 01 00 A1

see http://www.chinalctech.com/index.php?_m ... w&p_id=969

I test it with socketWorkbench and the plugin ser2Net. it runs.

I am now trying to do a plugin to use it automatically with standard MQQT, HTTP request

Hi
do not understand where you send the serial commant A0 01 01 A2?
I set Serial Server in Device.

what does this mean? Data (1) - startup logo (the default is 0 xA0) and how to implement it

Thanks T

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Aliexpress Wifi ESP-01 Relay board

#14 Post by enesbcs » 26 Jan 2018, 20:29

And here is a solution:
viewtopic.php?f=4&t=4743#p23818

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 30 guests