CDC Class added to USB Device Library!

General discussion on Libstock website & codes posted on this website.
Author
Message
M4croC
Posts: 57
Joined: 05 Oct 2015 12:38

Re: CDC Class added to USB Device Library!

#61 Post by M4croC » 14 Sep 2016 19:06

Aleksandar.Mitrovic wrote: Which language pack do you have?
Have you tried to install drivers on some PC without language pack?
Please take a look at my screenshots. I have changed language of my OS to english so I can show you errors.
The language of the OS is not the source of the driver problems.

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: CDC Class added to USB Device Library!

#62 Post by Aleksandar.Mitrovic » 20 Sep 2016 14:36

Hi,

Can you please try it with this drivers please.
First uninstall the old one and guide the installation to that folder.

Kind regards,
Aleksandar
Attachments
VCP_drivers.rar
(9.67 KiB) Downloaded 307 times

M4croC
Posts: 57
Joined: 05 Oct 2015 12:38

Re: CDC Class added to USB Device Library!

#63 Post by M4croC » 20 Sep 2016 20:06

Aleksandar.Mitrovic wrote: First uninstall the old one and guide the installation to that folder.
I can't uninstall "the old one" because "the old one" simply failed to install in the first place. So that's logical.
Aleksandar.Mitrovic wrote: Can you please try it with this drivers please.
This one has been installed successfully but it's giving me ERROR 10 all the time. So something is still wrong. Please look at the screenshots.

PS: I have also tested the driver given by you on VMWARE / Windows XP and it works OK.
Attachments
installing_errr.png
installing_errr.png (17.65 KiB) Viewed 10109 times
devgr.png
devgr.png (18.2 KiB) Viewed 10109 times
installinggg.png
installinggg.png (58.76 KiB) Viewed 10109 times

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: CDC Class added to USB Device Library!

#64 Post by Aleksandar.Mitrovic » 21 Sep 2016 16:00

Hi,

We didnt have any problems with installing this drivers on Windows 10 or Windows 8.1 PC.
When you start installation of the drivers and guide installation to the folder do you have option to chose between drivers?

Best regards,
Aleksandar

M4croC
Posts: 57
Joined: 05 Oct 2015 12:38

Re: CDC Class added to USB Device Library!

#65 Post by M4croC » 21 Sep 2016 21:42

No, I don't have such option.
Anyway, please take a look, I've made a video of entire uninstall / install again your driver (from attacchment) process.
bandicam 2016-09-21 22-21-38-953.zip
(2.65 MiB) Downloaded 295 times
You can see that I point at location E:\VCP_drivers, etc,
You can also see error messages.
Everything in English.
If you need any more information or testing just tell me... and I really need your drivers working on that machine, using VMWare with Windows XP is tedious.

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: CDC Class added to USB Device Library!

#66 Post by Aleksandar.Mitrovic » 22 Sep 2016 15:36

Hi,

In the video I saw that you have:
VCP_driver_install.jpg
VCP_driver_install.jpg (65.97 KiB) Viewed 10089 times
Have you tried to check the list of the offered drivers?

Kind regards,
Aleksandar

M4croC
Posts: 57
Joined: 05 Oct 2015 12:38

Re: CDC Class added to USB Device Library!

#67 Post by M4croC » 22 Sep 2016 18:21

I have tried now, there are several drivers but I don't think they are compatible.
Buuut I think your driver should work just after installing it.
Anyway, you can take a look at the video which drivers I have.
list_of_drivers.zip
(817.72 KiB) Downloaded 306 times
Also... there are chipkit and microchip MCP drivers there, but no driver for Mikroelektronika CDC.

microc4me
Posts: 1
Joined: 23 Feb 2018 20:52

Re: CDC Class added to USB Device Library!

#68 Post by microc4me » 23 Feb 2018 20:57

Hi

was this issue resolved, I'm also getting error 10 in window 8.1 64bit only. XP is ok.
Using new drivers from the attachment from this post

Thanks

JackMorrison
Posts: 7
Joined: 05 Apr 2015 23:00

Re: CDC Class added to USB Device Library!

#69 Post by JackMorrison » 15 Oct 2018 05:34

Apologies for waking up/hijacking an old topic. I have a PIC Clicker app using this library, which works fine communicating with a Windows (10) host. A friend is trying to use it connected to a Mac running OS-X 10.9.5. It seems to show up on the Mac as a /dev/tty.usbmodemNNNN device, but trying to open it from an application just hangs.

Has anyone tried this library with a Mac host? Is there a special driver needed?

Thanks.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: CDC Class added to USB Device Library!

#70 Post by filip » 16 Oct 2018 08:12

Hi,

We didn't test the library on the Mac at the time of its creation, so I don't have any information regarding this.

Regards,
Filip.

JackMorrison
Posts: 7
Joined: 05 Apr 2015 23:00

Re: CDC Class added to USB Device Library!

#71 Post by JackMorrison » 01 Nov 2018 19:31

I'm trying it on a Linux system now... it creates a /dev/ttyACM0 port okay, and I can write to the port ok (and see that the PIC board receives ok based on blinky light activity), but can't read anything back. Does that suggest anything to try?

JackMorrison
Posts: 7
Joined: 05 Apr 2015 23:00

Re: CDC Class added to USB Device Library!

#72 Post by JackMorrison » 19 Nov 2018 01:16

Followup in case anyone is interested:

#1 In the VCP_Descriptor setup in the PIC code, be sure to keep wMaxPacketSize as 64 (0x40) for Bulk In and Out endpoints, even if your application doesn' t need that much. Linux and OSX will not work right otherwise, at least with default drivers. Changing that allowed my device to work with Linux, and with OSX using most software.

#2 My host application is written in Tcl/Tk, and on the Mac (only) that still doesn't work with the CDC device. I think that's because the device shows CTS handshake as inactive, and even if I tell Tcl to ignore handshake, it won't transmit (it does receive though). Seems like a combination of limitations in the basic OSX CDC driver and issues with Tcl serial handling on OSX. I have a workaround using a small Python interface between the Tcl code and the serial device.

Post Reply

Return to “Libstock Discussion”