Comments (13)
You wrote "drivers do not work as expected", but you forget to add what you did expect to happen..
from candlelight_fw.
@fenugrec
Please tell me, is it correct that the GS_USB interface descriptor index in the configuration descriptor is zero? Because when requesting a string descriptor, this interface has an index of 0xEE.
I changed this value and the host started asking for a string descriptor and then a Microsoft Compatible ID Feature Descriptor.
As a result, I have for my F4DiscoveryBoard:
and for canable2 adapter:
And Savvy CAN works these adapters.
But before that I cleaned the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\1D50606F0000
.
And removed the drivers of previous devices. After that I connected F4DevBoard with the corrected firmware. Since Windows requests the extended descriptor once and writes to the registry into usbflags, the canable2 adapter now works on my computer with factory firmware.
from candlelight_fw.
Just plugged in mine on a random win10 box and they were detected properly. I would close this as "works here" unless you still have issues ?
from candlelight_fw.
I don't work at that place any more, so I have no way of testing or explaining any more unfortunately, so I agree that if it works for you then we can close this ticket :)
from candlelight_fw.
Perfect ! thanks for the update @frogcrush .
from candlelight_fw.
@fenugrec
Hi,
Unfortunately, I have the same issue with Canable 2 adapter with candlelight_fw-ba6b1dd.
Drivers not installed automatically.
The problem is reproducible on all 4 computers (Windows 10, Windows 11) I tried.
from candlelight_fw.
Hi!
My Canable 2 adapter with candlelight_fw-ba6b1dd do not recognized on my computer
from candlelight_fw.
The windows drivers for this firmware are not part of this repo. The only driver I'm aware of (by HubertD), was not updated in many years, and has many problems. I had tried to fix it, had limited success then abandoned - I don't even use windows except rarely in a VM. Until someone adopts that driver and fixes it, there is not much we can do here.
from candlelight_fw.
@fenugrec, thanks for your answer.
Just maybe someone has a solution.
This adapter worked on one computer running Windows, but after trying to find the reason in the regedit tool, I broke it too. And @HubertD dll worked perfectly.
from candlelight_fw.
@fenugrec Please tell me, is it correct that the GS_USB interface descriptor index in the configuration descriptor is zero? Because when requesting a string descriptor, this interface has an index of 0xEE. I changed this value and the host started asking for a string descriptor and then a Microsoft Compatible ID Feature Descriptor. As a result, I have for my F4DiscoveryBoard:
and for canable2 adapter:
And Savvy CAN works these adapters.
But before that I cleaned the registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\1D50606F0000
. And removed the drivers of previous devices. After that I connected F4DevBoard with the corrected firmware. Since Windows requests the extended descriptor once and writes to the registry into usbflags, the canable2 adapter now works on my computer with factory firmware.
This method works and on my Windows11pro machine.
from candlelight_fw.
Thanks for the additional details @alexandration .
Reopening since we may be doing something non-windows-friendly in our descriptors. Unfortunately I don't have time to dig into this (and no win* machines). I think it will be hard to bisect for the F4 targets since they were added recently, also maybe this perhaps isn't a regression, I'm not sure. Canable were supported forever, it might be worth testing a build from ~2019 or so (after cleaning the registry as you described, to force the descriptor query).
I hope this isn't related to our use of unique serial numbers in one of the strings...
from candlelight_fw.
@fenugrec
Please tell me, is it correct that the GS_USB interface descriptor index in the configuration descriptor is zero? Because when requesting a string descriptor, this interface has an index of 0xEE.
I changed this value and the host started asking for a string descriptor and then a Microsoft Compatible ID Feature Descriptor.
As a result, I have for my F4DiscoveryBoard:
and for canable2 adapter:
And Savvy CAN works these adapters.
But before that I cleaned the registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\1D50606F0000
.
And removed the drivers of previous devices. After that I connected F4DevBoard with the corrected firmware. Since Windows requests the extended descriptor once and writes to the registry into usbflags, the canable2 adapter now works on my computer with factory firmware.
thinks,This method works
from candlelight_fw.
I recently did the same with this project for the MKS CANable 2 (G431) adapter. But there it was also necessary to add #define USBD_SUPPORT_USER_STRING_DESC 1
to the usbd_conf.h
file. And everything works. Now I don't need F4DevBoard for the initial driver setup.
I think it's worth making a pull request with these fixes to the @normaldotcom project?
from candlelight_fw.
Related Issues (20)
- RFC: cmake-presets to select included toolchain file by default ?
- tweak `atexit` to get rid of malloc HOT 2
- RFC : empty fifos + hardware mailboxes when re-enabling CAN ? HOT 6
- startup.c is broken - hardfault with large BSS HOT 8
- While loops in USB ISR HOT 7
- Feature: add support for `GS_CAN_FEATURE_GET_STATE` and `GS_CAN_FEATURE_BERR_REPORTING` HOT 5
- build warning: "_close is not implemented and will always fail" HOT 2
- Canable device hangs after desktop application crash (= stop without disonnecting) HOT 25
- cansequence tool shows wrong telegram order HOT 19
- Clear internal data structures holding unsent frames HOT 1
- Openmoko firmware upgrade , no jumper to enter DFU mode or button HOT 21
- About candlelight and Cangaroo HOT 2
- version for stm32F042C4xx? HOT 7
- No Can Frames recieved after device reset without a power cycle. candleLight Firmware. HOT 7
- CandleLight FD at 8 Mbps HOT 3
- CPU_FAMILY STM32G0B1XK vs. CPU_FAMILY STM32G0B1XE (not comprehensible for rookies) HOT 4
- Potential firmware / driver issue HOT 21
- Problem building firmware for STM32G0B1 HOT 11
- Problem ACK on tx error HOT 1
- CANable-MKS problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from candlelight_fw.