mugiro / motostudent

Motostuddent Rdata analyses
GNU General Public License v3.0
0 stars 1 forks source link

Remove testing #1

Open mugiro opened 2 years ago

mugiro commented 2 years ago

Testing

mugiro commented 2 years ago

Hello, I'm trying to connect a SONY PS3 (model CECHZC2U - Amazon Link ) via BT4.0 dongle with chipset CSR8510 A10 with Uno+host shield and connection with the example code PS3BT.ino looks ok and it is working: PS3 Bluetooth Library Started BTD ConfigureDevice BTD Init Addr: 01 Endpoint descriptor: Length: 07 Type: 05 Address: 81 Attributes: 03 MaxPktSize: 0010 Poll Intrv: 01 Endpoint descriptor: Length: 07 Type: 05 Address: 02 Attributes: 02 MaxPktSize: 0040 Poll Intrv: 01 Endpoint descriptor: Length: 07 Type: 05 Address: 82 Attributes: 02 MaxPktSize: 0040 Poll Intrv: 01 Bluetooth Dongle Initialized Connection established ... Connection established HCI Reset complete Write class of device Local Bluetooth Address: 00:1A:7D:DA:71:13 HCI version: 06 Wait For Incoming Connection Request Gamepad is connecting Class of device: 00 25 08 Incoming Connection Request Remote Name: Wireless Controller PS4/PS5 controller is connecting Ignore HCI Event: 12 ... Ignore HCI Event: 12 Connection established Connected to Device: 41:42:EF:C9:02:90

However, once the connection is established the PS3 controller is not responding. Nothing in the Serial monitor. We do not know if the message is "PS4/PS5 controller is connecting" instead of some sort of PS3 is the issue.

If the condition in PS3BT.ino is removed: (PS3.PS3Connected || PS3.PS3NavigationConnected) {

then we are able to receive information from the PS3 controller as follows:

Connected to Device: 41:42:EF:C9:02:90 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0 Ignore HCI Event: 20 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0 L2CAP Connection Request - PSM: 00 11 SCID: 00 40 Identifier: 01 HID Control Incoming Connection Request LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0 LeftHatX: 0 LeftHatY: 1 RightHatX: 2 RightHatY: 160 HID Control Successfully Configured LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 L2CAP Connection Request - PSM: 00 13 SCID: 00 41 Identifier: 03 HID Interrupt Incoming Connection Request LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 1 RightHatX: 2 RightHatY: 160 HID Interrupt Successfully Configured LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 1 LeftHatX: 75 LeftHatY: 128 RightHatX: 128 RightHatY: 128 LeftHatX: 75 LeftHatY: 128 RightHatX: 128 RightHatY: 128 LeftHatX: 75 LeftHatY: 128 RightHatX: 128 RightHatY: 128

We forked the code to show the changes in branch:

Branch PS3connectedCond

Sorry if I'm missing something herein but we want to know what is happening and why the conditional PS3.PS3Connected never changes its value.