Hello,
I followed the driver installation tutorial of the pyboard drivers step by step. I also updated the pyboard to the latest version of pyb10. Then I started doing some tutorial examples till the "making the pyboard act as a USB mouse", it doesn't work. I'm using windows 7 by the way.
I saved the boot.py with the code:
import pyb
pyb.usb_mode('CDC+HID')
Then I unplug the pyboard as it says as well as reset it with the switch. Then I try to open the putty terminal but it generates an error: "unable to open connection to COM3, unable to open serial port". I look for it in the device manager and it turns out that the pyboard isn't recognised, it seems it has no software drivers (it apears in the group of "other devices" named "Pyboard Virtual Comm Port in FS Mode").
I guess that since the computer is using the serial port, the putty terminal is unable to connect to it at the same time.
mouse, 'CDC+HID' mode
Re: mouse, 'CDC+HID' mode
How new is your firmware?
Perhaps we needs an inf file for CDC+HID mode?
Somewhere along the way, we made the PID change when using CDC+HID mode (versus CDC+MSC mode), specifically for windows.
But I'm not a windows person, so that's about as much as I know.
Perhaps we needs an inf file for CDC+HID mode?
Somewhere along the way, we made the PID change when using CDC+HID mode (versus CDC+MSC mode), specifically for windows.
But I'm not a windows person, so that's about as much as I know.
Re: mouse, 'CDC+HID' mode
There are some issues with Windows and the different USB modes. I think you need a different driver (inf file) for each mode.
You can try on older version of the firmware, eg this one: http://micropython.org/resources/firmwa ... -dirty.dfu . Later versions have new USB code which may be causing the problems.
You can try on older version of the firmware, eg this one: http://micropython.org/resources/firmwa ... -dirty.dfu . Later versions have new USB code which may be causing the problems.
Re: mouse, 'CDC+HID' mode
It doesn't work with the firmware that you suggested. May I ask you which OS are you using in your computer to work with the pyboard?
Re: mouse, 'CDC+HID' mode
hi there, i´m new here an with micropython. it´s my first contribution, i hope it helps you. i had the same error. for some reason the pid of the device on CDC+HID is diferent from CDC+MSD (9801 vs 9800), you just have to make a copy of the driver (pybcdc.inf) onto your pc, save a copy with other name (you'll need when go to CDC+MSC), change the pid from 9800 to 9801 onto that file, the description and name as follows. Next you have to install the new driver as the firs time.
Code: Select all
;---------------------------------------------------------------------
; Vendor and Product ID Definitions
[SourceDisksFiles]
[SourceDisksNames]
[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_f055&PID_9801&MI_00, USB\VID_f055&PID_9801&MI_01
[DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall, USB\VID_f055&PID_9801&MI_00, USB\VID_f055&PID_9801&MI_01
;---------------------------------------------------------------------
; String Definitions
[Strings]
MFGFILENAME="pybcdc"
MFGNAME="Pyboard Virtual Comm Port in FS Mode
"
DESCRIPTION="Pyboard Virtual Comm Port in FS Mode
"
SERVICE="USB Serial Driver"
Re: mouse, 'CDC+HID' mode
The reason that the PID is different is to make it work properly under Windows.
If the PID is the same, then windows assumes that its the same device and doesn't re-enumerate and uses the cached capabilities.
So if it was CDC+MSC with a PID of 9800, Windows will continue to treat it as CDC+MSC even though the pyboard was changed to CDC+HID. By changing the PID, windows treats it as a different device and you can switch your pyboard back and forth.
If the PID is the same, then windows assumes that its the same device and doesn't re-enumerate and uses the cached capabilities.
So if it was CDC+MSC with a PID of 9800, Windows will continue to treat it as CDC+MSC even though the pyboard was changed to CDC+HID. By changing the PID, windows treats it as a different device and you can switch your pyboard back and forth.
Re: mouse, 'CDC+HID' mode
Ideally, we should fix the .inf so that it works with all of the PIDs that the pyboard supports.