Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2017-01-09 02:32:36

sjcoan
Member
Registered: 2017-01-09
Posts: 5

Trouble with RexHMI

I am attempting to build an automation system for home heating control, so far I have built a successful algorithm and everything seems to be working in rex draw and communicating to the raspberry pi with the unipi expansion board. I cannot however get the HMI to work. So far I have just added a display element to show the value of a temperature sensor to see if I could get it to work before I continued. Under edit element, 192.168.1.117:8008, I can browse the control algorithm and add the connection string of the one wire temperature sensor from rex draw to the display but when I export hmi to an html file (as shown in steps 23-26 of the graphical-hmi-for-pool-automation tutoria) and open it it says failed to connect to 192.168.1.117:8008? What am I doing wrong?

Offline

#2 2017-01-09 10:02:22

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Trouble with RexHMI

Hi sjcoan,

thank you for your question about Rex HMI.
Do you use Rex version 2.50.1? The tutorial you followed is written only for Rex version 2.10.8 - since this version there were a lot of changes throughout entire Rex Control System.

Did you installed "lighttpd" server on your target device? If so, that is probably causing your issue, because Rex version 2.50.1 has already integrated web server and those two servers are colliding on the same port 8008.
Try to uninstall "lighttpd" package

sudo apt-get purge lighttpd

Please, let me know your progress.

Regards, Tomas

Offline

#3 2017-01-09 12:25:46

sjcoan
Member
Registered: 2017-01-09
Posts: 5

Re: Trouble with RexHMI

Yes I am using version 2.50.1 and suspected that the tutorials were for a different version but were using them as more of a reference. I did not specifically install lighttpd server but will try your suggestion. Thank you, I will update later on my progress

Offline

#4 2017-01-10 00:32:02

sjcoan
Member
Registered: 2017-01-09
Posts: 5

Re: Trouble with RexHMI

So I tried uninstalling the lighttpd server and the prompt tells me it was never installed. I have played around with it some more and have even tried just making a blank HMI but when I open the html file in the upper right hand corner I still get an error that it cannot connect to the target device. Thanks in advance for any help you can provide.

Offline

#5 2017-01-10 12:57:52

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Trouble with RexHMI

Hi sjcoan,

thank you for all updates.
Do you test the HMI locally on your development PC or do you connect via web-browser to your target device?
Please, can you upload all your project files so we can have a look at it and help you to solve the issue? If you mind sharing it with community send it via email to support(at)rexcontrols.com.

Regards, Tomas

Offline

#6 2017-01-10 23:50:09

sjcoan
Member
Registered: 2017-01-09
Posts: 5

Re: Trouble with RexHMI

I have tried both locally and connecting to the target device and cant seem to get any to work, I will email you my project files because I'm not sure how to upload them here.

Offline

#7 2017-01-11 14:42:17

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Trouble with RexHMI

Hi Steve,

there was HMI function block missing in your exec file. The HMI function block is now responsible for compile and download process of all HMI possibilities integrated in Rex Control System. Please, see HMI function block documentation - https://www.rexcontrols.com/media/2.50. … df#page=22
The documentation for Rex HMI is far from perfect - if you have any questions, let me know.

I have added the HMI function block to your project. The only thing you should do is to open the project and compile it and download to your target device. The HMI is automatically included to .rex file and downloaded to your device. The HMI is available on yourIP:8008. The local one (after compile process located in "hmi" folder) should also work.

Good luck with your project!

PS: there is an "Uploads" button just bellow the reply window.

Regards, Tomas

Offline

#8 2017-01-11 15:54:16

sjcoan
Member
Registered: 2017-01-09
Posts: 5

Re: Trouble with RexHMI

Thanks so much for your help I had added the HMI function block to the exec file at one point but may not have had the parameters right, I will update as soon as I get a chance to upload the project

Steve

Offline

#9 2017-02-08 21:55:41

marek
Member
Registered: 2016-10-10
Posts: 8

Re: Trouble with RexHMI

Hello,
I would like to ask you about your advice. I have created HMI, but when I want to connect the signals with the elements from my HMI I got a message, that "Target ws://192.168.0.115 is offline!" - but it's not true, because on the other side I am connected on RPi throught the REXView and it's working. Do you know, where could be a problem? Please check the picture below. There is a picture of this issue.

https://www.rexcontrols.cz/forum/img/me … ffline.jpg

Thank you very much for your support.
Kind regards,
Marek Bukovan

Offline

#10 2017-02-09 09:33:08

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Trouble with RexHMI

Hi Marek,

it is necessary to specify the port in target url. By default without any port forwarding it is 8008 - in your case 192.168.0.115:8008.

Hope it will help to solve your issue.

Cheers, Tomas

Offline

Board footer

Powered by FluxBB