Given an old firmware package filename in the format:
"package-motion-drive_ComEtherCAT-b_CoreC2X-a_Drive400-e_v4.2.1.zip",
this function extracts the hardware components and returns an array of objects.
Each object includes the component name, version, and an empty serial number.
This function is useful for determining the compatibility of a firmware package with devices that use an old stack_info.json file,
which includes only hardware components but lacks a firmware ID. To check if two sets of components match and verify compatibility,
use the deviceComponentsMatch function.
Throws
Throws an error if the provided filename does not match the expected pattern.
Given an old firmware package filename in the format: "package-motion-drive_ComEtherCAT-b_CoreC2X-a_Drive400-e_v4.2.1.zip", this function extracts the hardware components and returns an array of objects. Each object includes the component name, version, and an empty serial number.
This function is useful for determining the compatibility of a firmware package with devices that use an old
stack_info.json
file, which includes only hardware components but lacks a firmware ID. To check if two sets of components match and verify compatibility, use the deviceComponentsMatch function.Throws
Throws an error if the provided filename does not match the expected pattern.