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

Event of readstring is not running #59

Open
1 of 6 tasks
ellelili2025 opened this issue Sep 1, 2021 · 6 comments
Open
1 of 6 tasks

Event of readstring is not running #59

ellelili2025 opened this issue Sep 1, 2021 · 6 comments
Assignees
Labels

Comments

@ellelili2025
Copy link
Contributor

ellelili2025 commented Sep 1, 2021

Describe the bug

There is a thread on the community site regarding event of readstring is not running

Affects

  • Designer
  • Blocks editor
  • [ x] Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • Other... (please describe)

Please refer to https://community.appinventor.mit.edu/t/uart-with-micro-bit-and-app-inventor/8935/18 for details.
MicroBitReceiveText.aia.zip

Extension with UART service

com.bbc.microbit.profile-20200518.aix.zip

microbitRW_2.aia.zip

@xyyshh
Copy link
Collaborator

xyyshh commented Sep 4, 2021

@ellelili2025 Hi Li. I have looked through the link. They said the StringsReceived block from BLE extension and the TXCharacteristicReceived block from Microbit_Uart extension do not work. They also said the BytesReceived block from BLE extension works. But all the three blocks do not work for me, which means I can't receive any bytes or strings from the micro:bit V2 or V1 to my phone. I have tried a lot but I did not find where the problem is. May I ask what can I do for this issue? I'm not quite sure about that. Thank you very much.

@ellelili2025
Copy link
Contributor Author

ellelili2025 commented Sep 9, 2021

@xyyshh Does BluetoothLE1.bytesreceived work for you? If it doesn't work for you. Could you provide more details? errors? Also which version of microbit did you use? Could yo also try with the extension I attached in the issue?

@xyyshh
Copy link
Collaborator

xyyshh commented Sep 14, 2021

@ellelili2025 Dear Li, BluetoothLE1.bytesreceived does not work for me. I have tried both V1 and V2 with the code you attached and they had the same performance. When I just connected to the microbit, there occured an error "Error 9011 in extension BluetoothLE: Unknown Characteristic" on my phone (app inventor). Then I pressed the button on microbit to let it send string to my phone. But I didn't receive the string and there was also no error.

I also tried the extension you attached and it also didn't work. For V2, there was no string received and also no error. But I cannot connect to V1 with the extension. When I click connect button, the app crashed.

@ellelili2025
Copy link
Contributor Author

@xyyshh I will look at this and get back to you.

@ellelili2025
Copy link
Contributor Author

ellelili2025 commented Sep 22, 2021

@xyyshh Could you please try project microbitRW_2.aia that I just attached. Refer to this thread in the community site for more details. https://community.appinventor.mit.edu/t/communicate-with-micro-bit/31120/3

@xyyshh
Copy link
Collaborator

xyyshh commented Sep 29, 2021

@ellelili2025 microbitRW_2.aia works well on my phone and I can receive bytes from bicrobit. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants