Codesys Key not recognized

sgronchi
2020-01-09
2020-01-16
  • sgronchi - 2020-01-09

    Hello, we have a Topocon Electronics (ex Wachendorff Elektronik) panel that runs Codesys 3.5.14.0.
    We bought a Codesys Key to deploy a license, since these panels seem not have a softcontainer, but when trying to use License Manager (Device -> Dongle) Codesys says no adapter is available.
    Furthermore, when deploying the DeviceReader project/example, it shows no green lights under Single License (neither dongle nor softcontainer), even if the dongle is connected via USB and recognized as a USB HID device by the OS (which is Linux, a Yocto build, BTW).
    Is there anything we could try?

     
  • eschwellinger

    eschwellinger - 2020-01-10

    Hi,
    could you please check if CmpCodemeter is available in the plc logger after the startup of the runtime.
    If so, you could switch the key to a mem device ( not HID) and mount it and use it that way. ( how to switch the key from HID you'll find
    in the online help of Codemeter)
    HID ( prefered use) need Β· CONFIG_HID CONFIG_HIDRAW in the Linux kernel.

    Cheers
    Edwin

    IMG: CmpCodemeter.png

     
  • sgronchi - 2020-01-12

    Thank you.
    Yes, CmpCodeMeter is in the log, and the kernel has CONFIG_HID set (to module) but CONFIG_HIDRAW is not set.
    Tomorrow I will try reconfiguring as a mass storage (seems to be a piece of cake).

     
  • sgronchi - 2020-01-13

    Unfortunately, issuing ```

    cmu32 -s <serialno> --set-config-disk RemovableDevice</serialno>

    ``` (or LocalDevice, for what is worth) in the CodeMeter Command Prompt as per https://www.wibu.com/support/faq/detail ... emory.html does not work: it tells to unplug and replug the key, but when replugging it is still recognized as HID from Windows.

     
  • sgronchi - 2020-01-14

    Thank you! The device now appears, but every time I try to deploy it a license (EtherCAT master SL) through the device, Codesys runtime crashes almost immediately with ```

    terminate called after throwing an instance of 'std::out_of_range'
    Β  what():Β  basic_string::replace

    and on the PC a dialog box appears saying "Communication error: 0x1cc", then "Transfer of license information from device failed" (obvious, the runtime crashed...) On another device hardware, same Codesys version (3.5.14.0) but a more recent software environment, the error is

    terminate called after throwing an instance of 'std::out_of_range'
    Β  what():Β  basic_string::replace: __pos (which is 4294967295) > this->size() (which is 12)

    ```

     
  • eschwellinger

    eschwellinger - 2020-01-16

    Hi,
    Plug the Key to the CODESYS pc and activate the licence with your browser -> license.codesys.com
    After activation plug it to the plc...mount it...then it should work
    Cheers
    Edwin

     
  • sgronchi - 2020-01-16

    Ok, finally worked.
    Thank you for your help!

     

Log in to post a comment.