Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose DeviceID through USB descriptors in DFU mode, Microsoft WCID support #1001

Merged
merged 56 commits into from Jun 15, 2016

Conversation

@avtolstoy
Copy link
Member

commented May 15, 2016

Exposes DeviceID and Bootloader Version through USB descriptors while in DFU mode:

    Device Descriptor   
        Descriptor Version Number:   0x0200
        Device Class:   0   (Composite)
        Device Subclass:   0
        Device Protocol:   0
        Device MaxPacketSize:   64
        Device VendorID/ProductID:   0x2B04/0xD00A   (unknown vendor)
        Device Version Number:   0x0008 (Bootloader version)
        Number of Configurations:   1
        Manufacturer String:   1 "Particle"
        Product String:   2 "Electron DFU Mode"
        Serial Number String:   3 "XXXXXXXXXXXXXXXX3132" (Device ID)

Doneness:

  • Contributor has signed CLA
  • Problem and Solution clearly stated
  • Code peer reviewed
  • API tests compiled
  • Run unit/integration/application tests on device
  • Add documentation
  • Add to CHANGELOG.md after merging (add links to docs and issues)
avtolstoy added 30 commits Mar 10, 2016
Do not call SOF callbacks in classes until they have been initialized…
…. Remote wakeup feature disabled. Debug messages removed
Electron uses USB FS pins, unlike Photon, which uses USB HS pins in F…
…S mode. Switch back to FS core on Electron, add workarounds
USBSerial: DTR/RTS, Electron fixes
- Support for DTR/RTS
- Electron 2x CDC + HID support on Win/Mac/Linux
Convenient macro USBSERIAL1_ENABLE() to enable USBSerial1 on startup …
…without the need to perform a reattach
ISR safety-checks in HAL_USB_USART_Flush_Data and HAL_USB_USART_Send_…
…Data, commented out DEBUG in usbd_composite.c

@avtolstoy avtolstoy force-pushed the feature/usb-descriptors-dfu branch from 0686040 to db8a6ab Jun 11, 2016

@avtolstoy avtolstoy changed the title Expose DeviceID and Bootloader Version through USB descriptors in DFU mode Expose DeviceID through USB descriptors in DFU mode, Microsoft WCID support Jun 11, 2016

avtolstoy added 4 commits Jun 11, 2016
Merge branch 'feature/usb-composite' into feature/usb-vendor-requests
Conflicts:
	hal/src/stm32f2xx/usb_hal.c
	platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc/usbd_composite.h
	platform/MCU/STM32F2xx/SPARK_Firmware_Driver/src/usbd_composite.c
Basic SystemControlInterface implementation for handling the followin…
…g requests:

- REQUEST_GET_DEVICE_ID
- REQUEST_GET_SYSTEM_VERSION
- REQUEST_RESET
- REQUEST_ENTER_DFU_MODE
- REQUEST_ENTER_LISTENING_MODE

@avtolstoy avtolstoy force-pushed the feature/usb-descriptors-dfu branch from db8a6ab to 780dd67 Jun 12, 2016

@avtolstoy avtolstoy force-pushed the feature/usb-descriptors-dfu branch from 9c1d485 to 7c14217 Jun 13, 2016

@avtolstoy avtolstoy force-pushed the feature/usb-descriptors-dfu branch from 7c14217 to 63db95f Jun 13, 2016

@technobly technobly merged commit c9d6416 into develop Jun 15, 2016

0 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build failed
Details
continuous-integration/travis-ci/push The Travis CI build failed
Details

@technobly technobly deleted the feature/usb-descriptors-dfu branch Oct 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.