How-to
Trigger a remote firmware update from a Java API call
Short answer
Yes: the manufacturer documents one Java call. ScheduledActionManager.GetHttp downloads the firmware file from your web server to /usr/ewonfwr.edf, and a file landing at that destination starts the installation. A clean return proves the download was accepted, not installed, so accept the rollout only on a version read-back.
On this page
Yes. The manufacturer documents one Java call that does the job: download the firmware file from your web server to the device path that triggers installation. The call is com.ewon.ewonitf.ScheduledActionManager.GetHttp, it runs inside the Flexy's own Java environment (the ETK), and the destination is fixed — a file written to /usr/ewonfwr.edf starts the installation. That trigger is also the trap. The call returns when the download action is accepted, and nothing in that return tells you the device runs the new firmware, so the acceptance test in this procedure is a version read-back, never the call's return. What follows: the exact call, the rollout sequence, a worked acceptance example, and the documented firmware regressions that make one pinned, pilot-tested version the only sane fleet policy.
The call that triggers the update #
The Flexy's Java environment exposes the device's scheduled actions to your application, and the firmware update is one of them. The documented call, with the argument names exactly as published:
com.ewon.ewonitf.ScheduledActionManager.GetHttp(<CnxParam>, "/usr/ewonfwr.edf", <FileUrl>)
Three arguments. The first, published as <CnxParam>, carries the connection parameters for the outbound HTTP request; their exact format is defined in the Java interface documentation for your ETK version, so take it from there instead of reconstructing it. The middle argument is fixed, and it is the whole mechanism: write the firmware file to that destination and installation starts; write it anywhere else and you have a file on a disk and nothing else. The third, <FileUrl>, is the URL of the firmware file on your web server.
An illustrative call in application code — the variable values are examples, your application supplies its own:
String connParams = buildDownloadConnection(); // connection parameters, format per the Java interface documentation for your ETK version
String firmwareUrl = "http://192.168.4.20/flexy/ewonfwr.edf"; // example address of the file on your web server
com.ewon.ewonitf.ScheduledActionManager.GetHttp(connParams, "/usr/ewonfwr.edf", firmwareUrl);
The class name tells you the execution model: this starts a scheduled HTTP download action on the device. The documented behavior covers the trigger — file lands at the destination, installation starts — and stops there. No completion response, no progress callback and no status field appear in the evidence for this call path, so treat a clean return as accepted and nothing more.
Prepare the file and the server #
- Source the file only from the manufacturer's support portal or your distributor. The manufacturer publishes a firmware version list covering Ewon Cosy, Flexy and CD products, with the latest version for each and the upgrade links; confirm there that your pinned version exists for your exact model before you plan the rollout.
- Pin one version for the whole fleet and record it against the file. Host the file named ewonfwr.edf on a web server the device can reach over its normal outbound route.
- One URL serves one version. If you move to a different version, change the URL at the same time. A silently re-hosted URL is how a fleet drifts onto two versions without anyone deciding that.
- If the server requires credentials, they ride in the connection parameter, and the exact fields come from the Java interface documentation — not from trial and error against a production gateway.
The rollout sequence #
- Pin the version. Match your Flexy model against the manufacturer's firmware version list and read the release notes for that version; the traps below list documented regressions worth checking first.
- Download the firmware file for that version from the manufacturer's support portal or your distributor — never from a mirror or a shared link. A firmware image is not a file to gamble on.
- Host it at a stable URL on the server the device can reach, and record which version that URL serves.
- Trigger from your Java application: the GetHttp call with your connection parameters, the fixed destination path, and the file URL. Trigger once per device per version, and gate every retry on a fresh version read-back, never on the call's return.
- Let installation run. While it runs, the device is busy with the update and drops the connections riding on it, so schedule the window: updating a gateway mid-shift interrupts whatever traffic it carries, and the link to a running machine is not the link to cut casually.
- Verify by read-back. Open the device's web interface, read the firmware version it reports, and compare it with the pinned version. Matching means updated; anything else means not updated, whatever the call returned.
- Log device, timestamp, URL served, and the version read back. That log is the fleet's acceptance record and the first thing you will want when one device behaves differently two months later.
Verify the install, not the download #
The acceptance test is one comparison: the version the device reports equals the version you pinned. Read it from the device's own web interface after installation finishes. Because this call path provides no completion response, the read-back is the only signal you control end to end, and every retry, escalation and rollback decision hangs on it.
Worked example, with illustrative numbers — not a measured test: a fleet of 24 Flexy gateways moves to one pinned version. You trigger 24 downloads and 24 calls return cleanly. Read-back shows 22 devices on the pinned version and 2 still on the old one. 24 - 2 = 22 devices pass acceptance, which is 22 / 24 = 0.917, or 91.7% of the fleet. Decision: the 22 are updated and logged; the 2 are not, despite clean returns, and they go down the manual path in the last section. If any device reports a version you never pinned, stop the rollout where it stands and check what your URL actually serves — that is the one-URL-one-version rule from the sequence catching a drift before it spreads.
Pin versions and avoid the documented traps #
Version-specific regressions are a documented reality on this platform, and they are the case for a pinned, pilot-tested version over "whatever is newest":
- Firmware 14.9s3 introduced a new cookies mechanism incompatible with previous behavior, and devices updated to it have been reported hitting the
ecfg-Invalid rightserror followed by a reboot. Pilot one device before the fleet, and make a web-interface login part of verification, not just the version comparison. - A Flexy MQTT client that drops after a single publish on firmware 14.0s01: if your architecture publishes to a broker, read why a Flexy MQTT client drops after one publish before you pin that generation.
- A Flexy whose LAN internet path dies after a firmware update is another documented case: why Flexy LAN internet drops after a firmware update.
The same logic argues against leaving the built-in automatic update on: the manufacturer documents a case where automatic firmware update can fail on Ewon Cosy+ 4G versions. A Java-controlled pull with a pinned file and a read-back gate keeps every failure visible at a step you own.
When Java is not the right tool #
For one-off updates and recovery, the documented manual path runs through eCatcher: connect to your Talk2M account, select the device, and start the firmware update from the Tools menu (F3), then select the firmware file. The manufacturer's knowledge base also documents the other ways to update or reflash a Flexy, so a device that fails the Java route still has supported routes back.
If the verification pass runs over Talk2M, count the budget first: every device you connect to spends one of the account's calls, so a 24-device pass is 24 calls before anyone reads a version — calculate and check the Talk2M call limits before you schedule the pass, not after the account refuses a connection mid-rollout.
Two rules close this out: pilot one device, then the fleet, one pinned version at a time; and never re-trigger a device whose read-back you have not confirmed.
Questions asked
Does a clean return from the GetHttp call mean the firmware is updated?
No. The call starts the download, and a file landing at the destination path triggers installation; this call path defines no completion response. Only a matching read-back counts as updated.
Where do I get the ewonfwr.edf firmware file?
The manufacturer publishes a firmware version list for Ewon Cosy, Flexy and CD products, with the latest version for each and the upgrade links, so use it to match the file to your exact model before hosting it for a fleet.
What goes into the connection parameter and the file URL arguments?
The first argument carries the connection parameters for the outbound HTTP request, and the third argument is the URL of the firmware file on your web server. Their exact formats are defined in the Java interface documentation for your ETK version. The middle argument is fixed: the destination path /usr/ewonfwr.edf, which is what starts the installation.
Should I just leave the built-in automatic firmware update enabled?
Not when you need a known state. The manufacturer documents a case where automatic firmware update can fail on Ewon Cosy+ 4G versions, and regressions such as the cookies incompatibility reported on 14.9s3 argue for piloting one device before a fleet. A Java-controlled pull to a pinned version, gated on a version read-back, keeps each failure visible at a step you own.


