License Dongle in Raspberyy Pi 3B+ not found

aliazzz
2019-08-05
2020-02-05
  • aliazzz

    aliazzz - 2019-08-05

    Hi There,

    I have had this issue several times now and it frustrates me more and more!

    I have a working Raspberry Pi 3B+ with a CODESYS USB dongle and a Raspberry Pi SL.
    I did a fresh install of Raspbian Buster Lite and ran Raspi-Config to enable SPI, 1 wire, serial COM,i2c and Wireless ETH.
    Then I loaded the Raspberry Pi with a fairly new CODESYS runtime (3.5.14.0) + reboot.
    When I insert the dongle and start the License Manager (Tools->License manager) and select the runtime, the dongle is not discovered and "System Info"
    shows me the message "no runtime license - running in demo mode(~119 minutes)"

    It seems USB is not working properly, which is weird because if I plug in the dongle some lights are starting to flash on/off.

    ps $dmesg shows the wibu dongle,
    $lsusb also shows the dongle.

    => What am I doing wrong?

     
  • eschwellinger

    eschwellinger - 2019-08-06

    Hi,
    I would sugguest the following:
    check with:
    lsusb -v

    if your runtimekey device is a ' HID' -3 Human Interface Devic konfigured device:

    This should look like this:
    lsusb -v
    ..
    ..
    Bus 001 Device 004: ID 064f:2af9 WIBU-Systems AG CmStick (HID, article no. 1001-xx-xxx)
    Couldn't open device, some information will be missing
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x064f WIBU-Systems AG
    idProduct 0x2af9 CmStick (HID, article no. 1001-xx-xxx)
    bcdDevice 1.00
    iManufacturer 1
    iProduct 2
    iSerial 3
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 0x0022
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 100mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 3 Human Interface Device
    bInterfaceSubClass 0
    bInterfaceProtocol 0
    iInterface 0

    If so, it should work without any modification.
    If it s a storage device - then you need to mount the key or change it to HID device ( prefered to change it to HID device - http://localhost:22352/$help/CmUserHelp ... to_hid.htm)

    If this does not work this way... it is an error.

    BR
    Edwin

     
  • aliazzz

    aliazzz - 2019-08-06

    The output of $ lsusb -v; contains several lines of text among which;

    ..
    bInterfaceSubClass 6 SCSI
    ..

    It shows a SCSI device (no HID), so on to step 2..:

    • Stick into CODESYS devbox where Codemeter Control Center Runs,
    • Update the Dongle formware to most recent version (if necesary),
    • Open the webadmin interface and the help and search for HID,
    • Follow the instructions on making the dongle a USB-HID carefully (see the help itself for exact instructions)
    Β  Communication mode changed successfully.
    Β  Please replug your CmDongle to apply the changes.
    
    • USB stick into RPi + reboot
    • Check license via CODESYS IDE license manager

    Succes!

    Thank you!

     
  • yannickasselin1 - 2020-02-04

    Hi,

    I have a USB dongle with a license for Raspberry Pi that I bought in 2015 but is not working anymore.
    When I do "lsusb -v" My USB dongle shows up as a storage device. What do I need to do to change it to HID?
    This link is not working: http://localhost:22352/$help/CmUserHelp ... to_hid.htm

    Thank you.

     
  • yannickasselin1 - 2020-02-05

    Thanks. It worked.
    I had not realized that the link was pointing to localhost. I was trying to open the link on a PC where Code Meter was not installed.
    Thank you

     
  • RoryLDM - 2020-02-05

    Can we use any Codemeter CmStick from Wibu?

    The CmStick/C Basic for installed devices and the CmStick ME for developing seemed like interesting options.

     

Log in to post a comment.