Page 5 of 7

Re: Client Suite 2.2

Posted: Mon Oct 17, 2011 10:05 am
by dmolton
Don, glad it worked out well for you. Thank you for letting me know what issues you ran into. It will help out in the future when others look to do the same setup.

Version 2.2 of the suite unfortunately has the web banner updating and email/sms notification happening from the Client. So it needs to remain running on your laptop. That functionality absolutely doesn't belong running on the Client and was yet another shortsighted implementation on my part :oops:

I've already pulled out the email/sms/webbanner functionality and created a new "ReefAngel Notification Service" that also subscribes to the Listener and based on user settings, will email or update the web banner for you.

I'm quite close to another release that will be much better served for your kind of setup, so hang in there for just a bit longer :)

Re: Client Suite 2.2

Posted: Fri Oct 21, 2011 4:20 pm
by jemw
Dave,

A couple of things I have discovered:

When the WifiAuthentication is set - the Client Suite errors out with (log file entry):
Message:
Inside WifiSend:
The remote server returned an error: (401) Unauthorized.
StackTrace:
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at System.Net.WebClient.DownloadString(String address)
at ReefAngelWCFListener.ReefAngelListener.WifiSend()
Is there a place to store the login and password for passing when connecting?

When values are passed to the functions from the .pde file the Memory tab displays the defaults that
were downloaded initially. Is there a way to display the real values that the controller is using?

Thanks!!
Jim

Re: Client Suite 2.2

Posted: Sat Oct 22, 2011 9:09 am
by rimai
How is WifiAuthentication working for you so far?
I'm curious to know because we have a thread about it and the more information the better.
http://forum.reefangel.com/viewtopic.php?f=7&t=372
Would you mind sharing your experience in the above thread?
Back to this thread, the WifiAuthentication has not been implemented in any of the apps we currently have available. Mainly because of issues that are reported in the thread above.
I'm gonna dig deeper to see if I can find anything that would be causing this sporadic behavior.

Re: Client Suite 2.2

Posted: Sun Oct 23, 2011 10:41 pm
by alexwbush
dmolton wrote:When you deleted the folder from program files, installstate files were removed that windows uses to complete the uninstall process. You're on the right track, trying to repair. Once repaired, windows should be able to uninstall. You will need to:
-manually uninstall the services
-run installer again to repair.
-uninstall properly from control panel.

Open an "administrator command prompt" and type in the following two commands:

sc delete ReefAngelListener
sc delete ReefAngelLogger

After that run the installer again and attempt to repair. What version of windows are you running?
Dave, this solved my problem. Apparently the ReefAngelLogger was somehow already installed, so I would get an error saying services already exist. Thanks!

Re: Client Suite 2.2

Posted: Thu Oct 27, 2011 8:36 am
by dedvalson
dmolton wrote:Don, glad it worked out well for you. Thank you for letting me know what issues you ran into. It will help out in the future when others look to do the same setup.

Version 2.2 of the suite unfortunately has the web banner updating and email/sms notification happening from the Client. So it needs to remain running on your laptop. That functionality absolutely doesn't belong running on the Client and was yet another shortsighted implementation on my part :oops:

I've already pulled out the email/sms/webbanner functionality and created a new "ReefAngel Notification Service" that also subscribes to the Listener and based on user settings, will email or update the web banner for you.

I'm quite close to another release that will be much better served for your kind of setup, so hang in there for just a bit longer :)
A couple of thoughts I had for the new release, you may already be thinking along these lines.

1. Running the client GUI on my laptop and the services on my server is working OK, but the file sharing is slow and pretty insecure. Have you considered allowing the client to access the database as a sqlserver client instead of opening the file?

2. I have noticed that if my laptop is asleep for a while and then I turn it on it starts picking up new updates in the graph but the only way to get the updates that were missed while the laptop was asleep is to exit the GUI and restart it.

Thanks,

Don

Re: Client Suite 2.2

Posted: Thu Oct 27, 2011 11:45 am
by dmolton
So I think accessing the database like that would require the user to have at least SQL Server Express installed, yeah? When looking at options for the database I originally opted for the SQL Server Compact because its very small, portable and only needs 6 MS SqlCe libraries to be included with the installation in order to use the data driver. No extra prerequisites required.

I know Curt was asking for the ability to connect to any type of database so long as the table structure is the same. Maybe I can have some extra options in the .config file to allow users to define the database type and then through reflection maybe, access it. I'll look into that option a little further.

For updating the GUI when you resume from sleep, instead of restarting the Client, you can use the radio buttons above the graph to change the viewable date range. Go to "Past Week" and then back to "Live (24hr)". Each time you swap those ranges, it goes to the database for the most recent information.

Re: Client Suite 2.2

Posted: Fri Oct 28, 2011 8:01 am
by slipperysam
that would be a cool idea.

also it would be cool to have it on a web host so all the data is connected with your host (i.e go daddy).

so the client will run as a website rather then a local client.

sam

Re: Client Suite 2.2

Posted: Sat Oct 29, 2011 9:21 am
by Xender
Agree with Sam ;-)

Yet another request

Posted: Fri Dec 02, 2011 10:48 am
by dedvalson
Hi,

You are probably getting tired of requests for features, but here is one anyway :D

I have noticed that once in a while (2-3 times a week) I will get an email / SMS message indicating that my pH is too high or low. When I look via at the graph it is generally fine. It appears that occasionally an erratic pH value gets read (they are pretty far off, like suddenly I'll get a 9.0 when the reading 15 seconds earlier was 8.3). Perhaps you could hold off on sending the email till you see two or more bad readings in a row or a timeout has taken place?

Along this line, an email notification if you haven't heard from the ReefAngel in a while might be interesting.

Don

Re: Yet another request

Posted: Fri Dec 02, 2011 11:00 am
by wolfador
dedvalson wrote:Hi,

You are probably getting tired of requests for features, but here is one anyway :D

I have noticed that once in a while (2-3 times a week) I will get an email / SMS message indicating that my pH is too high or low. When I look via at the graph it is generally fine. It appears that occasionally an erratic pH value gets read (they are pretty far off, like suddenly I'll get a 9.0 when the reading 15 seconds earlier was 8.3). Perhaps you could hold off on sending the email till you see two or more bad readings in a row or a timeout has taken place?

Along this line, an email notification if you haven't heard from the ReefAngel in a while might be interesting.

Don
Are you using the latest .19 libs? pH averaging was added in, I think that would fix that error.

Re: Client Suite 2.2

Posted: Fri Dec 02, 2011 2:45 pm
by dedvalson
I have version 0.8.5.19 of the libs.

Don

Re: Client Suite 2.2

Posted: Mon Dec 26, 2011 4:13 pm
by ahmedess
I m getting this error msg when i try to change values in the memory using client 2.2

Code: Select all

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at ReefAngelClient.Form1.SetMemoryValues()
   at ReefAngelClient.Form1.btnSaveMemory_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ReefAngelClient
    Assembly Version: 2.2.0.0
    Win32 Version: 2.2.0.0
    CodeBase: file:///C:/Users/Ahmed/AppData/Roaming/ReefAngel/Client/ReefAngelClient.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Windows.Forms.DataVisualization
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.116
    CodeBase: file:///C:/Users/Ahmed/AppData/Roaming/ReefAngel/Client/dlls/System.Windows.Forms.DataVisualization.DLL
----------------------------------------
System.ServiceModel
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.4506.4926 (NetFXw7.030729-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.4506.4926 (NetFXw7.030729-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Data.SqlServerCe
    Assembly Version: 3.5.1.0
    Win32 Version: 3.5.8080.0
    CodeBase: file:///C:/Users/Ahmed/AppData/Roaming/ReefAngel/Client/dlls/System.Data.SqlServerCe.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ReefAngelException
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Ahmed/AppData/Roaming/ReefAngel/Client/ReefAngelException.DLL
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.4926 built by: NetFXw7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Manometers
    Assembly Version: 1.0.3975.30783
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Ahmed/AppData/Roaming/ReefAngel/Client/dlls/Manometers.DLL
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
SMDiagnostics
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.4506.4926 (NetFXw7.030729-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/SMDiagnostics/3.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.WorkflowServices
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.594.4926
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.WorkflowServices/3.5.0.0__31bf3856ad364e35/System.WorkflowServices.dll
----------------------------------------
System.ServiceModel.Web
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.594.4926
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll
----------------------------------------
System.IdentityModel
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.4506.4926 (NetFXw7.030729-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.IdentityModel/3.0.0.0__b77a5c561934e089/System.IdentityModel.dll
----------------------------------------
System.ServiceProcess
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Re: Client Suite 2.2

Posted: Tue Dec 27, 2011 6:38 am
by Deckoz2302
Hmm caqnt figure. Out why it won't pull any parameters? It connects and sees the ra on com3 baud 57600 through usb but no info is pulled

Re: Client Suite 2.2

Posted: Tue Dec 27, 2011 10:45 am
by dmolton
ahmedess wrote:I m getting this error msg when i try to change values in the memory using client 2.2
Are you seeing correct data from the controller on the main tab? Temps/pH/Relay statuses?

Re: Client Suite 2.2

Posted: Tue Dec 27, 2011 10:47 am
by dmolton
Deckoz2302 wrote:Hmm caqnt figure. Out why it won't pull any parameters? It connects and sees the ra on com3 baud 57600 through usb but no info is pulled
1.) Do you have "#define wifi" in your ReefAngel_Features file? Double check this.
2.) Do you have any other applications running that my have a lock on the COM Port? i.e. Arduino IDE.
3.) Have a look at the error log and report back any findings. There may be something useful in there: View -> Error Log

Re: Client Suite 2.2

Posted: Tue Dec 27, 2011 11:33 am
by Deckoz2302
1 no I don't have define wifi - no wifi module using usb, should I define it?
2 this is more then likely my problem, I had aurduino open but did not think it was connected as I wasn't uploading or using the java status monitor.
3 I did check the error log and the only thing in it was the original log from not finding the sql.....35.dll which was fixed by installing the necessary dll

Re: Client Suite 2.2

Posted: Tue Dec 27, 2011 2:12 pm
by ahmedess
dmolton wrote:
ahmedess wrote:I m getting this error msg when i try to change values in the memory using client 2.2
Are you seeing correct data from the controller on the main tab? Temps/pH/Relay statuses?
Yes everything is perfect except when i try to update any value in the memory i get this error msg and then i have to choose between closing the client or continue using it. If i choose to continue the memory window stays frozen without any info onit

Re: Client Suite 2.2

Posted: Tue Dec 27, 2011 2:17 pm
by rimai
I've seen this happening before. It happened to me and I forgot to comment.
I had something to do with one of the values being out of range, if I'm not mistaken.
If you go ahead and load one of the internal memory PDE files, it should correct the problem.
I think what happens is the Client pulls a value in the memory that was never initialized and it falls out of range of what the Client is expecting and it just generates an error.

Re: Client Suite 2.2

Posted: Tue Dec 27, 2011 3:38 pm
by ahmedess
rimai wrote:I've seen this happening before. It happened to me and I forgot to comment.
I had something to do with one of the values being out of range, if I'm not mistaken.
If you go ahead and load one of the internal memory PDE files, it should correct the problem.
I think what happens is the Client pulls a value in the memory that was never initialized and it falls out of range of what the Client is expecting and it just generates an error.
I'm using Celsius temperature mode and I've set the internal memory values related to heater and chiller in celcius. could that be the problem?!! cause also on my client the values are not shown at heater and chiller temperature section.

I really dont want to go back to using Fahrenheit because of this. I hope its something that I could fix fast.

Re: Client Suite 2.2

Posted: Tue Dec 27, 2011 6:27 pm
by dmolton
Deckoz2302 wrote:1 no I don't have define wifi - no wifi module using usb, should I define it?
2 this is more then likely my problem, I had aurduino open but did not think it was connected as I wasn't uploading or using the java status monitor.
3 I did check the error log and the only thing in it was the original log from not finding the sql.....35.dll which was fixed by installing the necessary dll
Yes, #define wifi must be in your Features file, even if you're not using the wifi adapter and instead want to communicate with the Client over USB. "wifi" in the context of the features file, is a little misleading. "#define comm" might be more appropriate. With wifi defined in the features file, all you're really doing is enabling the controller to receive commands and output xml. The controller doesn't care if a usb cable is plugged into it or a wifi adapter. In fact, it outputs the exact same response no matter whats plugged in.

From here, I would:

1.) Stop the Listener service.
2.) add the #define wifi into your features file and try to recompile/upload from Arduino IDE. You might have to remove some other features from your file because wifi takes quite a bit of memory space.
3.) Upload your sketch with the fixed features file.
4.) Exit the Arduino IDE.
5.) Start the Listener up again and launch the Client.

When you want to reupload another sketch, you will need to stop the Listener to release the COM lock, open/upload/close Arduino IDE. And finally start the Listener again.

This should get you up and running.

Re: Client Suite 2.2

Posted: Tue Dec 27, 2011 6:49 pm
by dmolton
rimai wrote:I've seen this happening before. It happened to me and I forgot to comment.
I had something to do with one of the values being out of range, if I'm not mistaken.
If you go ahead and load one of the internal memory PDE files, it should correct the problem.
I think what happens is the Client pulls a value in the memory that was never initialized and it falls out of range of what the Client is expecting and it just generates an error.
Roberto, thanks for mentioning this. I'm pretty sure I now know where the problem is.
ahmedess wrote: I'm using Celsius temperature mode and I've set the internal memory values related to heater and chiller in celcius. could that be the problem?!! cause also on my client the values are not shown at heater and chiller temperature section.

I really dont want to go back to using Fahrenheit because of this. I hope its something that I could fix fast.
I think what's happening is when you do a Refresh Memory action, your Celsius temperature settings from the controller are below the predefined acceptable values for temperatures in the Client. (Fahrenheit only as of 2.2). When you attempt to save some settings back to the controller from the Client, you don't have temperature settings and when it tries to read those controls, it's bombing out. I added some more support for Celsius already in my development version, but have to double check this exact scenario once more. Unfortunately, there's no quick fix as of this moment. I'm trying to get a new version released very soon now that I'm on vacation from work. In the mean time you can use Curt's memory setting application to set your mem values..

Re: Client Suite 2.2

Posted: Wed Dec 28, 2011 10:34 am
by tkeracer619
Had some time this weekend and set this up on my desktop. Works great.

When I am not around this computer goes to sleep. I could change that but I have a RAID array of SSD I would rather not have reading and writing if I can help it.

Tried installing it on one of my servers and get crashes on program start. The system runs on Windows Server 2008 R2. I am assuming something that is required for the software to operate isn't installed on the machine.

Any ideas?

Re: Client Suite 2.2

Posted: Wed Dec 28, 2011 10:40 am
by dmolton
tkeracer619 wrote:Had some time this weekend and set this up on my desktop. Works great.

When I am not around this computer goes to sleep. I could change that but I have a RAID array of SSD I would rather not have reading and writing if I can help it.

Tried installing it on one of my servers and get crashes on program start. The system runs on Windows Server 2008 R2. I am assuming something that is required for the software to operate isn't installed on the machine.

Any ideas?
Most likely you're missing the .NET framework 3.5 SP1 on your server 2008 machine. 3.5 should be all you need, although if you still run into issues try the 4.0 client profile as well..

Re: Client Suite 2.2

Posted: Thu Dec 29, 2011 8:16 pm
by tkeracer619
Yup that was it. Thanks

Re: Client Suite 2.2

Posted: Sun Jan 15, 2012 12:32 am
by projectx
I am not able to get the 2.2 or the 2.1 to install, either doing an uninstall of the 2.0 (which is the only version that works for me) or trying to do the upgrade.

I get a windows handler exception error, when it does install, and when it doesn't install I get the following error Error 1001. Error 1001. Unable to create WindowHandleWraper. Window 'ReefAngel Client Suite' not found.

I am extracting the files and not running them within the zip archive.

Any ideas?

Re: Client Suite 2.2

Posted: Tue Jan 17, 2012 10:21 am
by Mike S
Take a look at the second and third posts down: http://forum.reefangel.com/viewtopic.ph ... &start=110

I had a similar problem and this took care of it for me.

Re: Client Suite 2.2

Posted: Tue Jan 17, 2012 8:44 pm
by projectx
Thanks, I tried that and I am still getting the same error when I try to install a fresh copy of 2.2
Any other ideas?

Re: Client Suite 2.2

Posted: Thu Jan 19, 2012 9:10 pm
by projectx
I dont know what I did but it finally installed on one of my computers that I was fighting with previously, thanks for the help

Re: Client Suite 2.2

Posted: Sat Jan 28, 2012 6:52 am
by rossbryant1956
I am just starting with this and having trouble. Questions:

- I am getting "unable to retrieve controller memory settings."
- The dev lib version indicator says x.x.x. How do I determine what verson I have, I saw on the site where to get the new ones, it is not clear to me where and how to unzip and place the files in the right directory, if they even need upgrading.

Thanks in advance for your help

Re: Client Suite 2.2

Posted: Sat Jan 28, 2012 9:47 am
by rimai
Use the libraries update utility:
http://forum.reefangel.com/viewtopic.php?f=8&t=2
You will need to generate a new code after the update and also make sure that you have wifi feature checked on RAGen.