Skip to content

Data-dump bluetooth OSX #9

@mikkmartin

Description

@mikkmartin

$ ds4-dump works great on USB, but with bluetooth it throws an error:

buffer.js:663
    throw new RangeError('index out of range');
    ^

RangeError: index out of range
    at checkOffset (buffer.js:663:11)
    at Buffer.readInt16LE (buffer.js:798:5)
    at parseDS4HIDData (/Users/mikkmartin/Documents/dualshock-test/node_modules/ds4/index.js:40:18)

when i log the buffer without parsing, the HID device returns smaller dataset (without trackpad / gyro data) initially:

<Buffer 01 80 7f 84 77 08 00 00 00 00>

and nothing after hidDevice.getFeatureReport(0x04, 66);
then I have to reconnect the controller on bluetooth to reset the controller state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions