How to factory reset/downgrade firmware on 1067_0B

Any hardware type questions or problems for all other Phidget devices.
nm17
Phidgeteer!
Posts: 51
Joined: Mon Nov 27, 2017 3:29 am
Contact:

How to factory reset/downgrade firmware on 1067_0B

Post by nm17 »

Hi

I have upgraded a couple of 1067_0B boards from 202 firmware to 203 firmware today and would like to downgrade back to firmware 202 - how can I do this?

I tried installing an older version of Phidgets driver but it would not offer option to install older firmware. There isn't anything in the API either.

In essence what I am seeing is that after few stepper runs the stepper does not report that it has stopped (IsMoving property) which is causing me trouble. I don't know if IsMoving logic changed or not so it's difficult to troubleshoot before being able to downgrade and confirm which part is at fault.

I really need this urgently - thanks in advance for any help!
nm17
Phidgeteer!
Posts: 51
Joined: Mon Nov 27, 2017 3:29 am
Contact:

Re: How to factory reset/downgrade firmware on 1067_0B

Post by nm17 »

Update: Firmware 203 for 1067 is not good. I definitely need a procedure to downgrade from firmware 203 back to 202.

I have found an old 1067 stepper board with 202 firmware and tried using that board with my software - it works well. When I try the same code with the updated firmware (203), after a while (it could be anywhere from 1-4 moves) the software just does not get a "movement has stopped" signal from the board, ie Stepper.IsMoving appears not to return "false" even though the motor has physically stopped moving. It could be something else to be honest but that's what it look like.

Please can you let me know how can I downgrade firmware from 203 to 202.
nm17
Phidgeteer!
Posts: 51
Joined: Mon Nov 27, 2017 3:29 am
Contact:

Re: How to factory reset/downgrade firmware on 1067_0B

Post by nm17 »

Also, is there a way to prohibit Phidget Control Panel to upgrade firmware when the user clicks on the motor?

Sometimes it is useful to be able to control motors directly from Phidget Control Panel, e.g. for troubleshooting. But if double-click on the motor in Control Panel goes straight into firmware upgrade (when there is an update) then this can break things when e.g. custom software has not been tested/released for specific firmware update.

So, it would be great if there is an option to ignore updates that can be configured in Phidget Control Panel.
User avatar
Patrick
Lead Developer
Posts: 3403
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: How to factory reset/downgrade firmware on 1067_0B

Post by Patrick »

You can choose not to upgrade the firmware in the popup, and it will bring up the control program.

Firmware downgrade isn't supported in the control panel, but can be done from code.

I've uploaded a tool that can be used to move to any firmware version: https://www.phidgets.com/downloads/firm ... grader.zip

To use, start up the Phidget GPP Controller, select your device in the dropdown, Boot into firmware upgrade mode, Flash firmware, choosing the correct firmware from the firmware folder, Boot into device firmware, and done.

-Patrick
nm17
Phidgeteer!
Posts: 51
Joined: Mon Nov 27, 2017 3:29 am
Contact:

Re: How to factory reset/downgrade firmware on 1067_0B

Post by nm17 »

Hi Patrick

Thanks for prompt response. The firmware tool is throwing an error:

1. I use latest Win10 Pro (fully patched)
2. I connected only one board - 1067_0 to my usb (nothing else on any other usb)
3. I installed Phidget Ctrl Panel from 1 Nov (as the firmware tool has hard dependency on it)
4. It would be great to have this tool maintained/released to users alongside new Control Panels.
5. Would this bug affect STC1003 as I noted this device got firmware update at similar time to 1067?

The firmware tool shows a .Net error window with message: Unhandled exception. PhidgetException 0x14 (Operation Not Supported. This API call is not supported. For Class APIs this means that this API is not supported by this device. This can also mean the API is not supported on this OS, or OS configuration.

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 **************
Phidget22.PhidgetException: PhidgetException 0x14 (Operation Not Supported)
This API call is not supported. For Class APIs this means that this API is not supported by this device. This can also mean the API is not supported on this OS, or OS configuration.
   at Phidget22.Net.EnableServerDiscovery(ServerType serverType)
   at GenericPhidgetPrototype.Form1.Form1_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4042.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Phidget GPP Controller
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/FirmwareUpgrader/FirmwareUpgrader/Phidget%20GPP%20Controller.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4042.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4001.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4042.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Phidget22.NET
    Assembly Version: 1.1.5.4
    Win32 Version: 1.1.5.4
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Phidget22.NET/v4.0_1.1.5.4__aefa9ee0bcd237af/Phidget22.NET.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.
The tool's log file is:

Code: Select all

2019-11-05T11:57:09  <Info> phidget22 : 
******************************  Logging Enabled  ******************************
* Phidget22 - Version 1.5 - Built Nov  1 2019 11:12:24                        *
*******************************************************************************
2019-11-05T11:57:09  <Info> phidget22net[PhidgetNet_start()] : Starting Networking
2019-11-05T11:57:09  <Info> phidget22net[PhidgetNet_stop()] : Stopping Networking
2019-11-05T12:00:06  <Info> phidget22 : 
******************************  Logging Enabled  ******************************
* Phidget22 - Version 1.5 - Built Nov  1 2019 11:12:24                        *
*******************************************************************************
2019-11-05T12:00:06  <Info> phidget22net[PhidgetNet_start()] : Starting Networking
2019-11-05T12:00:06  <Info> phidget22net[PhidgetNet_stop()] : Stopping Networking
Last edited by nm17 on Tue Nov 05, 2019 2:53 pm, edited 1 time in total.
fraser
Engineering
Posts: 324
Joined: Thu Nov 19, 2009 4:41 pm
Contact:

Re: How to factory reset/downgrade firmware on 1067_0B

Post by fraser »

nm17 wrote:
5. Would this bug affect STC1003 as I noted this device got firmware update at similar time to 1067?
This appears to be exclusive to the 1067. But i will have to take a closer look
User avatar
Patrick
Lead Developer
Posts: 3403
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: How to factory reset/downgrade firmware on 1067_0B

Post by Patrick »

I've uploaded the tool again. This time with no dependency on an external install of the libraries. Also included is the source, and you should not see that exception - caused by server discovery depending on bonjour.

I will see if it makes sense to include downgrade in the control panel, but in the meantime, I wanted to get you a tool quickly that can get you onto the correct firmware.

-Patrick
nm17
Phidgeteer!
Posts: 51
Joined: Mon Nov 27, 2017 3:29 am
Contact:

Re: How to factory reset/downgrade firmware on 1067_0B

Post by nm17 »

Thanks Patrick, the last firmware tool worked!

My plea to have this tool either as standalone or part of CP stands :)
User avatar
Patrick
Lead Developer
Posts: 3403
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: How to factory reset/downgrade firmware on 1067_0B

Post by Patrick »

A new 1067 firmware has been released which should deal with the bug you reported.

-Patrick
dahu
Fresh meat
Posts: 2
Joined: Sun Nov 10, 2019 5:14 am
Contact:

Re: How to factory reset/downgrade firmware on 1067_0B

Post by dahu »

Hi

same issue here

GetIsMoving() is buggy

and 204 is still buggy, very very slow response

there was no problem on 202 ... why upgrade ????!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests