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

M5StickC Plus range seems lower than M5StickC #75

Closed
gkoh opened this issue Mar 10, 2024 · 3 comments · Fixed by #77
Closed

M5StickC Plus range seems lower than M5StickC #75

gkoh opened this issue Mar 10, 2024 · 3 comments · Fixed by #77
Labels
bug Something isn't working

Comments

@gkoh
Copy link
Owner

gkoh commented Mar 10, 2024

          > Have you tried increasing the transmit power in settings?

Yeah, it was on max. Ended up just dropping the remote below the tripod whenever I needed to go more than a couple of metres away

Originally posted by @matthudsonau in #73 (comment)

@gkoh
Copy link
Owner Author

gkoh commented Mar 10, 2024

Also this:

Hmm, interesting. I just tested both M5StickC and M5StickC Plus.
For M5StickC:

  • connect works at up to ~10 metres
  • shutter release works up to ~12 meters
    • it can probably go a bit further, I ran out of house and didn't want to go outside
      For M5StickC Plus:
  • connect works at up to ~3 metres
  • shutter release works up to ~10 metres
  • definitely much worse than M5StickC

That seems weird, I have a M5Stack Core as well, will play around more later.

From #73 (comment)

@gkoh gkoh added the bug Something isn't working label Mar 10, 2024
@matthudsonau
Copy link
Contributor

Damn, I was hoping it was my fault. Potential hardware limitations aren't fun

My Plus2 should be arriving tomorrow or Tuesday (plus a Stack), so I can test on that once I hack it into working. I don't have an original stickC, so I can't use that as a point of comparison

@gkoh
Copy link
Owner Author

gkoh commented Mar 10, 2024

I may have found a fix, I never actually read the ESP32 BLE power control properly, but it says:

ESP_BLE_PWR_TYPE_CONN_HDL0-8: for each connection, and only be set after connection completed.
when disconnect, the correspond TX power is not effected.

from here

I just tried by copying this fragment (from furble.ino::setup()):

  // Set BLE transmit power
  esp_power_level_t esp_power = settings_load_esp_tx_power();
  NimBLEDevice::setPower(esp_power);

and adding it to the start of menu_remote(), which is after we establish the BLE connection to the camera.
AND ... it seems to do something, shutter control is now seems on par with my M5StickC.
Connection distance seems unchanged.

I'm in the middle of a huge refactor, but will commit/merge then raise a proper PR.

@gkoh gkoh linked a pull request Mar 10, 2024 that will close this issue
@gkoh gkoh closed this as completed in #77 Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants