Updating libraries

Related to the development libraries, released by Curt Binder
Post Reply
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Updating libraries

Post by Bogdan »

Roberto,

I was trying to install the new version of RA installer and now can't upload a sketch. It says error when uploading. I am using the wizard for sketch generation. I am stuck. Nothing works anymore, the client is down as well, almost kill the life in my tank, the controller got frozen and kept pumping the kalk water through the ATO system, almost overflow the sump, the pH went sky high. Need help to get the RA under control.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

What is the error code you are getting?
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

It says error uploading
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

Can you copy and paste the errors it shows on Arduino at the bottom of the page?
It will show in red letters.
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

avrdude: Version 6.0, compiled on Apr 6 2012 at 19:29:19
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM5
Using Programmer : stk500v2
Overriding Baud Rate : 115200
Rebooting Reef Angel Controller
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

That has nothing to do with the libraries updates.
Can you double check the serial port?
Also, do you have RA+?
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

I have RA. It took me a few hours but eventually I managed to upload the new version of RA installer and even to upload new sketch without an error. The end results however is not very satisfying; the Client still get stuck, the pH probe went crazy from 11 to 2 and I cant refresh the memory it gives me the message:Unable to retrieve controller memory settings. Refer to error logs for more details.
When I looked at the error logs there is tons of messages that I dont understand. Any ideas on what to do will be much appreciated. Attached is error logs:
*****4/28/2013 5:52:24 PM*****
Message:
Notifier Service Started.
StackTrace:


*****4/28/2013 5:53:09 PM*****
Message:
Object reference not set to an instance of an object.
StackTrace:
at ReefAngelClient.Settings.ToggleOnlineSettingsDisplay()
at ReefAngelClient.Settings.LoadUserNotificationValues()
at ReefAngelClient.Settings.Settings_Load(Object sender, EventArgs e)

*****4/28/2013 5:54:00 PM*****
Message:
Object reference not set to an instance of an object.
StackTrace:
at ReefAngelWCFListener.ReefAngelListener.GetPortalLabels()

*****4/28/2013 5:54:00 PM*****
Message:
There was an error parsing the query. [ Token line number = 3,Token line offset = 25,Token in error = = ]
StackTrace:
at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
at ReefAngelClient.DAO.DataAccess.ExecuteNonQuery(String query)

*****4/28/2013 5:54:00 PM*****
Message:
There was an error parsing the query. [ Token line number = 3,Token line offset = 25,Token in error = = ]
StackTrace:
at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
at ReefAngelClient.DAO.DataAccess.ExecuteNonQuery(String query)

*****4/28/2013 5:54:00 PM*****
Message:
There was an error parsing the query. [ Token line number = 3,Token line offset = 25,Token in error = = ]
StackTrace:
at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
at ReefAngelClient.DAO.DataAccess.ExecuteNonQuery(String query)

*****4/28/2013 5:56:00 PM*****
Message:
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.
StackTrace:

Server stack trace:
at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ReefAngelWCFListener.IReefAngelCallback.HandleParams(ReefAngelParams paras)
at ReefAngelWCFListener.ReefAngelListener.<>c__DisplayClass12.<SendParams>b__11(Object )

*****4/28/2013 5:56:03 PM*****
Message:
Object reference not set to an instance of an object.
StackTrace:
at ReefAngelWCFListener.ReefAngelListener.GetPortalLabels()

*****4/28/2013 5:56:03 PM*****
Message:
There was an error parsing the query. [ Token line number = 3,Token line offset = 25,Token in error = = ]
StackTrace:
at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
at ReefAngelClient.DAO.DataAccess.ExecuteNonQuery(String query)

*****4/28/2013 5:56:03 PM*****
Message:
There was an error parsing the query. [ Token line number = 3,Token line offset = 25,Token in error = = ]
StackTrace:
at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
at ReefAngelClient.DAO.DataAccess.ExecuteNonQuery(String query)

*****4/28/2013 5:56:03 PM*****
Message:
There was an error parsing the query. [ Token line number = 3,Token line offset = 25,Token in error = = ]
StackTrace:
at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
at ReefAngelClient.DAO.DataAccess.ExecuteNonQuery(String query)

*****4/28/2013 5:56:46 PM*****
Message:
Object reference not set to an instance of an object.
StackTrace:
at ReefAngelWCFListener.ReefAngelListener.GetPortalLabels()

*****4/28/2013 5:57:43 PM*****
Message:
Object reference not set to an instance of an object.
StackTrace:
at ReefAngelWCFListener.ReefAngelListener.GetPortalLabels()

*****4/28/2013 6:01:14 PM*****
Message:
Index was outside the bounds of the array.
StackTrace:
at ReefAngelWCFListener.ReefAngelListener.GetAllMemoryValuesPost10(String[] locations)

*****4/28/2013 6:01:14 PM*****
Message:
Value cannot be null.
Parameter name: String
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at ReefAngelClient.Form1.DisplayMemoryValues()

*****4/28/2013 6:01:22 PM*****
Message:
Index was outside the bounds of the array.
StackTrace:
at ReefAngelWCFListener.ReefAngelListener.GetAllMemoryValuesPost10(String[] locations)

*****4/28/2013 6:01:22 PM*****
Message:
Value cannot be null.
Parameter name: String
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at ReefAngelClient.Form1.DisplayMemoryValues()

*****4/28/2013 6:02:15 PM*****
Message:
Index was outside the bounds of the array.
StackTrace:
at ReefAngelWCFListener.ReefAngelListener.GetAllMemoryValuesPost10(String[] locations)

*****4/28/2013 6:02:15 PM*****
Message:
Value cannot be null.
Parameter name: String
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

You are going to have to ask Dave (dmolton) about this. He's the dev of the Client Suite.
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

I know, I need to get Dave to help me with the client but the RA controller doesn't work either. It freezes completely, the pH probe doesn't work. I wanted to start from scratch so I uninstalled everything and installed again the newest version. Then used the wizard to generate the sketch and uploaded it. Everything went fine but it doesn't work. I deleted the old RAMemory file when I was uninstalling RA controller, now after installing the new RA version I don't see the RAMemory file. Maybe you can help me with just the RA controller by now. let me know.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

Yes, for RA, you can use the Wizard to start.
Choose the option of hard coded settings and you won't need to worry about memory files.
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

Do I need to mark on the WiFi attachment in the wizard even though I don't have it? Is this necessary for the client or portal to work?
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

Yes, you need wifi to use the Client
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

Roberto,

I still have problems with the controller. While I am waiting for Dave to help me with the client I uninstalled the client completely. Even without the client the controller keep freezing. It doesnt work, cant read the temp or pH. When press the button on the controller the small display get crazy flickering. I have to unplug the power to make it back to work. So something is definitely wrong with the controller even without using the client. Can you help?
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

Does it enter feeding mode when you press the joystick twice?
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

It does not respond to the joystick at all.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

Not even the backlight??
How do you get to see anything on the screen?
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

As I said I can't see anything (that is the problem).
Image
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

Should I try to uninstall the controller and reinstall everything from scratch? I really dont know what else to do.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

You just said you see flickering, so you are seeing something....
I don't want to know whether it's anything meaningful or not...
I'm just trying to find out if the issue is LCD, head unit or code.
So, when you see the flickering, how do you get to see it? The controller turns the backlight off after so may seconds.
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

Do you have an email so I can send you a short mp4 showing the flickering?
Image
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

I dont think it is LCD since when I unplug the power and plug it again it does work for a while but then freezes and if I push the joystick it flickers, cant see anything.
Image
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

Reinstalled the RA Installer 1.0.1 with new library 1.0.7
Went though Wizard and verified/compiled the sketch, but cant upload it. Below is the error:

avrdude: Version 6.0, compiled on Apr 6 2012 at 19:29:19
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM5
Using Programmer : stk500v2
Overriding Baud Rate : 115200
Rebooting Reef Angel Controller
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Updating libraries

Post by rimai »

Do you have RA+?
Roberto.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

No just RA
Image
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

I see, under the tools, board the RA+ is marked. If I change it to RA the message is sketch is too big.
Should I choose the RA w/ optiboot?
Image
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

OK, managed to upload it after choosing the RA w/optiboot. Is that OK?
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Post by binder »

Bogdan wrote:OK, managed to upload it after choosing the RA w/optiboot. Is that OK?
yes. the RA w/ optiboot is correct for the standard RA.
Bogdan
Posts: 109
Joined: Sat Aug 11, 2012 9:16 pm

Re: Updating libraries

Post by Bogdan »

Thanks
Image
Post Reply