-
Notifications
You must be signed in to change notification settings - Fork 716
SampleHIDKeyboard.cpp not sending any keys? #373
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
Comments
What do you do to receive keyboard strokes on your phone? For example i run notes to see message, thats why there is 5 seconds delay that gives me a time to open notes. |
I open notes just like you mentioned, I've also tried this with my computer
to no avail.
…On Mon, Jan 22, 2018, 12:55 AM chegewara ***@***.***> wrote:
What do you do to receive keyboard strokes on your phone? For example i
run notes to see message, thats why there is 5 seconds delay that gives me
a time to open notes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#373 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJFxhE9CG8yxnDmEP2q9LNQndwwvy4Erks5tNCK_gaJpZM4RmK7Q>
.
|
Ok, im checking right now. I'll give you answer shortly. |
Just compilled latest library with latest esp-idf and on my phone it seems to works fine. I have text in my notes. I did copy SampleHIDKeyboard.cpp and https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLETests/SampleKeyboardTypes.h to main folder. Try to run make menuconfig and switch log level to debug or verbose. Also try to switch options like described here |
You dont even have to copy |
Ok just to get this out of the way. How do I set up the project? I just
took the hello world example and in the main folder symlinked to cpp_utils.
Also of course removed the hello world code and replaced it with the sample
hid and then the main file. When I get the chance I'll setup everything how
described and set the log level to verbose. I appreciate your help
…On Mon, Jan 22, 2018, 1:39 AM chegewara ***@***.***> wrote:
You dont even have to copy
https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLETests/SampleKeyboardTypes.h
because its included in library as HIDKeyboardTypes.h
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#373 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJFxhPyq8Ag2_GnKIVpKKmjdLJkak4oJks5tNC0qgaJpZM4RmK7Q>
.
|
From description you are doing all its needed to make it works. |
Changing the compiler settings worked, but why? |
Because its know esp-idf issue that is causing characteristics are not seen by client apps. |
weird, maybe we should put a notice somewhere in the files that are affected so that people know? And has an esp-idf issue already been made? |
Any idea why this doesnt work on iOS? |
Sorry but no, i have no ption to test it on iOS or MacOS. |
Do you just want me to set the logs to verbose and then send the result when i connect an iPad? |
Yes, please |
https://pastebin.com/raw/qyT2NL9R cleaned up the escape codes, but in case you wanted them: https://pastebin.com/raw/nQ4Xmjhq |
From this log everything seems to be fine. iPhone is requesting MTU with value 185, esp32 accepts it and then is sending reportMap 65 bytes long in one packet. Then iPhone is writing to CCC descriptor to get notifications. Then bunch of packages are sent (each is key down or key up package):
There is no information than notification is Its long shot, but who knows. |
Sadly nothing https://pastebin.com/raw/3zVg8BhK |
Again, log is looking good, everything seems to work fine. There is nothing more i can do. |
I think that maybe I could know what is causing this issue. MacOS and iOS are not recognizing the esp32 as a keyboard completely. Let me try to explain my issue: |
Hi, I've setup esp-idf and created a project for SampleHIDKeyboard.cpp, but once I make it and connect to my phone, I see the program runs with make monitor, but nothing is ever sent to my phone. Can anyone else test this and tell me if it is working for them and so what settings they had to enable.
Logs: https://www.hastebin.com/raw/larufeboko
I only added some logging in the task function to see that it ran
The text was updated successfully, but these errors were encountered: