tcp poller

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
vttland
Posts: 4
Joined: Wednesday 28 December 2016 19:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

tcp poller

Post by vttland »

Hello
I work in my house whith industrial plc. (beckhoff twincact 2).
I have installed domoticz on os off plc windows 7 embded.
Is working very well.

I have succefull send data plc to domoticz by json.

Now i have problem to send domoticz to plc.
I have open tcp socket on my plc but is not http port.
And http poller has not working to send data.
But in putty i can send data in raw format in plc.

Have you an idea to send data in simple tcp format in plc?
Thanks
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: tcp poller

Post by waaren »

vttland wrote: Thursday 06 December 2018 20:42 Hello
I work in my house whith industrial plc. (beckhoff twincact 2).
I have installed domoticz on os off plc windows 7 embded.
Is working very well.

I have succefull send data plc to domoticz by json.

Now i have problem to send domoticz to plc.
I have open tcp socket on my plc but is not http port.
And http poller has not working to send data.
But in putty i can send data in raw format in plc.

Have you an idea to send data in simple tcp format in plc?
Thanks
Use a device with in the On action a (bash or other) script that will send the data with netcat
or a script in domoticz (dzVents, Lua, Python or other) executing the os command netcat
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
vttland
Posts: 4
Joined: Wednesday 28 December 2016 19:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: tcp poller

Post by vttland »

Ok is working.

I post my script in bat text :

Code: Select all

echo %1 %2 |D:\Domoticz\Domoticz\scripts\lua\nc.exe -d 127.0.0.1 200
And I attach twincat 2 project for other people want make link whith twincat and domoticz...
Attachments
first scada test.zip
(53.21 KiB) Downloaded 53 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests