Error Codes

error: -1001

Possible causes and solutions are listed below:

  • Unable to find the specified camera

    The program could not find the camera with the specified serial number.

    error: -1001 can be triggered by different conditions. Diagnose the issue based on the detailed error message.

error: -1005

Possible causes and solutions are listed below:

  • The USB camera is occupied

    Check whether another process is using the camera (for example, Percipio Viewer). If so, close that process and try again.

  • The USB cable is too long

    Avoid using USB cables longer than 3 meters. Replace the cable with a shorter one and try again.

  • The camera IP address and the host computer IP address are not in the same network segment

    If the camera IP address is not in the same subnet as the host computer IP address, the camera may be discoverable but not openable. In this case, modify either the camera IP address or the host IP address. To modify the camera IP address, see Application Example: Set Camera IP.

error: -1014

Phenomenon 1

error: -1014 occurred when the camera was opened.

Possible causes and solutions

Possible causes and solutions are listed below:

  • The camera is occupied

    Please close any processes (like Percipio Viewer) that are occupying the camera on this computer or other host computers.

  • Third-party programs have been written into the camera

    Contact Percipio technical support.

  • The camera IP address and the host computer IP address are not in the same network segment

    If the camera IP address is not in the same subnet as the host computer IP address, the camera may be discoverable but not openable. In this case, modify either the camera IP address or the host IP address. To modify the camera IP address, see Application Example: Set Camera IP.

Phenomenon 2

error: -1014 occurred during image acquisition.

Possible causes and solutions

Possible causes and solutions are listed below:

  • The timeout in TYFetchFrame function is set too short.

    Set the timeout according to the camera image latency. A value above 7000 ms is recommended.

    TYFetchFrame(hDevice, &frame, 7000);
    
  • Camera drops frames

    Troubleshooting is the same as for abnormal network-camera frame rate. See What to do if the frame rate of a network camera is abnormal?.

error: -1016

Possible causes and solutions are listed below:

  • The network camera is occupied

Please check if any other processes on the local computer (such as the Percipio Viewer Software) or other host computers are connecting to and occupying the camera. If the camera is being occupied, resolve the issue by releasing the camera.

  • Camera feature configuration error

For example, features with writableAtRun≠"1" in the camera’s fetch_config.xml file must be set before calling TYStartCapture(), such as image resolution and work mode.

If such features are set after TYStartCapture(), an error: -1016 will be reported when running the program.

  • Send a soft trigger command during busy time

    TL460-S1-E1 and FM851-S1-E2 will have a busy time after starting to capture images with TYStartCapture(). During this time, sending a software trigger command will result in an error: -1016.

    To solve the problem, choose one of the following methods:

    • Add a delay after calling TYStartCapture().

      MSLEEP(7000)
      
    • Modify the code below:

      while(TY_STATUS_BUSY == TYSendSoftTrigger(hDevice));
      

error: -1024

Identify the causes and the solutions

When encountering error: -1024, please troubleshoot the issue using the following methods:

  1. Choose one of the following ways to read the fw_err code:

    Method 1: Use SDK to read it

    1. Call the TYOpenDevice() interface, set as follows, and print fw_err code

      TY_FW_ERRORCODE fw_err;
      TYOpenDevice(hIface, selectedDev.id, &hDevice,&fw_err);
      LOGD("%x", fw_err);
      
    2. Compile and run the modified program, and read out the fw_err code.

    Method 2: Use Percipio Viewer to read it

    see the steps in Run the camera.

  2. Find the corresponding error message built on the fw_error code.

    typedef enum TY_FW_ERRORCODE_LIST:uint32_t
    {
        TY_FW_ERRORCODE_CAM0_NOT_DETECTED       = 0x00000001,
        TY_FW_ERRORCODE_CAM1_NOT_DETECTED       = 0x00000002,
        TY_FW_ERRORCODE_CAM2_NOT_DETECTED       = 0x00000004,
        TY_FW_ERRORCODE_POE_NOT_INIT            = 0x00000008,
        TY_FW_ERRORCODE_RECMAP_NOT_CORRECT      = 0x00000010,
        TY_FW_ERRORCODE_LOOKUPTABLE_NOT_CORRECT = 0x00000020,
        TY_FW_ERRORCODE_DRV8899_NOT_INIT        = 0x00000040,
        TY_FW_ERRORCODE_CONFIG_NOT_FOUND        = 0x00010000,
        TY_FW_ERRORCODE_CONFIG_NOT_CORRECT      = 0x00020000,
        TY_FW_ERRORCODE_XML_NOT_FOUND           = 0x00040000,
        TY_FW_ERRORCODE_XML_NOT_CORRECT         = 0x00080000,
        TY_FW_ERRORCODE_XML_OVERRIDE_FAILED     = 0x00100000,
        TY_FW_ERRORCODE_CAM_INIT_FAILED         = 0x00200000,
        TY_FW_ERRORCODE_LASER_INIT_FAILED       = 0x00400000,
    }TY_FW_ERRORCODE_LIST;
    typedef uint32_t TY_FW_ERRORCODE;
    

    Tip

    • 0x00000001 indicates that the left monochrome camera was not found.

    • 0x00000002 indicates that the right monochrome camera was not found.

    • 0x00000004 indicates that the RGB camera was not found.

    • 0x00000008 indicates a PoE error; please check if the PoE model complies with the protocol standard.

    • 0x00000010 indicates a calibration table error.

    • 0x00000020 indicates a parallax error.

    • 0x00000040 indicates a motor initialization error.

    • 0x00010000 indicates that the configuration file was not found.

    • 0x00020000 indicates that the configuration file is corrupted.

    • 0x00040000 indicates that the Config.xml file was not found.

    • 0x00080000 indicates that the Config.xml file is corrupted.

    • 0x00100000 indicates an error in rewriting the Config.xml file.

    • 0x00200000 indicates a camera initialization failure; 0x00200001 indicates and the initialization failure was due to the left monochrome camera not being found; 0x00200002 indicates that the initialization failure was due to the right monochrome camera not being found; 0x00200004 indicates that the initialization failure was due to the RGB camera not being found.

    • 0x00400000 indicates a laser initialization failure.