send hex data to serial server ser2net

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
riker1
Normal user
Posts: 344
Joined: 26 Dec 2017, 18:02

send hex data to serial server ser2net

#1 Post by riker1 » 26 Jan 2018, 17:32

Hi
how can I send hex commands to the device?

defined device Serial server tcp 23

need to send : echo -ne '\xA1\x01\x01\xA2' | nc 192.168.0.10 23

Thanks T

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

Re: send hex data to serial server ser2net

#2 Post by enesbcs » 26 Jan 2018, 20:25

riker1 wrote: 26 Jan 2018, 17:32 how can I send hex commands to the device?

need to send : echo -ne '\xA1\x01\x01\xA2' | nc 192.168.0.10 23
If you want to use the 5V Wifi relay, it is supported by the P165 Serial MCU controlled relay plugin, choose "LCTECH" when setting up the device, ESPEasy binary uploaded to this thread:
viewtopic.php?f=6&t=3245&start=50

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

Re: send hex data to serial server ser2net

#3 Post by riker1 » 27 Jan 2018, 09:02

enesbcs wrote: 26 Jan 2018, 20:25
riker1 wrote: 26 Jan 2018, 17:32
If you want to use the 5V Wifi relay, it is supported by the P165 Serial MCU controlled relay plugin, choose "LCTECH" when setting up the device, ESPEasy binary uploaded to this thread:
viewtopic.php?f=6&t=3245&start=50
Hi , thanks for this hint.

looks like I am unable to identify this device? too stupid or blind...

in R147 I do not see the Serial MCU controlled relay plugin nor in GIT version: mega-20180104
nor :GIT version: v2.0-20180113

How can I enable the P165?

Thanks

Image
Attachments
serial Screenshot from 2018-01-27 09-01-25.png
serial Screenshot from 2018-01-27 09-01-25.png (85.16 KiB) Viewed 7713 times

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

Re: send hex data to serial server ser2net

#4 Post by enesbcs » 27 Jan 2018, 09:56

riker1 wrote: 27 Jan 2018, 09:02 in R147 I do not see the Serial MCU controlled relay plugin nor in GIT version: mega-20180104
1/ You can compile it yourself from github from the Plugin Playground:
https://github.com/enesbcs/ESPEasyPlugi ... Switch.ino
2/ You can use the pre-made binary attached to the first post of the thread, that i linked before:
viewtopic.php?f=6&t=3245&start=50#p16998

If you have enough time to read there are some useful user feedbacks and examples at this thread...
Last edited by enesbcs on 27 Jan 2018, 09:59, edited 2 times in total.

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

Re: send hex data to serial server ser2net

#5 Post by riker1 » 27 Jan 2018, 10:30

ok, thanks

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

Re: send hex data to serial server ser2net

#6 Post by riker1 » 28 Jan 2018, 13:48

enesbcs wrote: 27 Jan 2018, 09:56
riker1 wrote: 27 Jan 2018, 09:02 in R147 I do not see the Serial MCU controlled relay plugin nor in GIT version: mega-20180104
1/ You can compile it yourself from github from the Plugin Playground:
https://github.com/enesbcs/ESPEasyPlugi ... Switch.ino
Hi
I am trying the bin which was avaiable, but the board is crashing when tcp connections are coming in.

How do I compile this myself ?

Thanks.

Sorry, I am not an expert....

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

Re: send hex data to serial server ser2net

#7 Post by enesbcs » 28 Jan 2018, 19:23

riker1 wrote: 28 Jan 2018, 13:48 How do I compile this myself ?
You can use PlatformIO or Arduino IDE. It takes a lot of work to install and setup everything for the first time.
https://www.letscontrolit.com/wiki/inde ... are_Upload

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

Re: send hex data to serial server ser2net

#8 Post by enesbcs » 28 Jan 2018, 19:38

riker1 wrote: 28 Jan 2018, 13:48 I am trying the bin which was avaiable, but the board is crashing when tcp connections are coming in.
Did you tried the 1M binary? Did your flashing tool confirmed, that your ESP-01 actually have 1MB flash available?
Maybe affected by the ESP-01flashing issues?
https://github.com/letscontrolit/ESPEasy/issues/650

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

Re: send hex data to serial server ser2net

#9 Post by riker1 » 28 Jan 2018, 19:44

Hi
yes I am hit by the PUYA issue

strangwise r147 is running on them, but nothing newer

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests