jvpernis / esp32-ps3

Control your ESP32 projects with a PS3 controller!
309 stars 84 forks source link

Reconnecting to esp32 does not work. #31

Open Greeka67 opened 3 years ago

Greeka67 commented 3 years ago

Hello. Thanks a lot for your work! In version 1.1.0 of the library, the ability to reconnect the controller has disappeared. The previous version had such an opportunity. The situation is this: if you connect the controller and do not use it for about 8 minutes, it will "fall asleep", it will not connect to esp32 again.

Expecting the possibility of connecting multiple controllers to one esp 2.

How can I contact you for cooperation?

zusry commented 3 years ago

I am currently having a problem with the computer.I am about to create an app that will change the way all players play games on consoles. I will need help.I will use c ++ and phytom.I will not author the control code. I can't talk about the app right now because I suspect that I'm being monitored by a hacker in the country where I am. my cell phone location appears in several states and I have not traveled to any of these states. I'm in social isolation, I rarely go out on the street.

Em qua, 3 de mar de 2021 04:59, Greeka67 notifications@github.com escreveu:

Hello. Thanks a lot for your work! In version 1.1.0 of the library, the ability to reconnect the controller has disappeared. The previous version had such an opportunity. The situation is this: if you connect the controller and do not use it for about 8 minutes, it will "fall asleep", it will not connect to esp32 again.

How can I contact you for cooperation?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jvpernis/esp32-ps3/issues/31, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS67XUZ7SWYYPPXVBXQ7UNTTBXT7RANCNFSM4YQXKLRQ .

zusry commented 3 years ago

YouTube has a function that adds subtitles in other languages.

Em qui, 4 de mar de 2021 02:15, Casio Garcia da Silva < steveflores1844@gmail.com> escreveu:

I am currently having a problem with the computer.I am about to create an app that will change the way all players play games on consoles. I will need help.I will use c ++ and phytom.I will not author the control code. I can't talk about the app right now because I suspect that I'm being monitored by a hacker in the country where I am. my cell phone location appears in several states and I have not traveled to any of these states. I'm in social isolation, I rarely go out on the street.

Em qua, 3 de mar de 2021 04:59, Greeka67 notifications@github.com escreveu:

Hello. Thanks a lot for your work! In version 1.1.0 of the library, the ability to reconnect the controller has disappeared. The previous version had such an opportunity. The situation is this: if you connect the controller and do not use it for about 8 minutes, it will "fall asleep", it will not connect to esp32 again.

How can I contact you for cooperation?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jvpernis/esp32-ps3/issues/31, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS67XUZ7SWYYPPXVBXQ7UNTTBXT7RANCNFSM4YQXKLRQ .

zusry commented 3 years ago

the subtitle function is in the right corner above where the video appears. I don't know how to use email and the first time I send a message.

Em qui, 4 de mar de 2021 02:24, Casio Garcia da Silva < steveflores1844@gmail.com> escreveu:

YouTube has a function that adds subtitles in other languages.

Em qui, 4 de mar de 2021 02:15, Casio Garcia da Silva < steveflores1844@gmail.com> escreveu:

I am currently having a problem with the computer.I am about to create an app that will change the way all players play games on consoles. I will need help.I will use c ++ and phytom.I will not author the control code. I can't talk about the app right now because I suspect that I'm being monitored by a hacker in the country where I am. my cell phone location appears in several states and I have not traveled to any of these states. I'm in social isolation, I rarely go out on the street.

Em qua, 3 de mar de 2021 04:59, Greeka67 notifications@github.com escreveu:

Hello. Thanks a lot for your work! In version 1.1.0 of the library, the ability to reconnect the controller has disappeared. The previous version had such an opportunity. The situation is this: if you connect the controller and do not use it for about 8 minutes, it will "fall asleep", it will not connect to esp32 again.

How can I contact you for cooperation?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jvpernis/esp32-ps3/issues/31, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS67XUZ7SWYYPPXVBXQ7UNTTBXT7RANCNFSM4YQXKLRQ .

Dainiakas commented 3 years ago

Hello. Thanks a lot for your work! In version 1.1.0 of the library, the ability to reconnect the controller has disappeared. The previous version had such an opportunity. The situation is this: if you connect the controller and do not use it for about 8 minutes, it will "fall asleep", it will not connect to esp32 again.

I have similar problem with disconnect - reconnect. if I walk a bit further from ESP32 it disconnects, and there are two problems with it - you cannot reconnect (unless reset esp32) and in software it's not detecting that it's disconnected! Ps3.attachOnDisconnect() - does not trigger and Ps3.isConnected() - does not change to false

cannot handle the disconnect :(

wzli commented 3 years ago

Yes same, tested on ESPIDF v4.3. See log outputs. Connect:

I (21216) PS3_L2CAP: [ps3_l2cap_connect_ind_cback] bd_addr: 4�1I�5
  l2cap_cid: 0x40
  psm: 17
  id: 2
I (21226) PS3_L2CAP: [ps3_l2cap_config_ind_cback] l2cap_cid: 0x40
  p_cfg->result: 0
  p_cfg->mtu_present: 0
  p_cfg->mtu: 0
I (21226) PS3_L2CAP: [ps3_l2cap_config_cfm_cback] l2cap_cid: 0x40
  p_cfg->result: 0
I (21246) PS3_L2CAP: [ps3_l2cap_connect_ind_cback] bd_addr: 4�1I�5
  l2cap_cid: 0x41
  psm: 19
  id: 4
I (21276) PS3_L2CAP: [ps3_l2cap_config_ind_cback] l2cap_cid: 0x41
  p_cfg->result: 0
  p_cfg->mtu_present: 0
  p_cfg->mtu: 0
I (21276) PS3_L2CAP: [ps3_l2cap_config_cfm_cback] l2cap_cid: 0x41
  p_cfg->result: 0
I (21286) PS3_L2CAP: [ps3_l2cap_send_hid] sending command: success

Disconnect:

I (93936) PS3_L2CAP: [ps3_l2cap_disconnect_ind_cback] l2cap_cid: 0x41
  ack_needed: 1
I (93936) PS3_L2CAP: [ps3_l2cap_disconnect_ind_cback] l2cap_cid: 0x40
  ack_needed: 1

Reconnect:

I (127226) PS3_L2CAP: [ps3_l2cap_connect_ind_cback] bd_addr: 4�1I�5
  l2cap_cid: 0x41
  psm: 17
  id: 2
I (127236) PS3_L2CAP: [ps3_l2cap_config_ind_cback] l2cap_cid: 0x41
  p_cfg->result: 0
  p_cfg->mtu_present: 0
  p_cfg->mtu: 0
I (127236) PS3_L2CAP: [ps3_l2cap_config_cfm_cback] l2cap_cid: 0x41
  p_cfg->result: 0
W (127246) BT_L2CAP: L2CAP - no CCB for L2CA_DataWrite, CID: 64
E (127256) PS3_L2CAP: [ps3_l2cap_send_hid] sending command: failed
I (127256) PS3_L2CAP: [ps3_l2cap_connect_ind_cback] bd_addr: 4�1I�5
  l2cap_cid: 0x40
  psm: 19
  id: 4
I (127286) PS3_L2CAP: [ps3_l2cap_config_ind_cback] l2cap_cid: 0x40
  p_cfg->result: 0
  p_cfg->mtu_present: 0
  p_cfg->mtu: 0
I (127286) PS3_L2CAP: [ps3_l2cap_config_cfm_cback] l2cap_cid: 0x40
  p_cfg->result: 0
wzli commented 3 years ago

I discovered that if the reconnect failed, holding the PS button to turn off the controller, then try again and it will work on the second time.

mind2reality commented 3 years ago

Hi,

unfortunately I have the same Problem. I am using a AZ-Delivery ESP32. Everything is working fine, except the disconnect/reconnect. I wanted to implement a Failsave method , but can't manage to catch the disconnection.