固件升级

Zivid为其相机提供持续的更新。更新包括了在主机上运行的部分和相机本身。 Zivid SDK会定期更新,以改进主机上的图像处理。 SDK里还包括了最新的相机固件。相机固件的更新频率低于主机软件的频率。这些更新将提高稳定性、鲁棒性和采集速度。

本教程将介绍如何在Zivid相机上执行固件更新。

Each SDK version is matched with camera firmware, and the SDK will make sure that the camera runs compatible firmware, including rolling back to an older firmware version if necessary.

When Zivid Studio connects to a camera, it will check whether the camera has matching firmware. If the firmware does not match you can update it directly from Zivid Studio.

按下键盘上的Win+R键启动命令提示符,键入 cmd 后点击 Enter

导航到您安装Zivid软件的文件夹:

cd C:/Program Files/Zivid/bin

运行 ZividFirmwareUpdater

ZividFirmwareUpdater.exe

ZividFirmwareUpdater is part of the Zivid Tools package for Ubuntu. Follow the steps in 软件安装 to install this, if you haven't already.

现在您可以运行 ZividFirmwareUpdater 了:

ZividFirmwareUpdater

ZividFirmwareUpdater is part of the Zivid Tools package for Ubuntu. Follow the steps in 软件安装 to install this, if you haven't already.

现在您可以运行 ZividFirmwareUpdater 了:

ZividFirmwareUpdater

将固件从1.6.6 更新到1.6.7

Example output when running ZividFirmwareUpdater

可以从 此处 找到 ZividFirmwareUpdater 的源代码。

The SDK provides functions for updating firmware on the camera.

跳转到源码

源码

int main()
{
    try
    {
        Zivid::Application zivid;

        auto cameras = zivid.cameras();
        for(auto &camera : cameras)
        {
            if(!Zivid::Firmware::isUpToDate(camera))
            {
                std::cout << "Firmware update required" << std::endl;
            }
            else
            {
                std::cout << "Skipping update of camera " << camera.info().serialNumber()
                          << ", model name: " << camera.info().modelName()
                          << ", firmware version: " << camera.info().firmwareVersion() << std::endl;
            }
        }
    }

    return EXIT_SUCCESS;
}
跳转到源码

source

static int Main()
{
    try
    {
        var zivid = new Zivid.NET.Application();

        var cameras = zivid.Cameras;
        foreach (var camera in cameras)
        {
            if (!Updater.IsUpToDate(camera))
            {
                Console.WriteLine("Firmware update required");
            }
            else
            {
                Console.WriteLine("Skipping update of camera {0}, model name: {1}, firmware version: {2}",
                    camera.Info.SerialNumber, camera.Info.ModelName, camera.Info.FirmwareVersion);
            }
        }
    }

    return 0;
}
跳转到源码

source

def _main() -> None:
    app = zivid.Application()

    cameras = app.cameras()
    for camera in cameras:
        if not zivid.firmware.is_up_to_date(camera):
            print("Firmware update required")
            )
        else:
            print(
                f"Skipping update of camera {camera.info.serial_number}, model name: {camera.info.model_name}, firmware version: {camera.info.firmware_version}"
            )


if __name__ == "__main__":
    _main()