Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ddddd13

Pages: [1] 2 3 ... 8
1
Feature Request / Cloud Storage?
« on: September 19, 2020, 10:49:44 AM »
I am not sure if this is the best way to do what I want. But here it goes.

What I want to do.

An app that runs on a cell phone that allows the user to look at variables, and maybe a reset button. I thought using SimpleWebServer would work for me but that gets very complicated going thru servers.

The next idea is to store these variables in a file in the cloud. The app on the cell phone would simply read these variables and display them. To send information back (not really necessary for my application, but maybe to others)
The advanced HMI solution would read this file back from the cloud.

I really don't like the idea of VPN as the operators could really screw things up.

Do you think this is a viable solutiion?

Dave

2
Support Questions / Re: SimpleWebServer problems
« on: September 11, 2020, 08:58:25 PM »
No. The idea is to be able to type in the web address on a cell phone to be able to see what is going on with the HMI. That is not the same network.

Dave

3
Support Questions / Re: SimpleWebServer problems
« on: September 11, 2020, 02:03:47 PM »
Now it leads me to another question. How would the following be able to find my computer as there may be  thousands of computers with that same ip address and port.

http://192.168.1.2:8080

Dave

4
Support Questions / Re: SimpleWebServer problems
« on: September 11, 2020, 11:47:34 AM »
I found the following online. It gets the IP addresses on the computer and displays them in Rich Text Box 3.

Code: [Select]

      Dim GetIPv4Address As String
        GetIPv4Address = String.Empty
        Dim strHostName As String = System.Net.Dns.GetHostName()
        Dim iphe As System.Net.IPHostEntry = System.Net.Dns.GetHostEntry(strHostName)

        For Each ipheal As System.Net.IPAddress In iphe.AddressList
            If ipheal.AddressFamily = System.Net.Sockets.AddressFamily.InterNetwork Then
                GetIPv4Address = ipheal.ToString()
            End If
            RichTextBox3.Text = RichTextBox3.Text & GetIPv4Address & vbCrLf
        Next
   

Dave

5
Support Questions / Re: SimpleWebServer problems
« on: September 11, 2020, 10:00:15 AM »
Yes, I understand the break points, and I used them to diagnose the code and find the IP address on the computer the code was written on. However that does not help me with the computer the code will run on.

This would be a great candidate for a new component property, ActualAddress. I Envision a simple line of code

Richtextbox1.text=SimpleWebServer1.ActualAddress

This would show the actual IP address no matter what machine the program was running on.

Dave

6
Support Questions / SimpleWebServer problems
« on: September 10, 2020, 07:01:07 PM »
I am trying to get SimpleWebServer to work. I looked on line and it showed how to diagnose connection problems, with a breakpoint. That is well and good if you are debugging the program, but after you have compiled it and try to run it on a different machine, it is a problem. I tried adding a consolewriteline to the SimpleWebServer code as follows.

        Dim LocalComputerName As String = System.Net.Dns.GetHostName() '* same as My.Computer.Name
        Dim localAddr As System.Net.IPAddress = GetIPv4Address(LocalComputerName)

        Console.WriteLine("address ", localAddr)
       
 If localAddr Is Nothing Then
            localAddr = System.Net.IPAddress.Parse("127.0.0.1")
        End If

But I never see anything. I have also tried.

Mainform.RichTextbox3.text=("address ", localAddr)

That gives me errors. Any ideas?

Dave

7
Feature Request / Expanded SimpleWebServer
« on: September 08, 2020, 08:56:10 PM »
Simple Web Server seems able to send information in one direction (the page it is displaying) It would be nice to be able to send information back to the HMI. I understand this would require some kind of security also.

Thanks,
Dave

8
Support Questions / Re: How to change emailer settings
« on: September 07, 2020, 08:51:32 PM »
No, the operator can turn on and off receiptants but your idea would likely work if changing the MessageTo property would actually change in the program.

In the end I got this to work, lets not waste any more time with it.

Dave

9
Support Questions / Re: How to change emailer settings
« on: September 07, 2020, 11:33:10 AM »
Ok. So your saying I need a newer version of software?

I got around the problem by making the first email message "system restart".

However, I was trying to change the property Emailer1.MessageTo without success. I used.

Emailer.MessageTo=7155555555@vtext.com

I am sending out 5 emails one after the other and it would send them all to the number that was set in the property field on startup, not the one I changed it to with the above code. I guess refresh might have taken care of the problem. I got around it by using 5 emailers. What are your thoughts on refresh? Or would that send another startup email?

Dave

10
Support Questions / Re: How to change emailer settings
« on: September 04, 2020, 07:24:05 AM »
I am trying to stop the email from being sent on startup by setting it to GreaterThanValue, then changing it to value change after it has started.

Dave

11
Support Questions / How to change emailer settings
« on: September 03, 2020, 08:24:09 PM »
When using the emailer it will send out an email on startup if I use the TriggerType ValueChange. This is the easiest way for me to send an email as all I have to do is increment value. I have tried
Emailer1.TriggerType=ValueChange
and
Emailer1.TriggerType = AdvancedHMI.Controls.EmailerEx.TriggerTypeEnum.ValueChange
Neither one actually changes the Type.

What am I doing wrong

Dave

12
Support Questions / Message Handler
« on: August 31, 2020, 10:07:23 PM »
I am trying to run a very simple program to test sending messages. I want to send a message to an email to confirm it works, then to a phone number. I have set a momentary push button on the main screen that increments the messagehandler1.value variable. I expect this to send an email as the property is set to send the email on change of value. When running the program under debug it gives an alarm com component not set. What am I doing wrong?

13
Support Questions / Emailer to cell phone
« on: August 24, 2020, 01:22:20 PM »
The emailer works but when trying to send an email to the cell phone it does not. Doing an on line search I should be able to enter the phone number followed by @vtext.com or @vzwpix.com However these no longer work and an online search states that. Have you any experience in sending email to a cell phone?

Thanks,
Dave

14
Support Questions / Re: MessageHandler not quite right
« on: February 07, 2020, 06:12:11 PM »
A little more information. Shutting down Advanced HMI and reloading the project allows me to send emails again. I get 3-4 then nothing. Nothing recorded in the events or errors after these 3-4. Shut down Advanced HMI and I can send 3-4 emails again then nothing?

Dave

15
Support Questions / MessageHandler not quite right
« on: February 06, 2020, 11:43:20 PM »
It worked for several months, now it does funny things.

The first email works perfect. It sends all three emails as it is supposed to. The one curiosity it logs errors

No File Specified for alarms, emails, and timeouts.
No File Specified for email address list.
No File Specified for alarms, emails, and timeouts.
No File Specified for email address list.

These alarms are logged on the first email and never again. I have two files called emails and emailer and they are entered in the message handler properties. (C:\Files\Emails and C:\Files\Emailer) something like this.
C:\Files\Emailer
1,1,10,2,10,3

C:\Files\Emails
1,AJ.IT@apcorp.com
2,RS.IT@apcorp.com
3,DS.IT@apcorp.com

Everything would be ok except when the second set of emails is sent. It should go to the first on the list wait 10minutes, send to the 2nd on the list, wait 10 minutes, and send to the 3rd. Instead it just sends one email to the third on the list.

Any ideas?

Pages: [1] 2 3 ... 8