Skip to content

Bluetooth Connection issue #64

@shubshub

Description

@shubshub

So I've been looking at a few different places on sending data to the Dualshock 4 over Bluetooth, I've done the CRC-32 Hash I've got the report ID and everything according to the program there are no errors, However nothing was happening when I did device.write(buff) atleast not from what I could see

I don't know if I was sending the data wrong if I was missing just the tiniest thing, but reading more into it according to what this is saying here
http://www.spinics.net/lists/linux-input/msg29517.html

image

The last bit (The comments at the bottom) state that the USB stuff is output reports (Which I assume is the basic device.write since that worked perfectly over USB) and I'm guessing by SET_REPORT is a send Feature Report? as said here https://github.com/torvalds/linux/blob/7ae123edd37a47e178eb9a6631fe4a7108262c10/include/linux/hid.h#L738

Here is an image of the data I am trying to send to the Feature Report and also it failing
image

  • For sendFeatureReport native code see Line 343 in HID.cc
  • For hid_send_feature_report native code see line 749 in hidapi\windows\hid.c

I've also been reading over http://www.psdevwiki.com/ps4/DS4-BT However it has only been minimal help to me and hasn't actually helped me figure out what I am doing incorrectly.

If anyone or even you have any suggestions that would be excellent :)

Basically I am trying to set the LED lights on the Controller and also the rumble motors

17,128,0,255,4,0,45,47,18,18,18,255,255,0,0,0,0,0,0,0,0,0,67,67,0,77,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,233,3,16,74
rumbleLeft: 45, // 0-255 (Rumble left intensity)
rumbleRight: 47, // 0-255 (Rumble right intensity)
red: 18, // 0-255 (Red intensity)
green: 18, // 0-255 (Blue intensity)
blue: 18, // 0-255 (Green intensity)
flashOn: 255, // 0-255 (Flash on time)
flashOff: 255 // 0-255 (Flash off time)

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