CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sat Sep 21, 2019 6:13 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Aug 05, 2019 9:06 pm 
Offline
User avatar

Joined: Fri Jan 19, 2018 3:38 pm
Posts: 77
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)" :cry:

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?

_________________
Please support CfUnit and give us your opinion. All feedback or contributions are welcomed :wink:
My profile on cForge


Top
   
PostPosted: Tue Aug 06, 2019 8:05 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3454
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


Last edited by Edwin Schwellinger on Tue Aug 06, 2019 7:59 pm, edited 1 time in total.

Top
   
PostPosted: Tue Aug 06, 2019 8:28 am 
Offline
User avatar

Joined: Fri Jan 19, 2018 3:38 pm
Posts: 77
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)

Code:
  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!

_________________
Please support CfUnit and give us your opinion. All feedback or contributions are welcomed :wink:
My profile on cForge


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited