Raspi4PHC
- ansgar75
- Offline
- Expert Boarder
- Stay hungry, stay foolish! - Steve Jobs
- Beiträge: 110
- Dank erhalten: 14
yes you are right. The Linux VM runs currently on a Windows system.
I don't want to use a additional Raspi to run xWRC. Makes it easier for maintenance and administration.
Ansgar
Peha PHC V3 seit 2017 (vorher V2 seit 2009) im Neubau - MCC - JRM - EMD - AMD - DIM - UIM - FUI - Module
IP-Symcon Smarthome Software auf Intel NUC mit Ubuntu 20.04LTS (Einbindung von PHC tlw. über Webinterface der V3)
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Here is an updated package containing also the x86 LINUX version (xwrc.x86).
mvg, Jo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- ansgar75
- Offline
- Expert Boarder
- Stay hungry, stay foolish! - Steve Jobs
- Beiträge: 110
- Dank erhalten: 14
unfortunately the package contains no .x86 file. Can you please check.
Thanks a lot.
Ansgar
Peha PHC V3 seit 2017 (vorher V2 seit 2009) im Neubau - MCC - JRM - EMD - AMD - DIM - UIM - FUI - Module
IP-Symcon Smarthome Software auf Intel NUC mit Ubuntu 20.04LTS (Einbindung von PHC tlw. über Webinterface der V3)
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Jan
- Offline
- Junior Boarder
- Beiträge: 17
- Dank erhalten: 2
I'm trying to rebuild the configuration of Harold who started this thread (Windows - Perle TruePort - Ser2net - USBtoSerial Cable - STM)
I can read and program the STM v1 with my Windows 10 PC, so most of the software and hardware should be ok. I also can start the xwrc server and contact it over the LAN. But it seems that this server fails to communicate with the STM.
I started the xwrc server with following parameters : ./xwrc.raspi -httpport 8080 -remaddr 192.168.0.248 -remport 10001.
Ser2net is configured on RPi (192.168.0.248) as follows : 10001:raw:0/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT
Is there somebody that knows what I'm doing wrong?
Thx,
Jan
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
xWRC can only connect over TCP/IP with the STM, not via serial port.
So you will need an IP-to-RS232 converter that connects to the STMv1/v2, then xWRC can connect over TCP/IP to the IP side of the converter.That is what these -remaddr and -remport parameters are describing.
IF you are using an STMv3 then xWRC can connect directly to it as this STM has an IP interface.
mvg, Jo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Jan
- Offline
- Junior Boarder
- Beiträge: 17
- Dank erhalten: 2
I understood that xWRC can only connect over TCP/IP. But since ser2net is running on Rpi I would expect that xWRC connects via ser2net to the serial port (like Harald described).
Ser2net works because I can connect to the STM(v1) with the PHC software running on a Windows 10 PC that is only connected via LAN with Rpi. Rpi is connected to STM with USBtoSerial cable.
I started the xWRC server with the same -remaddr and -remport as the one that I use in TruePort on Windows. This -remaddr is then of course the IP-address of the RPI. Maybe there is a conflict if these two functions (xWRC and ser2net) run on the same platform?
mvg,
Jan
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Ok let's construct your evironment here:
1) Your RB is at 192.168.0.248, Ser2Net and xWRC are also running here
2) Ser2Net is listening at port 10001 and connects to the STM via a Usb2Ser converter
3) xWRC is listening on HTTP port 8080 and tries to connect to 192.168.0.248:10001
I suggest to start xWRC with some logging to see what is happening or not, add -loglevel 0xF00 as parameter, this will generate a logfile in the log directory, will be name xWRC_yyyymmdd_hhmmss.log.
You can send the logfile to me at Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!
Jo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Jan
- Offline
- Junior Boarder
- Beiträge: 17
- Dank erhalten: 2
With your help the problem got solved . The connection of ser2net with the PC stayed open and therefore the connection of xWRC to ser2net was refused.
Applied solution:
1. Setting changed in Perle TruePort : Close TCP connection when COM port is closed
2. Timer added in ser2net.conf : 10001:raw:30:/dev/ttyUSB0:19200 8DATABITS NONE 1STOPBIT
Thx, Jan
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Biland
- Offline
- Senior Boarder
- Beiträge: 34
- Dank erhalten: 0
Nun zu meinem Thema was sehr gut in diesen Thread passt.
Ich möchte mir auch eine Visualisierung bzw. Steuerungsmöglichkeit der PHC Steuerung an einem Tablett oder Handy installieren.
Hierzu ein paar Infos:
- STM V1 vorhanden
- Raspberry vorhanden
- Nport 5110 vorhanden
- alles entsprechend verkabelt
Auf dem Raspi habe ich xWRC installiert und kann aufs WebIF zugreifen.
Nun zur Frage, wie komme ich weiter, bzw. was muss ich noch erledigen um von einem Tablett aus eine Visualisierung zu realisieren?
In der Software xWRC und iControl bin ich ein absoluter Neuling. Kann ich hier schon eine Visualisierung einrichten oder brauche ich noch weitere Software und das xWRC dient als Kommunikationsschnittstelle zur PHC bzw. zum NPort?
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Oude Maatman
- Offline
- Junior Boarder
- Beiträge: 5
- Dank erhalten: 0
Since I have a PHC control I am pleased with the exchange of information in this way.
I want to install me a visualization or control possibility of PHC control on a tablet, mobile phone or PC.
Here are a few more:
- 941 STM V2 only USB Connection
- Raspberry 3
xWRC cannot use a serial port, but how do I fix it now to still connect the Raspberry to the 941 STM
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
A good starting point to get things working is this little presentation: phc-forum.de/media/kunena/attachments/27...C-GettingStarted.pdf
In short:
1) Configure the NPort 5110
1.1) Serial settings
- 19200 baud/8 databits/1 stopbit
- no parity
- no flowcontrol
- disable fifo
- RS232
1.2) Operating settings
- TCP server mode
- TCP alive check=7
- inactivity time=0
- max connection=1
- packing length=0
- delimiter 1= C1 (hex + enable)
- delimiter process=do nothing
- force transmit=0
- local TCP port=10000
2) Connect RS232 port on STM to NPort 5110, don't use the USB connection (stm.0V -> Nport.gnd, stm.TxD->Nport.RxD, stm.RxD->Nport.TxD
3) start xWRC with minimal following parms, optional add -httpport 8080 so webserver is at port 8080.
./xwrc.raspi -remaddr <nport-ip-address> -remport 10000
4) use webbrowser to goto <raspi-ip-address>:8080
About making a page for your project, this will require some HTML skills but it is also explained in the GettingStarted guide and sample pages are available in the installation.
But to get you a quick start:
1) Create a file xwrc/icontrol/demo.html and add following text to it, the use webbrowser to visit page: <raspi-ip-address>:8080/icontrol/demo.html.
This is a simple sample to turn on/off output 0 on output module 0. The first link is a text-only sample, the second link also uses an image to represent the state of the output.
A full explanation of these links and tags is given in xwrc/bin/xwrc.help.pdf
<html>
<body>
<a href="icontrol.dll?ccmd=omd.0.out0.toggle&file=<?request file?>">
omd.0.out0.toggle
</a>
<br>
<a href="icontrol.dll?ccmd=omd.0.out0.toggle&file=<?request file?>">
omd.0.out0.toggle <img border="0“ src="/icontrol/img/s.light.<?phc omd.0.out0?>.gif" title="Toggle">
</a>
</body>
</html>
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
Another user Jan is using Ser2Net to connect xWRC over USB to the STM.
Using this tool, xWRC can connect to Ser2Net which converts the TCP connection into a serial port via USB
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Biland
- Offline
- Senior Boarder
- Beiträge: 34
- Dank erhalten: 0
A few minutes ago I bought the needed RS232 cable. I guess that a “Nullmodem” cable with male and female connectors can be use for this case.
In addition I create a HTML File to visualize my control. In the next days I will try my visualisation I’m very excited if my files and config will work.
Is it possible to use for example this comands in my HTML-File:
<!-- Deckenleuchte Wohnzimmer -->
<a href="?ccmd=omd.0.out5.toggle&file=%3C?request%20file?%3E">
<img style="position: absolute; top: 118px; left: 510px;" src="/%3C?plugin%20alias?%3E/img/s.light.%3C?phc%20omd.0.out5?%3E.gif" title="Deckenleuchte Wohnzimmer" border="0">
</a>
But I still have one question:
I start xwrc with:
./xwrc.raspi -httpport 8080 -httpaddr 192.168.xxx.xxx -remaddr 192.168.xxx.xxx -remport 10000
The reason of my question is: I would like to start the program via terminal (telnet) and after that I would like to close the telnet connection.
So if I start the program with the a.m. command the program stops after I disconnect the telnet connection of course.
Can you help me in this case?
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 148
- Dank erhalten: 55
./xwrc.raspi -httpport 8080 -httpaddr 192.168.xxx.xxx -remaddr 192.168.xxx.xxx -remport 10000 &
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Aktuelle Seite:
- Startseite
- Forum
- PHC-Forum
- Visualisierung
- Raspi4PHC