This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

The getDataFromSmartphone example is unavailable
#1
phyphox ble 库中的 getDataFromSmartphone 实验无法通过移动 phyphox 客户端更改闪烁间隔。无论您键入什么,串行端口都显示 100。
我的设备是 esp32,并在 arduino IDE 中使用最新版本的 phyphoxble 库。:huh: Huh :huh:[附件=734]


Attached Files
.txt   getDataFromSmartphone.txt (Size: 1.55 KB / Downloads: 19)
Reply
#2
Quote:(free) English translation:
The “getDataFromSmartphone example of the (latest) phyphoxBLE library does not change the blinking interval on input in the phyphox app. The serial monitor shows 100 no matter what is typed. The microcontroller is an ESP32, code find attached.

I can sort-of confirm your problem with a WEMOS LOLIN32 Lite: “blinkInterval” is changed, though, at some point, however, I have no idea how it is triggered…
Reply
#3
(My impression is that the microcontroller gets flooded with data so there is an ever growing delay between entering data and applying it…)
Reply
#4
Ok, it appears to be a bug with Apple devices. The example “getDataFromSmartphone” works as intended an Android. I hand it over to the experts… Smile
Reply
#5
Here is my device information.Thanks for your help, I want to control the motor speed via bluetooth with phyphox's edit function, found the example is not available, hope this can be solved.
.docx   phyphox.docx (Size: 4.5 KB / Downloads: 21)
Reply
#6
Unfortunately, there is currently just a solution if you correct the .phyphox file by hand. Find attached a version that works for me.

The only addition is changing the sleep interval of the analysis block to 0.1 seconds:
Code:
<analysis sleep="0.1" onUserInput="false">
[…]
</analysis>

On iOS, we understand the problem: the analysis block produces at about 100 Hz more data than could be send to the microcontroller (about 80 Hz). On Android, phyphox simply drops data if there is too much, however, not so on iOS. We are not yet sure what a working general fix should look like – and why it is not working for your Android like smartphone…


Attached Files
.phyphox   Set Blink Interval.phyphox (Size: 2.58 KB / Downloads: 11)
Reply


Forum Jump: