Raspi4PHC
- 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: 147
- 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: 147
- 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: 147
- 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.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 147
- Dank erhalten: 55
<!-- Deckenleuchte Wohnzimmer -->
<a href="?ccmd=omd.0.out5.toggle&file=<?request file?>">
<img style="position: absolute; top: 118px; left: 510px;" src="/<?plugin alias?>/img/s.light.<?phc omd.0.out5?>.gif" title="Deckenleuchte Wohnzimmer" border="0">
</a>
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Biland
- Offline
- Senior Boarder
- Beiträge: 34
- Dank erhalten: 0
I use the following command:
./xwrc.raspi -httpport 9999 -httpaddr 192.168.1.28 -remaddr 192.168.1.4 -remport 8080 &
in the next row of the terminal I see:
[1] 2099
xWRC (Linux/RbPI) -- v3.3.0.9 -- Dec 8 2015 ----------- webInterface for PHC -
===============================================================================
Running in demo mode
Press CTRL+C to terminate xWRC
Is the something what I made wrong?
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Biland
- Offline
- Senior Boarder
- Beiträge: 34
- Dank erhalten: 0
./xwrc.raspi -httpport 9999 -httpaddr 192.168.1.28 -remaddr 192.168.1.4 -remport 8080 &
Thanks a lot
Is there a posibility to creat a start script for starting xwrc togehter with booting my debian/raspian?
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 147
- Dank erhalten: 55
www.raspberry-projects.com/pi/pi-operati...uto-running-programs
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- rust
- Offline
- Fresh Boarder
- Beiträge: 1
- Dank erhalten: 0
Sorry for the english (I'm from Belgium).
This is a very interesting topic! I'm going to order the material and try to get this working on my PHC installation.
I guess the newer Raspberry Pi 3 model B will also work with this?
I have the old "V1-Steuermodul", so I will need a RS232 to IP converter. I see some people are using the Nport 5110. Is this a good one? Are there alternatives?
Thanks,
Steven
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- haribo
- Autor
- Offline
- Senior Boarder
- Beiträge: 63
- Dank erhalten: 10
when you're going to build a raspberry based gateway as I described you can build the RS232 to IP converter with the software ser2net and the following hardware:
MAX3232 Serieller Port Modul RS232 auf TTL mit LED-Transceiver
It's working fine on my raspberry pi together with my old "V1-Steuermodul" and is much cheaper than a Nport 5110.
Regards Harald
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- simonjo
- Offline
- Gold Boarder
- Beiträge: 147
- Dank erhalten: 55
Please find below the newest version 3.3.1.0 of xWRC, I updated the core files with new Windows, Linux and Raspi versions. The data files remain the same.
Support is added for newer output modules
regards, Jo
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- piet
- Offline
- Junior Boarder
- Beiträge: 13
- Dank erhalten: 2
thanks a lot for the updated version of xWRC
Piet
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Jan
- Offline
- Junior Boarder
- Beiträge: 17
- Dank erhalten: 2
You can also use following USB-RS232 adaptor (togher with Ser2net of course).
www.aliexpress.com/item/New-CH340-USB-to...13010608.0.75.NuYv5q
I paid it 1,09 € but it cost now 1,32 € (I cannot believe they can make something that works for that price and even ship it to home. Drawback is that that you might have to wait few weeks for delivery).
The cable I bought works fine under Windows10 but the default Linux driver did not work. I needed to download en compile the Linux driver and then it worked. This took me some investigation work.
Later I noticed that you can also buy a similar convertor but with Linux driver:
www.aliexpress.com/item/1pcs-USB-2-0-TO-...3010608.0.127.u7jcVj
This one I didn't, try so I don't know if it works.
Kind regards,
Jan
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- johnhess
- Offline
- Fresh Boarder
- Beiträge: 2
- Dank erhalten: 0
Thank you for all this useful information, I just have 1 question that I can't seem to find an answer to :
How do you connect the RS232 port to the controller module?
I have a 941 STM and there isn't any port like this (On the front panel is a usb and some sort of PS/2 port), On top there is a place where RS232 is marked but you can only put in single cables. Do I need to put in individual cables and push them into the RS232 cable?
My controller module looks like this : www.elektroschakelmateriaal.nl/spree/pro...717_0.png?1455756035
Can someone help me?
Thank you
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Aktuelle Seite:
- Startseite
- Forum
- PHC-Forum
- Visualisierung
- Raspi4PHC