Canon EOS M5: invalid camera mode, says it should be manual or bulb mode, but these are set!

Issue #1337 closed
Sim Schweizer created an issue

My Canon EOS M5 is set to manual (and exposure time to bulb), but the message that it was in the wrong mode appears anyway. Please fix!

Steps to reproduce: plug in the camera, choose the detected Canon EOS M5, and click on connect.

As a workaround, maybe it would help to let users ignore the message and connect anyway.

Comments (8)

  1. Sim Schweizer reporter
    2024-09-11T14:26:35.2446|INFO|ApplicationDeviceConnectionVM.cs|UsbDeviceWatcher_DeviceInserted|173|New USB device detected DeviceId: USB\VID_04A9&PID_32BB\D79E18C788D1465CA379E40FA7D60BF4, PnpDeviceId: USB\VID_04A9&PID_32BB\D79E18C788D1465CA379E40FA7D60BF4, Description: Canon EOS M5, Name: Canon EOS M5, Manufacturer: Canon Inc., Service: WUDFWpdMtp, Status: OK
    […]
    2024-09-11T14:26:48.9400|INFO|CameraVM.cs|Disconnect|645|Disconnected Camera
    2024-09-11T14:26:55.5322|ERROR|EDCamera.cs|Connect|964
    System.Exception: Invalid camera mode
       at NINA.Equipment.Equipment.MyCamera.EDCamera.ValidateMode() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 617
       at NINA.Equipment.Equipment.MyCamera.EDCamera.ValidateMode() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 615
       at NINA.Equipment.Equipment.MyCamera.EDCamera.ValidateMode() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 615
       at NINA.Equipment.Equipment.MyCamera.EDCamera.ValidateMode() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 615
       at NINA.Equipment.Equipment.MyCamera.EDCamera.Initialize() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 289
       at NINA.Equipment.Equipment.MyCamera.EDCamera.<Connect>b__215_0() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 955
    2024-09-11T14:27:00.3714|DEBUG|ApplicationVM.cs|Closing|265|Saving dock layout
    2024-09-11T14:27:00.3722|DEBUG|ApplicationVM.cs|Closing|269|Disconnecting equipment
    

    Here you are.

  2. Sim Schweizer reporter

    I also did a trace-level log file:

    2024-09-11T14:38:53.6890|ERROR|EDCamera.cs|Connect|964
    System.Exception: Invalid camera mode
       at NINA.Equipment.Equipment.MyCamera.EDCamera.ValidateMode() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 617
       at NINA.Equipment.Equipment.MyCamera.EDCamera.ValidateMode() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 615
       at NINA.Equipment.Equipment.MyCamera.EDCamera.ValidateMode() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 615
       at NINA.Equipment.Equipment.MyCamera.EDCamera.ValidateMode() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 615
       at NINA.Equipment.Equipment.MyCamera.EDCamera.Initialize() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 289
       at NINA.Equipment.Equipment.MyCamera.EDCamera.<Connect>b__215_0() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 955
    2024-09-11T14:38:56.7848|INFO|CameraVM.cs|Disconnect|645|Disconnected Camera
    2024-09-11T14:38:56.7861|ERROR|EDCamera.cs|Connect|902
    System.Exception: A Canon error occurred: EDS_ERR_INTERNAL_ERROR
    2024-09-11T14:38:56.7863|ERROR|EDCamera.cs|Connect|964
    System.Exception: A Canon error occurred: EDS_ERR_INTERNAL_ERROR
       at NINA.Equipment.Equipment.MyCamera.EDCamera.CheckAndThrowError(UInt32 err, String memberName) in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 903
       at NINA.Equipment.Equipment.MyCamera.EDCamera.<Connect>b__215_0() in C:\Projects\nina\NINA.Equipment\Equipment\MyCamera\EDCamera.cs:line 953
    2024-09-11T14:39:00.8681|DEBUG|ApplicationVM.cs|Closing|265|Saving dock layout
    2024-09-11T14:39:00.8689|DEBUG|ApplicationVM.cs|Closing|269|Disconnecting equipment 
    

  3. Stefan B repo owner

    Thank you for the log. As you can see in the log file there is an immediate error on connection.

    I’ve looked up on the Canon Developer Portal if I can get some info for the M5 and it specifies that the M5 is not supported for remote shooting functions. That’s most likely the root cause for the error you are seeing.

    Your camera and all other models of the M series is not supported by the Canon SDK.

  4. Stefan B repo owner

    See the little asterisk besides that model. While the SDK can talk to the camera any remote operation is not supported. So basically just pulling data from the camera seems to be possible via the SDK for this model.

  5. Log in to comment